83 Commits
Author SHA1 Message Date
lukaszraczylo 5518d02599 fix(ui): size the last table column for the full sort button bleed
The sort button is 1rem wider than its cell but shifts left only by the cell padding. The last column now pads by the difference, so no table scrolls sideways.
2026-11-24 02:23:05 +00:00
lukaszraczylo 547f41677a fix(ui): stop the package tables scrolling sideways by a few pixels
The library sort button bleeds 0.5rem past its cell. The workbench
pack pads cells by 0.4rem, so the last column overflowed the table
and showed a horizontal scrollbar.
2026-11-24 02:19:45 +00:00
lukaszraczylo 7b8ff467b8 fix(ui): load each overview panel once
The download trend, leaderboards and scanner health sat inside the
stats loading branch. A stats refresh unmounted and remounted them,
so every panel fetched its data twice on each visit.
2026-11-24 02:19:44 +00:00
lukaszraczylo 80160eeb56 refactor(ui): remove the unused package list store functions
The pages load rows through lib/packageRows, so fetchPackages,
fetchPackagePage, fetchRecentPackages and their state had no callers.
2026-11-24 02:06:18 +00:00
lukaszraczylo a685b71c7f fix(ui): rank most requested packages by the stored download counts
The ranking read in-memory analytics, so it was empty after every restart
while the Downloads chart and the package pages read the database. It now
sums the stored counts per package, counts a Go module once by its zip,
and says which ranking is kept across restarts and which is not.
2026-11-24 02:06:14 +00:00
lukaszraczylo 798fadb4bb fix(ui): load package details from the single-package endpoint
The details page filtered the grouped package list to find its row. It
now requests /api/packages/{registry}/{name}/{version}, which also
resolves Go modules and PyPI release versions.
2026-11-24 02:06:13 +00:00
lukaszraczylo 4b2ec7c45c fix(ui): show stored downloads when analytics hold no record
The Downloads tab hid the stored count when analytics had no record since
the last restart, and it requested a Go file key per version. It now
always shows the stored count, labels the in-memory totals as counted
since the restart, and asks for a Go module by its path. A failed
request is reported instead of a 404 being swallowed.
2026-11-24 02:06:06 +00:00
lukaszraczylo 8b4d4746df feat(ui): show advisory aliases and offer a bypass for each id
The vulnerability table lists the other ids of a finding. The expanded
row links to the bypass form for the id and for each alias.
2026-11-24 01:39:54 +00:00
lukaszraczylo 64793f9c7e feat(ui): page, filter and sort packages on the server
The packages and security pages ask for one page of rows instead of the whole cache. Search is debounced, and the filters and sort stay in the URL.
2026-11-24 01:33:30 +00:00
lukaszraczylo ad8295455d fix(ui): clearer hold reasons, aligned details and chart states
Render the hold reason as a sentence, pluralise counts, give the details grid a fixed rhythm, use distinct registry colours, label the plotted series, and show a note for a single day of history.
2026-11-24 01:27:22 +00:00
lukaszraczylo 671bb0625b feat(ui): redesign the dashboard as a package checkpoint
Add overview, packages with quick view, package detail tabs, a merged security page, insights, system and restyled bypasses. Old vulnerable and blocked routes redirect to the matching security tab.
2026-11-24 01:13:09 +00:00
lukaszraczylo 45aa4bcace fix(app): serve the dashboard for client-side routes
A reload or shared link such as /packages?verdict=held returned 404 because the static handler had no fallback. Page loads for paths outside the API and proxy prefixes now receive index.html.
2026-11-24 01:13:01 +00:00
lukaszraczylo 933b5a75c0 fix(ui): read nested stats from stats_update events
The server sends stats_update as {stats, timestamp}, but the realtime store read the counters from the top level of the payload. About 30 seconds after load, the first broadcast replaced the polled stats with undefined values, and the dashboard tiles showed 0. The store now unwraps the nested stats object.
2026-11-23 16:30:22 +00:00
lukaszraczylo 2ada975065 fix(ui): name trend series by the packages they count
The severity series now read "Packages with <severity> vulnerabilities",
which matches the severity tiles and the snapshot counts.
2026-11-23 15:12:15 +00:00
lukaszraczylo 1512230ab3 feat(stats): record daily snapshots and serve a trend API
The aggregation worker now writes one row per UTC day to
stats_snapshots. The row holds package count, total size, vulnerable
package count, the four severity counts and the blocked count. The
write is an idempotent upsert per day.

