Commit Graph
18 Commits
Author SHA1 Message Date
hzrd149andClaude Opus 4.7 23a6eeec9b Refine nsite action buttons next to Deploy
- 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]>
2026-05-15 13:43:34 -05:00
hzrd149andClaude Opus 4.7 21e4da5fbe Add version-history modal for nsite snapshots
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]>
2026-05-15 13:36:10 -05:00
hzrd149andClaude Opus 4.7 a588509ec6 Move nsite project settings into a dedicated edit modal
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]>
2026-05-15 13:29:53 -05:00
hzrd149andClaude Opus 4.7 d1e71184e6 Add NIP-5A aggregate hash and version snapshots to nsite deploys
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]>
2026-05-15 13:17:48 -05:00
Alex Gleason c49564e70d Support vanity subdomain URLs for nsite deployments
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.
2026-04-03 22:49:38 -05:00
Alex Gleason 85afb6828e Remove root site option from nsite deploy form, always use named sites 2026-04-02 02:55:12 -05:00
hzrd149 113fc0a326 Include source tags in nsite deployments 2026-03-25 16:25:22 -05:00
hzrd149 4f103d6ad4 Cleanup nsite deployment config 2026-03-24 17:21:07 -05:00
hzrd149 d51fee34e3 Update nsite deployment
Add support for named sites under users key
2026-03-24 17:03:39 -05:00
Alex Gleason 72747cd7aa Simplify adding web tag 2026-01-24 20:21:13 -06:00
lemonknowsall 360bea790a add web tag on deploy 2026-01-24 17:53:02 -08:00
Alex Gleason 2bc5f45512 Bundle Cloudflare Worker before deploying 2026-01-21 21:36:06 -06:00
Alex Gleason 65495ba1dd Add Railway deployment 2026-01-20 23:13:49 -06:00
Alex Gleason 1915e6044f Deployment providers refactoring 2026-01-03 18:49:54 -06:00
Alex Gleason d2fd29ed86 Remove unnecessary dynamic imports 2025-12-24 19:13:30 -06:00
Alex Gleason 1424663b43 DeployPopover -> DeployButton, remove deploy barrel export 2025-12-24 16:06:39 -06:00
Alex Gleason 80400ef159 Improve consistency between Deploy and Git popovers 2025-12-23 09:04:26 -06:00
Alex Gleason 028d22c7c9 DeployPopover 2025-12-23 08:13:29 -06:00