Skip to content

Conversation

@0nko
Copy link
Member

@0nko 0nko commented Dec 4, 2025

Task/Issue URL: https://app.asana.com/1/137249556945/project/1207418217763355/task/1212237599845918?focus=true

Description

This PR adds a new FireDataStore, which allows to store automatic and manual data-clearing options. There is a new FireClearOption enum that has 3 options: TABS, DATA and DUCKAI_CHATS.

Steps to test this PR

  • Make sure the unit tests pass

Note

Adds FireDataStore with DataStore-backed storage for manual/automatic clear options and clear-when timing, plus DI wiring and tests.

  • Data layer:
    • Introduce FireDataStore and SharedPreferencesFireDataStore using DataStore<Preferences> to persist Fire clearing prefs.
    • Manage manual and automatic clear options with flows and CRUD for FireClearOption (TABS, DATA, DUCKAI_CHATS).
    • Add automatic "clear when" option (ClearWhenOption) with flow and persistence.
    • Fallback to legacy SettingsDataStore values for defaults/migration.
  • DI:
    • Provide qualified @FireData DataStore via FireDataStoreModule (fire_clearing_preferences).
  • Tests:
    • Add FireDataStoreTest covering option management, flows, and legacy fallback behavior.

Written by Cursor Bugbot for commit d2c0980. This will update automatically on new commits. Configure here.

Copy link
Member Author

0nko commented Dec 4, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@0nko 0nko changed the title Add a FireDataStore for new clearing options Fire Dialog: Data storage Dec 4, 2025
@0nko 0nko marked this pull request as ready for review December 4, 2025 21:01
@0nko 0nko force-pushed the feature/ondrej/fire-dialog-data-storage branch from 0292795 to 0f21636 Compare December 5, 2025 16:06
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.

1 participant