Repository navigation
GH-2620 Dashboard - #2681
GH-2620 Dashboard#2681
Conversation
There was a problem hiding this comment.
Pull request overview
This PR implements the GH-2620 “Dashboard” work by expanding the manager UI with new Dashboard sub-views (Overview/Statistics/Diagnostics) and adding backend APIs to support failure inspection and paginated “resolved entries” statistics. It also upgrades the frontend JSONForms vanilla renderer package to the official @jsonforms/vue-vanilla and refactors several views to use a shared header component.
Changes:
- Add backend support for: (1) recorded failures with occurrences and (2) paginated resolved-entry statistics; update metrics/status surfaces to use total-failure counts.
- Introduce new frontend dashboard views (Statistics + Diagnostics) and supporting UI components (ViewHeader, FailuresList), plus client endpoints.
- Upgrade JSONForms-related dependencies and adjust custom renderers/styles accordingly.
Reviewed changes
Copilot reviewed 41 out of 42 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| reposilite-plugins/prometheus-plugin/src/main/kotlin/com/reposilite/plugin/prometheus/metrics/ReposiliteMetrics.kt | Prometheus failure counter now reflects total occurrences via getFailuresCount() |
| reposilite-frontend/vite.config.js | Ignore Gradle/build directories in Vite dev watch to reduce churn |
| reposilite-frontend/src/store/configuration.js | Switch JSONForms vanilla renderer package; normalize schema descriptions from HTML-ish text into plain text |
| reposilite-frontend/src/store/client.js | Add status/statistics client methods (failures/health/unique/resolved entries) |
| reposilite-frontend/src/pages/IndexPage.vue | Add new manager tabs (Statistics/Diagnostics) and update tab wiring/props |
| reposilite-frontend/src/components/util/ViewHeader.vue | New shared view header component for consistent page titles/notes/actions |
| reposilite-frontend/src/components/tokens/TokensView.vue | Use ViewHeader; remove placeholder “usage metric” UI and refine responsive layout |
| reposilite-frontend/src/components/settings/SettingsView.vue | Use ViewHeader; restructure actions and heavily restyle JSONForms layout to new card/tabs UX |
| reposilite-frontend/src/components/settings/FactoryResetModal.vue | Fix modal alignment typo and modernize modal/button styles/slots |
| reposilite-frontend/src/components/renderers/OptionalRenderer.vue | Switch vanilla renderer import; add optional panel styling |
| reposilite-frontend/src/components/renderers/OneOfRenderer.vue | Switch vanilla renderer import; improve tabs/panels styling and dialog background |
| reposilite-frontend/src/components/renderers/ObjectRenderer.vue | Switch vanilla renderer import |
| reposilite-frontend/src/components/renderers/ConstantRenderer.vue | Switch vanilla renderer import |
| reposilite-frontend/src/components/renderers/ArrayListRenderer.vue | Switch vanilla renderer import; improve array list layout; pass rootSchema to createDefaultValue |
| reposilite-frontend/src/components/renderers/ArrayListElement.vue | Switch vanilla renderer import |
| reposilite-frontend/src/components/renderers/AllOfRenderer.vue | Switch vanilla renderer import |
| reposilite-frontend/src/components/dashboard/StatusSnapshotsChart.vue | Retarget chart polling to Diagnostics tab and remove debug output/title |
| reposilite-frontend/src/components/dashboard/StatisticsView.vue | New Statistics dashboard view (resolved path leaderboard + KPIs + chart) |
| reposilite-frontend/src/components/dashboard/ResolvedRequestsChart.vue | Remove debug logging; minor heading styling change |
| reposilite-frontend/src/components/dashboard/InstanceStatusCharts.vue | Remove legacy dashboard composite component (replaced by new DashboardView) |
| reposilite-frontend/src/components/dashboard/FailuresList.vue | New failure list UI with trace expand/copy and GitHub issue reporting link |
| reposilite-frontend/src/components/dashboard/DiagnosticsView.vue | New Diagnostics view (health/status snapshots/failures) |
| reposilite-frontend/src/components/dashboard/DashboardView.vue | New dashboard overview (status/resources/traffic/repos/tokens/diagnostics quick links) |
| reposilite-frontend/src/components/console/ConsoleView.vue | Use ViewHeader and improve mobile padding |
| reposilite-frontend/package.json | Upgrade JSONForms packages to 3.8.0 and replace @dzikoysk/vue-vanilla with @jsonforms/vue-vanilla |
| reposilite-frontend/package-lock.json | Lockfile updates reflecting JSONForms upgrade and dependency changes |
| reposilite-frontend/fake-api/fake-reposilite-backend.js | Expand fake backend to support new endpoints, richer failures model, stats paging, and configurable port |
| reposilite-backend/src/test/kotlin/com/reposilite/status/FailureFacadeTest.kt | Update/extend tests for recorded failures model and deduplicated occurrence counting |
| reposilite-backend/src/test/kotlin/com/reposilite/statistics/StatisticsFacadeTest.kt | Add tests for paginated resolved-entry search across/all repos |
| reposilite-backend/src/main/kotlin/com/reposilite/status/StatusFacade.kt | Status now reports total failures via getFailuresCount() |
| reposilite-backend/src/main/kotlin/com/reposilite/status/infrastructure/StatusEndpoints.kt | Add manager-only /api/status/failures endpoint returning recorded failures |
| reposilite-backend/src/main/kotlin/com/reposilite/status/FailuresCommand.kt | CLI failures command now prints unique vs total and includes occurrence counts |
| reposilite-backend/src/main/kotlin/com/reposilite/status/FailureFacade.kt | Replace set-of-traces with cached recorded failures + dedup signature + total count API |
| reposilite-backend/src/main/kotlin/com/reposilite/status/api/StatusApi.kt | Add RecordedFailure DTO |
| reposilite-backend/src/main/kotlin/com/reposilite/statistics/StatisticsRepository.kt | Extend repository interface with findResolvedEntries(...) |
| reposilite-backend/src/main/kotlin/com/reposilite/statistics/StatisticsFacade.kt | Add findResolvedEntries(...) pagination logic and validation |
| reposilite-backend/src/main/kotlin/com/reposilite/statistics/infrastructure/StatisticsEndpoint.kt | Add /api/statistics/resolved/entries endpoint; fix phrase endpoint to respect {limit} |
| reposilite-backend/src/main/kotlin/com/reposilite/statistics/infrastructure/SqlStatisticsRepository.kt | Implement paginated resolved-entry query (group/sort/page) |
| reposilite-backend/src/main/kotlin/com/reposilite/statistics/infrastructure/InMemoryStatisticsRepository.kt | Implement in-memory findResolvedEntries(...) for non-SQL contexts |
| reposilite-backend/src/main/kotlin/com/reposilite/statistics/api/ResolvedApi.kt | Add resolved-entries paging DTOs (ResolvedEntriesResponse, ResolvedEntriesPage, ResolvedStatisticsEntry) |
| reposilite-backend/src/integration/kotlin/com/reposilite/status/StatusIntegrationTest.kt | Add integration test for the new failures endpoint |
| reposilite-backend/src/integration/kotlin/com/reposilite/statistics/StatisticsIntegrationTest.kt | Add integration test for the new resolved-entries paging endpoint |
Files not reviewed (1)
- reposilite-frontend/package-lock.json: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 57 out of 59 changed files in this pull request and generated no new comments.
Files not reviewed (1)
- reposilite-frontend/package-lock.json: Generated file
Suppressed comments (3)
reposilite-frontend/src/components/dashboard/FailuresList.vue:57
navigator.clipboard.writeText(...)can reject (non-secure context, missing permissions, unsupported browser). Right now that failure is unhandled, so the UI will silently do nothing. Handle the rejection so users get feedback and errors don’t surface as unhandled promise rejections.
reposilite-frontend/src/components/dashboard/StatusSnapshotsChart.vue:43- The refresh loop only re-schedules itself after a successful response. A single failed request will stop updates for the rest of the session. Consider scheduling the next
setTimeoutinfinally(or retrying incatch) so the chart keeps updating after transient errors.
reposilite-frontend/src/components/dashboard/DashboardView.vue:39 requestStatus()only schedules the next poll on success. If the request fails once (network hiccup / backend restart), polling stops permanently until the tab is re-opened. Schedule the retry infinally(or incatch) so the dashboard self-recovers from transient errors.
…-2620-dashboard # Conflicts: # reposilite-frontend/package-lock.json
No description provided.