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
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
copy-to-clipboard.tsx [web] Update bsVersion to return its arguments types (#20963) 2024-10-14 11:07:45 +00:00
default-message.tsx
error-boundary-fallback.tsx Merge pull request #21008 from overleaf/rd-editor-errors 2024-10-14 11:09:36 +00:00
feedback-badge.tsx
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
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
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
polymorphic-component.tsx Merge pull request #16857 from overleaf/ii-share-modal-click 2024-02-06 09:03:40 +00:00
processing.jsx
radio-chip.tsx
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
select.tsx Merge pull request #20436 from overleaf/ii-bs5-editor-toolbar 2024-10-01 08:04:42 +00:00
split-menu.tsx
split-test-badge.tsx
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
switch.tsx
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
translation-message.tsx Merge pull request #18898 from overleaf/jpa-no-window 2024-06-19 08:04:21 +00:00
upgrade-benefits.jsx