Repository navigation
app/: the web app's project, build, snapshot, review and comment pages (sc-8900) - #106
Merged
Merged
Conversation
ndbroadbent
added a commit
that referenced
this pull request
Dec 3, 2026
…rst changed page of text snapshots (for line counts) and checks thumbnails in one query; a slug taken in a race answers today's words ("that name is taken" in the web app, "Entity already exists" over MCP); a page position a snapshot doesn't have is a 404; the settings page and MCP update_project link repositories through forge::link::link_repository
ndbroadbent
force-pushed
the
laravel-ui-pages
branch
from
December 3, 2026 02:31
96bac82 to
0bd35c7
Compare
…s (sc-8900): show_project, create_project and update_project, show_build with its reviews, show_snapshot, review, page_action, the pull request changeset and the comment routes, with today's JSON, role checks (members, read-only members, public projects) and error bodies
…rst changed page of text snapshots (for line counts) and checks thumbnails in one query; a slug taken in a race answers today's words ("that name is taken" in the web app, "Entity already exists" over MCP); a page position a snapshot doesn't have is a 404; the settings page and MCP update_project link repositories through forge::link::link_repository
ndbroadbent
force-pushed
the
laravel-ui-pages
branch
from
December 3, 2026 03:33
0bd35c7 to
3e5cd13
Compare
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.
The web app's core JSON endpoints, ported from
server/src/controllers/ui.rstoapp/src/http/ui/(sc-8900, a cutover blocker). Same JSON, role checks, status codes and error bodies as today. Based on main.Routes
projects.rs):GET /api/ui/orgs/{org}/projects/{project}: settings, newest 100 builds, tokens for members, role, member, public, repository_seen_in_ci, has_documents, gallery.POST /api/ui/orgs/{org}/projects: admins.PATCH /api/ui/orgs/{org}/projects/{project}: admins, ondomain::projects::change_settings; a changedrepository_urllinks (or unlinks) throughforge::link::link_repositoryfirst, with today's 400s.builds.rs):GET …/builds/{number}: snapshots in review order with approved_elsewhere, local baseline notes (members only), flaky, matches and on_main_unreviewed, thumbnails and text line counts; the reviews with who, client, agent and note; can_review.GET …/builds/{number}/snapshots/{pid}: the comparison (oragainst=previous), withcontextand its threads.POST …/builds/{number}/review, withsnapshot_idsoronly.POST …/snapshots/{pid}/pages/{position}/{action}.GET …/pulls/{number}.comments.rs):POST …/snapshots/{pid}/comments(a new thread or a reply);PATCHandDELETE …/comments/{id};POST …/threads/{id}/resolve.Rules, as today
read, without tokens, local baseline notes or where local builds ran. Anything else is a 404, so private projects stay invisible.{"error": "forbidden", "description": "only … of the organization can …"}.{"error": "Bad Request", "description": …}, and a taken project slug today's "that name is taken".Differences and follow-ups
forge::link::link_repository(from app/: linking a project to its repository, and checks and pull request comments on the forge (sc-8900) #97) in the settings page and in MCP update_project, after the admin check. MCP's still refuses a project token first.gitlab_webhookshows its URL withsecret: null.GET /api/ui/orgs/{org}.Performance and edge cases
pages::of_many_without_text). Thumbnails' blobs are checked in one chunked query.e.to_string()of Loco's EntityAlreadyExists), never a 500.domain::projects::createnow says why it refused (Refused::InvalidSlugorRefused::Taken).page_actionon a position the snapshot doesn't have is a 404, as today. An existing page that can't take the action is its 400.Tests
tests/ui.rsports server/tests/requests' assertions for these routes:demo.rs: anyone reads the demo, an outsider can't review, and a private project is a 404 signed out and for a signed-in outsider.public_projects.rs: only an admin makes a project public, and only with a public repository; outsiders see builds and the pull request page without laptop details, and can't review.access.rs: a read-only member looks but can't change settings (today's 403 text), review or comment.move_linkmoves it.tests/mcp.rs:update_project_links_a_repository_as_the_forge_allows, a new golden directory: a project token refused, a writer refused, a maintainer links.Gates on agents-build-2, with a throwaway Postgres 17 and RustFS, removed after: fmt, clippy (
--locked) and the full app suite (--locked) all exited 0.