36a6558289
Feat/activity optimistic activities ( #4009 )
...
* Fix naming
* Fixed cache.evict bug for relation target deletion
* Fixed cascade delete activity targets
* Working version
* Fix
* fix
* WIP
* Fixed optimistic effect target inline cell
* Removed openCreateActivityDrawer v1
* Ok for timeline
* Removed console.log
* Fix update record optimistic effect
* Refactored activity queries into useActivities for everything
* Fixed bugs
* Cleaned
* Fix lint
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-20 14:20:45 +01:00
a06b6c9078
3757 update frontend to show correct view count ( #3967 )
...
* Add totalCount to fetch record request
* Add totalCount to object board
* WIP Add totalCount to object table
* Update query total count on update / delete optimistic effects
* Remove console log
* Load fewer data for totalcount
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-16 14:33:51 +01:00
cca72da708
Activity cache injection ( #3791 )
...
* WIP
* Minor fixes
* Added TODO
* Fix post merge
* Fix
* Fixed warnings
* Fixed comments
* Fixed comments
* Fixed naming
* Removed comment
* WIP
* WIP 2
* Finished working version
* Fixes
* Fixed typing
* Fixes
* Fixes
* Fixes
* Naming fixes
* WIP
* Fix import
* WIP
* Working version on title
* Fixed create record id overwrite
* Removed unecessary callback
* Masterpiece
* Fixed delete on click outside drawer or delete
* Cleaned
* Cleaned
* Cleaned
* Minor fixes
* Fixes
* Fixed naming
* WIP
* Fix
* Fixed create from target inline cell
* Removed console.log
* Fixed delete activity optimistic effect
* Fixed no title
* Fixed debounce and title body creation
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-02-09 14:51:30 +01:00
7adb5cc00d
feat: delete favorite in cache on related record deletion ( #3751 )
...
* feat: delete favorite in cache on related record deletion
* fix: fix useCreateOneRecord tests
* fix: fix usePipelineSteps tests
* fix: fix useCreateManyRecords tests
* fix: add null relation field values in useGenerateObjectRecordOptimisticResponse
2024-02-01 16:09:32 +01:00
29339ef99a
fix: detach relation records in cache on record deletion ( #3707 )
...
* fix: detach relation records in cache on record deletion
* fix: fix useGetRelationMetadata tests
2024-01-31 11:36:26 +01:00
0bfc63161b
fix: fix delete records optimistic effect not re-rendering queries af… ( #3690 )
...
fix: fix delete records optimistic effect not re-rendering queries after cache.evict
2024-01-30 12:26:05 +01:00
49f33bbe2e
fix: fix record deletion optimistic effect ( #3683 )
...
* fix: fix record deletion optimistic effect
* fix: fix renamed method after rebase
* Re-add evict
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-30 09:33:28 +01:00
a58b4cf437
refactor: apply relation optimistic effects on record update ( #3556 )
...
* refactor: apply relation optimistic effects on record update
Related to #3509
* refactor: remove need to pass relation id field to create and update mutations
* fix: fix tests
* fix: fix SingleEntitySelect glitch
* fix: fix usePersistField tests
* fix: fix wrong import after rebase
* fix: fix several tests
* fix: fix test types
2024-01-29 08:00:00 -03:00
419f8adde6
Improve RecordTableCellperformances ( #3659 )
...
* Improve RecordTableCellperformances
* Fixes
2024-01-28 20:32:28 +01:00
014f11fb6f
perf: apply record optimistic effects with cache.modify on mutation ( #3540 )
...
* perf: apply record optimistic effects with cache.modify on mutation
Closes #3509
* refactor: return early when created records do not match filter
* fix: fix id generation on record creation
* fix: comment filtering behavior on record creation
* Fixed typing error
* refactor: review - use ??
* refactor: review - add variables in readFieldValueToSort
* docs: review - add comments for variables.first in triggerUpdateRecordOptimisticEffect
* refactor: review - add intermediary variable for 'not' filter in useMultiObjectSearchMatchesSearchFilterAndToSelectQuery
* refactor: review - add filter utils
* fix: fix tests
---------
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com >
2024-01-23 18:13:00 +01:00
687c9131f4
Feat/record optimistic effect ( #3076 )
...
* WIP
* WIP
* POC working on hard coded completedAt field
* Finished isRecordMatchingFilter, mock of pg_graphql filtering mechanism
* Fixed and cleaned
* Unregister unused optimistic effects
* Fix lint
* Fixes from review
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-20 20:31:48 +01:00