Commit Graph

613 Commits

Author SHA1 Message Date
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
adeaa35e8d 2282 Rename components to use the new naming convention part 2 (#2295)
renaming part 2
2023-10-31 12:32:16 +01:00
b319ba66ac 2284 fix(frontend): layout shift in date input (#2292)
* fix(frontend): layout shift in date input

* Fix Inline Cell overlay being shifted

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-31 12:30:10 +01:00
ec8389cecf 2282 Rename components to use the new naming convention part 1 (#2293)
renaming in progress
2023-10-31 12:12:52 +01:00
7fe569ec6a fix: disable page shortcuts on TextArea focus (#2288)
Fixes #2275
2023-10-30 19:23:12 +01:00
d38497c46a Refactor ObjectDataTable to work with new views system (#2274)
Complete work
2023-10-29 23:50:59 +01:00
9bab28912d Complete Fix view work (#2272)
* Fix views

* Make view sorts and view filters functional

* Complete Company table view fix

* Fix model creation

* Start fixing board

* Complete work
2023-10-29 16:29:00 +01:00
685d342170 Migrate view field to new data model - Part 2 (#2270)
* Migrate view field to new data model

* Migrate view fields to new model
2023-10-28 19:13:48 +02:00
afd4b7c634 Fix Views on People page (#2265)
* fetching viewId for url

* fixed option menu name input

* fix table import

* fix unnecessary rerenders

* people working

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-27 18:20:58 +02:00
40c5f72080 feat: save activated/disabled fields in New Field - Step 1 page (#2226)
* feat: save activated/disabled fields in New Field - Step 1 page

Closes #2170

* fix: fix objectSlug

* Console.log

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-27 17:59:57 +02:00
9681815cb3 test: fix SettingsObjectDisabledMenuDropDown storybook tests (#2257)
* test: fix SettingsObjectDisabledMenuDropDown storybook tests

* fix: fix BoardOptionsDropdownContent lint error
2023-10-27 17:49:14 +02:00
3c6ce75606 feat: activate standard objects in New Object page (#2232)
* feat: activate standard objects in New Object page

Closes #2010, Closes #2173

* Pagination limit = 1000

* Various fixes

---------

Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-27 15:46:29 +02:00
ec3327ca81 Fix major rework on view (#2262) 2023-10-27 15:30:52 +02:00
d7b0c1190a feat: add Object Field Edit page sections (#2243)
Closes #2160, Closes #2163
2023-10-27 12:13:01 +02:00
d02dd69613 Fix filters and sorts on views (#2258) 2023-10-27 11:48:38 +02:00
3f2e1b622e Feat/show page metadata (#2234)
* Fix view fetch bug

* Finished types

* Removed console.log

* Fixed todo

* Working Object Show Page

* Minor fixes

* Fix custom object requests pending (#2240)

* Fix custom object requests pending

* fix typo

* Fix various bugs

* Typo

* Fix

* Fix

* Fix

---------

Co-authored-by: Weiko <corentin@twenty.com>
2023-10-27 11:06:07 +02:00
5ba68e997d Improve viewbar api (#2233)
* create scopes

* fix import bug

* add useView hook

* wip

* wip

* currentViewId is now retrieved via useView

* working on sorts with useView

* refactor in progress

* refactor in progress

* refactor in progress

* refactor in progress

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix code

* fix code

* wip

* push

* Fix issue dependencies

* Fix resize

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-27 10:52:26 +02:00
6a72c14af3 Use zod instead of yup (#2254)
* use zod instead of yup

* doc

* lint
2023-10-27 10:26:32 +02:00
c335d19c97 Feat/add other metadata types v2 (#2224)
* Fix view fetch bug

* Finished types

* Removed console.log

* Fixed todo

* Reactivate no console

* Change no-console to warn
2023-10-26 12:07:43 +02:00
00dd046798 feat: create custom object field (#2225)
Closes #2171
2023-10-26 11:34:26 +02:00
fc4075b372 2062 view edit an api key (#2231)
* Add query to get api keys

* Add a link to apiKey detail page

* Reset generatedApiKey when leaving page

* Simplify stuff

* Regenerate key when clicking on button

* Simplify

* Fix test

* Refetch apiKeys when delete or create one

* Add test for utils

* Create utils function

* Enable null expiration dates

* Update formatExpiration

* Fix display

* Fix noteCard

* Fix errors

* Fix reset

* Fix display

* Fix renaming

* Fix tests

* Fix ci

* Fix mocked data

* Fix test

* Update coverage requiremeents

* Rename folder

* Code review returns

* Symplify sht code
2023-10-26 11:32:44 +02:00
20f5b9def7 Fix bug isRelation guard (#2217) 2023-10-24 17:33:38 +02:00
48c9ea855a Improve tests 2023-10-24 17:14:07 +02:00
bd0b886081 1259/add compact view in opportunities (#2182)
* icons added

* recoil family state added for checking compact view in each card

* recoil state added for toggle button. Wether compact view show or not

* menu item modifed for right side content

* compact view toggle added in dropdown options

* dropdown width increased because compact view text was  overflowing

* compact view added in boardcard

* new animation added for in and out

* compact view enabled state added

* old state deleted

* sizes added in toggle component

* removed extra added code form navigation

* toggle size added in menuitem toggle

* MenuItemToggle added instead of MenuItemNavigate

* Compact view improved
2023-10-24 16:24:25 +02:00
350410b0fe fix: update dropdown width (#2181)
* fix: update dropdown width

* fix conflict

* refactor dropdown width state
2023-10-24 16:21:51 +02:00
d61511262e 2060 create a new api key (#2206)
* Add folder for api settings

* Init create api key page

* Update create api key page

* Implement api call to create apiKey

* Add create api key mutation

* Get id when creating apiKey

* Display created Api Key

* Add delete api key button

* Remove button from InputText

* Update stuff

* Add test for ApiDetail

* Fix type

* Use recoil instead of router state

* Remane route paths

* Remove online return

* Move and test date util

* Remove useless Component

* Rename ApiKeys paths

* Rename ApiKeys files

* Add input text info testing

* Rename hooks to webhooks

* Remove console error

* Add tests to reach minimum coverage
2023-10-24 16:14:54 +02:00
5acafe2fc6 Chore(front): Add more typeguards (#2136)
* Chore(front): Add more typeguards

Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>

* Remove source map generation to avoid warnings

---------

Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: KlingerMatheus <klinger.matheus@gitstart.dev>
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-24 09:26:47 +02:00
2b590a1c33 fix: issue Button-with-'IconChevronDown'-in-'TableUpdateViewGroupButton'-has-incorrect-size (#2201)
changed button size
issue #3Button-with-'IconChevronDown'-in-'TableUpdateViewGroupButton'-has-incorrect-size-#1522
2023-10-24 08:35:29 +02:00