twenty icon indicating copy to clipboard operation
twenty copied to clipboard

[Timebox] Refactor views to be simpler (and fix bugs)

Open charlesBochet opened this issue 1 year ago • 0 comments

Context

Views are used to pick view, viewFields, viewSorts, viewFilters on top of table and kanban pages. It's working but we are maintaining many states (viewFields, views, viewSorts, viewFilters) which is not useful anymore

Scope

Remove these viewFilters, viewSorts, views, viewFields states. Replace it by a usage of apollo views cache (we will need to read and write from this):

  • read: use apollo query result and add a useEffect on this
  • write: use our cache update API to handle that (optimistic effect won't be enough)

Test all edge cases (create, update view, filters, sorts, fields...) to make sure there are no more bugs

charlesBochet avatar Jan 08 '24 10:01 charlesBochet