8000 [Refactor] Migrate Favorite Tasks from Local Storage to Gauzy API · Issue #3861 · ever-co/ever-teams · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Refactor] Migrate Favorite Tasks from Local Storage to Gauzy API #3861
@NdekoCode

Description

@NdekoCode

Currently, favorite tasks in Ever Teams Web are stored locally in the browser (localStorage).
This limits the experience to only one device/browser, and the data is lost when users switch browsers or clear their cache.

However, Gauzy already provides a full-featured API for managing favorites, which supports not only tasks but also projects, teams, etc.

Suggested Improvement

Replace the localStorage-based implementation with a server-side integration using the Gauzy Favorites API, so that:

  • Favorites are persisted across devices and sessions
  • Users have a more consistent experience
  • We support more types of favorites (projects, teams…)
  • It aligns with our backend-first data strategy

Tasks

  • Identify where favorite tasks are currently stored (e.g., localStorage or client-only state)
  • Replace this logic with proper fetch and mutation logic using Gauzy Favorites API (/api/favorites)
  • Make sure favorite actions are reflected across the app (e.g., Kanban, My Tasks, Sidebar, etc.)
  • If possible, extend to support favorite projects or teams in the same flow
  • Use React Query or SWR (if already integrated) for handling cache/mutations

Acceptance Criteria

  • Favorite tasks are fetched and stored using the Gauzy API, not localStorage
  • Favorites persist between sessions/devices
  • UI components reflect favorite status correctly
  • Code is documented and maintainable
  • No broken UX or regressions introduced

References

Notes

This is a low-priority but high-impact improvement. It improves user experience, aligns better with our API-first design, and prepares for future features like syncing favorites across devices and using favorites in team dashboards or notifications.

Metadata

Metadata

Assignees

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0