-
Notifications
You must be signed in to change notification settings - Fork 7
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
UITEN-233: Improve "Number of locations" on Campuses page #349
Conversation
…ings > Tenant > Libraries) when navigating away from page and returning
…ings > Tenant > Libraries) when navigating away from page and returning
…ings > Tenant > Libraries) when navigating away from page and returning
package.json
Outdated
@@ -181,6 +184,8 @@ | |||
"@babel/eslint-parser": "^7.19.1", | |||
"@babel/plugin-proposal-class-properties": "^7.12.1", | |||
"@babel/plugin-proposal-decorators": "^7.0.0", | |||
"@babel/plugin-proposal-private-methods": "^7.18.6", |
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.
Some -proposal-
plugins were renamed in stripes-webpack
to -transform-
because they became standard and will were renamed by babel
.
folio-org/stripes-webpack#114
Please rename the same plugins here and in babel.config.js
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.
@BogdanDenis done. Thanks for information
src/settings/LocationLibraries.js
Outdated
@@ -107,10 +110,14 @@ class LocationLibraries extends React.Component { | |||
|
|||
onChangeInstitution = (e) => { | |||
this.setState({ institutionId: e.target.value, campusId: null }); | |||
|
|||
sessionStorage.setItem('institutionIdLibraries', e.target.value); | |||
} | |||
|
|||
onChangeCampus = (e) => { | |||
this.setState({ campusId: e.target.value }); |
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.
e.target.value
can be moved to variable
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.
done
src/settings/LocationLibraries.js
Outdated
@@ -107,10 +110,14 @@ class LocationLibraries extends React.Component { | |||
|
|||
onChangeInstitution = (e) => { | |||
this.setState({ institutionId: e.target.value, campusId: null }); |
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.
e.target.value can be moved to variable
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.
done
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.
As per the ticket description, The # of libraries in the column should be a link to a pre-filtered view of Settings > Tenant > Locations > Libraries showing only those libraries in the campus.
I tried to pull your branch and bring up local host serving with snapshot. I do not see column with links.
Am I doing something differently? Could you share a screencast?
My bad, I linked the wrong ticket. Now it's clear. Please take a look again |
Thank you for updating the details.
Thank you for updating the details. |
Yes, we need to remember value in Libraries. |
Kudos, SonarCloud Quality Gate passed! |
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.
This PR re-introduced some node config that was deliberately expunged in the past. Please remove it again :)
NODEJS_VERSION: '14' | ||
NODEJS_VERSION: '16' |
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.
These kinds of change should be handled in a separate PR. If there was a bug in the LocationLibraries.js code and we had to revert it, we'd lose this change too.
"engines": { | ||
"node": ">=14.0.0" | ||
}, |
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.
engines
describes the runtime requirements of this module, but this is a web application, not a NodeJS application. This clause was deliberately removed. Please remove it again.
Remember value in Institutions and campuses dropdown (Settings > Tenant > Libraries) when navigating away from page and
Purpose
UITEN-233
Approach
TODOS and Open Questions
Learning
Pre-Merge Checklist
Before merging this PR, please go through the following list and take appropriate actions.
If there are breaking changes, please STOP and consider the following:
Ideally all of the PRs involved in breaking changes would be merged in the same day to avoid breaking the folio-testing environment. Communication is paramount if that is to be achieved, especially as the number of intermodule and inter-team dependencies increase.
While it's helpful for reviewers to help identify potential problems, ensuring that it's safe to merge is ultimately the responsibility of the PR assignee.