Commit graph

14 commits

Author SHA1 Message Date
94c4fb650b
fix: Refactors views to use static for script paths
Changes hardcoded script URL paths to use Django's static function for better resource management and maintainability.

Improves code readability by breaking lines, adopting PEP 8 style guidelines.

Simplifies model imports and uses consistent string formatting for various UI elements.
2024-11-20 21:27:56 +01:00
7f79a79a17
feat: Enhances navigation with collapsible menus
Introduces NavCollapse to manage grouped navigation items.
Simplifies 'features.py' by organizing items under collapsible sections.
Updates HTML generation for both NavItem and NavCollapse classes.

Improves user experience by improving sidebar organization.
2024-11-19 06:56:52 +01:00
5c7586bb9a
feat: Modularizes dashboard structure
Introduces DashboardSection class to encapsulate dashboard logic,
enabling easier extension and customization. Adds separate mood
and dreams dashboard templates to streamline content rendering.

Refactors main dashboard template to dynamically render content
from enabled modules using a new template tag system, improving
flexibility and maintainability.
2024-11-18 10:49:04 +01:00
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
53429b9ded feat(dreams): Initialize database models for dream tracking
This commit establishes the initial set of models required for the dream tracking feature within the application, including models for Dream, DreamMedia, Theme, DreamTheme, and ThemeRating, along with their associations. The structure allows for comprehensive tracking and categorization of user dreams, media associated with dreams, thematic elements, and ratings for these themes. This foundational work is critical for enabling detailed dream recording and analysis, supporting functionalities such as dream categorization, mood association, and user-specific customization.

The relationships between models facilitate advanced queries for insights and trends in dream content, mood correlations, and thematic popularity. The choice of fields and types ensures a balance between flexibility for future enhancements and the current performance requirements.
2024-05-17 13:28:29 +02:00
2e03956f1d Move nav sections to respective apps 2021-10-24 17:45:23 +02:00
4f25fe20df Fix silly mistake in dream attachment saving 2021-01-06 14:06:48 +01:00
82e7b262e2 Fix file name display in dream view 2021-01-06 14:05:31 +01:00
3e6ef52be9 Fix attachment upload paths for DreamMedia 2021-01-06 13:55:32 +01:00
84b93b20b3 Make themes not required for dreams 2021-01-04 07:38:42 +01:00
f021f618f8 Preliminary dream stat template tags 2021-01-01 18:17:10 +01:00
fc7d56680a Dreams module completed (?) 2021-01-01 17:49:39 +01:00
6ef8035b2f Create models for dream tracking module
Update to-do list
2021-01-01 14:43:47 +01:00