Commit Graph

1461 Commits

Author SHA1 Message Date
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
c8eda61704 #2133 Add comments icon and count to Timeline card (#2205)
* fix

* #2133 added comments icon and count on notes tab

* reverted changes in people-filters.tsx

* added comment icon and count on timeline in People/Companies

* removed infra/dev/scripts/hashicorp.gpg

* added comment count and icon on timeline cards with seperate react component

* used isNonEmptyArray typeguard for array length check

* updated review feedback

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-09 16:34:54 +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
0f7581acc3 Remove Tenant columns anonymisation (#2404)
* Remove Tenant columns anonymisation

* add tests

* use _ instead of custom_

* put _ on all custom fields
2023-11-09 12:19:33 +01:00
fe20be8487 0.2.0 cleaning script (#2403)
* Update cleaning script to run on old schema

* Add boundaries parameter

* Stop requesting data for each workspace/table

* Stop checking same as seed if not requested

* Minor update

* Minor update

* Minor update

* Minor update

* Minor update

* Simplify result

* Simplify result

* Simplify result

* Delete updates

* Fix issues

* Update logs

* Remove throw when schema does not exist

* Remove missing table in old schema

* Remove boundaries parameter

* Remove useless trycatch
2023-11-09 12:18:09 +01:00
28779f0fb8 feat: add Number field preview in settings (#2397)
Closes #2327
2023-11-09 08:30:37 +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
7a5476e31a Bump PGSQL version from 14 to 15 (#2406)
* Bump PGSQL version from 14 to 15

* Upgrade mac os postgres version

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-08 23:44:36 +01:00
56dc87a60f chore: create a new TypeORM config using @nestjs/typeorm for public schema (#2241)
* chore: create a new TypeORM config using @nestjs/typeorm for public schema

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor according to review

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Remove unnecessary changes

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

* Refactor imports

Co-authored-by: v1b3m <vibenjamin6@gmail.com>

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
2023-11-08 11:26:52 +01:00
cafffd973f Add Relation Metadata (#2388)
* Add Relation Metadata

* remove logs

* fix migrations

* add one-to-many relation inside entities

* fix relation

* use enum for tenant migration column action type
2023-11-08 09:39:44 +01:00
4ca4f17897 Fix boolean fieldtype case 2023-11-07 14:03:44 +01:00
0ae56b055c Clean metadata and schema (#2382) 2023-11-07 12:33:54 +01:00
7aa6b20418 Adding the possibility to add multiple ui components in the live code editor in the docs (#2381)
* working

* forgot docs folder

* modify according to comments
2023-11-07 12:33:40 +01:00
398a8d732d changes as per vale warnings (#2353)
* changes as per vale warnings

* changes acc to feedback
2023-11-07 11:39:29 +01:00
7623e7b7f9 Fix google auth url broken (#2380)
* Fix google auth url broken

* Refactor
2023-11-07 11:11:36 +01:00
462c7ebdc1 0.2.0 cleaning script (#2379)
* Move question to questions folder

* Aggregate update result functions

* Use lodash to compare list of objects

* Remove favorites from tables

* Add a workspace parameter

* Move question after result log

* Improve logging

* Code review returns

* Add only lodash.isequal
2023-11-07 11:10:14 +01:00
183d6a1d1a No console eslint (#2251)
* chore: add new eslint config file for ci

* add test console log

* merge the lint steps

* Fix according to PR

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-11-06 23:50:06 +01:00
daa6d2ca01 Chore: Cancel previous runs (#2227)
Cancel previous runs
2023-11-06 23:31:26 +01:00
1bf5af9150 Fix docs build 2023-11-06 23:21:08 +01:00
ba69435339 0.2.0 cleaning script (#2342)
* Display maxUpdatedAt for each workspace Schema

* Factorize functions

* Add max update for public workspaces

* Merge everything in a single json

* Enrich results

* Get from proper table

* Update

* Move to proper command file

* Add a dry-run option

* Remove workspaces from database

* Fix DeleteWorkspace method

* Add new option

* Remove proper data when deleting workspace

* Minor improvements
2023-11-06 23:15:02 +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
b3d460eb75 Finished renaming and scope (#2378)
* Finished renaming and scope

* Less objectNamePlural as props
2023-11-06 19:42:46 +01:00
3d483b5640 Improve first loading performance 2023-11-06 18:26:53 +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
b98d474308 Fix new field type enums in parseFieldType (#2361)
* Fix new field type enums in parseFieldType

* Fix with GraphQL enum
2023-11-06 17:24:47 +01:00
88ca846f83 Rename InlineCell to RecordInlineCell (#2377)
rename inline cell
2023-11-06 17:18:25 +01:00
3432615a17 fix: small tenant refactor fixes (#2375) 2023-11-06 15:49:06 +01:00
bb8cddddc4 Fix chromatic build 2023-11-04 13:42:59 +01:00
aa50ee4b21 Fix chromatic build 2023-11-04 13:22:10 +01:00
d17978777e Fix chromatic build 2023-11-04 10:35:45 +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
e70ef58f97 Live code editor for UI docs (#2351)
* Docausaurus code live editor test

* Docusaurus sandpack test

* Fix setup

* Delete files

* Fixes

* Complete work

* Fix config

* Fix config

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-11-03 23:09:20 +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
2221c68dff Improved user guide, added CI vale for docs (#2308)
* restructured user guide, minor fixes

* added index file for user guide

* github actions for vale

* testing workflow

* CI vale

* changes as per vale's suggestions

* set CI vale on pull request

* adding homebrew script to macos infra setup file

* fix CI errors

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* testing vale

* vale testing complete

* vale cleanup

* vale test

* vale test for github-pr-check

* vale test for github-pr-check

* vale test for github-pr-check

* vale test for github-pr-check

* testing vale warnings

* testing vale warnings

* testing vale warnings

* testing vale warnings

* testing vale warnings

* testing vale warnings

* testing vale warnings

* swizzled doc cards to add icons

* Align CI params to other CIs

---------

Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
2023-11-03 17:02:30 +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
e053fba089 fix: fix Modules Storybook tests (#2339)
Fixes #2310
2023-11-03 15:01:42 +01:00
e04f9230da Fix Add view not working on PersonTable 2023-11-03 15:01:01 +01:00
b4af15467f Fix data not loading on recordTable 2023-11-03 14:53:11 +01:00
b56f6f3947 Fix seeds for local workspace and newly created workspaces (#2333)
* Update metadata/data seeds

* fix

* fix

* move seeding into a transaction

* add no-non-null-assertion

---------

Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
2023-11-03 14:33:45 +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
9c2c1e879a Add new dockerfile for postgres (#2322)
* Add new Dockerfile for postgres

* Fix docker

* Update dockerfile

---------

Co-authored-by: martmull <martmull@hotmail.fr>
2023-11-03 14:24:10 +01:00
cf8840dfec Fix assert not null lint warning (#2324) 2023-11-03 11:08:14 +01:00
e3691ad143 Fix navbar animation layout shift (#2335)
fix navbar animation
2023-11-03 11:04:30 +01:00
f19ed5e2e4 Fix firefox recoil snapshot bug (#2321)
fix firefox recoil snapshot bug
2023-11-02 17:06:26 +01:00