Skip to content

Spotlight: msg and calloff commands, help modal - #563

Merged
OSPFNeighbour merged 2 commits into
master-devfrom
feat/spotlight-commands
Oct 16, 2026
Merged

OSPFNeighbour merged 2 commits into
master-devfrom
feat/spotlight-commands

Conversation

@OSPFNeighbour

Copy link
Copy Markdown
Collaborator

Adds two Spotlight commands and a help window that lists every command.

What's new

  • msg <team> opens the Send SMS dialog for that team. This is the same dialog as the team's SMS button.
  • calloff <team> <incident> (in either order) calls a team off an incident. Only taskings that can be called off (Tasked or En route) are offered, and Spotlight says why when there's nothing to call off. Enter opens a Call off dialog where the reason is required. It submits through the tasking's own updateTaskingStatus, so the request is the same PUT …/Tasking/{id}/Calloff the status dropdown sends.
  • Help: the ? button in the search box, or ? typed into an empty search, opens a Spotlight commands window. It lists every command, what search covers and the keyboard shortcuts. Clicking a command goes back to Spotlight with it typed in, and Esc goes back with an empty search. The list is one array, SPOTLIGHT_COMMANDS, which also drives command autocomplete.

Fix

  • radio <incident> (incident typed before the team) threw an error because job was used before it was declared. radio and calloff now share one team-and-incident parser.

Screenshots

Spotlight commands

msg

calloff

Call off dialog

Docs

  • LAD guide: new msg and calloff sections and a note about the help window in spotlight.md, with cross-links from the Send SMS section and the Tasking Status section.
  • What's New: "Spotlight SMS, call off and help" (16 October 2026).
  • scripts/lad-docs/capture.mjs: new shots (spotlight-msg, spotlight-calloff, spotlight-calloff-dialog, spotlight-help). The existing spotlight shot now types its query; fill() didn't trigger the search.

Testing

  • npm run lint and npm test pass (991 tests). There are new unit tests for findCallOffTasking.
  • Checked in the LAD harness with fake data:
    • msg opens Send SMS with the team's members.
    • calloff works in both orders, lists only taskings that can be called off, and shows a message for a team with none. Submitting sent the expected Calloff payload with the reason.
    • The help window opens, returns to Spotlight and starts a command when one is clicked, at desktop and phone widths.
  • Not tested against live Beacon.

🤖 Generated with Claude Code

OSPFNeighbour and others added 2 commits October 16, 2026 11:04
- msg <team> opens the Send SMS dialog for a team.
- calloff <team> <incident> (either order) offers only taskings that can
  be called off (Tasked/En route) and opens a Call off dialog that needs a
  reason; it submits through the tasking's own status update.
- radio and calloff share one team+incident parser; fixes radio throwing
  when the incident is typed before the team.
- ? button (or ? in an empty search) opens a Spotlight commands modal
  listing every command, search fields and keys; clicking a command
  returns to Spotlight with it typed in.
- LAD guide, What's New and lad-docs screenshot shots for the above.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…commands

# Conflicts:
#	docs/whats-new/index.md
@OSPFNeighbour
OSPFNeighbour merged commit bc96c6a into master-dev Oct 16, 2026
2 checks passed
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.

1 participant