Skip to content

feat(web): hide tabs below the status they need - #319

Merged
iheitlager merged 5 commits into
mainfrom
feat/public-menu
Nov 14, 2026
Merged

iheitlager merged 5 commits into
mainfrom
feat/public-menu

Conversation

@iheitlager

Copy link
Copy Markdown
Member

Summary

  • The public menu shows only statistics, lookup, about and api. Explore needs observer, live and submit contributor, analyse locally partner.
  • A tab below its status is hidden and its URL opens statistics, as the admin tab already did without a role. The server still enforces every status; the menu only follows it.
  • ADR-016 §6 records the menu rule; spec 030 Requirement 7 gets a scenario and a browser test.

Changes

Changed

  • web/index.html: explore, live, submit and analyse start hidden.
  • web/app.js: TAB_TIER map and tabAllowed, used by route and whoami.
  • scripts/browser_test.py: test_public_sees_a_short_menu.
  • .openspec/specs/030-browser-client/spec.md, .openspec/architecture/decisions/016-phase3-rust-on-db-core.md: docs.

Changelog

  • The web menu hides explore, live, submit and analyse locally below the status each needs; the public sees statistics, lookup, about and api.

Review Findings

No prior /review run in this session.

Testing

  • node --check web/app.js, python3 -m py_compile scripts/browser_test.py
  • make check-assurance: tested 100% (min 95%), 0 dead links
  • Browser test test_public_sees_a_short_menu runs in CI (Obscura), not locally
  • Manual check of the menu for observer, contributor and partner tokens

Known gap: a link inside a lookup result that points into explore sends a public user to statistics instead.

Related Issues

Related to no issue.


🤖 Generated with Claude Code

iheitlager and others added 5 commits November 14, 2026 14:36
The public sees statistics, lookup, about and api only. Explore needs
observer, live and submit contributor, analyse partner; a tab below its
status is hidden in the menu and its hash opens the statistics, as the
admin tab already did without a role.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@iheitlager
iheitlager merged commit e70b1ee into main Nov 14, 2026
6 checks passed
@iheitlager
iheitlager deleted the feat/public-menu branch November 14, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant