Skip to content

Conversation

@kodjima33
Copy link
Collaborator

Persist task indentation state to ensure indentation levels are saved and restored across app sessions.


Open in Cursor Open in Web

- Add taskIndentLevels getter/setter to SharedPreferencesUtil
- Load saved indent levels on init in ActionItemsPage
- Save indent levels when changed via swipe gestures
- Add same functionality to DesktopActionsPage for desktop support
- Indent levels (0-3) now persist across app restarts
- Existing tasks default to indent level 0 if not set

Co-authored-by: Nik Shevchenko <[email protected]>
@cursor
Copy link

cursor bot commented Feb 9, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces persistence for task indentation levels, ensuring they are saved and restored across application sessions. The implementation correctly utilizes SharedPreferences for storing the indentation state as a JSON string. The new logic is added to both DesktopActionsPage and ActionItemsPage, with proper loading in initState and saving upon modification of indentation. The code for serialization and deserialization is robust, including error handling for JSON parsing. The changes are consistent with the existing patterns for managing preferences in the codebase. Overall, this is a solid implementation that achieves the stated goal. I have not found any issues of high or critical severity.

@beastoin
Copy link
Collaborator

Hi @kodjima33 — this appears to be a duplicate of #4697 and #4698 (all submitted within a few minutes for the same task indentation persistence feature). Could you confirm which PR is the final version? Recommend closing the other two to keep the review queue clean.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants