Skip to content

app/: the last ui.rs web routes, and a development sign-in that can't exist in production (sc-8900) - #105

Merged
ndbroadbent merged 5 commits into
mainfrom
laravel-ui-shells
Dec 3, 2026
Merged

ndbroadbent merged 5 commits into
mainfrom
laravel-ui-shells

Conversation

@ndbroadbent

@ndbroadbent ndbroadbent commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

The last web routes from today's server's ui.rs that the app's pages call (sc-8900; the route-by-route checklist is sc-8900's comment), and the development sign-in.

  • GET /api/ui/orgs/{org}: the organization's page for a member. It returns:

    • its projects, each with its newest build;
    • usage, in all and by project;
    • the last 50 charges;
    • its members;
    • for admins, the billing email and pending invitations.

    Self-managed GitLab instances stay empty and hidden until sc-8634.

  • GET /api/ui/org-exists/{slug}, for the new-organization form.

  • POST /api/ui/requests: a request from the web, recorded as feedback of kind request and emailed to the team.

  • GET /api/ui/staff/feedback, for staff.

  • POST /auth/dev-login {email}, for development and CI's screenshots, with DEV_LOGIN=true. /auth/providers reports whether it's on. It runs only where APP_ENV is local or testing:

    • anywhere else, a boot with DEV_LOGIN=true refuses to start, and the route isn't registered (a POST there is a 405: only GET /auth/{forge} matches the path);
    • an unset APP_ENV is production (the framework's default), and so is a misspelt one such as prod.

    tests/hosts.rs covers both. infra#2 sets APP_ENV=production in the one config map that web, worker, scheduler and the migrate job all load, and sets no DEV_LOGIN.

Tests: tests/orgs.rs, tests/staff.rs, tests/sign_in.rs (dev-login on and off), tests/hosts.rs (production).

@ndbroadbent
ndbroadbent force-pushed the laravel-ui-shells branch 2 times, most recently from a4e42b7 to 2bd0fb8 Compare December 3, 2026 02:29
…} (the organization's page: projects with their newest build, usage and usage by project, the last 50 charges, members, and for admins the billing email and invitations; GitLab instances empty until sc-8634), GET /api/ui/org-exists/{slug}, POST /api/ui/requests (feedback of kind request, emailed to the team), GET /api/ui/staff/feedback; and POST /auth/dev-login for development and CI's screenshots (DEV_LOGIN=true, never in production, reported by /auth/providers)
…ction boot with DEV_LOGIN refuses to start, and its route isn't registered there (sc-8900)
…ting; a misspelt environment counts as production (sc-8900)
@ndbroadbent
ndbroadbent merged commit 64c08c9 into main Dec 3, 2026
12 checks passed
@ndbroadbent
ndbroadbent deleted the laravel-ui-shells branch December 3, 2026 03:01
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