Open a Seed site by URL
A reader types the address of a Seed site and reads it inside the app.

As a reader, I want to type the address of a Seed site and read it in the app, so that I can reach a site I have no bookmark for without leaving Seed.

Situation

I have the address of a Seed site, but no bookmark. I want to type it on my phone and read the site without leaving Seed.

What I do

    Open the mobile app and focus its site-address field.

    Type https://seed.hyper.media and submit from the keyboard. I should not have to select a suggestion.

    Wait for the destination. I can tell which site opened from its content, not merely from my input echoed on screen. I am still in the mobile app.

    Enter a malformed address. The app explains the problem, keeps the text editable, and lets me correct it and open the site without restarting.

What I should see

    The Read tab's document screen has an "Open site" action that opens the Open site sheet.

    The sheet has one address field with a URL keyboard. The Open button is disabled while the field is empty.

    Submitting from the keyboard and tapping Open do the same thing.

    A bare host such as seed.hyper.media is accepted and treated as https://.

    A link to a document, hm:// or a site's /hm/ page, opens that document.

    The destination opens in the app's own document screen, with the site's content visible.

    Links, the directory, authors and discussion of that document stay on that site. My configured server does not change.

    A reply to an earlier submission never replaces a later one.

When something goes wrong

    A malformed or unsupported address shows an explanation under the field. The text stays editable, and correcting it opens the site without restarting.

    If the site cannot be reached, the document screen shows its failure line with Retry.

Not included

The review video starts before typing and ends with readable destination content. Tabs, history, search-engine queries, and a visual redesign are outside this first workflow.

Trace

Story US-READ-04, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.

Design

Page

Part it plays

Address entry and in-app reading

The design of this workflow: address entry and in-app reading

Open site sheet

The Open site sheet: field, footer, error, Open button, Cancel

Document and site home

The "Open site" bar button, and the screen the destination opens on

Reading another site in place

The opened site becomes the reader's context without changing the server

Stacks, pushes and sheets

Open site is a sheet; submitting replaces it with a pushed document

Navigation bars and their actions

The "Open site" text button and the sheet's Cancel

Moving between tabs and into the app

Web addresses enter the app only through this sheet or an in-app link

Forms and inputs

Validation on submit, error under the field, keyboard submit

Every form

The Open site form: field, submit control and enabling rule

Every bar button

The "Open site" bar button and the sheet's Cancel

Loading, failure and empty states

A valid but unreachable address opens the document failure state

input, textarea, select and label

The URL field with its placeholder and keyboard submit

button

Open, "Opening…" and the disabled empty state

dialog

Sheet presentation

StatusLine

Retry when the destination cannot be reached

Honest state: loading, failure and empty

A failed site never falls back to the configured home

Representative strings

The validation and hint strings

Implementation

Page

Part it plays

Open site: implementation and evidence

The implementation and evidence note for this workflow

Read: open a site by URL

Validation, the revision guard on the reply, reading from the entered server

Read: screens and components

OpenSiteScreen and its testIds

Read: root contract wiring

The open-site route, the draft state, the readSiteOpened mutation and its actions

Read: sources and the refresh epoch

The readOpenSite source

Read: ids, refs and link targets

refFromUrl and siteUrlParts used by the validator

Read: loading pages, caches and embeds

resolveLink and linkServer: the page is read from the typed address's own server

Deep links and URL handling

The typed URL becomes the doc route's ref

Navigation and routes

The open-site route and the back-then-push on success

State, refresh and stale-reply patterns

The revision pattern that discards a stale reply

Root declarations: Read and Discuss

readSiteDraft, readSiteError, the revisions and readSiteOpened

Seed site read API

GET /hm/api/config to find the site's home account

Contract UI tests

open-site.test.contract

Bun unit tests

open-site.test.ts and deep-links.test.ts

From user workflow to TestFlight

The first workflow carried through the mobile process

Review evidence

The recording and checks attached to PR #1484

Code

File

What

read.contract L440-473

ReadOpenReply and OpenSiteScreen

read.contract L299-300

The "Open site" bar button on DocScreen

app.contract L30-30

route open-site "/open-site"

app.contract L80-86

readSiteDraft, readSiteError, the revisions, readSiteReplyCurrent and mutation readSiteOpened

app.contract L282-305

readShowOpenSite, readEditSite, readSubmitSite, readSiteAfterOpen

app.contract L755-756

The open-site entry renders OpenSiteScreen

src/read/open-site.ts L4-26

openSite: trims, defaults a bare host to https, validates

src/read/sources.ts L16-16

readOpenSite source

src/read/load.ts L284-300

resolveLink and linkServer

src/read/ids.ts L63-71

siteUrlParts

Tests

File

What it checks

open-site.test.contract

open a typed Seed site URL in the native reader and return

open-site.test.contract

invalid URL stays editable; cancel returns to the same document

open-site.test.contract

failed site loading exposes retry and never substitutes the default home

open-site.test.contract

a submitted revision cannot apply to an edited or reopened form with identical text

src/read/__tests__/open-site.test.ts

site submission trims input, defaults bare hosts to HTTPS and preserves the target

src/read/__tests__/open-site.test.ts

invalid addresses, credentials, files and non-document routes stay in the form

src/read/__tests__/deep-links.test.ts

a typed site and gateway URL read from their own server, not the configured default

src/read/__tests__/deep-links.test.ts

an unreachable typed site reports failure on that server, never a default home

Delivery

Delivered by #1484.

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

Unsubscribe anytime

Connections0
Linked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkLinked document · Outgoing linkOpen a Seed site by URLOpen a Seed site by URL
Citations 0Children & links 38

Loading child documents…

Connections show where other documents or comments link to this document.

Related documents

Loading connections…