Commit Graph

640 Commits

Author SHA1 Message Date
baf1260443 Fix Activities and Tasks modules (#2561)
* Fix activities

* Fix Timeline

* Refactor useCreateOne and useUpdateOne records

* Fix seeds
2023-11-17 16:24:58 +01:00
bc579d64a6 Rename Money/Url to Currency/Link and remove snake_case from composite fields (#2536)
* Rename Money/Url to Currency/Link

* regenerate front types

* renaming money/url field types

* fix double text

* fix tests

* fix server tests

* fix generate-target-column-map

* fix currency convert

* fix: tests

---------

Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com>
2023-11-17 10:31:17 +01:00
7da18a13e8 Feat/filter available field definition v2 (#2547)
* Added react-dev-inspector

* Add field relation type parsing and filter available fields for record table and show page

* Revert "Added react-dev-inspector"

This reverts commit 7a78964c2c3996ce2e27f6f8d0c0b5e1f3283e17.
2023-11-16 17:09:50 +01:00
0ae9373532 V2 onboarding (#2543)
* fix cannot query avatarUrl

* create workspace working

* fix bugs related to refetch queries

* onboarding working

* updated dependency array

* improve error handling

* update types, remove as any, remove console logs

* small fix
2023-11-16 17:09:10 +01:00
4acb7f41e1 Fix/company picker v2 (#2535)
Fixed company picker V2
Fixed picker search hook filters / where clause
Fixed OrderBy / SortOrder type
Fixed set relation to null
2023-11-16 12:34:23 +01:00
e026b2b6e9 feat: expose foreign key (#2505)
* fix: typo

* feat: expose foreign key

* fix: foreign key exposition

* fix: be able to filter by foreign key

* feat: add `isSystem` on field metadata

* feat: update all seeds

* fix: seed issues

* fix: sync metadata generated files

* fix: squash metadata migrations

* Fix conflicts

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-16 12:30:40 +01:00
e5caa7a5df Eslint prevent duplicate import (#2516)
- eslint: prevent duplicate import
2023-11-16 12:26:43 +01:00
bee986749d 2472 v2 settings workspace module (#2532)
* update findOneWorkspaceMember

* profile picture upload is working

* first name and last name working

* support almost working

* remove picture working

* removed unused code

* remove console logs and fix allowImpersonation in FIND_ONE_WORKSPACE_MEMBER_V2

* use useUpdateOneObjectRecord
2023-11-16 11:59:13 +01:00
96661b5f56 Add support for UUID fields in tables (#2529) 2023-11-15 19:37:29 +01:00
1fc3124d1e Update favorites query and state to work with new backend (#2520)
* wip

* wip

* adding favorite works in the database

* favorites are showing in the left drawer

* update favoorite NavItem link

* wip

* adding favorite works

* everything seems to work

* fix delete bug

* fix update favorite position

* update Favorite type

* Fix

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-15 16:17:50 +01:00
f49ddec2f6 Fix optimistic effect breaking build 2023-11-15 15:57:43 +01:00
6129444c5c [WIP] Whole FE migrated (#2517)
* Wip

* WIP

* Removed concole log

* Add relations to workspace init (#2511)

* Add relations to workspace init

* remove logs

* update prefill

* add missing isSystem

* comment relation fields

* Migrate v2 core models to graphql schema (#2509)

* migrate v2 core models to graphql schema

* Migrate to new workspace member schema

* Continue work

* migrated-main

* Finished accountOwner nested field integration on companies

* Introduce bug

* Fix

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
Co-authored-by: Weiko <corentin@twenty.com>
2023-11-15 15:46:06 +01:00
f3dfd06571 feat: Unfocus cells when mouse leaves the table (#2442)
* feat: Unfocus cells when mouse leaves the table

* fix: only unfocus cells that are not in edit mode
2023-11-14 15:07:41 +01:00
f476129afa Fix date dropdown width (#2486)
fix date dropdown width
2023-11-13 18:21:16 +01:00
230459b23c 2454 update filter definition to work with new backend (#2482)
* wip

* filters are working

* updated functions

* remove comment

* improve readability
2023-11-13 18:05:49 +01:00
9a109758c8 Migrate standard objects (#2439)
* Migrate standard objects

* Add migrations

* fix relation

* fix: register RelationMetadataType enum

* fix: correctly fix null relation

---------

Co-authored-by: corentin <corentin@twenty.com>
Co-authored-by: Jérémy Magrin <jeremy.magrin@gmail.com>
2023-11-13 16:08:27 +01:00
8906c23c63 Fixed callback firing on clickoutside but mousedown inside. (#2434)
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-10 23:54:47 +01:00
73db5eb35d fix-svgr-issue-with-tsup (#2429) 2023-11-10 18:25:14 +01:00
54d7acd518 Split components into object-metadata and object-record (#2425)
* Split components into object-metadata and object-record

* Fix seed
2023-11-10 15:54:32 +01:00
618513afcd Rename fieldId and objectId into fieldMetadataId and objectMetadataId (#2421)
* Rename fieldId and objectId into fieldMetadataId and objectMetadataId

* Fix tests
2023-11-10 14:35:18 +01:00
57cfd4db45 Fix ScrollWrapper 2023-11-10 13:24:39 +01:00
9c29c436b9 Feat/pagination front (#2387)
* Finished renaming and scope

* wip

* WIP update

* Ok

* Cleaned

* Finished infinite scroll

* Clean

* Fixed V1 tables

* Fix post merge

* Removed ScrollWrapper

* Put back ScrollWrapper

* Put back in the right place
2023-11-10 12:43:14 +01:00
e0289ba9f2 2363 refactor the dialog component to use the new scope architecture (#2415)
* create Scope

* refactor dialog manager

* finished refactoring

* modify closeDialog to use a recoilcallback

* modify according to comments + add effet component

* fix spreadsheet import stories
2023-11-10 12:36:25 +01:00
edd152910d Fix icon picker width and add Icon Title (#2418)
- fixed icon picker width
- added icon title
2023-11-10 11:52:50 +01:00
7b9175a4a4 Revert "Convert metadata tables to camelCase" (#2419)
Revert "Convert metadata tables to camelCase (#2400)"

This reverts commit 1cf08c797f.
2023-11-10 11:48:44 +01:00
1cf08c797f Convert metadata tables to camelCase (#2400)
* Convert metadata tables to camelCase

* datasourcemetadataid to datasourceid

* refactor metadata folders

* fix command

* move commands out of metadata

* fix seed

* rename objectId and fieldId in objectMetadataId and fieldMetadataId in FE

* fix field-metadata

* Fix

* Fix

* remove logs

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-09 20:06:10 +01:00
5622f42e7a Fix table last column not being displayed (#2417) 2023-11-09 19:06:14 +01:00
b28ff9c97e feat: add Url field preview in settings (#2402)
* feat: add Url field preview in settings

Closes #2326

* feat: add Date field type in settings (#2414)

Closes #2331
2023-11-09 18:51:21 +01:00
588091d3dd 2357 Refactor RecordTable to use the new scope architecture (#2407)
* create RecordTableScope

* use RecordTableScope

* working on useRecordTable hook

* add RecordTableScope to company-table

* add RecordTableScope to person-table

* add filter state and sort state

* add useSetRecordTableData to useRecordTable

* wip

* add setRecordTableData to useRecordTable

* update in RecordTableEffect

* fix bug

* getting rid of unnecessary context and hooks

* remove console.log

* wip

* fix bug by creating an init effect

* fix viewbar not in scope in company and people tables

* wip

* updating useRecordTable to use internal hooks

* updating useRecordTable to use internal hooks

* updating useRecordTable to use internal hooks

* updating useRecordTable to use internal hooks

* modified according to comments
2023-11-09 17:45:58 +01:00
0d4949484c feat: add Money field type in settings (#2405)
Closes #2346
2023-11-09 17:13:34 +01:00
f26be4d837 2385-feat(front): icon button styles added (#2411)
* 2385-feat(front): icon button styles added

* 2385-feat(front): pr requested changes done

* Fix alignment

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-09 16:23:45 +01:00
279630052f 2294 feat(frontend): styling shortcut keys (#2336)
* 2294 feat(frontend): styling shortcut keys

* 2294 fix(front): pr requested changes

* Fix component interface

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-09 15:18:51 +01:00
aa09b5758c feat: add Boolean field preview in settings (#2399)
Closes #2328
2023-11-09 12:20:30 +01:00
1f5492b4a7 feat: add Text field preview in settings (#2389)
Closes #2325
2023-11-09 08:25:46 +01:00
4efbe4d798 FIX: Corrected button border color for danger button (#2409) 2023-11-08 23:47:12 +01:00
377f95c9db feat: add SettingsObjectFieldPreview and SettingsObjectFieldPreviewCard (#2376)
* feat: add SettingsObjectFieldPreview

Closes #2343

* feat: add SettingsObjectFieldPreviewCard

Closes #2349

* Fix ci

* Fix tests

* Fix tests

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-06 23:14:47 +01:00
9bd6d26d53 2299 fix(frontend): corrected tag spacing in settings object item table row (#2302)
* fix(frontend): corrected tag spacing in settings object item table row

* 2299-fix(front): pr requested changes

* 2299 fix(front): PR requested changes - 2
2023-11-06 17:58:03 +01:00
88ca846f83 Rename InlineCell to RecordInlineCell (#2377)
rename inline cell
2023-11-06 17:18:25 +01:00
aa50ee4b21 Fix chromatic build 2023-11-04 13:22:10 +01:00
53072298bc Feat/improve new views (#2298)
* POC new recoil injected scoped states

* Finished useViewScopedState refactor

* Finished refactor

* Renamed mappers

* Fixed update view fields bug

* Post merge

* Complete refactor

* Fix tests

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-04 09:28:55 +01:00
1ed4965a95 feat: refactor schema builder and resolver builder (#2215)
* feat: wip refactor schema builder

* feat: wip store types and first queries generation

* feat: refactor schema-builder and resolver-builder

* fix: clean & small type fix

* fix: avoid breaking change

* fix: remove util from pg-graphql classes

* fix: required default fields

* Refactor frontend accordingly

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-03 17:16:37 +01:00
aba3fd454b Removed dead code (#2345) 2023-11-03 17:08:07 +01:00
c397619100 441/fix/clear cell while opening it by typing and delete value when I hit delete / backspace. (#2021)
- Use initial values when opening table cells and pass them to fields

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-11-03 16:43:54 +01:00
60b1024efb feat: do not show disabled fields in table (#2319)
Closes #2309
2023-11-03 15:05:04 +01:00
b4af15467f Fix data not loading on recordTable 2023-11-03 14:53:11 +01:00
56a5f99108 fix: fix Pages Storybook tests (#2305)
* fix: fix Companies pages tests

* fix: fix People pages tests

* fix: fix Opportunities page tests
2023-11-03 14:25:36 +01:00
e3691ad143 Fix navbar animation layout shift (#2335)
fix navbar animation
2023-11-03 11:04:30 +01:00
316f2df170 Fix checkbox htmlfor bug (#2315)
fix bug
2023-11-02 14:05:47 +01:00
f9920d2f24 Fix CompanyBoardCard height (#2301)
* fix view-fields seeds

* closeDate was duplicated

* fix CompanyBoardCard height
2023-10-31 16:38:23 +01:00
48aa89664a Prevent layout shift on page load (#2268)
- prevent layout shift on page load
2023-10-31 14:09:33 +01:00