Commit graph

16 commits

Author SHA1 Message Date
ff70221553 refactor: clean up unused imports and improve code quality
Removed unnecessary imports across various modules to streamline the application's dependencies and improve loading times. Specific changes include the removal of unused Django model and admin imports in several apps, simplifying view imports by eliminating unutilized components, and cleaning up static CSS for better maintainability. Corrections were made to conditional expressions for clearer logic. The removal of the django.test.TestCase import in test files reflects a shift towards a different testing strategy or the current lack of tests. Exception handling has been made more explicit to avoid catching unintended exceptions, paving the way for more robust error handling and logging in the future. Additionally, a new CSS file was added for frontend enhancements, indicating ongoing UI/UX improvements.

These changes collectively aim to make the codebase more maintainable and efficient, reducing clutter and focusing on used functionalities. It's a step towards optimizing the application's performance and ensuring a clean, manageable codebase for future development.
2024-06-02 20:27:02 +02:00
9fbfe583be feat: Enhance data security and introduce heatmap UI
Reinforced user data access rules to bolster security and reorganized distribution files into separate directories for cleaner structure. Added a new heatmap visualization for mood statistics on the dashboard, making user engagements more interactive and insightful. Implemented a JSON view to support the heatmap feature, fetching mood entries within a specified time range.

This change responds to the need for improved data security and a more engaging user interface, directly addressing user feedback for clearer insights into their mood patterns over time.
2024-05-17 15:03:20 +02:00
acc8cf5208 fix: update legend label in moodpies chart
Updated the property for setting the chart legend's label from `legend`
to `legend_label` in the `moodpies` function to align with the latest
library syntax. This change ensures compatibility with newer versions of
the visualization library, preventing potential issues with legend
rendering in mood statistics charts.
2024-03-24 16:29:27 +01:00
8032375bb5 refactor(mood/stats): streamline and optimize visualizations
This commit streamlines mood and activity visualization code in
mood/statistics.py for better readability and maintainability. By
consolidating similar code blocks, replacing ' extension calls with
consistent double quotes, and reformatting large data structures for
clarity, we ensure the code is more Pythonic and easier to follow.
Additionally, the alterations in how pie charts and mood statistics are
generated not only maintain functionality but also reduce cognitive load
when navigating the codebase. These changes pave the way for future
enhancements and debugging efforts by making the codebase more
approachable.
2024-03-24 16:28:10 +01:00
37035aad01 refactor(statistics.py): standardize chart height param
Standardized the parameter name for setting chart height across all
chart creation functions in statistics.py. Replaced `plot_height` with
`height` to align with the latest visualization library conventions.
This change enhances code consistency and adheres to the updated library
API, ensuring future compatibility and easier maintenance.
2024-03-24 16:23:48 +01:00
2d09e25df3 Basic activity statistics 2021-03-03 08:39:26 +01:00
f80b909c6e Badly implement mood pie charts 2021-03-01 18:05:14 +01:00
ca56b250f7 Replace max time parameter by current time 2021-02-28 19:58:38 +01:00
8d75d9b342 Fix moodstats signature
Remove unused variables
Fix time selection for CSV
2021-02-26 07:38:17 +01:00
e7f0e07a99 Fix activitystats signature 2021-02-26 07:26:52 +01:00
040ffe0fb3 Add monthly and yearly activity counters 2021-02-25 15:33:28 +01:00
51ee9cd76f Add statistics to sidebar
Fix stupid mistake
2021-02-22 07:59:51 +01:00
e1078bbd4c Add rolling average to mood statistics chart
Add ordering clause to Status objects
2021-02-22 07:51:27 +01:00
2ffe276304 Make prettier 2021-02-21 21:03:34 +01:00
c2e384cf7a Adding activity output
Bug fixing
2021-02-21 20:59:39 +01:00
7301e2a401 Reworked statistics with HoloViews/Bokeh 2021-02-21 20:13:22 +01:00