See everything in my space — workflow design

Source: US-READ-12 See everything in my space. Extend the existing Directory sheet, not another destination: one tap from the document bar opens the current space’s resources, and Close returns to the unchanged document.

flowchart LR D[Document in Read] -->|Directory| L[Space directory sheet] L -->|Document or collection| R[Read destination] L -->|Agent| A[Agent destination] L -->|App| P[App destination] L -->|Close| D L -->|Load failure| F[Reason and Retry] F -->|Retry| L

Placement and behavior

Keep the current Read tab /dir/:uid modal sheet, its current-space/server context, home-first document tree, title search, current-document marker, and Close gesture. In the same list, show all public resource kinds in the space. Label each row visibly and accessibly as Document, Collection, Agent or App; collection entries remain openable even when they are also documents. Search filters names across all kinds; preserve original tree indentation when not searching and flat results when searching. Use a deterministic kind priority only for ties, without hiding parents or duplicates.

Implementation feasibility check (not a shipped behavior claim): the current paginated /api/Query directory inventory already carries metadata.type for hm://hyper.media/agent and hm://hyper.media/app, plus backend-derived isCollection; the native treeOrder drops those fields. Verify actual four-kind data on the target site before changing the inventory endpoint. Collection classification uses the indexed collection flag, not “has children.” The agent detail route currently relies on a globally configured agent server and is not a safe shortcut for an arbitrary agent in the space.

A document/collection opens the existing reader. For an agent or app, opening must render that resource in-app using its exact resource URL and intended site/server; merely displaying its document body or redirecting to the globally configured agent server does not satisfy acceptance. Source inspection suggests a dedicated embedded Seed resource screen may be needed. If so, keep the directory as the only finding place, add an explicit in-app destination route with Back/Close and failure/Retry, and preserve URL inputs. Do not silently launch an external browser or run arbitrary untrusted URLs. If safe rendering is not yet implemented, show an honest actionable state and retain the directory; do not call this story Shipped. Cross-site scope follows the document in front, never the default site's stale directory.

States, accessibility and recovery

Loading: native progress with the previous space’s list hidden. Loaded empty: “Nothing in this space yet.” with Close; no search matches: “Nothing matches ‘…’.” Failure: “Couldn’t load this space.” with Retry; do not show a partial list as complete. Retry refetches both inventory and type data, preserving current space context. Each row gives VoiceOver its name plus kind, and its button announces “Open”; distinguish kinds by text, not color or symbol alone. Preserve Dynamic Type, platform list/sheet controls and large tappable rows. Repeated requests must ignore stale results from a previous space.

Components and impact

Reuse DirectoryScreen, Directory row, native grouped list, search input, StatusLine/Retry, progress and the existing navigation; a kind label inside the inline directory row is new, not a separate invented toolkit component. Update directory row and the directory screen once code is verified; document any Contract component introduced then. Existing US-READ-06, US-READ-07, US-READ-10 and US-APP-06 remain true: context site, document tree and search, retry, and names first. No change to the four-tab layout. If a typed-resource destination adds a route, update the screen map, navigation and relevant screen pages; do not assert the old route count.

Phone check

On a space with a known public document, collection, agent and app: open directory from Read, find four kind-labelled rows, tap each and verify the intended in-app destination; search across kinds, close/reopen and verify reset, switch spaces and verify no stale rows, force a request failure and retry. Record the working path on the reviewed simulator head.

User stories

Do you like what you are reading? Subscribe to receive updates.

Unsubscribe anytime

Attributes
name
See everything in my space — workflow design