Skip to content

chore(Component selector): Move to its own package #34244

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

Draft
wants to merge 172 commits into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
Show all changes
172 commits
Select commit Hold shift + click to select a range
1d4b550
Initial commit for Component Selector
adamsamec Sep 11, 2023
86e77de
initial decision tree
kolaps33 Sep 11, 2023
16dd110
Proper nesting in conditional rendering
adamsamec Sep 11, 2023
4ea181f
create method updateDecisionProps
kolaps33 Sep 12, 2023
1499616
fix types
kolaps33 Sep 12, 2023
15a6609
adding jsons
kolaps33 Sep 12, 2023
f9ede7c
adding styles + change to radiogroup
kolaps33 Sep 12, 2023
41962bf
import jsons, merging base objects
kolaps33 Sep 12, 2023
8e779a0
Refactor multiple decision states into single object state and fix er…
adamsamec Sep 12, 2023
56923c5
Do not include interactive and composition decisions in the selected …
adamsamec Sep 12, 2023
674d78a
Add navigation by decision
adamsamec Sep 12, 2023
9d96ca2
getComponent update JSONS
kolaps33 Sep 12, 2023
0a80ea9
fix adding prop from radio
kolaps33 Sep 13, 2023
ff30825
removing composition
kolaps33 Sep 13, 2023
10d4d3a
amend jsons add static or interactive
kolaps33 Sep 13, 2023
068fec3
adding interactivity to decisions array
kolaps33 Sep 13, 2023
ab45763
Fix filtering of interactive/static components
adamsamec Sep 13, 2023
7dc49cd
Group checkboxes into group role
adamsamec Sep 13, 2023
6eed75e
Clear decisions from the same category upon radio selection
adamsamec Sep 13, 2023
399eec6
fix category, adding more components jsons
kolaps33 Sep 13, 2023
17063ca
last fixes to get category
kolaps33 Sep 14, 2023
f8aa74d
add label for checkboxes, add number of found comp
kolaps33 Sep 14, 2023
91ac0e2
add weight for heading
kolaps33 Sep 14, 2023
d169a18
adding margin for found text
kolaps33 Sep 14, 2023
3082b47
fix typo in list
kolaps33 Sep 14, 2023
55a90ee
adding components constant
kolaps33 Sep 14, 2023
e7048bc
Merge branch 'master' into adamsamec/component-selector
Sep 16, 2024
e4c5175
Add component example URL retrieval function
Sep 16, 2024
bab3cf9
Retrieve default example when no example is given
Sep 17, 2024
a3eef07
adding according and component selector grid
mituron Sep 17, 2024
a02f15b
Reformat JSON component definitions, add attributes and questions
Sep 18, 2024
4715ebc
Merge branch 'adamsamec/component-selector' of https://github.com/ada…
Sep 18, 2024
b096caf
Use new names of component definitions
Sep 18, 2024
e8bb36c
fix name of table base
mituron Sep 18, 2024
9af45d4
amending headings
mituron Sep 18, 2024
7de3af0
amending headings of second accordion
mituron Sep 18, 2024
891f3cc
Restructure groups and questions
Sep 18, 2024
76243c4
fix merging of attribute between child and base JSON
mituron Sep 18, 2024
8844e1b
Add attributes to components definitions from questions
Sep 18, 2024
3389d02
Merge branch 'adamsamec/component-selector' of https://github.com/ada…
Sep 18, 2024
d5043ef
show components in results where are selected
mituron Sep 18, 2024
af10011
change URL to production, amend link creation in utils
mituron Sep 18, 2024
4d3587b
Add folder for components defs and generate proper URL
Sep 18, 2024
6a49974
Adding questionnaire to Selector | Removed duplicate Selector page | …
hanys7 Sep 18, 2024
a5f18f3
removing according, behaviour section started
mituron Sep 18, 2024
fff8928
adding behaviours toggle buttons
mituron Sep 18, 2024
d3b766a
removing radio and adding toggle buttons
mituron Sep 19, 2024
0ef7583
fix wrong import
mituron Sep 19, 2024
289a884
Merge branch 'master' into adamsamec/component-selector
Sep 19, 2024
ab50b19
Changes in component def attributes
Sep 19, 2024
2e97359
dipslay questions based on the logic
mituron Sep 19, 2024
fe8ed88
Add InfoLabel and Tooltip definitions and fixes
Sep 19, 2024
e406446
Merge branch 'adamsamec/component-selector' of https://github.com/ada…
Sep 19, 2024
24f49fe
Removed questions annotation from json files, generate numbering base…
hanys7 Sep 19, 2024
11ba4fe
trying to fix radio state logic do not work still
mituron Sep 19, 2024
73cf139
trying to fix radio state logic do not work still
mituron Sep 19, 2024
b38fe68
clean up
mituron Sep 19, 2024
053589d
Added image for UI types, fixed UI for input selections, used selecta…
hanys7 Sep 20, 2024
b71a37c
trying to fix displaying components after selection
mituron Sep 22, 2024
6f51a67
changes to add component into array
mituron Sep 24, 2024
f4ef707
fix questions radio
mituron Oct 5, 2024
674d327
remove unused code, add questions heading
mituron Dec 2, 2024
6f2152c
Change folder structure
Dec 10, 2024
e634d5d
Add categories json
Dec 10, 2024
7a01e57
change import all JSONs in one
mituron Dec 10, 2024
6c45608
Add selection from categories logic
Dec 10, 2024
e80cdf8
fix for pushing into field
mituron Dec 10, 2024
782acc4
Add components filter feature
Dec 11, 2024
e49a82e
Small refactoring
Dec 11, 2024
057125d
Fix typ errors
Dec 11, 2024
842f180
Fix type error
Dec 11, 2024
75313c6
Small refactoring
Dec 11, 2024
2180e1b
Rename vars and functions
Dec 11, 2024
175d803
Extract MatchingComponents into React component in separate file
Dec 11, 2024
dcb276a
Small refactoring
Dec 11, 2024
7c34446
amend suitable components logic
mituron Dec 12, 2024
969e71f
Extract BehaviorSelection component and refactor
Dec 12, 2024
aa544c2
Move behaviorOptions to JSON file
Dec 12, 2024
f71298e
Refactor mainly keys in Reacgt mappings
Dec 12, 2024
937e7a5
Refactor and fix keys
Dec 16, 2024
93054a9
Add aria-labelledby for radio groups
Dec 16, 2024
e0eb96c
Rename variables
Dec 16, 2024
4da4f21
fix checkbox name
mituron Dec 16, 2024
2be1aed
Apply filter also to story names
Dec 16, 2024
f198a12
Add number of components available
Dec 16, 2024
d7f7b8b
Add number of matching components to heading
Dec 16, 2024
fb1e1be
Improve alt text for component card images
Dec 17, 2024
40190b4
Load component images from file based on component name rather than J…
Dec 17, 2024
9d12fdb
Small refactor for fully matching
Dec 17, 2024
7f9e0e8
Fix component name and story in matching components list
Dec 17, 2024
ca4f55d
Remove some unused imports
Dec 17, 2024
9f37ab2
Separate functionality into two modes
Dec 17, 2024
3414556
Fix lint errors and refactor
Dec 17, 2024
598dfef
Refactor function into useEffect
Jan 2, 2025
ca0f5fb
adding images from Kay
mituron Jan 6, 2025
d5bd244
import rest of missing component picture, preview
mituron Jan 6, 2025
6f088f2
Fix TabList.png file name
Jan 6, 2025
15b703c
Reset form when mode changes
Jan 6, 2025
aa2d92c
Fix some filtering bugs
Jan 6, 2025
462f2ac
Fix component selection but still bugs with component removal
Jan 6, 2025
f1c2b80
Fix updating matching components after deselecting components
Jan 7, 2025
4dab3e3
sending as welll state selected
mituron Jan 7, 2025
71ebb03
Fix Tag display
Jan 7, 2025
d5020c6
Fix cards selected state display and small refactoring
Jan 7, 2025
01b2f81
Selected components tags now work and added remove all components button
Jan 7, 2025
ae4bedc
Add link to skip to questions section
Jan 7, 2025
7649060
Focus first accordion button on last tag removal
Jan 7, 2025
73b1871
Refactor matching components into useMemo
Jan 7, 2025
9443182
removing tablist png
mituron Jan 8, 2025
864f714
adding tabList png
mituron Jan 8, 2025
021f0d9
Matching components heading and message changes
Jan 8, 2025
6b1adc1
adjust UI
mituron Jan 8, 2025
cec6116
Merge branch 'adamsamec/component-selector' of https://github.com/ada…
mituron Jan 8, 2025
9bb6e0d
adding rest of components
mituron Jan 30, 2025
ae01ee1
UI changes, moved search to right corner, clean up UI
mituron Jan 30, 2025
af2db5f
adding rest of components JSON
mituron Jan 30, 2025
05a5717
Categorize all components
Feb 11, 2025
346ce60
Add visually hidden components count live region
Feb 11, 2025
d478e67
update questions, groups
mituron Feb 25, 2025
64baf69
Remove tabs for selection by components or behaviors
Mar 3, 2025
cf1cb47
Change categories into groups
Mar 3, 2025
a1d0d66
Remove accordion used for groups and leave only headings
Mar 3, 2025
ccb6a02
Remove group headings if group has no components after filtering
Mar 3, 2025
78b53bf
fix for data grid json
mituron Mar 3, 2025
01f59c9
Added filtering by group name | Fixed layout for filter input field |…
hanys7 Mar 4, 2025
5494e37
Added Fill out checklist to scroll to questions
hanys7 Mar 4, 2025
0ab7795
Add script to automatically generate index export files from componen…
hanys7 Mar 6, 2025
b4fa574
revert generate cs command due to conflict
hanys7 Mar 6, 2025
88529dd
Added generate:cs to main package json
hanys7 Mar 6, 2025
e0dc1c1
reverted root css changes
hanys7 Mar 6, 2025
7cd4afc
add attributeMapping json, changes in question, index
mituron Mar 6, 2025
089fa1e
Merge branch 'adamsamec/component-selector' of https://github.com/ada…
mituron Mar 6, 2025
d5ce5b4
uploading JSONS to fix build
mituron Mar 6, 2025
e1d87dd
update questions and attributeMappings questions
mituron Mar 6, 2025
07f998f
Added jump to section functionality, styling, some other UI fixes
hanys7 Mar 6, 2025
f8b6102
fixed overflow
hanys7 Mar 6, 2025
88af771
added more space
hanys7 Mar 6, 2025
f06e398
Adapt code to new component attributes mapping
Mar 6, 2025
f87af18
Merge branch 'adamsamec/component-selector' of https://github.com/ada…
Mar 6, 2025
1e725f5
update about attributes mapping, update in styling
mituron Mar 6, 2025
d203b70
Don't display components which have no questions
Mar 20, 2025
6f4db8a
fix wrong json, remove not relevant questions
mituron Mar 20, 2025
49742f5
Fix displayed component count
Mar 20, 2025
be4771f
moving results next to questions
mituron Mar 20, 2025
ad01f83
get results sticky when scrolling
mituron Mar 20, 2025
584149b
Refactor definitions to be provided as props
Mar 24, 2025
c94efba
Accept refactored code
Mar 24, 2025
b449f20
merging, adding results UI changes after refactoring
mituron Mar 24, 2025
a1fbe70
adding custom component infoIcon
mituron Mar 24, 2025
7e1eca7
imporving questions mapping
mituron Mar 25, 2025
396490a
removing toolbar, let there only search
mituron Mar 25, 2025
6363874
Use component link property if present in JSON
Mar 25, 2025
c8e17c9
Replace base components with the inheriting components
Mar 26, 2025
b3f2fa1
Fix single and multiple choice components list
Mar 26, 2025
134cde8
Clean attributes mapping a bit
Mar 26, 2025
2cf1ede
removing attributes and extends props from JSONs
mituron Mar 27, 2025
3b0c5c6
Remove Base components
Mar 27, 2025
17c9173
Remove unused code, console logs and other refactor
Mar 27, 2025
615f82f
Small refactor using logical operator
Mar 27, 2025
d05c2b9
Merge branch 'master' into adamsamec/component-selector
Mar 31, 2025
f9a300c
Migrate Component Selector to the new storybook
Apr 1, 2025
8aab8e1
Change search field label and placeholder
Apr 1, 2025
97d760d
Fix lint errors
Apr 1, 2025
feda96b
Fix other lint errors
Apr 1, 2025
bea650b
Replace occurances of any with proper types
Apr 1, 2025
181816c
Further small refactoring
Apr 2, 2025
8648de6
Focus questions when scrolling and var names refactor
Apr 2, 2025
e6526b7
Extract styles to separate files from component files
Apr 2, 2025
c50ab74
Fix component categorization and selection logic and clean JSONs
Apr 9, 2025
df009df
Merge remote-tracking branch 'adam/adamsamec/component-selector' into…
jurokapsiar Apr 13, 2025
815f175
chore(Component selector): Move code to the package
jurokapsiar Apr 14, 2025
1381cee
remove unintentional changes
jurokapsiar Apr 14, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -30,7 +30,8 @@
"prebuildto": "echo '⚠️ NOTE ⚠️:\nThis command is deprecated and will be removed.\nUse nx run <project>:<target> instead'",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕵🏾‍♀️ visual changes to review in the Visual Change Report

vr-tests-react-components/Drawer 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Drawer.overlay drawer full.chromium.png 1122 Changed
vr-tests-react-components/Positioning 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests-react-components/Positioning.Positioning end.chromium.png 884 Changed
vr-tests-react-components/Positioning.Positioning end.updated 2 times.chromium.png 593 Changed
vr-tests/Callout 10 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests/Callout.Bottom center.default.chromium.png 2116 Changed
vr-tests/Callout.Left bottom edge.default.chromium.png 3123 Changed
vr-tests/Callout.Left top edge.default.chromium.png 2168 Changed
vr-tests/Callout.Bottom left edge.default.chromium.png 2181 Changed
vr-tests/Callout.Left center.default.chromium.png 2544 Changed
vr-tests/Callout.No callout width specified.default.chromium.png 2126 Changed
vr-tests/Callout.Rendering callout attached to a rectangle.default.chromium.png 1832 Changed
vr-tests/Callout.Right bottom edge.default.chromium.png 3037 Changed
vr-tests/Callout.Right center.default.chromium.png 2080 Changed
vr-tests/Callout.Top left edge.default.chromium.png 2196 Changed
vr-tests/react-charting-GaugeChart 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests/react-charting-GaugeChart.Basic.default.chromium.png 2 Changed
vr-tests/react-charting-LineChart 2 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests/react-charting-LineChart.Multiple.default.chromium.png 192 Changed
vr-tests/react-charting-LineChart.Multiple - RTL.default.chromium.png 200 Changed
vr-tests/react-charting-VerticalBarChart 1 screenshots
Image Name Diff(in Pixels) Image Type
vr-tests/react-charting-VerticalBarChart.Basic - Secondary Y Axis.default.chromium.png 3 Changed

"buildto": "nx build --nxBail",
"clean": "nx run-many -t clean --verbose",
"scrub": "node ./scripts/executors/src/scrub.js"
"scrub": "node ./scripts/executors/src/scrub.js",
"generate:cs": "node ./scripts/utils/src/generate-component-selectors-index.ts"
},
"devDependencies": {
"@actions/core": "1.9.1",
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
import { makeStyles, tokens } from '@fluentui/react-components';

export const useStyles = makeStyles({
visuallyHidden: {
clip: 'rect(0px, 0px, 0px, 0px)',
height: '1px',
width: '1px',
margin: '-1px',
padding: '0px',
overflow: 'hidden',
position: 'absolute',
},
secondLevel: { 'margin-left': '30px' },
thirdLevel: { 'margin-left': '60px' },
forthLevel: { 'margin-left': '90px' },
heading: { margin: '30px 0 10px 0' },
root: {
// Stack the label above the field with a gap
display: 'flex',
flexWrap: 'wrap',
gap: '2px',
maxWidth: '1600px',
},
tagsList: {
listStyleType: 'none',
marginBottom: tokens.spacingVerticalXXS,
marginTop: 0,
paddingLeft: 0,
display: 'flex',
gridGap: tokens.spacingHorizontalXXS,
},
tooltip: { maxWidth: '500px important!', backgroundColor: 'red' },
componentWrapper: {
display: 'flex',
flexDirection: 'column',
flex: 1,
overflow: 'hidden',
},
bodyWrapper: {
display: 'flex',
flexDirection: 'column',
flex: 1,
padding: '20px',
overflowY: 'auto',
maxHeight: 'calc(100vh - 490px)',
},
footerWrapper: {
display: 'flex',
justifyContent: 'space-between',
position: 'sticky',
bottom: '0',
width: '100%',
padding: '30px 0 0 0',
overflowX: 'auto',
},
headerWrapper: {
display: 'flex',
flexDirection: 'column',
},
questionsWrapper: {
padding: '20px',
margin: '20px 0',
backgroundColor: 'white',
borderRadius: '16px',
border: '1px solid var(--colorNeutralStroke1, #e1dfdd)',
boxShadow: '0 0 10px rgba(0, 0, 0, 0.1)',
},
questionsLabel: {
color: '#ff00ff',
fontWeight: tokens.fontWeightBold,
marginRight: '8px',
},
questionsText: {
fontWeight: tokens.fontWeightBold,
fontSize: tokens.fontSizeBase400,
},
questionContainer: {
display: 'flex',
},
questionRightSide: {
borderLeft: '1px solid #ff00ff',
padding: '0 10px',
},
radioItem: {
display: 'flex',
},
selectedItemTag: {
color: 'white',
backgroundColor: '#5b5fc7',
},
selectedItemsContainer: {
marginLeft: '10px',
},
selectedComponentTitle: {
marginBottom: '10px',
},
actionsHeaderWrapper: {
display: 'flex',
margin: '15px 0',
},
searchComponentInput: {
alignSelf: 'flex-start',
width: '300px',
marginLeft: '20px',
},
jumpToCategoryHeader: {
alignSelf: 'flex-start',
paddingLeft: '10px',
fontSize: 'medium',
},
jumpToCategoryButtons: {
display: 'flex',
flexDirection: 'row',
marginBottom: '20px',
},
jumpToCategoryTags: {
overflowX: 'hidden',
width: '800px',
},
jumpToCategoryTag: {
cursor: 'pointer',
color: 'white',
backgroundColor: '#5b5fc7',
},
actionsHeader: {
margin: 0,
},
actionsHeaderIcon: {
marginLeft: '5px',
},
clearSelection: {
flexShrink: 0,
marginLeft: '10px',
},
moreButton: {
color: 'white',
backgroundColor: '#5b5fc7',
maxHeight: '32px',
margin: '0 10px',
fontWeight: '400',
},
fillOutSection: {
display: 'flex',
justifyContent: 'end',
},
headerHeadingAndInput: {
display: 'flex',
justifyContent: 'space-between',
},
QuestionsAndResults: {
display: 'flex',
},
allQuestions: {
width: '50%',
},
resultsWrapper: {
width: '50%',
paddingLeft: '50px',
},
results: {
position: 'sticky',
top: '5%',
},
});
Loading
Oops, something went wrong.
Loading
Oops, something went wrong.