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

Upgrade all components to React 18 and combine header and footer #1377

Merged
merged 107 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
ca46602
feat(app-webdir-ui): updated title logic in directory components
davidornelas11 Jun 24, 2024
cfa4bba
fix(app-webdir-ui): refactored title logic
davidornelas11 Jun 24, 2024
d15a041
fix(app-webdir-ui): update logic
davidornelas11 Jun 28, 2024
e5270a3
fix(app-webdir-ui): fix logic for web directory in dept and faculty r…
davidornelas11 Jul 25, 2024
53dfbe1
fix(app-webdir-ui): add custom titles to courtesy affiliate search re…
davidornelas11 Jul 30, 2024
7b99512
fix(unity-bootstrap-theme): added css for long pagination on mobile
juanmitriatti Aug 7, 2024
310739c
feat(unity-bootstrap-theme): add table caption styles
bebaps Aug 7, 2024
ead5913
Merge branch 'dev' into update-title-logic-webdir
davidornelas11 Aug 9, 2024
cf2d675
chore: updated yarn.lock
davidornelas11 Aug 9, 2024
b43b6da
fix(component-header): fixed navtree with onclick not getting called
davidornelas11 Aug 13, 2024
8d997ad
test(component-header): add test to check for onclick call
davidornelas11 Aug 13, 2024
af7d216
fix(component-header): added onClick event to dropdown sublinks
davidornelas11 Aug 14, 2024
f5acfe7
test(component-header): add test for sublink dropdown
davidornelas11 Aug 14, 2024
d071db0
style(component-header): fix linting errors
davidornelas11 Aug 14, 2024
3387375
fix(app-webdir-ui): added prodile service class for reusability
davidornelas11 Aug 20, 2024
aba7c67
build: update eslint to use newer features
davidornelas11 Aug 21, 2024
e0a634a
fix(app-webdir-ui): added student and site fallback logic
davidornelas11 Aug 21, 2024
311f872
fix(app-rfi): Update Military to radio button
scott-williams-az Aug 23, 2024
377fde0
fix(components-core): updated small ranking card for accessibility
davidornelas11 Aug 27, 2024
7730295
fix(unity-bootstrap-theme): update ranking card styles
davidornelas11 Aug 27, 2024
2572edd
feat(component-carousel): added aria-hidden for unvisible cards
juanmitriatti Aug 28, 2024
84ab4c3
docs(component-carousel): added comments
juanmitriatti Aug 28, 2024
72be88b
fix(app-rfi): update plan title to use market description
scott-williams-az Aug 29, 2024
7520bc4
docs: fix README. Needed blank line
mlsamuelson Aug 29, 2024
caf6458
fix(component-header): fixed prop that was not passed in properly
davidornelas11 Sep 4, 2024
98989eb
Merge pull request #1342 from ASU/UDS-1793
mlsamuelson Sep 4, 2024
32af253
Merge pull request #1337 from ASU/UDS-1754
mlsamuelson Sep 4, 2024
5981fb0
Merge pull request #1338 from ASU/uds-1783
mlsamuelson Sep 4, 2024
20712d9
Merge pull request #1345 from ASU/ERFI-150
mlsamuelson Sep 4, 2024
3af35c3
Merge pull request #1349 from ASU/ERFI-151
mlsamuelson Sep 4, 2024
23cd844
chore(release): 2.3.1 [skip ci]
semantic-release-bot Sep 4, 2024
f60d1bc
chore(release): 1.14.0 [skip ci]
semantic-release-bot Sep 4, 2024
d2eac65
chore(release): 2.3.10 [skip ci]
semantic-release-bot Sep 4, 2024
db6d3e0
feat(component-carousel): added inert to invisible cards
juanmitriatti Sep 4, 2024
13891a8
Merge pull request #1347 from ASU/UDS-1714
mlsamuelson Sep 4, 2024
aeac4d4
chore(release): 1.14.1 [skip ci]
semantic-release-bot Sep 4, 2024
2772a69
chore(release): 4.1.1 [skip ci]
semantic-release-bot Sep 4, 2024
94d2a89
Merge pull request #1348 from ASU/UDS-1805
davidornelas11 Sep 5, 2024
7eacf67
chore(release): 2.1.0 [skip ci]
semantic-release-bot Sep 5, 2024
0c4bcdf
fix(component-news): remove KE from default news header
Bob-E Sep 6, 2024
ec1ca4c
fix(app-rfi): programOfInterest required, unless optional prop
scott-williams-az Sep 6, 2024
a223aa3
fix(app-rfi): Entry dates should not have dups
scott-williams-az Sep 6, 2024
b9f49f2
Merge pull request #1355 from ASU/erfi-152
mlsamuelson Sep 9, 2024
653ac09
Merge pull request #1356 from ASU/erfi-154
mlsamuelson Sep 9, 2024
a4ef3a6
chore(release): 2.3.11 [skip ci]
semantic-release-bot Sep 9, 2024
fe20e42
fix(component-header): fix keyboard clickable in menu item
davidornelas11 Sep 10, 2024
0f1e39c
Merge pull request #1359 from ASU/fix-header-regression
mlsamuelson Sep 10, 2024
dd11e11
chore(release): 2.3.2 [skip ci]
semantic-release-bot Sep 10, 2024
7c742f0
fix(app-webdir-ui): remove old title logic
davidornelas11 Sep 11, 2024
083ad23
fix(app-rfi): campusProgram has choice update api if Campus changes
scott-williams-az Sep 11, 2024
e49ba7d
fix(app-webdir-ui): do not retrieve full records on second search
davidornelas11 Sep 11, 2024
9e976aa
Merge pull request #1360 from ASU/erfi-156
mlsamuelson Sep 11, 2024
ebe65ff
chore(release): 2.3.12 [skip ci]
semantic-release-bot Sep 11, 2024
0f49864
refactor(app-webdir-ui): edit ProfileService comments and parameters
davidornelas11 Sep 11, 2024
6ac3cae
fix(app-rfi): fix undefined error when program optional
scott-williams-az Sep 11, 2024
5c07375
Merge pull request #1361 from ASU/erfi-156-followup
mlsamuelson Sep 11, 2024
1424f29
chore(release): 2.3.13 [skip ci]
semantic-release-bot Sep 11, 2024
790f6e8
Merge pull request #1354 from ASU/UDS-1811
davidornelas11 Sep 13, 2024
2b64fbb
chore(release): 2.1.1 [skip ci]
semantic-release-bot Sep 13, 2024
331710a
Merge pull request #1302 from ASU/update-title-logic-webdir
mlsamuelson Sep 17, 2024
afa1a9f
build(deps): bump axios from 1.7.2 to 1.7.4
dependabot[bot] Sep 17, 2024
859c340
chore(release): 3.6.0 [skip ci]
semantic-release-bot Sep 17, 2024
f2f3566
Merge pull request #1364 from ASU/dependabot/npm_and_yarn/axios-1.7.4
davidornelas11 Sep 17, 2024
90aff3c
fix(app-webdir-ui): retrieve token on search results list
davidornelas11 Sep 17, 2024
8c4f27e
fix(app-webdir-ui): fix dangling underscore linting error
mlsamuelson Sep 18, 2024
329c60d
Merge pull request #1365 from ASU/fix-loggedin-token-webdir
mlsamuelson Sep 18, 2024
5b4a28c
chore(release): 3.6.1 [skip ci]
semantic-release-bot Sep 18, 2024
b6b3450
fix(app-webdir-ui): prevent SearchResultsList from fetching titles wh…
davidornelas11 Sep 20, 2024
569a084
Merge pull request #1366 from ASU/search-insufficient-param-error
davidornelas11 Sep 20, 2024
cf50a4c
chore(release): 3.6.2 [skip ci]
semantic-release-bot Sep 20, 2024
49e29fa
fix(unity-bootstrap-theme): fix padding in image background with cta
davidornelas11 Sep 23, 2024
2c27ca2
Merge branch 'dev' of github.com:ASU/asu-unity-stack into dev
mlsamuelson Sep 23, 2024
1928e92
Merge pull request #1367 from ASU/ws2-1749-cta
mlsamuelson Sep 23, 2024
bc9f1bb
chore(release): 1.14.2 [skip ci]
semantic-release-bot Sep 23, 2024
c77e682
chore(monorepo): Update git ignored files
scott-williams-az Sep 24, 2024
2527a58
feat(app-rfi): only display plan if rfiDisplay true
scott-williams-az Sep 25, 2024
3fa7546
Merge branch 'dev' of github.com:ASU/asu-unity-stack into dev
mlsamuelson Sep 25, 2024
9f1983a
feat(app-rfi): rfiDisplay false renders blank
scott-williams-az Sep 25, 2024
0dfe49c
feat(app-rfi): RFI form not displayed message
scott-williams-az Sep 25, 2024
2bd498a
need to typecheck false to make sure it is accurate
scott-williams-az Sep 25, 2024
e10564f
Merge pull request #1369 from ASU/ERFI-159
mlsamuelson Sep 25, 2024
48e4873
chore(release): 2.4.0 [skip ci]
semantic-release-bot Sep 25, 2024
6cf87ea
Merge pull request #1368 from ASU/dev-update-ignored
davidornelas11 Sep 26, 2024
80bb2f8
Merge branch 'dev' of github.com:ASU/asu-unity-stack into dev
mlsamuelson Sep 30, 2024
7bc6d32
fix(component-header): fix dataLayer firing on parent dropdown click
davidornelas11 Oct 1, 2024
342f825
fix(component-header): fix all dataLayer events in header
davidornelas11 Oct 2, 2024
faf982a
fix(component-header): fix logo onClick
davidornelas11 Oct 2, 2024
9634a97
fix(component-header): change onFocus to onClick for type definitions
davidornelas11 Oct 2, 2024
fb071d3
fix(component-header): remove duplicate props
davidornelas11 Oct 3, 2024
5e65efc
fix(component-header): missing data layer for logo when partner not used
mlsamuelson Oct 3, 2024
f6bfb69
Merge pull request #1372 from ASU/fix-header-datalayer
mlsamuelson Oct 3, 2024
e823416
chore(release): 2.3.3 [skip ci]
semantic-release-bot Oct 3, 2024
09274ae
fix(app-rfi): use submitCount to prevent dupes
mlsamuelson Oct 3, 2024
57855a8
fix(app-rfi): missing prop update
mlsamuelson Oct 3, 2024
2192fd9
fix(app-rfi): get prop type right
mlsamuelson Oct 3, 2024
24abdfd
fix(app-rfi): account for steps counting as submits
mlsamuelson Oct 4, 2024
39ece80
wip
scott-williams-az Oct 4, 2024
ad7bd44
fix(app-rfi): remove timeout for testing. add prop definition. lintin…
mlsamuelson Oct 4, 2024
edd7fab
Merge branch 'ERFI-submit-dupe-prevention' into ERFI-submit-dupe-prev…
mlsamuelson Oct 4, 2024
d21c31e
Merge pull request #1375 from ASU/ERFI-submit-dupe-prevention2
mlsamuelson Oct 4, 2024
e5373ed
Merge pull request #1374 from ASU/ERFI-submit-dupe-prevention
mlsamuelson Oct 4, 2024
2b14ff2
chore(release): 2.4.1 [skip ci]
semantic-release-bot Oct 4, 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
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
2 changes: 1 addition & 1 deletion .eslintrc.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
ecmaVersion: 13,
sourceType: "module",
},
plugins: ["react", "jest"],
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ASU Unity Design System (UDS)

## Table of Contents

- [ASU Unity Design System (UDS)](#asu-unity-design-system-uds)
- [Table of Contents](#table-of-contents)
- [Pre-requisites:](#pre-requisites)
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"css-minimizer-webpack-plugin": "^2.0.0",
"cz-conventional-changelog": "3.3.0",
"dompurify": "^2.2.7",
"eslint": "^7.24.0",
"eslint": "^8",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-preact": "^1.1.3",
"eslint-config-prettier": "^8.2.0",
Expand All @@ -92,8 +92,8 @@
"nunjucks": "^3.2.0",
"prettier": "^2.2.1",
"purgecss-webpack-plugin": "^4.0.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rimraf": "^3.0.2",
"semantic-release": "18.0.1",
"semantic-release-monorepo": "^7.0.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/app-degree-pages/examples/detail-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
<!-- *************************************************************** -->
<!-- Load React. -->
<script
src="https://unpkg.com/react@17/umd/react.production.min.js"
src="https://unpkg.com/react@18/umd/react.production.min.js"
crossorigin
></script>
<script
src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"
src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"
crossorigin
></script>
<!-- *************************************************************** -->
Expand Down
7 changes: 2 additions & 5 deletions packages/app-degree-pages/examples/listing-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@
<!-- *************************************************************** -->
<!-- Load React. -->
<script
src="https://unpkg.com/react@17/umd/react.production.min.js"
crossorigin
></script>
<script
src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js"
src="https://unpkg.com/[email protected]/umd/react.development.js"
crossorigin
></script>
<script crossorigin src="https://unpkg.com/[email protected]/umd/react-dom.development.js"></script>
<!-- *************************************************************** -->
<!-- include bundled scripts from packages -->
<script src="../dist/degreePages.umd.js"></script>
Expand Down
4 changes: 2 additions & 2 deletions packages/app-degree-pages/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"webpack-merge": "^5.8.0"
},
"peerDependencies": {
"react": ">= 16.14.0 < 18",
"react-dom": ">= 16.14.0 < 18"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"volta": {
"extends": "../../package.json"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
5 changes: 3 additions & 2 deletions packages/app-degree-pages/src/core/utils/init-page-degree.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable quote-props */
// @ts-check
import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";

import { ListingPage, DetailPage } from "../../components";

Expand All @@ -17,7 +17,8 @@ import { ListingPage, DetailPage } from "../../components";
*/
const RenderReact = (component, props, targetSelector) => {
const target = document.querySelector(targetSelector);
ReactDOM.render(React.createElement(component, props), target);
const root = createRoot(target);
root.render(React.createElement(component, props));
};

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/app-degree-pages/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ export default defineConfig({
},
},
},
minify: true,
minify: false,
},
esbuild: {
legalComments: 'none',
keepNames: false,
keepNames: true,
},
define: {
process: {env: {NODE_ENV: process.env.NODE_ENV}},
Expand Down
50 changes: 50 additions & 0 deletions packages/app-rfi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,53 @@
# [@asu/app-rfi-v2.4.1](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.4.0...@asu/app-rfi-v2.4.1) (2024-10-04)


### Bug Fixes

* **app-rfi:** account for steps counting as submits ([24abdfd](https://github.com/asu/asu-unity-stack/commit/24abdfd02e83d493ce935509ae152124263bb27a))
* **app-rfi:** get prop type right ([2192fd9](https://github.com/asu/asu-unity-stack/commit/2192fd95057792ce29e7ed930c1021d960cfab5b))
* **app-rfi:** missing prop update ([57855a8](https://github.com/asu/asu-unity-stack/commit/57855a8b45b7e31a230e0ffd1ed6251a6cce149c))
* **app-rfi:** remove timeout for testing. add prop definition. linting fixes ([ad7bd44](https://github.com/asu/asu-unity-stack/commit/ad7bd44ed0f49a4f7f78d638d897b1f0806cb7ca))
* **app-rfi:** use submitCount to prevent dupes ([09274ae](https://github.com/asu/asu-unity-stack/commit/09274ae2634c1758ddff094e9552aa420fb298a9))

# [@asu/app-rfi-v2.4.0](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.3.13...@asu/app-rfi-v2.4.0) (2024-09-25)


### Features

* **app-rfi:** only display plan if rfiDisplay true ([2527a58](https://github.com/asu/asu-unity-stack/commit/2527a58c7a2c9204044df013256d1a97321d6a65))
* **app-rfi:** RFI form not displayed message ([0dfe49c](https://github.com/asu/asu-unity-stack/commit/0dfe49cfabbb9ca07290a5ccef6c47cd656d0b20))
* **app-rfi:** rfiDisplay false renders blank ([9f1983a](https://github.com/asu/asu-unity-stack/commit/9f1983ad9db7dc62f94d8aa73e348b64490e9c79))

# [@asu/app-rfi-v2.3.13](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.3.12...@asu/app-rfi-v2.3.13) (2024-09-11)


### Bug Fixes

* **app-rfi:** fix undefined error when program optional ([6ac3cae](https://github.com/asu/asu-unity-stack/commit/6ac3cae9ba7979174542db1f8fa53f586b1a091a))

# [@asu/app-rfi-v2.3.12](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.3.11...@asu/app-rfi-v2.3.12) (2024-09-11)


### Bug Fixes

* **app-rfi:** campusProgram has choice update api if Campus changes ([083ad23](https://github.com/asu/asu-unity-stack/commit/083ad234e4291cb559f30d4aa6035c449c1e72ca))

# [@asu/app-rfi-v2.3.11](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.3.10...@asu/app-rfi-v2.3.11) (2024-09-09)


### Bug Fixes

* **app-rfi:** Entry dates should not have dups ([a223aa3](https://github.com/asu/asu-unity-stack/commit/a223aa32cb2bf2699a3e2fa8b738240a0091c3a3))
* **app-rfi:** programOfInterest required, unless optional prop ([ec1ca4c](https://github.com/asu/asu-unity-stack/commit/ec1ca4cdedaec84882cda5309addb857ff49a41c))

# [@asu/app-rfi-v2.3.10](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.3.9...@asu/app-rfi-v2.3.10) (2024-09-04)


### Bug Fixes

* **app-rfi:** Update Military to radio button ([311f872](https://github.com/asu/asu-unity-stack/commit/311f872c0ec809f33a89a8ec1cdb0a8a2720cc28))
* **app-rfi:** update plan title to use market description ([72be88b](https://github.com/asu/asu-unity-stack/commit/72be88bbc7d500a940e9480e75d57de3a46f5833))

# [@asu/app-rfi-v2.3.9](https://github.com/asu/asu-unity-stack/compare/@asu/app-rfi-v2.3.8...@asu/app-rfi-v2.3.9) (2024-07-10)


Expand Down
6 changes: 3 additions & 3 deletions packages/app-rfi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asu/app-rfi",
"version": "2.3.9",
"version": "2.4.1",
"description": "ASU Request For Information (RFI) form",
"main": "./dist/appRfi.cjs.js",
"browser": "./dist/appRfi.umd.js",
Expand Down Expand Up @@ -88,8 +88,8 @@
"yup-phone": "^1.2.19"
},
"peerDependencies": {
"react": ">= 16.14.0 < 18",
"react-dom": ">= 16.14.0 < 18"
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"volta": {
"extends": "../../package.json"
Expand Down
12 changes: 11 additions & 1 deletion packages/app-rfi/src/components/AsuRfi/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,17 @@ const AsuRfi = props => {
}

const rfiState = useRfiState(betterPropNames(props));
window["rfiState"] = rfiState;

const noRfiAvailable = `RFI form not displayed. ${programOfInterest} has rfiDisplay set to false or does not exist`;
useEffect(() => {
if (!rfiState.showForm) {
console.log(noRfiAvailable);
}
}, [rfiState.showForm]);
if (!rfiState.showForm) {
return <div style={{ display: "none" }}>{noRfiAvailable}</div>;
}

return (
<RfiContext.Provider
value={{
Expand Down
Loading