- Add a Settings icon button on the left of the Deploy button so all
nsite actions live in one row. Drops the now-redundant "Edit site
settings" text link from the summary card.
- Only show the History (version-history) button when the project has
publishSnapshotOnDeploy enabled — otherwise the modal would always
be empty.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Adds a History icon button next to the Deploy button (visible only
when an nsite provider is selected). Opens NsiteVersionsDialog, which
queries the configured relays for kind 5128 manifest snapshots
authored by the logged-in user for the current site, listed
newest-first with date and file count.
Each row exposes an "open" link to `https://v<base36id>.<gateway>`
(NIP-5A snapshot URL) and a delete action that publishes a NIP-09
kind 5 event scoped to the snapshot kind. Deletion is gated behind
an AlertDialog confirm and removes the row optimistically.
A new buildNsiteSnapshotUrl helper is added in lib/utils/nsite.ts,
and the existing pubkeyToBase36 is renamed to hex32ToBase36 (its
existing name is kept as a deprecated alias).
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Replaces the inline nsite config form in the deploy popover with a
NsiteSettingsDialog that owns the full .nsite/config.json: title,
description, version history toggle, and (under an "Advanced"
collapsible) relays and Blossom servers.
When a project has no .nsite/config.json yet, the deploy popover
auto-seeds one from the selected nsite provider so the summary card
appears immediately and deploy works out of the box. The Deploy
button now reads relays/servers/title/description/dTag/version
history directly from .nsite/config.json; only the gateway still
comes from the provider since it is host-level, not manifest-level.
The summary card hides the version-history state — it stays
accessible via the settings modal only.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Publishes the aggregate `x` tag on every nsite manifest (kind 15128 /
35128). Adds an opt-in per-project `publishSnapshotOnDeploy` flag in
`.nsite/config.json` that also publishes a kind 5128 manifest snapshot
so older site versions remain reachable. Snapshots are deduplicated:
if a snapshot with the same aggregate hash already exists for the site,
the publish is skipped.
The flag is exposed as a "Publish version history" checkbox in the
nsite deploy form and is persisted to `.nsite/config.json` immediately
on toggle so the choice survives without a deploy.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
After deploying a named site, the adapter probes the gateway for vanity
subdomain support via X-Nsite-* response headers. When the gateway
confirms a vanity name (e.g. ditto.shakespeare.wtf), it is used as the
primary deploy URL. Gracefully degrades to the canonical base36 URL when
the gateway doesn't support vanity subdomains.