Skip to content

feat(goals): revamp goals UI and add goal details - #52

Open
esraaehab333 wants to merge 5 commits into
developfrom
fix/goal-ui
Open

feat(goals): revamp goals UI and add goal details#52
esraaehab333 wants to merge 5 commits into
developfrom
fix/goal-ui

Conversation

@esraaehab333

Copy link
Copy Markdown
Contributor

What & Why

Revamp the Goals experience and make goal data fully usable across the Goals list and Goal Details screen.

This update improves the Goals UI, adds navigation to goal details, introduces search and priority-based sorting, and strengthens goal/task persistence through the local database and repository layer.

Key Changes

  • Revamped the Goals screen UI and goal cards.

  • Added Goals search functionality.

  • Added goal filtering and priority-based sorting.

  • Added navigation from a goal card to its Goal Details screen.

  • Added a dedicated Goal Details screen with its own state and ViewModel.

  • Added GetGoalUseCase, CreateGoalUseCase, and DeleteGoalUseCase.

  • Added targetDate to the Goal domain model and mappings.

  • Updated goal repository handling to:

    • Fetch remote goals when online.
    • Cache goals locally with TTL.
    • Cache tasks returned with goals.
    • Load goal tasks from Room when reading cached goals.
    • Delete tasks associated with a deleted goal.
    • Execute repository operations on the IO dispatcher.
  • Added mapping from TaskEntity to the domain Task model.

  • Updated Goal and Task DAOs to support the new goal/task loading flow.

  • Added the required feature:add-task dependency to the Goals feature.

  • Updated app navigation to support GoalDetailsRoute.

  • Added/updated Arabic and English strings for the revised Goals experience.

  • Removed obsolete Goals UI components that are no longer used.

Related

  • Goals UI revamp
  • Goal Details navigation
  • Goal/task local persistence
  • Search and priority handling

Testing

  • Build and run the application.
  • Verify Goals list rendering.
  • Verify goal search and filtering.
  • Verify goal priority ordering.
  • Verify tapping a goal opens Goal Details.
  • Verify Goal Details loads correctly.
  • Verify goals and their tasks are loaded correctly from the local cache.
  • Verify goal deletion also removes its associated cached tasks.
  • Verify offline goal retrieval works from Room.

Notes for Reviewers

Please review the changes across the UI, navigation, domain, repository, and local persistence layers, as this PR contains both UI and data-layer changes rather than a UI-only adjustment.

@esraaehab333 esraaehab333 self-assigned this Aug 11, 2026
@esraaehab333 esraaehab333 added the enhancement New feature or request label Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants