Skip to content

bug(platform): the All projects board reads "Archived" when the project in its URL is archived #4285

Closed

Description

@yannickmonney

Summary

The organization-wide board (…/projects/‹id›/tasks/board?projects=all) keeps a project id in its URL: the project it was opened from. When that project is archived, the header reads Projects / All projects · Archived. The badge describes the hidden path project, not the view: the aggregate itself excludes archived projects, and every other project on it is active.

// services/platform/app/routes/dashboard/$id/projects/$projectId.tsx:364–366 (main ffa15e019)
{project.archivedAt !== undefined && (
  <ProjectArchivedBadge className="shrink-0 px-1.5 py-px text-[10px]" />
)}

The header already knows the mode. allProjectsMode disables the non-Tasks tabs (:216–279), and the breadcrumb switcher shows All projects. The badge is the one header element it doesn't gate.

Source and environment

  • Source: origin/main ffa15e019c3b6453bfb82dc44231abef2b8be0de (2026-10-04), in a detached worktree with no local changes.
  • Stack: an isolated local stack started with bun scripts/dev.ts.
    • Vite runs on localhost:3761 and the backend on 127.0.0.1:3766.
    • The occurrence has its own PostgreSQL on 127.0.0.1:55380, and egress goes to a dead proxy.
  • Owner: TALE-358 local-qa occurrence 2026-10-04 12:15 Zurich, run cc9b955e-c408-48b1-83ea-7160d587febf.
  • Browser: headless Chromium 1208 (Playwright 1.58.2), 1280×900.
  • Data: a synthetic owner with three active projects (Atlas, Borealis, Cobalt), each holding tasks.

Reproduction

  1. Open Atlas's board, then the breadcrumb switcher › All projects. The URL becomes /projects/‹Atlas›/tasks/board?projects=all.

    • Control: the header reads Projects / All projects, with no badge.
  2. Archive Atlas: from another tab, or the same tab's Projects table (POST /api/app/projects/‹Atlas›/archive).

  3. Observed:

    • live, Atlas's cards leave the board, correctly;
    • the header now reads Projects / All projects · Archived;
    • after a reload it still does, and so does a new tab opened on that URL.

    Borealis's and Cobalt's cards stay, so every card on the view belongs to an active project.

By the same code path, opening All projects from a project that is already archived should show the badge too: the header renders the switcher for any project. This was read from source, not driven.

Impact

  • Severity: low, and cosmetic.
  • Effect: the only state label on an organization-wide view says it's archived. A reader can take the whole board, or their organization's projects, for archived.
  • Who sees it: bookmarks and shared links of the aggregate keep whichever project id they were made from, so the label can outlive any context that explains it.

Expected

In allProjectsMode, the header shows no project-specific state. The Archived badge appears only on a single project's own pages.

Acceptance checks

  1. Aggregate, path project archived: …/tasks/board?projects=all and …/tasks/list?projects=all show no Archived badge, live and after a reload.
  2. Single project, archived: an archived project's own pages still show the badge.
  3. A test pins both, for example in the $projectId route's tests.

Evidence and limits

  • Evidence kept locally (TALE-358 r20261004T1215):
    • scripts/w1b-aggregate-scoped.ts and scripts/w2-aggregate-archived-path.ts;
    • evidence/w1b/header-1-aggregate.png (no badge) and header-2-after-path-project-archived.png (badge);
    • evidence/w2-aggregate-archived-path.log.
  • Control: after the archive, the aggregate board still loads every active project's cards, in 8.3 s against the 7.9 s control (dev mode). Only the label is wrong.
  • Limits: desktop and the owner role only.

Activity

  1. yannickmonney commented on Oct 6, 2026

    @yannickmonney
    ContributorAuthor

    Post-merge spot check (TALE-358 Review A, run 9d9fef5f; static plus CI, no browser): fixed on main by #4416 (2f697d090).

    Acceptance check Result Evidence
    1. The aggregate board and list show no Archived badge when the path project is archived, live and after a reload PASS (unit level) $projectId.tsx:371–374 now renders the badge only when !allProjectsMode. allProjectsMode is ?projects=all on any child path (:184–185). The new it.each(['board', 'list']) case covers a live archive (rerender) and a fresh mount with an archived path project.
    2. An archived project's own pages keep the badge PASS (unit level) The new keeps the archived badge on a single-project %s cases cover board and list.
    3. A test pins both PASS app/routes/dashboard/$id/projects/$projectId.test.tsx (32 tests) ran uncached and passed in Checks run 37498643688, UI shard 2/4 (@tale/platform#test:ui cache MISS) on the merge commit.

    Not covered: a real-browser reload and cross-session archive delivery. That needs a browser stack, which is blocked until a reservation exists; tests/manual/reference/automation.md keeps both as manual.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions