Skip to content

Conversation

carylwyatt
Copy link
Member

@carylwyatt carylwyatt commented Jun 26, 2025

It looks like a lot changed here, but I mostly re-arranged markup that already existed and changed a little bit of CSS/bootstrap utilities. I also added new stories! See the Chromatic build below for more on those.

This is staged on dev-3. All of these views can be reviewed in storybook (some of us have RS access turned on, none of us will log in as a regular member... unless you want to pull this down locally and use switch_auth).

Views that need testing:

} else if (loggedIn && role) {
HT.login_status.institutionName = 'Moosylvania State';
HT.login_status.institutionCode = 'state';
HT.login_status.r = { [role]: hasActivatedRole };
Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the PingCallbackDecorator to include the r property of HT.login_status to mock role status for storybook.

decorators: [
() => ({
Component: PingCallbackDecorator,
props: { loggedIn: true, role: 'resourceSharing', hasActivatedRole: false },
Copy link
Member Author

@carylwyatt carylwyatt Jun 30, 2025

Choose a reason for hiding this comment

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

...and here is where the props for the role/status are passed in to PingCallbackDecorator for this story (and the other stories that have a role, whether activated or not).

@carylwyatt carylwyatt marked this pull request as ready for review July 3, 2025 13:15
@carylwyatt carylwyatt requested a review from moseshll July 3, 2025 13:16
@carylwyatt
Copy link
Member Author

Note to self: don't forget to build pt with the firebird updates and deploy babel!

Copy link

@moseshll moseshll left a comment

Choose a reason for hiding this comment

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

I think the UI changes look great. I noted an odd thing on Firefox and Brave: in neither could I tab from "My Collections" to "Switch Role" -- focus jumps straight to "Sign Out". Don't know if that's a show-stopper so I'll just APPROVE noting potential head-scratchery.

(I should note that I was testing on dev-3)

@carylwyatt
Copy link
Member Author

@moseshll Thanks for catching that! I'll get that fixed up and then merge/deploy.

@carylwyatt
Copy link
Member Author

@moseshll I had merged ETT-324 and ETT-347 on dev-3 so Gayathri and Ange could see the whole thing in action, and some weird rebase overwrite caused the dropdown tabbing issue. I staged ETT-324 on its own on dev-3 and had no issues tabbing to "Switch Role." When I rebase ETT-347, I'll double check this isn't an issue on that branch. Thanks again for catching that!

@carylwyatt carylwyatt merged commit 9e27b43 into main Jul 7, 2025
6 checks passed
@carylwyatt carylwyatt deleted the ETT-324-dropdown branch July 7, 2025 18:16
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