Skip to content
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

Component consolidation #1346

Draft
wants to merge 247 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
247 commits
Select commit Hold shift + click to select a range
7c67824
chore: update Yarn to 4.x.x
davidornelas11 Jul 30, 2024
9491883
build: refactor deprecated pre/post scripts
davidornelas11 Jul 31, 2024
9218a66
chore: fix dynamic imports in storybook
davidornelas11 Aug 1, 2024
daf20dc
chore: edit vite config
davidornelas11 Aug 1, 2024
0882721
chore: remove changelog
davidornelas11 Aug 1, 2024
a457e4d
chore: fix vite config
davidornelas11 Aug 2, 2024
9179942
chore: edit build config
davidornelas11 Aug 2, 2024
e1fe159
chore: fixed storybook addon import
davidornelas11 Aug 7, 2024
daa0b96
chore: updated unity build
davidornelas11 Aug 8, 2024
62e8db2
chore: updated vite config
davidornelas11 Aug 8, 2024
f8e2072
docs: update README prereqs
davidornelas11 Aug 8, 2024
08e2a75
build: updated jenkins build for new Yarn
davidornelas11 Aug 8, 2024
9b9bec9
ci: fix yarn yml file and jenkinsfile
davidornelas11 Aug 8, 2024
1633956
build: edited jenkinsfile
davidornelas11 Aug 8, 2024
3e5e3b0
chore: update lockfile
davidornelas11 Aug 8, 2024
f3fc739
build: updated dependencies
davidornelas11 Aug 8, 2024
f7cf62e
chore: removed .lock from gitignore
davidornelas11 Aug 8, 2024
58fb1e1
ci: debug
davidornelas11 Aug 8, 2024
c7c010c
Merge branch 'dev' into upgrade-yarn
davidornelas11 Aug 9, 2024
8496b0b
chore: merged dev to fix yarn error
davidornelas11 Aug 9, 2024
60aefff
chore: added readme file for writing in CI build
davidornelas11 Aug 9, 2024
f6ff7a3
ci: updated vite config
davidornelas11 Aug 9, 2024
777292f
chore: set yarn version instead of berry
davidornelas11 Aug 9, 2024
8677db8
feat(components-core): added component-carousel to components-core
davidornelas11 Aug 21, 2024
5ea46e9
Merge pull request #1339 from ASU/upgrade-yarn
davidornelas11 Aug 26, 2024
bf6a8ef
chore(unity-react-core): fix lint errors
scott-williams-az Aug 30, 2024
e4f8aea
chore(unity-react-core): renamingReactJsToJsx
scott-williams-az Aug 30, 2024
1f464d6
devDependencies
scott-williams-az Aug 30, 2024
15443ae
feat(unity-react-core): added aria-hidden for unvisible cards
davidornelas11 Sep 3, 2024
c5a5ffd
fix(unity-react-core): add inert to slides not shown in component-car…
davidornelas11 Sep 6, 2024
f19fc28
fix(unity-react-core): updated small ranking card for accessibility
davidornelas11 Sep 6, 2024
7c41200
chore(unity-react-core): plop wip
scott-williams-az Sep 9, 2024
a23a071
chore(unity-react-core): rename js to jsx
scott-williams-az Sep 9, 2024
40c77ef
chore(unity-react-core): create script
scott-williams-az Sep 9, 2024
81c85e1
Merge branch 'component-consolidation' into create-script
scott-williams-az Sep 11, 2024
63a2ffa
chore(unity-react-core): update Plop
scott-williams-az Sep 12, 2024
7c445f9
chore(unity-react-core): renaming
scott-williams-az Sep 12, 2024
6fbbfb6
fix tests
scott-williams-az Sep 13, 2024
35d7e32
chore(unity-react-core): fix test
scott-williams-az Sep 13, 2024
2f03b79
fix(component-news): update import
scott-williams-az Sep 13, 2024
72f58d2
build(workspaces): linting and build autofixes
scott-williams-az Sep 13, 2024
ab05f74
Merge pull request #1358 from ASU/create-script
davidornelas11 Sep 13, 2024
de3387e
Merge pull request #1351 from ASU/UDS-1805-copy
mlsamuelson Sep 17, 2024
d10efa0
build(unity-react-core): build individual components for UMD use
davidornelas11 Aug 30, 2024
5bd9511
chore: fix all vite storybooks
davidornelas11 Sep 7, 2024
52d31f8
chore: update storybook preview scss
davidornelas11 Sep 12, 2024
77c3bc5
chore(unity-react-core): add individual build files for each component
davidornelas11 Sep 17, 2024
8552a2f
chore(unity-react-core): remove individual UMD component builds
davidornelas11 Sep 17, 2024
d96de2d
build(unity-react-core): fix entry files for vite config
davidornelas11 Sep 17, 2024
4772c21
build(unity-react-core): remove duplicate exports
davidornelas11 Sep 17, 2024
5546c11
Merge pull request #1363 from ASU/fix-vite-build-indiv
davidornelas11 Sep 18, 2024
075e98d
build: fix storybook build error
davidornelas11 Sep 21, 2024
0baed58
chore(unity-react-core): autofix and rename stories
scott-williams-az Sep 26, 2024
2d2bd6a
chore(unity-react-core): switch to vitest
scott-williams-az Sep 26, 2024
5889702
chore(unity-react-core): prepare for new ts components
scott-williams-az Sep 26, 2024
146cb4d
chore(unity-react-core): fix some tests
scott-williams-az Sep 27, 2024
64f187f
update yarn lock
scott-williams-az Sep 27, 2024
e04350a
tsconfig options
scott-williams-az Oct 2, 2024
5cfd71e
shared alias
scott-williams-az Oct 2, 2024
0568092
fix shared alias
scott-williams-az Oct 2, 2024
e835c09
fix some errors ading SB root back in
scott-williams-az Oct 3, 2024
3e587d4
fixing ts errors
scott-williams-az Oct 3, 2024
52f8512
lint fix
scott-williams-az Oct 3, 2024
0fea56b
Not sure why news started faiing
scott-williams-az Oct 3, 2024
5321c07
fix alias for tests
scott-williams-az Oct 3, 2024
2fbce39
remove alias
scott-williams-az Oct 3, 2024
1e71895
feat(component-header-footer): create new component
davidornelas11 Oct 4, 2024
c520781
Merge branch 'dev' into rebase-component-consolidation
davidornelas11 Oct 4, 2024
0b1562f
chore: run yarn install
davidornelas11 Oct 4, 2024
ee3aa96
chore: upgrade all packages to React 18
davidornelas11 Oct 5, 2024
7595c20
fix(component-header-footer): sswiotch to styled components insteads …
davidornelas11 Oct 8, 2024
ecfc92d
Merge pull request #1377 from ASU/rebase-component-consolidation
davidornelas11 Oct 8, 2024
cc0f223
Merge branch 'component-consolidation' into cc-vitest-sbname-plop
davidornelas11 Oct 8, 2024
ff5b769
chore: update tsconfig with proper bundler setting and checkJs files …
davidornelas11 Oct 8, 2024
a47a008
Merge pull request #1370 from ASU/cc-vitest-sbname-plop
davidornelas11 Oct 8, 2024
802ac20
docs: update examples to use React18
davidornelas11 Oct 9, 2024
92312c4
test(unity-react-core): add browser tests
davidornelas11 Oct 11, 2024
6c52fc3
chore(unity-react-core): fix type error
davidornelas11 Oct 11, 2024
982df4c
test: add playwright to jenkinsfile
davidornelas11 Oct 11, 2024
768c360
fix(component-header-footer): update dataLayer pushes to match compon…
davidornelas11 Oct 11, 2024
f83d13b
refactor: refactor type hintings
davidornelas11 Oct 14, 2024
d5a257e
test(unity-react-core): update tests
davidornelas11 Oct 14, 2024
b84b619
chore: remove QR code photo
davidornelas11 Oct 14, 2024
6ec9fb0
Merge branch 'component-consolidation' into UDS-1714-copy
davidornelas11 Oct 15, 2024
79e12dd
Merge pull request #1353 from ASU/UDS-1714-copy
scott-williams-az Oct 15, 2024
b597491
divider
scott-williams-az Sep 26, 2024
fdb0b4f
lists
scott-williams-az Oct 1, 2024
3a7b4ad
fix(unity-bootstrap-theme): allow span,i alert-icon tags
scott-williams-az Sep 26, 2024
3b67eb7
system alerts
scott-williams-az Sep 26, 2024
e53e021
tooltip
scott-williams-az Oct 2, 2024
5edf4b3
update tests
scott-williams-az Oct 17, 2024
687ba93
Uds 1861-Add security check and remove visual regression testing (#1387)
davidornelas11 Oct 23, 2024
e110e67
fix(component-header-footer): add proper keyboard navigation and acce…
davidornelas11 Oct 23, 2024
f020c16
fix(component-header-footer): fix build issue
davidornelas11 Oct 23, 2024
88072d7
Uds 1861-Add security check and remove visual regression testing (#1387)
davidornelas11 Oct 23, 2024
cbc4a59
remove lint on ts
scott-williams-az Oct 25, 2024
49da852
fix
scott-williams-az Oct 25, 2024
a911123
Uds 1861-Add security check and remove visual regression testing (#1387)
davidornelas11 Oct 23, 2024
d093551
remove lint on ts
scott-williams-az Oct 25, 2024
2ba149d
Uds 1861-Add security check and remove visual regression testing (#1387)
davidornelas11 Oct 23, 2024
43cc065
remove lint on ts
scott-williams-az Oct 25, 2024
0a039b5
Uds 1861-Add security check and remove visual regression testing (#1387)
davidornelas11 Oct 23, 2024
7b963e8
remove lint on ts
scott-williams-az Oct 25, 2024
947be63
fix
scott-williams-az Oct 25, 2024
e947bc1
fix
scott-williams-az Oct 25, 2024
9a68fb1
feat(unity-react-core): added sidebar react implementation
davidornelas11 Oct 25, 2024
8d0a2d5
feat(unity-react-core): add sidebar
davidornelas11 Oct 30, 2024
26be774
fix(unity-react-core): enable carousel pinch and zoom
mlsamuelson Nov 5, 2024
7e1b01f
chore(unity-react-core): update plop template to use react 18.3.1
mlsamuelson Nov 5, 2024
ce13e3a
feat(unity-react-core): add grid links component to react core
mlsamuelson Nov 5, 2024
6010c42
fix(unity-bootstrap-theme): style tweak to support rendering non-svg …
mlsamuelson Nov 5, 2024
b37749b
chore(workspace): fix ts lint
scott-williams-az Nov 6, 2024
e437d06
chore(workspace): auto fixes
scott-williams-az Nov 6, 2024
8eef988
Merge pull request #1400 from ASU/cc-ts-lint
mlsamuelson Nov 6, 2024
ae9e25d
Merge branch 'component-consolidation' into UDS-1869-grid-links
mlsamuelson Nov 6, 2024
4d6a2f7
Merge pull request #1395 from ASU/uds-1838-for-consolidation
scott-williams-az Nov 7, 2024
b5ddf0c
Merge pull request #1396 from ASU/plop-template-react18
scott-williams-az Nov 7, 2024
7e1955b
remove lint on ts
scott-williams-az Oct 25, 2024
cdf895f
wip
scott-williams-az Oct 29, 2024
ed02a49
minor
scott-williams-az Oct 29, 2024
7283a63
working
scott-williams-az Oct 30, 2024
c06f086
readme update
scott-williams-az Oct 30, 2024
a87560e
chore(static-site): working build
scott-williams-az Nov 7, 2024
e47d79f
chore(static-site): file rename, zIndex
scott-williams-az Nov 7, 2024
7f090a0
Update readme
scott-williams-az Nov 7, 2024
bf29cf3
chore(static-site): linting
scott-williams-az Nov 7, 2024
3835547
yarn lock
scott-williams-az Nov 7, 2024
57fd282
Merge branch 'cc' into cc-divider
scott-williams-az Nov 7, 2024
03837a1
Merge branch 'cc' into cc-lists
scott-williams-az Nov 7, 2024
ecad11c
Merge branch 'cc' into cc-system-alert
scott-williams-az Nov 7, 2024
a763c9d
Merge branch 'cc' into cc-tooltip
scott-williams-az Nov 7, 2024
adc01b3
fix(unity-react-core): fix ts type
scott-williams-az Nov 7, 2024
acd4ba3
fix(unity-react-core): fix linting issue with unused variable
mlsamuelson Nov 7, 2024
538660f
fix(unity-react-core): add data layer to grid links
mlsamuelson Nov 7, 2024
7800b47
chore(workspace): remove unused
scott-williams-az Nov 8, 2024
52574b5
fix lint
scott-williams-az Nov 8, 2024
6728d7c
fix(unity-react-core): improve factoring of data layer render util
mlsamuelson Nov 8, 2024
21f9b96
Merge pull request #1402 from ASU/UDS-1869-datalayer-pattern
mlsamuelson Nov 12, 2024
5ccf059
style(unity-react-core): formatting code and fix example props
davidornelas11 Nov 13, 2024
b13a9d6
fix(unity-react-core): move bgColor to story, out of constants
mlsamuelson Nov 15, 2024
ce06515
Merge pull request #1397 from ASU/UDS-1869-grid-links
mlsamuelson Nov 18, 2024
8878059
Merge branch 'component-consolidation' into cc-lists
mlsamuelson Nov 21, 2024
37a2a24
fix(component-header-footer): fix styles in footer
davidornelas11 Nov 21, 2024
09c6ed2
chore(unity-react-core): preventing conflict
scott-williams-az Nov 21, 2024
3f97599
Merge branch 'component-consolidation' into cc-divider
scott-williams-az Nov 21, 2024
6bfeedb
Merge branch 'component-consolidation' into cc-system-alert
scott-williams-az Nov 21, 2024
811c87a
Merge pull request #1388 from ASU/UDS-1865
mlsamuelson Nov 22, 2024
7e17bac
feat(unity-react-core): add useExternal to system-alert
scott-williams-az Nov 22, 2024
53845c3
Update SystemAlert.tsx
scott-williams-az Nov 22, 2024
6a0cadc
Update list.html
scott-williams-az Nov 22, 2024
24421c2
Update divider.html
scott-williams-az Nov 22, 2024
37595a6
chore(unity-react-core): tooltip/init.js
scott-williams-az Nov 22, 2024
8b7e84a
chore(unity-react-core): lists/init.js
scott-williams-az Nov 22, 2024
2f8703e
Update and rename index.js to init.js
scott-williams-az Nov 22, 2024
f0853d3
Rename index.js to init.js
scott-williams-az Nov 22, 2024
f2c62f3
chore(unity-react-core): system-alerts test & lint
scott-williams-az Nov 22, 2024
b36e217
Merge pull request #1381 from ASU/cc-lists
mlsamuelson Dec 3, 2024
baf6570
Merge branch 'component-consolidation' into cc-tooltip
mlsamuelson Dec 3, 2024
b8addc6
fix(unity-react-core): fix react version in example
mlsamuelson Dec 3, 2024
fb84cc4
Merge pull request #1382 from ASU/cc-tooltip
mlsamuelson Dec 3, 2024
b6d0a93
Merge branch 'component-consolidation' into cc-system-alert
mlsamuelson Dec 3, 2024
885266f
feat(unity-react-core): framework switch
scott-williams-az Dec 3, 2024
821fe57
fix(unity-react-core): add missing required prop for tooltips
mlsamuelson Dec 3, 2024
2ffe34f
Merge pull request #1384 from ASU/cc-divider
mlsamuelson Dec 3, 2024
1a7601d
Merge branch 'component-consolidation' into cc-system-alert
mlsamuelson Dec 3, 2024
278a07d
Merge pull request #1383 from ASU/cc-system-alert
mlsamuelson Dec 3, 2024
a1147c6
fix(unity-react-core): port uds-1905 fix to consolidation
mlsamuelson Dec 4, 2024
ed26805
chore(workspace): getting build to work
scott-williams-az Dec 4, 2024
c3d1f8d
Merge branch 'component-consolidation' of https://github.com/ASU/asu-…
scott-williams-az Dec 4, 2024
49e6f4a
chore(unity-react-core): removing useExternal
scott-williams-az Dec 4, 2024
b2f1dbb
chore(workspace): resolving issues
scott-williams-az Dec 4, 2024
a7e2e09
feat(unity-react-core): removing useExternal
scott-williams-az Dec 5, 2024
49d0b70
feat(unity-react-core): removing useExternal
scott-williams-az Dec 5, 2024
0de7c53
chore(unity-react-core): more examples GAWrapper
scott-williams-az Dec 5, 2024
f21f1a1
chore(workspace): cleanup
scott-williams-az Dec 5, 2024
5123cfd
chore(workspace): making it work
scott-williams-az Dec 5, 2024
d83a677
Merge pull request #1401 from ASU/UDS-1667b
scott-williams-az Dec 5, 2024
0c4b584
Merge branch 'component-consolidation' into cc-framework-switch
scott-williams-az Dec 5, 2024
32afc9e
Merge pull request #1412 from ASU/cc-framework-switch
scott-williams-az Dec 5, 2024
a8f227a
feat(unity-react-core): added functionality to check screen width for…
juanmitriatti Dec 6, 2024
f799b7c
feat(unity-bootstrap-theme): rank cards native BS
scott-williams-az Dec 6, 2024
c46c98f
feat(unity-react-core): rank cards native BS
scott-williams-az Dec 6, 2024
410c8e3
feat(unity-react-core): remove all trackGAEvents
scott-williams-az Dec 6, 2024
60c6bcb
oopsie
scott-williams-az Dec 6, 2024
ea8e701
chore(data-layer): filter gtm events optional
scott-williams-az Dec 9, 2024
cb55bba
accordion events
scott-williams-az Dec 9, 2024
b89c40c
comment anchor menu
scott-williams-az Dec 9, 2024
3fe0539
comments
scott-williams-az Dec 9, 2024
2810dd1
Merge branch 'component-consolidation' into UDS-1876
davidornelas11 Dec 10, 2024
f65fb32
comments
scott-williams-az Dec 11, 2024
7754e25
Merge pull request #1417 from ASU/ga-event-wrapper
scott-williams-az Dec 11, 2024
d5c7176
fix(unity-react-core): added basic sidebar story
davidornelas11 Dec 11, 2024
257a32e
fix(unity-react-core): add Modal story
davidornelas11 Dec 12, 2024
3304cf4
feat(unity-bootstrap-theme): banner icon styles
scott-williams-az Dec 12, 2024
5df204e
feat(unity-react-core): notification banners
scott-williams-az Dec 12, 2024
54ade7f
feat(unity-react-core): notification banners
scott-williams-az Dec 12, 2024
0f5d343
chore(unity-react-core): update plop
scott-williams-az Dec 12, 2024
4959d3f
chore(unity-react-core): add person profile story
davidornelas11 Dec 19, 2024
fbd32cc
fix(unity-bootstrap-theme): apply a11y breadcrumbs min size
scott-williams-az Dec 19, 2024
bb9ede6
Merge pull request #1429 from ASU/cc-1917
davidornelas11 Dec 19, 2024
91875d6
chore(unity-react-core): update Modal
davidornelas11 Dec 19, 2024
d156154
Update Modal.tsx
davidornelas11 Dec 19, 2024
0e53e8d
chore(unity-react-core): add Table story
davidornelas11 Dec 19, 2024
a8640ec
Merge pull request #1421 from ASU/UDS-1864
davidornelas11 Dec 19, 2024
d3500ee
fix
scott-williams-az Dec 20, 2024
7dc1da1
Merge pull request #1422 from ASU/uds-1866-notification-banner
scott-williams-az Dec 20, 2024
1132b14
fix(unity-react-core): updated stories for person profile and added G…
davidornelas11 Dec 20, 2024
777ec59
Merge branch 'component-consolidation' into UDS-1876
davidornelas11 Dec 30, 2024
58cea6f
fix(unity-react-core): removed init file
davidornelas11 Dec 30, 2024
05078c5
chore(unity-react-core): add image based card story
davidornelas11 Dec 31, 2024
31424d3
build(unity-bootstrap-theme): update output build filenames
davidornelas11 Jan 2, 2025
47d819a
docs: update Readme's
davidornelas11 Jan 8, 2025
a5dd7f7
Merge pull request #1438 from ASU/update-docs
davidornelas11 Jan 8, 2025
e1787af
Merge pull request #1437 from ASU/uds-1664-js
scott-williams-az Jan 9, 2025
bf2d04b
feat(unity-react-core): form elements
scott-williams-az Jan 9, 2025
4ac8014
docs(unity-react-core): remove druplicate story
davidornelas11 Jan 9, 2025
5fc8c90
feat(unity-react-core): package dep
scott-williams-az Jan 9, 2025
cef3f33
yarn lock
scott-williams-az Jan 9, 2025
f6f214f
htmlFor
scott-williams-az Jan 9, 2025
40c3604
expect error
scott-williams-az Jan 9, 2025
3e13310
feat(unity-react-core): docs
scott-williams-az Jan 10, 2025
c0af937
fixes
scott-williams-az Jan 10, 2025
60ba007
Merge pull request #1394 from ASU/UDS-1876
mlsamuelson Jan 10, 2025
8a0de50
docs(unity-react-core): add fixed table story
davidornelas11 Jan 10, 2025
14911c4
docs(unity-react-core): remove unnecessary gaData spread
davidornelas11 Jan 10, 2025
dd81d57
docs(unity-react-core): remove gaButtonText in interface
davidornelas11 Jan 10, 2025
59a3c20
Merge pull request #1439 from ASU/UDS-1872-forms
mlsamuelson Jan 10, 2025
b5ba598
feat(unity-react-core): breadcrumbs
scott-williams-az Jan 14, 2025
e579f65
Merge pull request #1427 from ASU/uds-1877
mlsamuelson Jan 14, 2025
3e8a091
Update ImageBasedCard.stories.tsx
scott-williams-az Jan 14, 2025
350e728
Merge pull request #1434 from ASU/uds-1871-image-card
mlsamuelson Jan 14, 2025
51db666
Update docPage.tsx
scott-williams-az Jan 14, 2025
c5ce4ce
Update manager.jsx
scott-williams-az Jan 14, 2025
021ae0e
Clean Up
scott-williams-az Jan 14, 2025
31e0e1d
Merge pull request #1442 from ASU/uds-1913
mlsamuelson Jan 14, 2025
0b2a57b
Update Breadcrumbs.tsx
scott-williams-az Jan 14, 2025
73180a5
fix(unity-bootstrap-theme): breadcrumbs
scott-williams-az Jan 14, 2025
1e198db
Merge pull request #1445 from ASU/uds-1874
mlsamuelson Jan 14, 2025
ab74f1a
Merge branch 'component-consolidation' into uds-1878
davidornelas11 Jan 16, 2025
8d049d5
docs(unity-react-core): update table story
davidornelas11 Jan 16, 2025
5218e98
build: updated header-footer and license inclusions
davidornelas11 Jan 16, 2025
b152ac8
fix(component-header-footer): fix header navbar not hiding
davidornelas11 Jan 16, 2025
5bc4ee5
chore: update yarn.lock
mlsamuelson Jan 17, 2025
bb28ac6
Merge pull request #1447 from ASU/update-header-footer
scott-williams-az Jan 17, 2025
61ff716
Merge pull request #1430 from ASU/uds-1878
mlsamuelson Jan 17, 2025
89567f5
fix(unity-react-core): fix broken images
scott-williams-az Jan 17, 2025
944b925
Merge pull request #1449 from ASU/uds-1930-un-unsplash
mlsamuelson Jan 24, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .env.yarn.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GITHUB_AUTH_TOKEN=YOUR_AUTH_TOKEN_HERE
41 changes: 41 additions & 0 deletions .eslintrc.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,45 @@ module.exports = {
},
],
},
overrides: [
{
settings: {
"import/extensions": [".js", ".jsx", ".ts", ".tsx"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
plugins: ["eslint-plugin-import-helpers", "@typescript-eslint"],
rules: {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": "off",
"react/jsx-filename-extension": ["error", { extensions: [".js", ".jsx", ".ts", ".tsx"] }],
"@typescript-eslint/ban-ts-comment": ["warn"],
"no-unused-vars": "off",
"react/require-default-props": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }],
"@typescript-eslint/no-empty-function": "off"
}
},
],
};
3 changes: 0 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,4 @@
- [Unity reference site](https://asu.github.io/asu-unity-stack/)
- [Unity Design Kit](https://shared-assets.adobe.com/link/fb14b288-bf63-47e0-5d30-384de5560455)

### FOR APPROVERS

- [Percy build approval](https://percy.io/5eae92d9/-all-UDS-packages)

5 changes: 5 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@
# don't execute if in CI context
[ -n "$CI" ] && exit 0

# Exit if the commit message is being created by a rebase, merge, or another Git operation
if [ -n "$2" ]; then
exit 0
fi

exec < /dev/tty && git cz --hook || true
32 changes: 28 additions & 4 deletions .storybook-config/dataLayerListener/Panel.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { useAddonState, useChannel } from "@storybook/api";
import { styled } from "@storybook/theming";
import { AddonPanel, Button } from "@storybook/components";
import { AddonPanel, Button, Form } from "@storybook/components";
import { Source } from '@storybook/blocks';
import { ADDON_ID, EVENTS } from "./constants.js";

Expand All @@ -12,8 +12,9 @@ const SourceWrapper = styled(Source)({
})

export const Panel = (props) => {
const [{dataLayer}, setState] = useAddonState(ADDON_ID, {
dataLayer: []
const [{dataLayer, filter}, setState] = useAddonState(ADDON_ID, {
dataLayer: [],
filter: "!gtm.",
});

// useChannel({
Expand All @@ -30,8 +31,31 @@ export const Panel = (props) => {
setState((state) => ({ ...state, dataLayer: [] }));
}

const handleChange= (e) => {
const {target: {value = ""}} = e;
setState((state) => ({ ...state, filter: value }));
}

const filteredData = dataLayer.filter(({event}) => {
/**
* A lot of events are logged with prefix "gtm." and creates a lot of noise,
* most of the time we just want to see the events we are triggering.
* Leaving the option to not filter out gtm events.
*/
if (filter.slice(0,1) === "") {
return true;
} else if (filter.slice(0,1) === "!" && filter.slice(1).length > 0) {
return event.indexOf(filter.slice(1)) === -1;
} else if (filter.length > 0) {
return event.indexOf(filter) > -1;
}
});

return (
<AddonPanel {...props}>
<Form.Field label="Event filter">
<Form.Input id="filter" placeholder="filter" value={filter} onChange={handleChange}/>
</Form.Field>
<Button
small
primary
Expand All @@ -46,7 +70,7 @@ export const Panel = (props) => {
>
Clear
</Button>
<SourceWrapper code={`${JSON.stringify(dataLayer, " ", 2)}`} language='json' format={true} />
<SourceWrapper code={`${JSON.stringify(filteredData, " ", 2)}`} language='json' format={true} />
</AddonPanel>
);
};
3 changes: 2 additions & 1 deletion .storybook-config/dataLayerListener/preset/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ addons.register(ADDON_ID, () => {
type: types.PANEL,
title: function title(){
const [{ dataLayer }] = useAddonState(ADDON_ID, {
dataLayer: []
dataLayer: [],
filter: "!gtm.",
});
return `Data Layer${dataLayer.length ? ` (${dataLayer.length})`: ``}`;
},
Expand Down
12 changes: 5 additions & 7 deletions .storybook-config/withColumns.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

import React from "react";
import { useMemo, useEffect } from '@storybook/addons';
import React, { useMemo, useEffect } from "react";
import { clearStyles, addStyle } from './helpers/styleInjection';

export const withColumns = (StoryFn, context) => {
Expand Down Expand Up @@ -29,6 +27,8 @@ export const withColumns = (StoryFn, context) => {
linear-gradient(90deg,var(--gridbg) var(--gridcol), var(--gridbg2) -1px),
linear-gradient(90deg,var(--gridbg) var(--gridcol), var(--gridbg2) -1px),
linear-gradient(90deg,var(--gridbg) var(--gridcol), var(--gridbg2) -1px),
/*...*/
/*...*/
linear-gradient(90deg,var(--gridbg) var(--gridcol), var(--gridbg2) -1px),
linear-gradient(-90deg,var(--gridbg) var(--gridcol), var(--gridbg2) -1px),
linear-gradient(-90deg,var(--gridbg) var(--gridcol), var(--gridbg2) -1px),
Expand Down Expand Up @@ -70,7 +70,7 @@ export const withColumns = (StoryFn, context) => {
}
}
`;
});
}, [context.viewMode, context.id]);

useEffect(() => {
const selectorId =
Expand All @@ -85,7 +85,5 @@ export const withColumns = (StoryFn, context) => {
addStyle(selectorId, columnsStyles);
}, [isActive, columnsStyles, globals]);

return <>
<StoryFn />
</>
return StoryFn();
};
925 changes: 925 additions & 0 deletions .yarn/releases/yarn-4.4.0.cjs

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
nodeLinker: node-modules

npmScopes:
asu:
npmAuthToken: "${GITHUB_AUTH_TOKEN-fallback}"
npmPublishRegistry: "https://npm.pkg.github.com"
npmRegistryServer: "https://npm.pkg.github.com"

yarnPath: .yarn/releases/yarn-4.4.0.cjs
59 changes: 34 additions & 25 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ spec:
command:
- cat
tty: true
- name: playwright
image: 'mcr.microsoft.com/playwright:v1.48.0-noble'
imagePullPolicy: Always
command:
- cat
tty: true
- name: puppeteer
image: 'ghcr.io/puppeteer/puppeteer:22'
imagePullPolicy: Always
Expand All @@ -31,7 +37,6 @@ spec:
RAW_GH_TOKEN = credentials('github-org-asu-pac')
NPM_TOKEN = credentials('NPM_TOKEN')
NODE_AUTH_TOKEN = credentials('github-org-asu-pac')
PERCY_TOKEN = credentials('PERCY_TOKEN')
}
options {
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5'))
Expand All @@ -45,11 +50,9 @@ spec:
steps {
container('node20') {
script {
echo '## Configure .npmrc file for @asu registry...'
writeFile file: '.npmrc', text: '@asu:registry=https://npm.pkg.github.com/ \n' +
'//npm.pkg.github.com/:_authToken=' + env.RAW_GH_TOKEN_PSW
echo '## Configure env file for @asu registry...'
echo '## Install and build Unity monorepo...'
sh 'yarn install --frozen-lockfile'
sh 'yarn install --immutable'
sh 'yarn build'

withEnv(["GH_TOKEN=${RAW_GH_TOKEN_PSW}"]) {
Expand All @@ -63,41 +66,47 @@ spec:
stage('Build') {
steps {
container('node20') {
echo '## Configure .npmrc file for Github Package registry...'
writeFile file: '.npmrc', text: '@asu:registry=https://npm.pkg.github.com/ \n' +
'//npm.pkg.github.com/:_authToken=' + env.RAW_GH_TOKEN_PSW
withEnv(["GITHUB_AUTH_TOKEN=${RAW_GH_TOKEN_PSW}"]) {
echo '## Install and build Unity monorepo...'
sh 'yarn install --frozen-lockfile'
sh 'yarn install'
sh 'yarn build'
}
}
}
}
stage('Test') {
steps {
container('node20') {
container('playwright') {
echo '## Running jests tests...'
sh 'yarn test'
}
}
}
stage('Visual Regression Testing') {
stage('Security Check') {
when {
allOf {
expression { env.CHANGE_TARGET == 'dev' }
expression { // Only run if there are changes in packages directory
sh(returnStatus: true, script: 'git diff origin/dev... --name-only | grep --quiet "^packages/.*"') == 0
}
}
expression { env.CHANGE_TARGET == 'dev' }
}
steps {
container('node20') {
echo 'building storybook...'
sh 'yarn build-storybook'
}
container('puppeteer') {
echo 'running percy tests...'
sh 'yarn percy-test'
}
withEnv(["GITHUB_AUTH_TOKEN=${RAW_GH_TOKEN_PSW}"]) {
echo '## Running security checks...'
sh 'yarn install --immutable'
sh 'yarn npm audit --all --severity critical'
script {
def result = sh(
script: 'yarn npm audit --all --severity high',
returnStatus: true
)
if (result != 0) {
slackSend(
channel: '#prd-uds',
color: 'warning',
message: "@uds-developers Action might be needed: ${env.RUN_DISPLAY_URL}"
)
}
}
}
}
}
}
stage('Publish') {
Expand All @@ -123,7 +132,7 @@ spec:
container('node20') {
script {
echo '# Final, post-publish install and build to include just published pkgs...'
sh 'yarn install --frozen-lockfile'
sh 'yarn install --immutable'
sh 'yarn build-storybook'

withEnv(["GH_TOKEN=${RAW_GH_TOKEN_PSW}"]) {
Expand Down
Loading