Skip to content

Comments

feat: add ras banner (#4674)#4677

Merged
MillenniumFalconMechanic merged 2 commits intomainfrom
fran/4674-ras-banner
Feb 19, 2026
Merged

feat: add ras banner (#4674)#4677
MillenniumFalconMechanic merged 2 commits intomainfrom
fran/4674-ras-banner

Conversation

@frano-m
Copy link
Contributor

@frano-m frano-m commented Feb 19, 2026

Closes #4674.

This pull request introduces a new banner component to inform users about the NIH Researcher Authentication Service (RAS) integration and updates the announcements configuration to display this information. The main changes are grouped by feature addition and configuration update:

RAS Banner Feature:

  • Added the RAS banner component in app/components/anvil/banner/RAS/ras.tsx to communicate the requirement for users to link their NIH authorization to Terra via Login.gov or ID.me credentials, including helpful links for more information.

Announcements Configuration Update:

  • Modified site-config/anvil-cmg/dev/announcements/announcements.ts to include the new RAS banner as a general announcement in the Announcements component, ensuring users see the RAS integration notice.
image

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 a new NIH RAS integration notice banner and wires it into the AnVIL CMG dev announcements so users see the message.

Changes:

  • Added a new RAS banner component with explanatory text and external links.
  • Updated the dev announcements config to render the RAS banner as a general announcement.

Reviewed changes

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

File Description
site-config/anvil-cmg/dev/announcements/announcements.ts Registers the RAS banner in the Announcements component props.
app/components/anvil/banner/RAS/ras.tsx Implements the new RAS banner UI and outbound links.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@MillenniumFalconMechanic MillenniumFalconMechanic left a comment

Choose a reason for hiding this comment

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

LGTM, thanks F!

frano-m and others added 2 commits February 19, 2026 09:15
Convert announcements config to .tsx and use proper JSX element syntax
instead of invoking the component as a function, which is an anti-pattern
that breaks if hooks are added later.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@MillenniumFalconMechanic MillenniumFalconMechanic merged commit cd71aff into main Feb 19, 2026
3 checks passed
@MillenniumFalconMechanic MillenniumFalconMechanic deleted the fran/4674-ras-banner branch February 19, 2026 17:28
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.

[AnVIL DX] Add RAS banner

3 participants