Skip to content

Conversation

akshay0611
Copy link
Contributor

This PR fixes issues with archive management in the Habit Builder, addressing issue #343.

Problem

  • Modifying st.session_state.archived_habits directly during iteration caused:

    • Skipped items
    • Incorrect indexing
    • Occasional IndexError

Fix Implemented

  • Rebuilt the archived_habits list after restore or permanent delete operations.
  • Ensures stable indexing and consistent behavior when restoring or deleting archived habits.

Screenshot

image

Linked Issue

Closes #343

- Implement task editing functionality with save/cancel options
- Replace index-based task management with UUID keys
- Add session state variables for editing mode
- Improve task deletion to avoid re-indexing issues
Show balloons and success message when all tasks are marked as completed to provide positive reinforcement
Implement habit editing feature with form inputs for name, category, difficulty, reminder time and notes. The edit mode can be toggled with an edit button and changes are saved or canceled with corresponding buttons.
- Initialize archived_habits in session state
- Add archive button with emoji and confirmation flow
- Implement display_archived_habits function with restore/delete
- Add new tab for archived habits management
- Update reset functionality to clear archived habits
@pkbros pkbros added enhancement New feature or request gssoc25 level 3 labels Oct 2, 2025
@pkbros pkbros merged commit 76a2b00 into eccentriccoder01:main Oct 2, 2025
1 check passed
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.

Fix: Archive Management in Habit Builder
2 participants