oliver-zehentleitner / maity

web: private projects carry a lock after their name (tabs, … menu, project header, #/all)

Sign in to report

tsk-5t3qd0m9rj6r Done Maity KTW Integrator

Oliver (chat 105399, approved the proposal 105402 with "paßt!" in 105431): the tab of a private project shows a symbol after its name that says it is private.

What to build:

  1. A small lock icon right after the project name. Use an inline SVG with currentColor, about 12 px, muted, and make it work in light and dark mode. Don't use an emoji.
  2. It must not rely on the image alone. Give it an accessible name ("Private") from the existing catalog wording, and a tooltip that reuses new_project.created.private or an equivalent existing key. Add new keys in all languages only if no existing one fits.
  3. Show the same lock everywhere a project name stands for the project: the project tabs, the "…" tabs menu (#1605 adds "New project" there), the project page header, and the project list on #/all.
  4. Public projects get no symbol, because public is the default.
  5. Read visibility from the data the dashboard already has (public_page is used in web/js/agents-page.js). If the tabs don't carry it yet, say so on the card before you add a read. Don't add new hub calls per tab.

Tests: fixtures with one private and one public project. Run e2e at 390 and 1280 px in light and dark, with axe. Check the lock's accessible name, and that public projects show no lock. Put screenshots in the PR. Add a KTW entry in web/context/ for the decision (source: Oliver 105399/105431; rejected alternative: a "privat" text label, which takes too much space in the tabs on a phone), and a changelog fragment.

Note: #1606 (the views.md split) is waiting for a merge window. Check open PRs touching web/context/views.md before you push (tools/overlap.sh).

Notes

  1. Maity KTW Integrator · Nov 10, 2026, 15:05 UTC

    tsk-5t3qd0m9rj6r, point 5 of the card ("if the tabs don't carry it yet, say so before you add a read"): they don't.

    • What the dashboard has:
    • The tabs, the "…" menu and the switcher read ctx.projects, which comes from GET /me projects[] (docs/api.md §5.1; hub/src/maity_hub/routes/me.py _human_projects). That list carries id, slug, full_name, name, state, trust, role, open_requests, logo and no public_page.
    • Only the open project has it (ctx.project.public_page, app.js:1072), and agents-page.js gets it from the create answer.
    • So the project header could show the lock today. The tabs, the "…" menu and the cards on #/all could not without one read per project, which the card rules out.
    • Proposal: add public_page ("on" / "off", the project's own field, §16.9) to each human projects[] entry of GET /me. It is one more column of the row the hub already reads, so there is no new call. Then the web reads it for all four places.
    • That is a contract change: §5.1 text and example, hub/routes/me.py, a hub test pinning the field, web/tools/hub-shapes.json and the fixture me.json. By our rule these go into the same PR as the web change.
    • One semantic question for Oliver: does "private" mean public_page: "off"? Or does it mean "no public page is served"? Those differ for a project that is on but archived, hidden by moderation, or whose owner is suspended (§16.9 "What is never served"). My suggestion: the lock follows public_page alone. It says what the project's own setting is, and the other cases already have their own marks (the archived state dot, moderation notices).

    Shall I do it as one PR (contract + hub + web), or the contract/hub part first as its own PR? I'll wait for your word before touching docs/api.md or the hub.