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

PORTALS-2651 #1547

Merged
merged 3 commits into from
Feb 5, 2025
Merged

PORTALS-2651 #1547

merged 3 commits into from
Feb 5, 2025

Conversation

nickgros
Copy link
Collaborator

@nickgros nickgros commented Feb 3, 2025

Remove bootstrap 4 and react-bootstrap

- Remove Bootstrap CSS and dependencies
- Remove Downshift (no longer used)
- Remove some missed bootstrap classes
@@ -201,7 +201,6 @@ export const EntityUpload = forwardRef(function EntityUpload(
/>
{/* File input */}
<input
className="form-control"
type="file"
id="filesToUpload"
name="file upload"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These inputs with form-control are not visible, so removing the class doesn't matter

Comment on lines +723 to 731
// TODO: Remove * ?
* a.ignoreLink:not(.btn, .MuiLink-root, .MuiButton-root) {
@include SRC_Mixins.ignoreLink;
&:visited,
&:active,
&:link {
@include SRC_Mixins.ignoreLink;
&:visited,
&:active,
&:link {
@include SRC_Mixins.ignoreLink;
}
}
}
Copy link
Collaborator Author

@nickgros nickgros Feb 5, 2025

Choose a reason for hiding this comment

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

This selector touches a lot, and isn't bootstrap-specific, so I left it, even though I want to remove it.

- react-bootstrap usage was removed
- react-app-polyfill is no longer used (we do not use CRA and synapse-react-client is not a standalone web application)
- prop-types is unused, and we use TypeScript
"classnames": "^2.5.1",
"dagre": "^0.8.5",
"dayjs": "^1.11.10",
"downshift": "^6.1.12",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

was previously used in UserSearchBox (v1), is no longer used

@@ -88,11 +86,8 @@
"plotly.js": "2.28.0",
"plotly.js-basic-dist": "^2.30.0",
"pluralize": "^8.0.0",
"prop-types": "^15.8.1",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not used, plus not needed since we use TypeScript

"qrcode": "^1.5.3",
"raf": "^3.4.1",
"react-app-polyfill": "^3.0.0",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not used since synapse-react-client used create-react-app (a while ago!)

@nickgros nickgros marked this pull request as ready for review February 5, 2025 16:42
headline1: 'p',
headline2: 'p',
headline3: 'p',
headline1: 'h1',
Copy link
Member

Choose a reason for hiding this comment

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

I think using ranked headings is an accessibility win as well

@nickgros nickgros merged commit bec7bf8 into Sage-Bionetworks:main Feb 5, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants