Show failed tool update alert on My Tools dashboard page#79
Show failed tool update alert on My Tools dashboard page#79Power-Maverick merged 5 commits intomainfrom
Conversation
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/a322546a-2407-447c-bfa0-cf9af3c19780
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@copilot before showing the error check the version in the tool_updates it should be greater than or equal to the version in the tools table |
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/1c1aea27-e369-4886-bfdd-6301990932d5
Done in commit
Only failed updates with |
There was a problem hiding this comment.
Pull request overview
Adds visibility in the authenticated dashboard’s “My Tools” view for tool updates that failed validation, so tool owners can see failures and which tools are affected.
Changes:
/api/dashboardnow returnsfailedToolUpdatesfor the authenticated user, based ontool_updates.status = 'validation_failed'and package name matching.- Adds a version-based suppression check intended to hide stale failed updates (older than the tool’s current version).
- Dashboard “My Tools” view renders a red alert banner plus an inline “Update failed” badge per affected tool.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| app/api/dashboard/route.ts | Fetches failed validation updates for the user’s tools and returns them from the dashboard API; introduces a semver comparison helper. |
| app/(authenticated)/dashboard/page.tsx | Consumes failedToolUpdates and renders an alert banner + per-tool “Update failed” badge in the “My Tools” view. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Power-Maverick <36135520+Power-Maverick@users.noreply.github.com> Agent-Logs-Url: https://github.com/PowerPlatformToolBox/pptb-web/sessions/f0f92a86-1792-4fbd-a7a8-d72f7874a1d9
packagenameandversionto the toolsSELECTin dashboard APItool_updateswithstatus = 'validation_failed'for the user's toolscompareSemverhelper and filter failed updates to only showtool_updates.version >= tools.versionFailedToolUpdateinterface andfailedToolUpdatesstate in dashboard pagefailedUpdatePackageNamesas auseMemo-cachedSet<string>for O(1) lookups per row render (replaces O(n).find()on every row)⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.