oliver-zehentleitner / maity
web: private projects carry a lock after their name (tabs, … menu, project header, #/all)
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:
- 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. - 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.privateor an equivalent existing key. Add new keys in all languages only if no existing one fits. - 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. - Public projects get no symbol, because public is the default.
- Read visibility from the data the dashboard already has (
public_pageis 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
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 fromGET /meprojects[](docs/api.md §5.1;hub/src/maity_hub/routes/me.py_human_projects). That list carriesid, slug, full_name, name, state, trust, role, open_requests, logoand nopublic_page. - Only the open project has it (
ctx.project.public_page, app.js:1072), andagents-page.jsgets it from the create answer. - So the project header could show the lock today. The tabs, the "…" menu and the cards on
#/allcould 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 humanprojects[]entry ofGET /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.jsonand the fixtureme.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 isonbut archived, hidden by moderation, or whose owner is suspended (§16.9 "What is never served"). My suggestion: the lock followspublic_pagealone. 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.