Show state(geographical) based latest activities as dashboard in the homepage #13

Open
opened 2026-01-29 19:34:15 +00:00 by aniram · 1 comment
Owner

When hitting the homepage the visitor should see the newest projects and the latest polls from the most populous states, they can then search for their own state and see its data. The state they chose as their 'home' will be saved in the local storage so that in their next visit the homepage can be populated with that data. Maybe, in order to make it quick, the information to be displayed could be fetched and saved to the database in advance, for example the DB could have already saved the latest 5 polls and 5 projects for each state and send this information to the visitor of the homepage, the frontend would then check the local storage for the state and filter the data.

When hitting the homepage the visitor should see the newest projects and the latest polls from the most populous states, they can then search for their own state and see its data. The state they chose as their 'home' will be saved in the local storage so that in their next visit the homepage can be populated with that data. Maybe, in order to make it quick, the information to be displayed could be fetched and saved to the database in advance, for example the DB could have already saved the latest 5 polls and 5 projects for each state and send this information to the visitor of the homepage, the frontend would then check the local storage for the state and filter the data.
aniram changed title from On the homepage of non-logged users show activities for each state to Show state based latest activities as dashboard on the homepage 2026-01-29 19:37:26 +00:00
aniram changed title from Show state based latest activities as dashboard on the homepage to Show state(geographical) based latest activities as dashboard on the homepage 2026-01-29 19:46:22 +00:00
aniram changed title from Show state(geographical) based latest activities as dashboard on the homepage to Show state(geographical) based latest activities as dashboard in the homepage 2026-01-29 19:46:33 +00:00
Author
Owner

@aniram wrote in #13 (comment):

When hitting the homepage the visitor should see the newest projects and the latest polls from the most populous states, they can then search for their own state and see its data. The state they chose as their 'home' will be saved in the local storage so that in their next visit the homepage can be populated with that data. Maybe, in order to make it quick, the information to be displayed could be fetched and saved to the database in advance, for example the DB could have already saved the latest 5 polls and 5 projects for each state and send this information to the visitor of the homepage, the frontend would then check the local storage for the state and filter the data.

Instead of saving the latest 5 polls and 5 projects of each most populous state to the DB, I could use Redis or some sort of in-memory cache to make it quick.

@aniram wrote in https://git.marinabsa.com/aniram/cidadon/issues/13#issue-13: > When hitting the homepage the visitor should see the newest projects and the latest polls from the most populous states, they can then search for their own state and see its data. The state they chose as their 'home' will be saved in the local storage so that in their next visit the homepage can be populated with that data. Maybe, in order to make it quick, the information to be displayed could be fetched and saved to the database in advance, for example the DB could have already saved the latest 5 polls and 5 projects for each state and send this information to the visitor of the homepage, the frontend would then check the local storage for the state and filter the data. Instead of saving the latest 5 polls and 5 projects of each most populous state to the DB, I could use Redis or some sort of in-memory cache to make it quick.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
aniram/cidadon#13
No description provided.