Skip to content

feat: surface introduced-but-unapproved users as pending (#625) - #637

Merged
tkuhn merged 2 commits into
masterfrom
feat/625-pending-account-visibility
Aug 25, 2026
Merged

feat: surface introduced-but-unapproved users as pending (#625)#637
tkuhn merged 2 commits into
masterfrom
feat/625-pending-account-visibility

Conversation

@tkuhn

@tkuhn tkuhn commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Closes #625. Companion to knowledgepixels/nanopub-query#195 (npa:PendingAccountState materialization, deployed): introduced-but-unapproved users were invisible — their self-signed participation roles showed up nowhere, and view displays they published for their own profile never rendered.

Changes

  • get-view-displays supersededRA3ekD-2utY7… (source: docs/queries/get-view-displays-pending-arm.trig): the authority gate's own-page arm additionally accepts npa:PendingAccountState rows, so an unapproved user's own page shows the view displays they signed themselves. Display-only — the pending class is distinct from npa:AccountState, so the admin/maintainer arm and governed-version resolution keep requiring approved accounts. Validated byte-identical to the previous head across approved resources.
  • list-space-observers supersededRARcL1s1A1Fi… (source: docs/queries/list-space-observers-ref-v7.trig): headerless flag column is now three-state — empty = approved-validated, ⏳ = pending-validated (npa:trustStatus npa:seen on the materialized instantiation), ⚠️ = not validated at all. Verified live on ko2025lecture9 (3 pending participants flagged) plus 8 other spaces with unchanged results.
  • Pending-approval notice: third title-bar message box for users with an introduction but no approved key — asking them to share their introduction so an approved user can approve it. Users holding an approved key elsewhere are excluded (the About-page recommendations cover that case).

Both superseding queries are published; the QueryApiAccess constants pin the new heads, so this is safe to deploy any time.

Verified

  • Live: the three pending self-signed participants of spaces/knowledgepixels/ko2025lecture9 appear ⏳-flagged in the published observers query; approved members unchanged.
  • Regression: both new queries byte-identical (modulo group_concat ordering) to their predecessors on approved resources/spaces.
  • Still pending render-verification on a deployed instance: the ⏳ column styling, the banner, and a pending user's own-page view display (no pending user has published one live yet; that path was validated on nanopub-query's local test instance).

🤖 Generated with Claude Code

tkuhn and others added 2 commits August 24, 2026 21:06
Users who had published an introduction but were not trust-approved yet
were invisible: their self-signed participation roles showed up nowhere,
and view displays they published for their own profile page never
rendered. nanopub-query now materializes such accounts as
npa:PendingAccountState rows and validates their observer-tier
self-assignments, stamped npa:trustStatus npa:seen (nanopub-query#195).
This picks that up on the nanodash side:

- get-view-displays superseded (RA3ekD-2, source in docs/queries/): the
  authority gate's own-page arm additionally accepts pending-account
  rows, so an unapproved user's own page shows the view displays they
  signed themselves. Display-only: the pending class is distinct from
  npa:AccountState, so the admin/maintainer arm and governed-version
  resolution keep requiring approved accounts. Validated byte-identical
  to the previous version across approved resources.

- list-space-observers superseded (RARcL1s1, source in docs/queries/):
  the headerless flag column becomes three-state — empty for
  approved-validated, ⏳ for pending-validated, ⚠️ for not validated at
  all — so self-signed-up members awaiting approval are listed but
  visibly distinct.

- A third title-bar message box tells users with an introduction but no
  approved key that their account is pending and their contributions
  show as pending (⏳) until an approved user approves their
  introduction. Users with an approved key elsewhere are excluded —
  their local-key situation is covered by the About-page
  recommendations.

Both superseding queries are published; the constants pin the new
heads.

Closes #625

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Drop the "contributions are marked as pending" clause — whether pending
contributions are marked depends on the individual queries/views, so it
is not generally true.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tkuhn
tkuhn merged commit c52a82c into master Aug 25, 2026
8 checks passed
@tkuhn
tkuhn deleted the feat/625-pending-account-visibility branch August 25, 2026 06:17
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 5.12.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

users don't show up in view and can't make own views before approval?

1 participant