* Fix issue 2151: Dropdown menu of header table does not close after hide column
* Remove dropdown scope
---------
Co-authored-by: Charles Bochet <charles@twenty.com>
* Chore(front): Create Storybook tests for the DropdownMenu component
Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
* Fix the tests
Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
* Simplify Dropdown
* Remove console.log
---------
Co-authored-by: Benjamin Mayanja V <vibenjamin6@gmail.com>
Co-authored-by: FellipeMTX <fellipefacdir@gmail.com>
Co-authored-by: Charles Bochet <charles@twenty.com>
* 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>
* add image
* overflow hidden
* add close button
* add animation to cover image
* use cookie to store user preference
* refactor to have a reusable component called AnimatedFadeOut
* corrected close button position
* modified according to comments
* feat: created new Developers Page in Settings
* update styled according to the updated design
* update styled according to the updated design
* remove unused color import from TableCell component
* update pl based on comments
* update pl based on comments
* update pl based on comments
* update pl based on comments
* update pl based on comments
* update pl based on comments
* update pl based on comments
* create save and cancel buttons and their stories
* add SaveAndCancelButtons to the New Object page
* add onSave and onCancel
* modified according to comments
* refactored Storybook UI
* refactored Storybook UI
* removed extra cards from the doc, added card for ui components
* added hover behavior to doc page & made it look selected
* separate storybook docs and tests
* separating storybook tests and docs
* feat: New Object - Add Object type section #1918
* fix: dark mode border color
* feat: New Object - Add Object type section #1918
* fix: dark mode border color
* Requested changes in the PR
* fix(new object): requested changes in the PR
* fix(1985): border color
* 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>
* 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
* 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>
* 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
* 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>
* 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>
* 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>
* 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
* updated DropdownButton props
* refactoring in progress
* working but layout is wrong
* fixed bug
* wip on ColumnHeadWithDropdown
* fix bug
* fix bug
* remove unused styled component
* fix z-index bug
* add an optional argument to DropdownMenu to control the offset of the menu
* add an optional argument to DropdownMenu to control the offset of the menu
* modify files after PR comments
* clean the way the offset is handled
* fix lint
* Fix overlay positioning for 'Sort,' 'Filter,' and 'Options' menus
* Fix according to review
---------
Co-authored-by: Charles Bochet <charles@twenty.com>