Quick expenses dashboard #878
vsbabu
started this conversation in
Show and tell
Replies: 1 comment 2 replies
-
Hello @vsbabu great job on building this app ! can you please tell me how you found out about SQLPage and what is your end goal with this Expenses dashboard (is it a personal project or something that will be shared) ? Alexis |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
From installing SQLPage to this dashboard with search - took about a day to parse the data into a sqlite3 database and attaching categories to transactions. SQLPage made it so easy from then onwards.
I've attached some screenshots below with a random(0,1) multiplier applied to all records - 1 year records are as it is duplicated 5 times for testing.
Note - this screenshot above is actually 3 screenshots attached one below the other - causing some misalignment.
Menus are all made using SQL looking at min and max date of data available. ie., each menu starts from today and goes as back as the minimum date of transactions. Added the dark/light mode toggle from examples, but the icon change doesn't seem to work.
Todo Next
Code details
index.sql
runsshell.sql
,search_results.sql
andsearch_form.sql
as dynamic components one after the other.search_results.sql
call has parameters set to default date range if not present.shell.sql
queries the data along with a recursive CTE to generate months, quarters and financial year ranges. Then these CTEs are used withjson_group_array
to print menus as json.search_results.sql
creates a temporary table and fills it with data from main tables applying query string or default parameters. Then on, all the dashboard items are selected from this temporary table. Initially I wrote all these using CTEs, but got fed up of changing the CTEs in multiple places and switched to temporary table. Is it possible to use dynamic table name in "FROM"? #874Beta Was this translation helpful? Give feedback.
All reactions