Add tool owner-initiated update workflow trigger#77
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/1c485f85-1c92-4aa8-b3b6-dc26b6b4f1f8
|
@copilot when the package validation fails then show a custom modal providing all the validation errors; do not fail the validation on first but collate all validation errors and warnings and show them to the user. Make sure to mention the name of the package. Also when a validation is invoked for a tool; disable invoking the update for any other tool - no parallel execution allowed for tool update trigger |
… triggers Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/59fc288e-2dfa-437e-b12c-c96334c5d6c4
Done in f3aa067. Here's what changed: Validation modal — instead of an No parallel execution — changed |
|
@copilot on the My Tools view add the current version of the tool, keep action View as is but move all other options under More like Trigger Update, Deprecate, Delete |
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/f77f96fa-7ef4-4ceb-8bd8-2c5866ac6f44
Done in d7645fd.
|
|
@copilot there seems to be z-index issue. see the screenshot |
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/35f1a7df-135a-4672-afe0-b9731c3dd784
Fixed in fba4efb. Two changes:
The "More ∨" text from the row below no longer overlaps the open menu. |
There was a problem hiding this comment.
Pull request overview
Adds an owner-initiated “Trigger Update” workflow from the authenticated dashboard, backed by a new API route that validates the tool’s npm package and dispatches the GitHub Actions update workflow.
Changes:
- Added
POST /api/tools/[id]/trigger-updateto validate npm package metadata and run the update workflow for a tool owned by the caller. - Extended
/api/dashboardtool selection to includepackagenameandversion. - Updated the authenticated dashboard “My Tools” table UI to show a Version column, add a “More” dropdown with “Trigger Update”, and display a validation error modal.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| app/api/tools/[id]/trigger-update/route.ts | New authenticated endpoint to trigger a tool update workflow after npm/package.json validation. |
| app/api/dashboard/route.ts | Adds packagename and version to the tools payload for dashboard rendering. |
| app/(authenticated)/dashboard/page.tsx | Adds “Trigger Update” flow + validation modal, Version column, and “More” dropdown with updated z-index/overflow behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ractVersionInfo call Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/5e532596-0c41-4905-a65e-fe41ad12b3c2



POST /api/tools/[id]/trigger-update/api/dashboardto includepackagenameandversionfields in tools responsev{version}badge,--if not set)position: fixedanchored viagetBoundingClientRect()so the panel renders in the viewport stacking context above all table rows; closes on scroll/resizeextractVersionInfonpm tarball download from trigger-update route; addversionto DB select query📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.