overleaf/services/web/frontend/js/shared/components
Antoine Clausse b2e7477467 [web] Migrate AI Error Assistant to BS5 (#21129)
* [storybook] Rerender story when switching BS3/BS5

* [storybook] Add SCSS loader to storybook

* [storybook] Add some AI error assistant stories

* Rename ai-error-assistant.less to .scss

* Update less variables to sass

* Remove duplicated selector

* Replace react-bootstrap components by `OL...`

* Update Checkboxes after BS5 update

* Add IDs so clicking on labels work
* Add BS5 class name in SCSS

Note: `answer-not-detailed` is used twice in the Radios. I think it's a mistake: there should be another name for the "ai_feedback_the_suggestion_wasnt_the_best_fix_available" radio

* Rename ID `answer-not-detailed` -> `answer-not-best-fix`

* Pass name and value to BS3Radio/BS3Checkbox

* [storybook] Add delay before AI suggestion (shows the animation)

* Add a number after the checkbox/radio IDs, to allow multiple forms to be displayed

Without this, clicks on second form are updating the first form!

Another solution could be to wrap the input in the label, but it comes with other problems. See https://css-tricks.com/html-inputs-and-labels-a-love-story/

* [storybook] Update `LabsAiPromoBanner`

* Use CSS variables instead of hardcoded values

* Make radio input flex

* Replace `blue-10` by `bg-info-03`

* Fix `SuggestFixButton`

* Fix `AiErrorAssistantCopyCode`

* Fix button loading in BS5

* Use OLBadge

* Fix Button variants

* Update `suggestFixAction`

* Migrate Tooltip and Button to BS5 in LabsExperimentWidget

* Update BS3/BS5 button classname in AiErrorAssistantCopyCode

Co-authored-by: Rebeka <rebeka.dekany@overleaf.com>

* [storybook] Allow to choose props of `LabsExperimentWidget`

* Fixup `OLTooltip`: Display the tooltip on disabled button in BS5

* Update Tooltips to BS5

---------

Co-authored-by: Rebeka <rebeka.dekany@overleaf.com>
GitOrigin-RevId: 08d594e772c0a3b6db1c6081337cc2d079f478a5
2024-10-23 08:06:36 +00:00
..
labs [web] Migrate AI Error Assistant to BS5 (#21129) 2024-10-23 08:06:36 +00:00
accessible-modal.tsx Tidy up shared React components (#9509) 2023-01-06 09:03:47 +00:00
auto-expanding-text-area.tsx Merge pull request #16700 from overleaf/td-scroll-comment-input-into-view 2024-02-05 09:04:21 +00:00
badge.tsx Merge pull request #19466 from overleaf/ii-bs5-projects-tags 2024-07-25 08:05:20 +00:00
beta-badge.tsx Add feedback link in spelling suggestion footer (#20867) 2024-10-14 11:05:21 +00:00
clickable-element-enhancer.tsx Merge pull request #16857 from overleaf/ii-share-modal-click 2024-02-06 09:03:40 +00:00
close.tsx Merge pull request #20063 from overleaf/ii-bs5-system-notifications 2024-08-28 11:35:13 +00:00
controlled-dropdown.tsx Merge pull request #13223 from overleaf/ae-typescript-upgrade 2023-07-17 10:29:14 +00:00
copy-to-clipboard.tsx [web] Update bsVersion to return its arguments types (#20963) 2024-10-14 11:07:45 +00:00
default-message.tsx Add error boundary to the project dashboard list 2023-07-17 10:24:38 +00:00
error-boundary-fallback.tsx Merge pull request #21008 from overleaf/rd-editor-errors 2024-10-14 11:09:36 +00:00
feedback-badge.tsx Remove editor split tests (#14985) 2023-10-04 08:04:34 +00:00
generic-error-boundary-fallback.tsx Merge pull request #21008 from overleaf/rd-editor-errors 2024-10-14 11:09:36 +00:00
icon-checked.jsx Merge pull request #15040 from overleaf/jpa-js-to-jsx 2023-09-29 08:04:29 +00:00
icon.tsx Merge pull request #17806 from overleaf/rd-bootstrap-button2 2024-04-17 08:05:10 +00:00
interstitial.tsx Merge pull request #18064 from overleaf/dp-interstitial 2024-04-25 08:04:26 +00:00
loading-branded.tsx [ide-react] Handle failed socket.io loading (#16265) 2023-12-18 09:04:31 +00:00
loading-spinner.tsx Merge pull request #20860 from overleaf/td-bs5-history-versions-list 2024-10-14 11:11:01 +00:00
location.js Merge pull request #18170 from overleaf/ae-token-access-page 2024-05-03 08:05:01 +00:00
material-icon.tsx Merge pull request #20740 from overleaf/rd-ide-offcanvas 2024-10-14 11:09:31 +00:00
notification-scrolled-to.tsx Merge pull request #16769 from overleaf/jel-scroll-to-notification 2024-01-30 09:04:19 +00:00
notification.tsx Merge pull request #20187 from overleaf/jel-plans-modal-edu-discount 2024-09-04 08:05:37 +00:00
pagination.jsx Merge pull request #15040 from overleaf/jpa-js-to-jsx 2023-09-29 08:04:29 +00:00
polymorphic-component.tsx Merge pull request #16857 from overleaf/ii-share-modal-click 2024-02-06 09:03:40 +00:00
processing.jsx Merge pull request #15040 from overleaf/jpa-js-to-jsx 2023-09-29 08:04:29 +00:00
radio-chip.tsx Merge pull request #15249 from overleaf/rd-odc-radio 2023-11-02 08:52:52 +00:00
recaptcha-2.tsx Merge pull request #19141 from overleaf/ii-add-email-account-settings 2024-07-01 08:04:07 +00:00
recaptcha-conditions.jsx Merge pull request #15040 from overleaf/jpa-js-to-jsx 2023-09-29 08:04:29 +00:00
select.tsx Merge pull request #20436 from overleaf/ii-bs5-editor-toolbar 2024-10-01 08:04:42 +00:00
split-menu.tsx Merge pull request #14674 from overleaf/jdt-prevent-menu-item-drags 2023-09-13 08:04:01 +00:00
split-test-badge.tsx Merge pull request #8957 from overleaf/ab-split-test-controls-badge 2022-07-26 08:04:28 +00:00
start-free-trial-button.tsx Merge pull request #18690 from overleaf/ii-bs5-projects-welcome 2024-06-14 08:04:32 +00:00
stepper.tsx ODC and confirm email refactor (#15739) 2023-11-27 09:03:41 +00:00
switch.tsx Merge pull request #14587 from overleaf/mf-enable-sso-managed-users 2023-10-02 08:04:18 +00:00
system-message.tsx Merge pull request #20860 from overleaf/td-bs5-history-versions-list 2024-10-14 11:11:01 +00:00
system-messages.tsx Merge pull request #18898 from overleaf/jpa-no-window 2024-06-19 08:04:21 +00:00
tag.tsx Merge pull request #19466 from overleaf/ii-bs5-projects-tags 2024-07-25 08:05:20 +00:00
tooltip.tsx hide tooltip when button menu is opened (#13247) 2023-06-01 08:03:59 +00:00
translation-message.tsx Merge pull request #18898 from overleaf/jpa-no-window 2024-06-19 08:04:21 +00:00
upgrade-benefits.jsx Merge pull request #15040 from overleaf/jpa-js-to-jsx 2023-09-29 08:04:29 +00:00