aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/organisms/modals
Commit message (Collapse)AuthorAgeFilesLines
* refactor(components): replace Toolbar with Navbar componentArmand Philippot2023-11-119-259/+0
| | | | | | | | * remove SearchModal and SettingsModal components * add a generic NavbarItem component (instead of the previous toolbar items to avoid unreadable styles...) * move FlippingLabel component logic into NavbarItem since it is only used here
* refactor(components): rewrite Modal componentArmand Philippot2023-11-113-5/+7
| | | | | * add an optional close button * add an icon prop
* refactor(components): extract SettingsForm component form SettingsModalArmand Philippot2023-11-112-32/+3
| | | | | | We could use an array of items and map over it instead of repeating the Switch component for each settings but with translations, it becomes quickly unreadable. So I prefer to keep separate components.
* refactor(hooks,provider): move reduce motion setterArmand Philippot2023-11-113-33/+6
| | | | | | | | | | Since the local storage key is not meant to change between the components, it should be set directly inside the app file. So both the local storage and the data attribute should be handle in a provider. I also added a custom document because we need a script to retrieve the stored value in local storage earlier to avoid flashing on hydration.
* refactor(hooks,providers): rewrite useAckee hook and AckeeProviderArmand Philippot2023-11-113-47/+13
|
* feat(components): replace icons with a generic Icon componentArmand Philippot2023-10-242-7/+9
| | | | | Sizes are also predefined and can be set using the `size` prop, so the consumers should no longer adjust the size in CSS.
* build: convert project to esmArmand Philippot2023-10-242-0/+2
|
* refactor(components): rewrite form componentsArmand Philippot2023-10-245-62/+45
|
* refactor: use named export for everything except pagesArmand Philippot2023-09-207-31/+32
| | | | | | Next expect a default export for pages so only those components should use default exports. Everything else should use named exports to reduce the number of import statements.
* refactor(build): replace paths aliases with relative pathsArmand Philippot2023-09-197-18/+18
| | | | | | Using paths aliases starting with "@" can be confusing and can lead to conflict with existings modules. I prefer to use relative paths to avoid extra configuration in tools because of these aliases.
* fix(settings): avoid cropped tooltip on small devicesArmand Philippot2022-06-094-21/+150
| | | | | | I changed the settings disposition to make tooltip positioning easier. Jest complains about ref passed but everything seems to work as expected so I'm not sure it is relevant. Maybe a bug with cloneElement.
* fix(settings): close tooltip when modal is closingArmand Philippot2022-06-082-2/+0
| | | | | The event was not captured so the tooltip remained open when the settings was closed. It prevented to click on the toolbar buttons.
* test: install and configure cypressArmand Philippot2022-06-022-2/+2
| | | | I also configure Jest to avoid conflicts between Cypress and Jest.
* chore: replace the Ackee select by a toggle componentArmand Philippot2022-06-012-17/+2
|
* chore: give autofocus to the toolbar search formArmand Philippot2022-05-241-16/+9
|
* chore: complete Storybook storiesArmand Philippot2022-05-212-0/+30
|
* chore: handle settings changeArmand Philippot2022-05-183-2/+12
|
* chore: close toolbar modals on click/focus outsideArmand Philippot2022-05-185-75/+29
|
* chore: add Search pageArmand Philippot2022-05-153-13/+8
|
* refactor(storybook): reorganize design systemArmand Philippot2022-04-202-11/+61
| | | | | Add more stories for each components and change some components categories for better organization.
* refactor: support React 18Armand Philippot2022-04-162-10/+12
| | | | | | | | I replaced the deprecated VFC type with FC type and made all children explicits. Formatjs is still not compatible with React 18 so I need to skip type checking when comitting. There are some type errors because of IntlProvider in Storybook stories.
* chore: add a SearchModal componentArmand Philippot2022-04-144-0/+70
|
* chore: add a Settings componentArmand Philippot2022-04-143-13/+26
|
* chore: add a Settings modal componentArmand Philippot2022-04-084-0/+130