Show the sources of a project #22

Merged
Gilles merged 6 commits from feat/17-sources into master 2026-10-29 06:56:28 +00:00
Owner

Closes #17

Frontend for argus/backend#28 (PR argus/backend#32). Stacked on #21 (base feat/16-group-access).

Changes

  • Types: RefKind gains "source"; Report.last_seen_at (optional) and a lastSeen() helper (latest of uploaded_at / last_seen_at, compared as dates).
  • SourceCards.vue: on a project page, source refs become one card per source — name (links to the ref page), "vu il y a …" (exact date as tooltip), a status chip per stream (report type / custom name / variant, latest only) and up to four scalar metrics. Other refs (branches, commits, PRs) stay in the existing table; a project with only sources shows only cards.
  • formatAgo() in utils/date.ts.
  • Report card and history: "inchangé jusqu'au …" for de-duplicated reports.
  • Rule editor's ref-kind list gains "Source" (needed by the widened type).
  • Tests: src/__tests__/Sources.spec.ts.

Checks

pnpm run test:unit (88 passed), vue-tsc -b, pnpm run build.

🤖 Generated with Claude Code

https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA

Closes #17 Frontend for argus/backend#28 (PR argus/backend#32). **Stacked on #21** (base `feat/16-group-access`). ## Changes - Types: `RefKind` gains `"source"`; `Report.last_seen_at` (optional) and a `lastSeen()` helper (latest of `uploaded_at` / `last_seen_at`, compared as dates). - `SourceCards.vue`: on a project page, source refs become one card per source — name (links to the ref page), "vu il y a …" (exact date as tooltip), a status chip per stream (report type / custom name / variant, latest only) and up to four scalar metrics. Other refs (branches, commits, PRs) stay in the existing table; a project with only sources shows only cards. - `formatAgo()` in `utils/date.ts`. - Report card and history: "inchangé jusqu'au …" for de-duplicated reports. - Rule editor's ref-kind list gains "Source" (needed by the widened type). - Tests: `src/__tests__/Sources.spec.ts`. ## Checks `pnpm run test:unit` (88 passed), `vue-tsc -b`, `pnpm run build`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
feature: show the sources of a project
All checks were successful
ci / unit (pull_request) Successful in 1m30s
ci / publish (pull_request) Has been skipped
8a6b7b2460
- RefKind gains "source", Report gains last_seen_at (and lastSeen()).
- A project page shows its source refs as cards (SourceCards.vue): one
  per source, "vu il y a ..." from the latest reception, a chip per
  stream and its main scalar metrics; other refs stay in the table.
- Report cards and their history say until when a de-duplicated report
  stayed unchanged.

Closes #17

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014BSmBtGWeFBD9z4mYm9SjA
Author
Owner
<!-- argus-link-bot:argus/frontend --> 📊 [Rapports Argus pour cette PR](https://reports.stationmyr.net/argus/frontend/pr/22)
Merge branch 'feat/16-group-access' into feat/17-sources
Some checks failed
ci / unit (pull_request) Has been cancelled
ci / publish (pull_request) Has been cancelled
31ce015b1b
Gilles changed target branch from feat/16-group-access to master 2026-10-28 23:04:20 +00:00
Merge remote-tracking branch 'origin/master' into feat/17-sources
All checks were successful
ci / unit (pull_request) Successful in 1m32s
ci / publish (pull_request) Has been skipped
2d87d75eeb
Gilles scheduled this pull request to auto merge when all checks succeed 2026-10-28 23:05:59 +00:00
Gilles merged commit 074d71c21b into master 2026-10-29 06:56:28 +00:00
Gilles referenced this pull request from a commit 2026-10-29 06:56:29 +00:00
Gilles deleted branch feat/17-sources 2026-10-29 06:56:29 +00:00
Sign in to join this conversation.
No description provided.