feat(portal): test suite UI with async runs and result history - #253
Merged
07prajwal2000 merged 1 commit intoAug 16, 2026
Merged
Conversation
Adds the test-suite workbench the portal was missing (Fluxify-rest#227): a sibling route at /$projectId/canvas/$routeId/test-suites with a tab switcher in the canvas topbar, so suites are reachable without leaving the route. - Suite CRUD, mock request (path params read from the route's own segments), assertions and per-suite overrides. - Assertion target/operator rules mirror the server superRefine, so an invalid pair is never offered and a missing expected value blocks the save instead of returning a 400. - Runs are queued and polled; suite rows render as they settle, with timeout and error runs explaining themselves rather than showing an empty result. - Response body renders by content type: Monaco for text, native elements for media, a download for binary. - New DELETE /v1/:projectId/test-suites/route/:routeId/runs clears a route's run history; the portal had no way to do that. - CodeViewer (read-only Monaco) added to packages/components rather than pulling monaco into the portal. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 task
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.
Closes #227
Adds the test suite UI to
apps/portal. The legacyapps/webimplementation was used only as a behaviour reference — nothing there is ported or modified.Navigation
New sibling route
/$projectId/canvas/$routeId/test-suites. The route topbar is shared with the canvas viaRouteWorkbenchTabs, so the route switcher stays put and a Canvas | Tests segmented control switches between the two views. Suite count, Run all and New suite live in that same topbar.What's in it
:segments, query params, headers, and a JSON body gated on the method actually taking one.<img>/<video>/<audio>for media, a download card for binary.Server change
DELETE /v1/:projectId/test-suites/route/:routeId/runsis new — the Clear history button needs it. It's the only change outsideapps/portalandpackages/components, and it wasn't in the issue's scope.packages/componentsgains a read-onlyCodeViewer; monaco already lives there and portal doesn't depend on it.Checks
superRefine).bun run lintclean for portal, server and packages/components.