Skip to content

Conversation

iffasadiq
Copy link

πŸ”— Related Issue

  • Closes #

🎯 Rationale

πŸ“ Summary of Changes

πŸ”§ Technical Details

βœ… Testing

Test Coverage

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing completed
  • All existing tests pass

Test Details

πŸ“š Documentation

  • Code comments added/updated
  • README updated (if needed)
  • API documentation updated (if needed)
  • Migration guide provided (for breaking changes)

πŸ”„ Breaking Changes

  • This PR contains breaking changes
  • Migration guide provided
  • Version updated appropriately

🎨 User-Facing Changes

Frontend Changes

  • UI components modified
  • New user interactions added
  • Styling/theme changes

Backend/API Changes

  • New endpoints added
  • Existing endpoints modified
  • Response format changes

πŸ“‹ Checklist

Code Quality

  • Code follows project style guidelines
  • Self-review completed
  • No console.log or debug statements left
  • Error handling implemented appropriately

Review Readiness

  • PR title is descriptive and follows conventions
  • PR description is complete and accurate
  • Commits are atomic and well-documented
  • Branch is up to date with target branch

Security & Performance

  • No sensitive information exposed
  • Performance impact considered
  • Security implications reviewed

πŸš€ Deployment Notes

πŸ“Έ Screenshots/Demo

πŸ™ Reviewer Notes


The "goal planning file" is a Python script designed to create and manage mental health goals within a Streamlit application. It provides a user interface for both AI-generated and manually created goal plans. The file handles all the logic for data persistence, user interaction, and the display of goal-related information.
To integrate the goal planner, we first imported the render_goal_planning function into talkheal.py. We then added new session state variables to manage navigation, such as st.session_state.show_goal_planning = True. Finally, we added a new button to the main page that sets this state variable, and a new elif condition in the page routing logic to display the goal planner when the variable is true, completing the integration.
We create a data folder and a user_goals.json file to persistently store user goal information between sessions. Since Streamlit is a stateless web framework, it doesn't automatically save data. The data folder acts as a dedicated location to hold this information, while user_goals.json serves as a simple, human-readable database to save the user's goals, progress, and plans. This ensures that when a user returns to the app, their goals are not lost.
The change in addition of a new "🎯 Goal Planning" button to the sidebar's navigation. When a user clicks this button, the application's session state is updated: the st.session_state.show_goal_planning flag is set to True, while all other page-related flags (like show_chat_interface or show_mood_dashboard) are set to False. This action triggers a rerun of the application, causing the main content area to switch from the current page to the newly integrated goal planning interface.
@eccentriccoder01
Copy link
Owner

Great work @iffasadiq, now please provide a working deployment link of your updated fork/PR... Thanks!

@eccentriccoder01 eccentriccoder01 linked an issue Sep 17, 2025 that may be closed by this pull request
5 tasks
@iffasadiq
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc25 level 3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEATURE] AI-Powered Goal Setting:
2 participants