Add Recent Activations widget and standardize myAvailability wording - #423
Merged
Conversation
…ing (#421) Lets a team creator load the last 5 myAvailability activations for the assigned-to unit on the Beacon Team Create page, expand one to see who's responded, and click a name straight into the team - no manual Refresh by default, only fetches when a human asks, and refreshes automatically on Assigned To changes after that first load. Also standardises on "responses" over "responders" in the myAvailability UI text in jobs/view.js and teams/create.js.
#422) Previously the fieldset was hidden entirely outside production Beacon since the myAvailability Lambdas have no train/dev data. Now it always renders so the feature is discoverable, but shows a disabled Refresh button and an explanatory message on train/dev instead of fetching. Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new "Recent myAvailability Activation Requests" fieldset to the team creation page, allowing team creators to view recent activations for the assigned unit and quickly add responders from those activations directly into the team. It also includes supporting UI and logic, updates terminology for clarity, and adds associated styling.
New Feature: Recent Activations Fieldset
src/injectscripts/teams/create.js) that displays recent activations for the assigned HQ/unit. Users can expand activations to see categorized responder lists and add individuals to the team with one click. This feature is only enabled in production and integrates with external APIs for data.Styling Enhancements
src/styles/teams.create.css) to provide visual structure and cues for the recent activations UI, including groupings, status colors, and interaction states.src/contentscripts/teams/create.js).Terminology Updates
src/injectscripts/jobs/view.js). [1] [2]Miscellaneous
src/injectscripts/teams/create.jsto include new dependencies.