Skip to content

Call out Spaces support with its own chip on listings - #70

Merged
hipstersmoothie merged 1 commit into
mainfrom
sesh/spaces-chip
Dec 5, 2026
Merged

hipstersmoothie merged 1 commit into
mainfrom
sesh/spaces-chip

Conversation

@hipstersmoothie

Copy link
Copy Markdown
Collaborator

Follow-up to #69. A listing that supports Spaces now shows a separate, blue-tinted Spaces chip next to Scopes in the sidebar's Permissions row, so Spaces support no longer hides inside the scopes popover.

The chip

  • It only appears when the app's own OAuth client asks for Spaces. That's the same rule as the /apps?has=spaces filter: a direct space: token or an include: permission set with resource: "space".
  • Popover: a short explanation of Spaces, then each space type the app uses. Concrete types come first and space:* grants last. Each type shows whose spaces it covers and the access it asks for. The header links to "More apps" (/apps?has=spaces).

Data

  • Resolved permission sets in the probe report now carry structured spaceGrants, so the chip can list exact space types from bundles.
  • Bundles probed before this change have no spaceGrants. The chip still appears for them and names the permission set; the next OAuth probe run fills in the types.
  • Direct space: tokens come from the client scope line, which existing page snapshots already include.

Testing

  • Unit tests for summarizeListingSpaces: no spaces, direct tokens plus a bundle (ordering), and the legacy-bundle fallback.
  • Rendered locally against a seeded listing that mirrors secretsky's real scopes (two space types in a bundle plus space:*?action=read_self). Checked the chip and popover in the browser.

🤖 Generated with Claude Code

A blue "Spaces" chip now sits beside Scopes in the Permissions row when
the app's OAuth client asks for ATProto Spaces. Its popover lists the
space types (concrete types first, then `space:*` grants), whose spaces
it covers, and the access requested, with a link to the other apps.

The probe now records structured `spaceGrants` on resolved permission
sets; bundles probed before this still show via their legacy lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hipstersmoothie
hipstersmoothie merged commit 8bb0dbe into main Dec 5, 2026
5 checks passed
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