A migration backfills package counts from cached_at and deleted_at as
the number of packages alive at the end of each day. Vulnerability
fields backfill from scan_results timestamps and stay empty before the
first scan. GET /api/stats/trend returns daily points for 30day, 90day
or 1year with a constant number of queries.

The Stats page shows a chart of cached and vulnerable packages with a
period selector and severity toggles. The Dashboard shows a compact
version. The Lean model gains theorems for the backfill and upsert.
2026-11-23 14:55:19 +00:00
lukaszraczylo bd9d686383 feat(vulnerable): filter vulnerable packages by severity
The four severity tiles on the vulnerable packages page are now toggle
buttons with aria-pressed. Each tile shows "Filter on" while active.
A tile selects packages with at least one vulnerability of that
severity. Several tiles combine with OR. A second click clears the
tile, and a Clear filters control clears all of them.

The selection lives in the URL (?severity=critical,high), so it
survives a reload and works as a link. An empty result shows the
library empty state with a clear action.

GET /api/packages accepts a severity list. The page uses it to load
only vulnerable packages instead of the whole cache. The filter is a
subquery on the latest scan result, so the statement count does not
grow with the number of rows. An unknown severity returns 400.
2026-11-23 14:54:44 +00:00
lukaszraczylo ac4f39322c feat(ui): page, search and filter packages on the server
The package list loaded every package, then grouped and paged in the
browser. The dashboard did the same to show ten recent rows.

- PackageList asks the server for one page of 25 groups. The registry
  filter and a debounced search box (300 ms) change the request. A newer
  request replaces the answer of an older one.
- Dashboard loads a page of 10 groups sorted by cached_at, newest first,
  and runs its stats, recent list and chart requests in parallel.
- Stats already used /api/stats only and does not change.
- The store keeps the loading flag on until the last overlapping request
  settles. Deleting a package no longer reloads the full list, and the
  list reloads its own page instead.
- VulnerablePackages keeps the unpaginated call because it filters on
  scan results in the browser.
