Skip to content

Conversation

@jsotobroad
Copy link

Jira Ticket: https://broadworkbench.atlassian.net/browse/TSPS-671

Summary of changes:

Adding the ability to display teaspoons specific service alerts for the teaspoons portal

What

Why

  • terra service alerts either may not affect teaspoons users or if they do then they will probably need different messaging so this way we can separate the two.

Testing strategy

Currently still waiting for some beehive changes to be able to test out the full functionality (beehive will write the teaspoons-alerts.json file)

@jsotobroad jsotobroad requested a review from Copilot December 1, 2025 17:22
Copy link

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

This PR adds support for displaying teaspoons-specific service alerts by creating a separate alert endpoint for the teaspoons portal. This allows teaspoons users to see alerts with messaging tailored to their platform rather than generic Terra service alerts.

  • Added getTeaspoonsServiceAlerts() method to fetch teaspoons-specific alerts from a new JSON file
  • Modified getServiceAlerts() to conditionally fetch teaspoons or Terra alerts based on the current brand

Reviewed changes

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

File Description
src/libs/ajax/firecloud/FirecloudBucket.ts Added new method to fetch teaspoons-specific service alerts from teaspoons-alerts.json
src/alerts/service-alerts.ts Updated to conditionally fetch teaspoons or Terra alerts based on brand detection

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

Comment on lines +11 to +13
const serviceAlerts = isScientificServices()
? await FirecloudBucket().getTeaspoonsServiceAlerts()
: await FirecloudBucket().getServiceAlerts();
Copy link

Copilot AI Dec 1, 2025

Choose a reason for hiding this comment

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

The conditional logic for fetching different service alerts based on brand lacks test coverage. Consider adding tests to verify that the correct alert endpoint is called for both teaspoons (isScientificServices() === true) and Terra (isScientificServices() === false) brands.

Copilot uses AI. Check for mistakes.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 1, 2025

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