Skip to content

Enhance Quick Self-Check with History Tracking and Visualization #306

@akshay0611

Description

@akshay0611

Hi @eccentriccoder01 ,

Problem

The "Quick Self-Check" page was a simple, one-time assessment tool. It did not store user input, making it impossible to track well-being metrics like stress, sleep, and mood over time.

Solution

I have upgraded the feature in pages/WellnessResourceHub.py to include historical tracking and visualization:

  1. Data Persistence: User submissions for stress, sleep, and mood are now saved with a timestamp in the session state.
  2. Trend Visualization: A line chart (st.line_chart) now displays the history of these metrics, allowing users to easily visualize their well-being trends.
  3. Raw Data View: An expander was added so users can view their historical data in a table format.

This enhancement converts the feature from a simple tip generator into a powerful tool for long-term self-monitoring.

Screenshot:

Image

Kindly assign it to me under gssoc level 3

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions