Skip to content

app/: staff pages for sign-ups and emails (sc-8900) - #68

Closed
ndbroadbent wants to merge 7 commits into
mainfrom
laravel-staff
Closed

ndbroadbent wants to merge 7 commits into
mainfrom
laravel-staff

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Part of sc-8900 (the auth side of the Laravel Rust port). Stacked on #67.

Ports today's staff routes for sign-ups and emails. Anyone who isn't staff gets a 404.

  • GET /api/ui/staff/signups lists the latest 100 sign-ups, with each person's login and how they heard about VisualCI.
  • GET /api/ui/staff/emails shows every email VisualCI sends, rendered with sample data for Acme, plus failed emails nobody has retried or dismissed yet.
  • POST /api/ui/staff/emails/{id}/resolve takes retry or dismiss. A retry starts the email's attempts again and queues delivery.

/api/ui/staff/feedback is not ported here: it lists the feedback that support_send records, which is the features side's.

Tests: app/tests/staff.rs. The whole app suite passes on docspring-dev, and clippy is clean.

@visualci-com

visualci-com Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

VisualCI

docspring/visualci · build #330 · 331 unchanged · no changes

This PR vs base: nothing since #236, across 5 builds

Updated as builds change. Agents can review with VisualCI's MCP tools.

@ndbroadbent
ndbroadbent force-pushed the laravel-staff branch 2 times, most recently from 7f5fb09 to 5e60f50 Compare December 2, 2026 14:32
@ndbroadbent
ndbroadbent force-pushed the laravel-staff branch 2 times, most recently from 59a0628 to 2586e4b Compare December 2, 2026 15:28
@ndbroadbent
ndbroadbent force-pushed the laravel-device branch 2 times, most recently from 30c8086 to fd6a9da Compare December 2, 2026 16:01
@ndbroadbent
ndbroadbent force-pushed the laravel-staff branch 2 times, most recently from acaeda0 to fb2ec24 Compare December 2, 2026 16:06
…vice/code and /device/token for the CLI (device code stored hashed, ten minutes, one token once, claimed in one statement), GET/POST /api/ui/device/{code} for the person to approve or deny (codes read as typed); a security notice when the CLI signs in
…isualCI command-line sign-in' label, where and when it was asked for and 'only approve this if you just ran visualci login', with the name the CLI sent as a detail; at most ten codes per address in ten minutes (429); expired codes deleted daily (VISUALCI_DEVICE_PRUNE_HEARTBEAT); a poll within the interval gets slow_down; the code is claimed and its token made in one transaction; the client's address comes through TRUSTED_PROXIES
…ign-ups with how they heard about VisualCI, every email rendered with sample data, failed emails retried or dismissed; a 404 for anyone who isn't staff
@ndbroadbent

Copy link
Copy Markdown
Member Author

Included in #87.

@ndbroadbent ndbroadbent closed this Dec 3, 2026
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