Skip to content

app/: the person's own page, and the team's sign-up email (sc-8900) - #66

Merged
ndbroadbent merged 5 commits into
mainfrom
laravel-me
Dec 2, 2026
Merged

ndbroadbent merged 5 commits into
mainfrom
laravel-me

Conversation

@ndbroadbent

Copy link
Copy Markdown
Member

Part of sc-8900 (the auth side of the Laravel Rust port), stacked on #65 (invitations).

  • GET /api/ui/me returns:

    • the user and their forge identities
    • their organizations, with their role in each
    • their pending invitations
    • staff
    • the heard-about question and its options
    • their email choices

    Two fields differ from today's:

  • PATCH /api/ui/me/notifications turns low-credit and receipt emails on or off.

  • PUT /api/ui/orgs/{org}/billing-email (admins; a member gets 403) sets the billing email. An empty value sends billing emails to the admins again.

  • POST /api/ui/me/heard-about stores the answer, or a skip. It's asked once: sign-up sets heard_about_pending.

  • The team's email about each sign-up (NotifySignups):

    • It runs every minute, and right after an answer.
    • It sends once the person has answered or skipped, or ten minutes after they signed up.
    • It goes through the outbox (Kind::NewSignup, plain text, Reply-To the person), so it gets the outbox's retries and delivery heartbeat. Its dedupe key new_signup:{id} means it's queued only once.
    • Its own heartbeat, VISUALCI_SIGNUPS_HEARTBEAT, fails when a sign-up has waited more than 40 minutes.
  • Migration: adds users.heard_about_pending/source/detail.

Tests: app/tests/me.rs (3 tests), plus unit tests for the answers and the email text. 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 #409 · 333 unchanged · no changes

This PR vs base: 22 changed, 2 added since #230, across 6 builds

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

@ndbroadbent
ndbroadbent force-pushed the laravel-me branch 2 times, most recently from 511051b to 612290f Compare December 2, 2026 15:28
@ndbroadbent
ndbroadbent force-pushed the laravel-invitations branch 2 times, most recently from 33a4379 to 8f5df99 Compare December 2, 2026 17:06
@ndbroadbent
ndbroadbent changed the base branch from laravel-invitations to main December 2, 2026 19:33
…their organizations and roles, pending invitations, email choices, the heard-about question), email choices, an organization's billing email (admins), 'How did you hear about VisualCI?'; the team's email about each new sign-up through the outbox (reply-to the person), once answered or ten minutes after sign-up, every minute with a heartbeat (VISUALCI_SIGNUPS_HEARTBEAT) that fails when one waits over 40 minutes
…Auth application with its ID and secret), as today's; staff who aren't in an organization can't change its billing email; the sign-ups heartbeat fails when the database can't answer
…ads, the open source pool) from the domain's credits::usage, as today's (#71); the sc-8900 gate
@ndbroadbent
ndbroadbent merged commit 7b1cb02 into main Dec 2, 2026
11 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-me branch December 2, 2026 22:50
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