-
Notifications
You must be signed in to change notification settings - Fork 4k
Convert a lot more components to functional style, and other cleanups #9494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
c176d02
Checkbox checkpoint. Still broken.
sfc-gh-tteixeira 7f22b28
Update Checkbox widget to functional component.
sfc-gh-tteixeira 231bb65
Introduce useBasicWidgetState and convert Checkbox and Radio to it.
sfc-gh-tteixeira 8f8fbfc
Make useFormClearHelper follow latest pattern
sfc-gh-tteixeira 5c46436
Merge remote-tracking branch 'origin/develop' into checkbox
sfc-gh-tteixeira 8d414ad
Switching some widgets to use FormClearHelper (need to fix NumberInpu…
sfc-gh-tteixeira 28fa8e3
Fix tests that required async/await
sfc-gh-tteixeira 5414bb1
Address code review comments, lint, etc.
sfc-gh-tteixeira 928f245
Forgot to rename props type
sfc-gh-tteixeira 023371c
Make useFormClearHelper() use WidgetStateManager directly rather than…
sfc-gh-tteixeira cbad1ae
Merge remote-tracking branch 'origin/develop' into checkbox
sfc-gh-tteixeira 3c98c61
Merge branch 'checkbox' into formcleaner
sfc-gh-tteixeira 577cd20
Also convert underlying /shared/Radio widget to a function component.
sfc-gh-tteixeira 5f81fa0
Merge branch 'checkbox' into formcleaner
sfc-gh-tteixeira f55b686
Fix radio test
sfc-gh-tteixeira b3f8176
Fix NumberInput
sfc-gh-tteixeira a5e898c
Merge branch 'checkbox' into formcleaner
sfc-gh-tteixeira 02bf2d4
Merge remote-tracking branch 'origin/develop' into formcleaner
sfc-gh-tteixeira 93aa3c9
Fix types for useBasicWidgetState
sfc-gh-tteixeira 0963004
Make TimeInput functional
sfc-gh-tteixeira 33b0eeb
Make DateInput functional
sfc-gh-tteixeira fca1fe0
Make ColorPicker functional
sfc-gh-tteixeira 017ccc3
Make Selectbox functional
sfc-gh-tteixeira 10ce681
Add tests
sfc-gh-tteixeira f1b9211
Make Slider functional
sfc-gh-tteixeira fb2bd11
Make TextInput functional
sfc-gh-tteixeira c6e614c
Merge remote-tracking branch 'origin/develop' into formcleaner
sfc-gh-tteixeira dbfcf01
Fix ColorPicker tests
sfc-gh-tteixeira add90bc
Remove unused state interface
sfc-gh-tteixeira 8bba4db
Make TextArea functional
sfc-gh-tteixeira e5f1998
Fix slider focus state
sfc-gh-tteixeira d73e215
Fix tests
sfc-gh-tteixeira 7033889
Rename ValueWSource to ValueWithSource
sfc-gh-tteixeira 88d540e
Merge remote-tracking branch 'origin/develop' into formcleaner
sfc-gh-tteixeira 1c0e997
Lint lint lint lint lint
sfc-gh-tteixeira 127bb44
Merge remote-tracking branch 'origin/develop' into functionalcomponents
sfc-gh-tteixeira c56cd0f
Merge remote-tracking branch 'origin/develop' into functionalcomponents
sfc-gh-tteixeira 819d821
Address some comments and lint
sfc-gh-tteixeira 7f3a5e6
Remove async/await in act() when not necessary.
sfc-gh-tteixeira 99a8e84
Merge remote-tracking branch 'origin/develop' into functionalcomponents
sfc-gh-tteixeira 85f381f
Merge remote-tracking branch 'origin/develop' into functionalcomponents
sfc-gh-tteixeira e033c8c
Fix slider value positioning algorithm.
sfc-gh-tteixeira 9259cfe
Merge remote-tracking branch 'origin/develop' into functionalcomponents
sfc-gh-tteixeira 5dda34a
Merge
sfc-gh-tteixeira 52071a7
Lint
sfc-gh-tteixeira 8211aad
Update frontend/lib/src/components/widgets/Slider/Slider.tsx
sfc-gh-tteixeira 42bec76
Update frontend/lib/src/components/widgets/Slider/Slider.tsx
sfc-gh-tteixeira 61c05c6
Update frontend/lib/src/components/widgets/Slider/Slider.tsx
sfc-gh-tteixeira cc9916b
Merge remote-tracking branch 'origin/develop' into functionalcomponents
sfc-gh-tteixeira 5eee85c
Add tests for slider overlaps
sfc-gh-tteixeira 201f62e
Merge remote-tracking branch 'origin/functionalcomponents' into funct…
sfc-gh-tteixeira 01dddaf
Address comments and fix test
sfc-gh-tteixeira 7eee80d
Merge branch 'develop' into functionalcomponents
raethlein 20ccfdc
Fix import issue
raethlein 5b4a4c8
Update snapshots
raethlein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
+2 Bytes
(100%)
..._/linux/st_slider_test/st_slider-labels_overlap_slider[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+0 Bytes
(100%)
...__/linux/st_slider_test/st_slider-labels_overlap_slider[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1 Byte
(100%)
...s__/linux/st_slider_test/st_slider-labels_overlap_slider[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
.../linux/st_slider_test/st_slider-labels_overlap_slider[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-9 Bytes
(100%)
..._/linux/st_slider_test/st_slider-labels_overlap_slider[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4 Bytes
(100%)
...__/linux/st_slider_test/st_slider-labels_overlap_slider[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.92 KB
...napshots__/linux/st_slider_test/st_slider-overlap_left[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.53 KB
...snapshots__/linux/st_slider_test/st_slider-overlap_left[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.04 KB
..._snapshots__/linux/st_slider_test/st_slider-overlap_left[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.83 KB
...apshots__/linux/st_slider_test/st_slider-overlap_left[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.15 KB
...napshots__/linux/st_slider_test/st_slider-overlap_left[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.93 KB
...snapshots__/linux/st_slider_test/st_slider-overlap_left[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.46 KB
...s__/linux/st_slider_test/st_slider-overlap_near_center[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.25 KB
...ts__/linux/st_slider_test/st_slider-overlap_near_center[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.47 KB
...ots__/linux/st_slider_test/st_slider-overlap_near_center[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.28 KB
...__/linux/st_slider_test/st_slider-overlap_near_center[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.76 KB
...s__/linux/st_slider_test/st_slider-overlap_near_center[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.28 KB
...ts__/linux/st_slider_test/st_slider-overlap_near_center[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.9 KB
...ots__/linux/st_slider_test/st_slider-overlap_near_left[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.66 KB
...hots__/linux/st_slider_test/st_slider-overlap_near_left[dark_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.04 KB
...shots__/linux/st_slider_test/st_slider-overlap_near_left[dark_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.79 KB
...ts__/linux/st_slider_test/st_slider-overlap_near_left[light_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.28 KB
...ots__/linux/st_slider_test/st_slider-overlap_near_left[light_theme-firefox].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.89 KB
...hots__/linux/st_slider_test/st_slider-overlap_near_left[light_theme-webkit].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.35 KB
...ts__/linux/st_slider_test/st_slider-overlap_near_right[dark_theme-chromium].png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+8.24 KB
...ots__/linux/st_slider_test/st_slider-overlap_near_right[dark_theme-firefox].png
Oops, something went wrong.
Binary file added
BIN
+4.38 KB
...hots__/linux/st_slider_test/st_slider-overlap_near_right[dark_theme-webkit].png
Oops, something went wrong.
Binary file added
BIN
+4.16 KB
...s__/linux/st_slider_test/st_slider-overlap_near_right[light_theme-chromium].png
Oops, something went wrong.
Binary file added
BIN
+7.75 KB
...ts__/linux/st_slider_test/st_slider-overlap_near_right[light_theme-firefox].png
Oops, something went wrong.
Binary file added
BIN
+4.2 KB
...ots__/linux/st_slider_test/st_slider-overlap_near_right[light_theme-webkit].png
Oops, something went wrong.
Binary file added
BIN
+4.06 KB
...apshots__/linux/st_slider_test/st_slider-overlap_right[dark_theme-chromium].png
Oops, something went wrong.
Binary file added
BIN
+7.93 KB
...napshots__/linux/st_slider_test/st_slider-overlap_right[dark_theme-firefox].png
Oops, something went wrong.
Binary file added
BIN
+4.11 KB
...snapshots__/linux/st_slider_test/st_slider-overlap_right[dark_theme-webkit].png
Oops, something went wrong.
Binary file added
BIN
+3.9 KB
...pshots__/linux/st_slider_test/st_slider-overlap_right[light_theme-chromium].png
Oops, something went wrong.
Binary file added
BIN
+7.46 KB
...apshots__/linux/st_slider_test/st_slider-overlap_right[light_theme-firefox].png
Oops, something went wrong.
Binary file added
BIN
+3.95 KB
...napshots__/linux/st_slider_test/st_slider-overlap_right[light_theme-webkit].png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
...s__/linux/st_slider_test/st_slider-regular_with_format[dark_theme-chromium].png
Oops, something went wrong.
Binary file modified
BIN
+1 Byte
(100%)
...ts__/linux/st_slider_test/st_slider-regular_with_format[dark_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-2 Bytes
(100%)
...ots__/linux/st_slider_test/st_slider-regular_with_format[dark_theme-webkit].png
Oops, something went wrong.
Binary file modified
BIN
-6 Bytes
(100%)
...__/linux/st_slider_test/st_slider-regular_with_format[light_theme-chromium].png
Oops, something went wrong.
Binary file modified
BIN
+4 Bytes
(100%)
...s__/linux/st_slider_test/st_slider-regular_with_format[light_theme-firefox].png
Oops, something went wrong.
Binary file modified
BIN
-3 Bytes
(100%)
...ts__/linux/st_slider_test/st_slider-regular_with_format[light_theme-webkit].png
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: see this comment about potentially leaving this dependency out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to remove that dependency, but ESLint complains. I think it doesn't simply looks at the
set*prefix, but actually checks whether the value came fromuseState/Callaback/Memo/etc.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ohh interesting! thanks for double-checking 👍 in this case we could also probably remove the comment again as that is the default behavior and I just did not know 😬