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

URO-208: orcidlink main view #210

Merged
merged 21 commits into from
May 20, 2024
Merged

URO-208: orcidlink main view #210

merged 21 commits into from
May 20, 2024

Conversation

eapearson
Copy link
Contributor

Populates the initial view for orcidlink based on whether the user is linked or not.

This set of changes adds improved orcidlink service api support, displays orcid link and orcid profile summary information in the initial view, for linked users, and a call to action for unlinked users.

This set of changes is about 600 LOC without tests, 1200 with tests. It could be pared down further, but this minimizes the changes without losing core functionality.

This view is incomplete, as the full set of changes to implement this view would be about 1200 LOC. I trimmed out a lot of content, such as help, some stub handling of button events, support for developer and manager detection and ui support. These changes have been made and are ready to layer on top of these changes once they are merged in.

One dependency was added - material icons. They seem to be required for integration into some MUI components, such as the Accordion.

Copy link
Collaborator

@dauglyon dauglyon left a comment

Choose a reason for hiding this comment

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

Looking good, most of the comments I left are pretty minor, but I had some questions. Feel free to poke me for re-review or if you want to go over anything on a call.

src/common/api/orcidlinkAPI.ts Outdated Show resolved Hide resolved
src/common/api/orcidlinkAPI.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
src/common/api/utils/common.ts Outdated Show resolved Hide resolved
src/features/orcidlink/common/Scopes.tsx Outdated Show resolved Hide resolved
src/features/orcidlink/constants.ts Show resolved Hide resolved
src/features/orcidlink/images.ts Show resolved Hide resolved
src/features/orcidlink/utils.ts Outdated Show resolved Hide resolved
src/features/orcidlink/common/misc.tsx Outdated Show resolved Hide resolved
src/features/orcidlink/HomeUnlinked.tsx Outdated Show resolved Hide resolved
had followed the documentation which uses mui icons (and the docs have warnings and workarounds for fa icons,which may not be relevant here), but the fa icon does indeed work.  Also overrides the default orientation and rotation, which matches the other usage in the codebase which itself matches the kbase-ui usage which matches the Narrative which uses an augmented bootstrap 3 "accordion". Notable, though that BS5 Accordions work the same as MUI (BS 3 and 4 do not use icon at all.)

Also added the recommended aria- attributes.
this was really a note-to-self; it is also easily discoverable via VSC go-to-definition which is also more accurate vis-a-vis the version being used
rely upon adjustments to card content itself - e.g. remove margin and padding from top and bottom. But that adjustment depends on what is embedded in the content area, so leave to individual usages.
@eapearson eapearson requested a review from dauglyon May 17, 2024 17:18
Copy link
Collaborator

@dauglyon dauglyon left a comment

Choose a reason for hiding this comment

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

Resolved the resolved, that all looks good. However, still a few lingering comments from the previous review.

package-lock.json Outdated Show resolved Hide resolved
src/features/orcidlink/common/misc.tsx Outdated Show resolved Hide resolved
@eapearson eapearson requested a review from dauglyon May 17, 2024 22:18
Copy link
Collaborator

@dauglyon dauglyon left a comment

Choose a reason for hiding this comment

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

there are still 8 unresolved comments, are they showing up for you?

@eapearson
Copy link
Contributor Author

there are still 8 unresolved comments, are they showing up for you?

Okay, now I see them. There were collapsed down together and not displayed.

@eapearson eapearson requested a review from dauglyon May 20, 2024 20:02
Copy link
Collaborator

@dauglyon dauglyon left a comment

Choose a reason for hiding this comment

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

Looks good! Approved and good to merge when you're ready

@eapearson eapearson merged commit 8d8864b into main May 20, 2024
4 checks passed
@eapearson eapearson deleted the URO-208 branch May 20, 2024 22:35
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.

3 participants