feat(apollo-vertex): add save as solution test button and create-test hook [AGVSOL-3355]#864
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Dependency License Review
License distribution
Excluded packages
|
There was a problem hiding this comment.
Pull request overview
Adds UI and mutation plumbing to support creating (“save as”) a solution test from a subject ID within the apollo-vertex solution-tests registry, including a new presentational button and a new useCreateTest hook wired through the actions/RPC layer.
Changes:
- Added
SaveAsTestButtoncomponent and exported it from the solution-tests barrel. - Introduced
useCreateTestmutation hook and wired a newcreateTestaction through the actions interface and RPC path constants. - Added new English i18n strings for the button label/state.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| apps/apollo-vertex/registry/solution-tests/use-solution-tests.ts | Adds useCreateTest mutation hook using injected actions. |
| apps/apollo-vertex/registry/solution-tests/save-as-test-button.tsx | New presentational “save as test” button with icon state and i18n. |
| apps/apollo-vertex/registry/solution-tests/index.ts | Exports the new button and the new hook from the package barrel. |
| apps/apollo-vertex/registry/solution-tests/hooks.ts | Re-exports useCreateTest from hooks barrel. |
| apps/apollo-vertex/registry/solution-tests/create-actions.ts | Implements createTest action calling the new automation-functions RPC path. |
| apps/apollo-vertex/registry/solution-tests/constants.ts | Adds createTest RPC path constant. |
| apps/apollo-vertex/registry/solution-tests/actions.ts | Extends actions interface with createTest. |
| apps/apollo-vertex/registry.json | Registers the new UI file for the registry mapping. |
| apps/apollo-vertex/locales/en.json | Adds new English translation keys used by the button. |
📊 Coverage + size by packagePer-package bundle size on this PR (no JS/TS source changes detected under
"Coverage" is each package's own |
2055e65 to
8fea595
Compare
8fea595 to
2c086c5
Compare
2c086c5 to
d8bb593
Compare
d8bb593 to
b7683d3
Compare
b7683d3 to
df196dc
Compare
df196dc to
7f46710
Compare
7f46710 to
a3bbb52
Compare
Adds a presentational
SaveAsTestButtonto the solution-tests registry component along with auseCreateTestmutation hook, wired end-to-end through the actions interface,create-actionsimplementation, thecreateTestRPC path, and thehooks/indexbarrel exports. The button uses thesize-4icon shorthand consistent with the rest of the directory, and two new i18n keys (save_as_solution_test,saved_as_solution_test) were added toen.json. The consumer view is responsible for connecting the button to the hook.👨 Generated with Kluijt Code