1721/feature/drag and drop favorites (#2097)

* prisma schema updated: added index in favorite

* update abilitiy added for favorite

* update one favorite resolver added

* update on favorite mutation added

* updateFavoriteOrder added

* Draglist added in favorite

* nav item convert to div from button: because it was not working dragable with button

* changed index to position

* position added in getFavorites query

* added recoil state for favorites

* reordering updated according to new method

* Use accurate type

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
Abhishek Thory
2023-10-19 23:35:23 +02:00
committed by GitHub
co-authored by Charles Bochet
parent f6b5943fc6
commit 08772b4456
14 changed files with 341 additions and 42 deletions
+1
View File
@@ -395,6 +395,7 @@ export type Favorite = {
id: Scalars['ID']['output'];
person?: Maybe<Person>;
personId?: Maybe<Scalars['String']['output']>;
position: Scalars['Float']['output'];
workspaceId?: Maybe<Scalars['String']['output']>;
workspaceMember?: Maybe<WorkspaceMember>;
workspaceMemberId?: Maybe<Scalars['String']['output']>;