Commit graph

8 commits

Author SHA1 Message Date
76de321d41 templates: Don't show the tagging form if no tags
If there are no tags but the form is still shown, the admin
could ask to add an empty tag returning an error 422
unprocessable entity.
Remove if there are no tags available
2024-08-01 22:55:44 +01:00
19898e1b09 tag: Introduce tag system
Create a new table representing tags, composed of a name and color.
They can be used to tag truths and filter them later.
Tags display under the truths they correspond to and can be clicked
to access all truths matching this tag.

Introduce a new element in the top bar to allow navigating to the
tag list, which can be used to create and edit tags for the admin
and used to select a list of tags to filter against for everyone.

Update the database records of the truths to include the tag vector.
As the database query result is a multi-row result, it cannot be
parsed automatically so it needs to be skipped and retrieved
manually.
2024-08-01 21:55:47 +01:00
0c162d3b42 vote: Always display graph for the admin 2024-07-26 23:49:23 +01:00
4e1b13dc85 vote: Fix logic to hide graph if week is active
The goal is to not display the graph until the active week has been changed, but the logic
retuned early if it wasn't.

Simplify the query and check directly if the current week is the last one, if so do not
show the graph.
2024-07-26 11:30:12 +01:00
5ec38ee44f v1.2.0: Update production version
Main changes are the week handling, proper redirections, a bunch of fixes
and small adjustments, not displaying the graph until all votes and the
week changed.
2024-07-26 01:37:17 +01:00
a2f70c318f auth: Fix auth token getting leaked to console
Remove a forgotten debug print that leaked auth tokens to the
console to check how they got saved and restored to the database.
2024-07-23 21:51:56 +01:00
67ce54e992 v1.1: Add weekly introductions
- Create a new migration adding a Weeks table, allowing for new weekly introductions
     and paving the way for multiple week handling.
 - Add route to update the weekly introduction
 - Move the week rendering to a specific week file
 - Update the templates to use the week number from the week data
 - Update templates to render and edit weekly introductions
2024-07-23 21:51:51 +01:00
9911895b5b v1.0: First production version
This first version allows login of pre-existing users, creation and update of truths
by admins, vote on the truths by users, their display as well as a simple graph
for the vote results.
Everything persisting in a SQLite database.
2024-07-23 21:51:42 +01:00