Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@maximiliani
Copy link
Member

closes #17

Signed-off-by: Maximilian Inckmann <maximilian.inckmann@kit.edu>
@maximiliani maximiliani linked an issue Jun 16, 2025 that may be closed by this pull request
10 tasks
@maximiliani maximiliani requested a review from Copilot June 16, 2025 16:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds support for rendering Research Organization Registry (ROR) identifiers by introducing a new RORType renderer, updating the renderer registry, and providing a Storybook example.

  • Register RORType in the renderer utilities with updated priorities.
  • Implement RORType in rendererModules to fetch and display ROR data.
  • Add a Storybook story for ROR entries and tweak existing story CSS classes.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

File Description
packages/stencil-library/src/utils/utils.ts Imported and registered RORType, bumped other renderer priorities
packages/stencil-library/src/utils/GenericIdentifierType.ts Added @returns tag to init method documentation
packages/stencil-library/src/rendererModules/RORType.tsx New RORType implementation for fetching/displaying ROR data
packages/stencil-library/src/components/pid-component/pid-component.stories.ts Added ROR story and reordered CSS classes in a <p> tag
Comments suppressed due to low confidence (1)

packages/stencil-library/src/rendererModules/RORType.tsx:99

  • String does not have an isEmpty() method; consider checking !link.type or link.type.trim().length === 0.
if (link.type && link.type.isEmpty()) {

packages/stencil-library/src/utils/utils.ts Show resolved Hide resolved
packages/stencil-library/src/rendererModules/RORType.tsx Outdated Show resolved Hide resolved
packages/stencil-library/src/rendererModules/RORType.tsx Outdated Show resolved Hide resolved
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@maximiliani maximiliani merged commit 83100dc into main Jun 16, 2025
6 checks passed
@maximiliani maximiliani deleted the 17-create-ror-component branch June 16, 2025 16:39
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.

Create ROR Component

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.