Commit Graph

1852 Commits

Author SHA1 Message Date
Charles Bochet
160b7039d9 Complete win script setup 2023-10-14 22:43:17 +02:00
Charles Bochet
986082d7a7 Complete win script setup 2023-10-14 22:41:18 +02:00
Nimra Ahmed
fa9303f545
Refactored Storybook UI (#2020)
* refactored Storybook UI

* refactored Storybook UI

* removed extra cards from the doc, added card for ui components
2023-10-14 21:22:47 +02:00
Charles Bochet
04090446cc Update install on docker 2023-10-14 14:03:37 +02:00
Charles Bochet
77729e4d4b
Update installation doc (#2019)
* Update installation doc

* Update install scripts

* Update install scripts
2023-10-14 13:43:45 +02:00
Ruslan
77c88bda6e
Fix bug where "metadata" scheme was not created automatically (#1971) and (#1831) (#2018)
* Fix bug where "metadata" scheme was not created automatically (#1971)

* logging on

* testing on render

* render upadte

* added setup-db.ts and updated package.json
2023-10-14 11:48:55 +02:00
gitstart-twenty
0c79217ba0
Add an ESLint rule to prevent the usage of useRef other than for HTML elements. (#2014)
* Add an ESLint rule to prevent the usage of useRef other than for HTML elements

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

* Bump eslint version and rewrite rule

* Fix

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-14 11:32:46 +02:00
Charles Bochet
258685467b
Refactor UI folder (#2016)
* Added Overview page

* Revised Getting Started page

* Minor revision

* Edited readme, minor modifications to docs

* Removed sweep.yaml, .devcontainer, .ergomake

* Moved security.md to .github, added contributing.md

* changes as per code review

* updated contributing.md

* fixed broken links & added missing links in doc, improved structure

* fixed link in wsl setup

* fixed server link, added https cloning in yarn-setup

* removed package-lock.json

* added doc card, admonitions

* removed underline from nav buttons

* refactoring modules/ui

* refactoring modules/ui

* Change folder case

* Fix theme location

* Fix case 2

* Fix storybook

---------

Co-authored-by: Nimra Ahmed <nimra1408@gmail.com>
Co-authored-by: Nimra Ahmed <50912134+nimraahmed@users.noreply.github.com>
2023-10-14 00:04:29 +02:00
Lucas Bordeau
a35ea5e8f9
Feat/front forge graphql query (#2007)
* wip

* Wip

* Wip

* Finished v1

* Wip

* Fix from PR

* Removed unused fragment masking feature

* Fix from PR

* Removed POC from nav bar

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-13 22:27:57 +02:00
Charles Bochet
3ef9132525
Refactor icon picker to use shared styled dropdown menu (#1998) 2023-10-13 18:06:47 +02:00
Lucas Bordeau
cafcfdc95e
Feat/front metadata request (#1977)
* wip

* Wip

* Wip

* Finished v1

* Fix from PR

* Removed unused fragment masking feature
2023-10-13 18:01:57 +02:00
gitstart-twenty
41ae30cada
Chore(front): Add storybook tests on meta-types/input/components (#1987)
* Add storybook tests on meta-types/input/components

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

* Add storybook tests on meta-types/input/components

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

* Add storybook tests on meta-types/input/components

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

* Add storybook tests on meta-types/input/components

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

* Add storybook tests on meta-types/input/components

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

* Fix the tests

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

* modify props spread in stories

* Remove storybook-addon-mock

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-13 17:47:08 +02:00
Gaurav
acde034a1d
Replaced eslint rule twenty/no-spread-props to react/jsx-props-no-spreading (#1976)
* Replaced eslint rule twenty/no-spread-props to react/jsx-props-no-spreading

* Disable props spread on external libraries

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-13 16:52:19 +02:00
David Kramer
d56c5fcbf6
Two cells can be focused at the same time in the tables Fixes #1826 (#1866)
Co-authored-by: kramer <david.kramer@gmail.com>
Co-authored-by: Ayush Agrawal <54364088+AyushAgrawal-A2@users.noreply.github.com>
Co-authored-by: AyushAgrawal-A2 <ayushagl06@gmail.com>
Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com>
2023-10-13 16:37:36 +02:00
Ruslan
2a9d94c5a2
Improve docker db init / reset (#1981) (#1984)
* renamed volume name db_data to twenty_db_data
* named postgres container_name: twenty_postgres

make provision-postgres does:
* checking if docker is running
* stop the container postgres twenty_postgres
* prune the volume twenty_db_data
* rebuild the image every time, use --build
2023-10-13 15:57:01 +02:00
bosiraphael
30aeea9eec
1909 object edit add icon section (#1995)
* wip

* wip

* wip

* wip

* wip

* remove hardcoded values and use theme values

* add styles to StyledContainer

* fix iconPicker bug

* wip

* refactor IconPicker to include IconButton

* close IconPicker on click outside

* close IconPicker on escape and enter

* refactor to use DropDownMenu

* refactor to use DropDownMenu

* modify default icon

* Refactor to use useIconPicker hook

* fix WithSearch story

* reinitialized searchString state on close

* create and update stories for the iconPicker

* remove comments

* use theme for gap

* remove align-self

* fix typo in icon

* fix type any

* fix merge conflicts

* remove experimental css properties
2023-10-13 15:29:30 +02:00
Thaïs
818efd72d0
feat: add Fields table to Object Detail page (#1988)
* feat: add Fields table to Object Detail page

Closes #1815

* refactor: add ObjectFieldDataType
2023-10-13 11:51:11 +02:00
flo merian
bd9a6c56fe
doc: Update README.md with quick links in the Features section (#1994)
Added quick links in the Features section
2023-10-13 11:37:34 +02:00
Subash-Lamichhane
92b34a76a2
fixed typo in docs\docs\contributor\frontend\advanced\best-practices.mdx (#1993) 2023-10-13 09:18:58 +02:00
Nimra Ahmed
13db1bd0a6
Improvements to the doc (#1989)
* Added Overview page

* Revised Getting Started page

* Minor revision

* Edited readme, minor modifications to docs

* Removed sweep.yaml, .devcontainer, .ergomake

* Moved security.md to .github, added contributing.md

* changes as per code review

* updated contributing.md

* fixed broken links & added missing links in doc, improved structure

* fixed link in wsl setup

* fixed server link, added https cloning in yarn-setup

* removed package-lock.json

* added doc card, admonitions

* removed underline from nav buttons
2023-10-13 09:13:13 +02:00
Jérémy M
4e993316a6
feat: conditional schema based on column map instead of column field (#1978)
* feat: wip conditional schema based on column map instead of column field

* feat: conditionalSchema columnMap and singular plural

* fix: remove uuid fix

* feat: add name and label (singular/plural) drop old tableColumnName
2023-10-12 18:28:27 +02:00
martmull
8fbad7d3ba
1043 timebox prepare zapier integration (#1967)
* Add create api-key route

* Import module

* Remove required mutation parameter

* Fix Authentication

* Generate random key

* Update Read ApiKeyAbility handler

* Add findMany apiKey route

* Remove useless attribute

* Use signed token for apiKeys

* Authenticate with api keys

* Fix typo

* Add a test for apiKey module

* Revoke token when api key does not exist

* Handler expiresAt parameter

* Fix user passport

* Code review returns: Add API_TOKEN_SECRET

* Code review returns: Rename variable

* Code review returns: Update code style

* Update apiKey schema

* Update create token route

* Update delete token route

* Filter revoked api keys from listApiKeys

* Rename endpoint

* Set default expiry to 2 years

* Code review returns: Update comment

* Generate token after create apiKey

* Code review returns: Update env variable

* Code review returns: Move method to proper service

---------

Co-authored-by: martmull <martmull@hotmail.com>
2023-10-12 18:07:44 +02:00
Charles Bochet
6b990c8501
Refactor input arch (#1982) 2023-10-12 17:41:50 +02:00
Alfred Louis
09fd5b6454
fix:remove line break (#1986) 2023-10-12 17:40:56 +02:00
Charles Bochet
3b9ceade76
Fix token not being refreshed (#1975)
* Fix token not being refreshed

* Fix token not being refreshed

* v2

* Fix
2023-10-11 17:12:39 +02:00
bosiraphael
b2352212fc
1867 timebox add storybook tests on meta typesinputcomponents (#1972)
* working on DateFieldInput story

* wip

* wip

* wip

* Fix story

* Fix other story

* finish stories for BooleanFieldInput and DateFieldInput

* reorganize stories in UI/Field in Input and Display folders

* unite FieldDisplayContextProvider and FieldInputContextProvider in one file FieldContextProvider

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-11 16:55:55 +02:00
Thaïs
c52b297612
feat: add New Object page (#1970)
Closes #1919
2023-10-11 15:45:59 +02:00
Lucas Bordeau
22451a68b3
Refactor/scope and context (#1960)
* wip

* Test with Dropdown

* wip

* wip

* Finished removing DropdownRecoilScopeContext

* Fix from PR
2023-10-11 15:35:47 +02:00
Thaïs
a342af74d1
feat: add Object Edit page (#1968)
Closes #1907
2023-10-11 15:34:10 +02:00
Thaïs
7731525317
feat: add Object Detail page breadcrumb (#1962)
Closes #1814
2023-10-11 12:12:19 +02:00
Bhumik Prajapati
4555b66d96
Fix long text issue on people dropdown picker (#1923)
* Fix long text issue on people dropdown picker

* Fix checkmark shrink for long text

* remove width to not shrink image

* fix: remove width 100% from StyledMenuItemLabel
2023-10-11 12:11:09 +02:00
Weiko
f97228bfac
feat: add object/field create/update resolvers (#1963)
* feat: add object/field create/update resolvers

* fix tests
2023-10-11 12:03:13 +02:00
Tom Avalexing
6a3002ddf9
Fix dnd on Options->Fields dropdown. (#1921)
fix dnd
2023-10-10 16:25:06 +02:00
Charles Bochet
04091a4ce0 Fix login modal not aligned 2023-10-10 16:06:55 +02:00
gitstart-twenty
bf397bc6ec
Update the frontend to adhere to the custom eslint rule twenty/no-spread-props (#1958)
* Update the frontend to adhere to the custom eslint rule `twenty/no-spread-props`

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

* Update the frontend to adhere to the custom eslint rule `twenty/no-spread-props`

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

* resolve bug with data-testid

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-10 15:40:49 +02:00
rsato10
5dddd77eb3
added stories RawLink, SocialLink, and ContactLink and deleted story … (#1957)
* added stories RawLink, SocialLink, and ContactLink and deleted story for PrimaryLink

* add play function to link tests

---------

Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-10 14:58:07 +02:00
gitstart-twenty
612bd57d5b
Write Storybook tests for front/src/modules/ui/field/meta-types/display components (#1932)
* Write Storybook tests for front/src/modules/ui/field/meta-types/display components

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

* Write Storybook tests for front/src/modules/ui/field/meta-types/display components

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

* Write Storybook tests for front/src/modules/ui/field/meta-types/display components

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

* add EllipsisDisplay component

* add EllipsisDisplay component

* modified ComponentDecorator to pass a minWidth parameter to test ellipsis

* add ellipsis test to all components

* add ellipsis to links

* removed minWidth and set it to 'unset' if the width is not defined

---------

Co-authored-by: v1b3m <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
2023-10-10 12:39:19 +02:00
Nimra Ahmed
ae32a2da3b
Revised contributing.md, edited docs (#1951)
* Added Overview page

* Revised Getting Started page

* Minor revision

* Edited readme, minor modifications to docs

* Removed sweep.yaml, .devcontainer, .ergomake

* Moved security.md to .github, added contributing.md

* changes as per code review

* updated contributing.md

* fixed broken links & added missing links in doc, improved structure

* fixed link in wsl setup

* fixed server link, added https cloning in yarn-setup
2023-10-10 12:33:17 +02:00
Jérémy M
017a0b1563
feat: refactor custom object (#1887)
* chore: drop old universal entity

* feat: wip refactor graphql generation custom object

* feat: refactor custom object resolvers

fix: tests

fix: import

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-10 10:50:54 +02:00
Ayush Agrawal
18c8f26f38
Feat: Adjust the overlay style for changing the phone number's country (#1876)
* switched to dropdown menu component

* Use latest dropdown container

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-09 23:38:09 +02:00
Charles Bochet
c37a39febb Fix tests 2023-10-09 23:23:04 +02:00
Charles Bochet
c950395eac Fix tests 2023-10-09 23:17:07 +02:00
Weiko
ca492808cf
Add metadata query resolvers (#1929)
* Add metadata queries resolvers

* remove hello field

* fix linter
2023-10-09 22:54:14 +02:00
Abhishek Bindra
34d3c452c1
Objects Settings - Add the "New object" button (#1928)
* Objects Settings - Add the "New object" button

* addressing review comments
2023-10-09 22:46:37 +02:00
Abhishek Thory
982a0799b8
scrollbar corner background color set transparent (#1948) 2023-10-09 22:42:06 +02:00
bosiraphael
b9f23d9be6
Refactor RelationFieldDisplay to eliminate dependency on non-ui components (#1949)
* job done

* removed example type

* removed unused temporary type
2023-10-09 22:38:47 +02:00
Abhishek Thory
29c013f826
1584/fix/dropdown item width not correct (#1950)
* added full width to new button

* removed scrollbar width in dropdown item

* Fix dropdown width issue

* Fix lint

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-10-09 22:37:26 +02:00
Thaïs
e1c0cb7821
feat: add Object Detail page (#1917)
* feat: add Object Detail page

Closes #1813

* refactor: add object settings width constant
2023-10-09 19:16:02 +02:00
martmull
d0175fc541
Fix import error (#1947)
Co-authored-by: martmull <martmull@hotmail.com>
2023-10-09 17:40:05 +02:00
Abhishek Thory
f49333f2e8
1886/fix/dont show unhideable files in fields menu (#1931)
* in compaines>fields Name fields is hided.

* in Opputunities>Options>Fieds   make closeData dragable

* close data (first colum) make hideable

* added size field

* added filter in fields with index and size

* index updated
2023-10-09 16:50:16 +02:00