2026-11-23 13:26:50 +00:00
lukaszraczylo 9a44683fbd feat(ui): note the idle eviction window on the stats page
The stats page now reads idle_ttl from the stats API. It shows
"Cached items not requested for 7 days are removed." in an info alert.
The note stays hidden when idle eviction is off.
2026-11-23 12:50:00 +00:00
lukaszraczylo 99c885cd88 fix(ui): stack package rows on phones and drop pager edge buttons
At 320px the package name shared a row with the registry badge, size and downloads, so it had about 90px and scoped names broke mid-word. Below sm the name now takes the full width with the meta row underneath. The pager's first and last buttons wrapped onto a second line inside the card; the page list already reaches the first and last pages, so the edge buttons are off.
2026-11-23 12:29:40 +00:00
lukaszraczylo c022824d2b fix(ui): swap native key prompt for a dialog; add favicon 2026-11-23 03:18:43 +00:00
lukaszraczylo bde9eebf3d fix(ui): show the PyPI release version in every version display 2026-11-23 03:18:42 +00:00
github-actions[bot]andGitHub f65c0cc1f3 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-23 03:17:22 +00:00
lukaszraczylo 1c9b04fba4 fix(pypi): key rows on the file name and show the release version
A PyPI row keys on the file name so each file of a release keeps its own cache and storage key. A new release_version column holds the real version and the API and dashboard show it. Startup deletes old sidecar rows with their storage and fills the release version on old file rows, keeping their storage keys. Startup also drops an empty download_events_old table. This replaces the local-version suffix.
2026-11-23 02:36:53 +00:00
lukaszraczylo 81e3f9c74f fix(frontend): show load failures as errors and add a not-found route
A failed request left the store error set while the view kept its own
empty-list branch, so the page said nothing was cached. Every view now
checks loading, then error, then content, and the retry button refetches.
Unknown paths render a NotFound page with a link to the dashboard. The brand
shares the sidebar left edge, and a stopped socket reads Live updates paused
in a neutral tone; the client already retries with backoff.
2026-11-23 02:29:14 +00:00
lukaszraczylo 24dfb6eace chore(frontend): remove the hand-written ui kit and unused dependencies
The library provides every component, so src/components/ui, the cn helper,
the badge class helpers, tailwind.config.js and components.json go. Drop clsx,
class-variance-authority, tailwind-merge, tailwindcss-animate, lucide,
@vueuse/core, marked, reka-ui, the typography plugin and the Font Awesome
web font.
2026-11-23 02:29:14 +00:00
lukaszraczylo a5fd828410 feat(frontend): rebuild the bypass panel with library forms
Field, Input, Textarea, Checkbox, SegmentedControl and Dialog replace the
hand-written form. The status filter now applies the expired choice, which
the old click handler compared instead of assigning. Results show as toasts
and fetch failures as an ErrorState. Add a strict-mode smoke test per view.
2026-11-23 02:29:14 +00:00
lukaszraczylo 54bc809f66 feat(frontend): rebuild package, detail and vulnerable views
Package groups use Accordion with Table or DataTable in the cards layout
below sm. Delete confirmations use ConfirmDialog and results go to the
Toaster. Vulnerability descriptions render through Markdown instead of
v-html, and references use the library Link.
2026-11-23 02:29:13 +00:00
lukaszraczylo 041c6e8012 feat(frontend): rebuild the dashboard and stats on library components
KpiTile and StatGroup carry the totals, BarChart draws download activity,
ActivityFeed lists live events and DataTable lists recent packages and
registries. Loading, empty and error states use the library states. Severity
badges are StatusBadge with the tones critical danger, high warning, moderate
info and low neutral, and always print the word.
2026-11-23 02:29:13 +00:00
lukaszraczylo 0a0286df41 feat(frontend): add the perfect-design theme, shell and helpers
Install @perfect-design/ui 0.3.10 with the workbench style pack, IBM Plex
faces and the inline theme boot script. The app shell uses AppHeader, AppShell
and SidebarNav. Shared formatters, severity tones and icon data replace the
per-view copies. A test checks that main.css scans only the library
directories the app imports.
2026-11-23 02:29:13 +00:00
github-actions[bot]andGitHub 00a2d2f6ed chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-22 03:15:48 +00:00
github-actions[bot]andGitHub 379fd53c73 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-21 03:14:29 +00:00
github-actions[bot]andGitHub 6a37d56e33 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-19 03:16:42 +00:00
github-actions[bot]andGitHub 57cbdcdb67 chore(deps): update dependency @vue/test-utils to v2.6.0
Automated dependency update. All tests passed.
2026-11-17 03:15:17 +00:00
github-actions[bot]andGitHub 951f501ff6 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-16 03:14:45 +00:00
github-actions[bot]andGitHub c57c4ccfb0 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-15 03:13:55 +00:00
github-actions[bot]andGitHub 138edbede7 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-14 03:49:04 +00:00
github-actions[bot]andGitHub 3ae90aa0ee chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-13 03:14:52 +00:00
github-actions[bot]andGitHub d71371674d chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-12 03:17:59 +00:00
github-actions[bot]andGitHub cc0f56f6db chore(deps): update dependency jsdom to v31
Automated dependency update. All tests passed.
2026-11-10 03:17:34 +00:00
github-actions[bot]andGitHub 046e074be5 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-09 03:25:01 +00:00
github-actions[bot]andGitHub c38916aebb chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-08 03:17:55 +00:00
github-actions[bot]andGitHub 819465e83f chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-05 03:15:22 +00:00
github-actions[bot]andGitHub 5107fd728f chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-11-01 03:24:49 +00:00
github-actions[bot]andGitHub 24106f82be chore(deps): update dependency minimatch@<9.0.9 to v11
Automated dependency update. All tests passed.
2026-10-31 03:23:46 +00:00
github-actions[bot]andGitHub 00582d3203 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-30 03:21:11 +00:00
github-actions[bot]andGitHub dd66f8e84a chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-29 03:21:08 +00:00
github-actions[bot]andGitHub 61d633dfeb chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-24 03:29:51 +00:00
github-actions[bot]andGitHub ebedc37ffb chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-18 03:32:06 +00:00
github-actions[bot]andGitHub 1c70a4f643 chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-17 03:31:13 +00:00
github-actions[bot]andGitHub afb61661ab chore(deps): update dependencies
Automated dependency update. All tests passed.
2026-10-16 03:28:43 +00:00