Ignore .agents skill bundles from eslint (template files not part of
the build), enable eslint --cache and tsc --incremental so warm re-runs
skip unchanged files.
When a user tapped "Open signer app", the dialog previously stayed
frozen on the same screen — same button, same copy-URI fallback, no
feedback — until the login either succeeded (and the dialog dismissed)
or timed out after two minutes. With slow or flaky signers (Amber's
current listening-REQ bug being the immediate trigger, but any NIP-46
signer that takes more than a second or two to respond hits the same
hole) this looked indistinguishable from a hang. Users retapped the
button, closed the dialog, gave up.
Now the dialog swaps the QR / Open signer app area for a centered
spinner with a live status line as the handshake advances:
- "Waiting for signer connection…" while the signer app has the user
and we're listening on kind 24133 for the connect-ack.
- "Getting public key…" once the connect-ack arrives and we're
issuing the NIP-46 get_public_key RPC.
On mobile the swap happens synchronously when the user taps "Open
signer app" so they see the progress state the moment they return
from the signer. On desktop the QR stays visible through the
awaiting-connect phase (they may still be scanning with a different
device) and only swaps in once the signer has acknowledged.
The progress view includes a Cancel link that aborts the in-flight
subscription and regenerates fresh connect params.
Also fix a related effect-lifecycle bug: the listening effect
previously depended on `onClose` and `isWaitingForConnect`. Since
parents pass inline arrow functions for onClose, the effect re-ran
on every parent render and its cleanup flipped a local `cancelled`
flag — if the signer's response arrived on a re-rendered instance,
the success branch silently swallowed the login. The effect now
depends only on `nostrConnectParams` with stable refs for
onClose/login, gates the success branch on `controller.signal.aborted`
instead of a teardown flag, and handles cancellation explicitly in
the dialog-close and retry paths.
The handshake phases are surfaced via the new `onStatus` callback on
`NLogin.fromNostrConnect` in @nostrify/react 0.6.0. Bumps
@nostrify/react to ^0.6.0.
Also switches the fallback relay used for NIP-46 communication from
wss://relay.damus.io to wss://relay.ditto.pub. Only applies when the
user has no writable relays in their metadata.
Incidental cleanup while editing the dialog: the Copy URI button and
the "Open your signer app to connect." / "Scan with your signer app."
caption lines are removed. The primary Open signer app button is
self-explanatory on mobile, and the QR on desktop doesn't need a
caption.
Bumps every dependency to its current latest, including several majors
(react-router-dom 6→7, lucide-react 0.x→1.x, tailwind-merge 2→3,
typescript 5→6, jsdom 26→29, @unhead/react 2→3, @nostrify/react 0.4→0.5,
@types/node 22→24 to match the Node 24 runtime).
Drops the deprecated @unhead/addons package in favor of importing
InferSeoMetaPlugin directly from unhead/plugins.
package-lock.json regenerated from a clean node_modules to prune stale
transitive entries.
Replaces the deprecated `tseslint.config(...)` helper with ESLint core's
`defineConfig()` (available since ESLint 9.22, recommended in 10.x) and
upgrades the lint stack to the latest majors:
eslint 9.39 -> 10.2
@eslint/js 10.0 -> 10.0
typescript-eslint 8.0 -> 8.59
eslint-plugin-react-hooks 5.1 -> 7.1
eslint-plugin-react-refresh 0.4 -> 0.5
@html-eslint/{eslint-plugin,parser} 0.41 -> 0.59
globals 15.9 -> 17.5
Config changes:
- Use `defineConfig` + `globalIgnores()` instead of `tseslint.config`.
- Adopt `reactHooks.configs.flat.recommended` (adds React Compiler rules:
purity, refs, set-state-in-effect, etc.).
- Adopt `reactRefresh.configs.vite` (matches the Vite setup exactly).
- Adopt `@html-eslint` `flat/recommended` (adds indent, quotes,
use-baseline, require-closing-tags, etc.).
- Disable `@html-eslint/use-baseline` for the `rel="manifest"` false
positive.
Custom rule fixes for ESLint 10:
- `context.getSourceCode()` -> `context.sourceCode`
- `context.getFilename()` -> `context.filename`
Code fixes for the stricter new presets:
- NostrProvider: lazy-init NPool via `useState(() => new NPool(...))` and
move `ref.current = x` assignments into effects to satisfy the new
`react-hooks/refs` rule.
- useIsMobile: drop the redundant setState-in-effect by initialising
`useState` from the media query synchronously.
- AuthDialog: move `loginRef.current = login` into an effect.
- sidebar.tsx: derive skeleton width from `useId()` instead of
`Math.random()` so the render is pure.
- index.html: reindent to 4 spaces to satisfy `@html-eslint/indent`.
- .agents/skills/**: add `{ cause: err }` to `throw new Error(...)` calls
inside catch blocks (new `preserve-caught-error` rule) and a handful
of targeted `eslint-disable` comments for legitimate external-system
sync / state-reset-on-prop-change patterns.
The six intentional template failures (missing manifest, missing title /
description / OG tags, two FIXME comments) are unchanged -- they're the
template's way of nudging downstream users to fill the site in.
Re: "someday maybe tseslint won't be needed" -- still in the future.
ESLint 10 now loads `eslint.config.ts` natively (via jiti or Node's
`--experimental-strip-types`), but that only parses the config file. For
linting .ts/.tsx source you still need @typescript-eslint/parser and its
rules, which the `typescript-eslint` package bundles together. So the
"typescript" prefix is gone from rule names in practice, but the package
stays.
None of these were imported in src/ or referenced in any config file:
- @fontsource-variable/inter, @hookform/resolvers, react-intersection-observer,
date-fns (only appeared in skill doc stubs)
- @tailwindcss/typography (no tailwind config, no @plugin import)
Update package.json caret ranges so the declared minimums match the currently-latest releases: react & react-dom 19.2.5, vite 8.0.10. tailwindcss and @tailwindcss/vite are already on 4.2.4.
Ran `npx @tailwindcss/upgrade`. Bumps tailwindcss and @tailwindcss/vite to 4.2.x and migrates arbitrary-value syntax to the canonical v4 shorthands (e.g. translate-x-[var(--x)] \u2192 translate-x-(--x), whitespace cleanups inside calc()).
Replace the v3-authored shadcn components with their new-york-v4 equivalents via `npx shadcn add --overwrite`. The new components use the `radix-ui` meta-package, inline `cva` variants, `data-slot` attributes, and the v4 aria-invalid/focus-ring patterns.
Also:
- Remove now-unused @radix-ui/react-* packages (only react-toast is kept for the preserved toast/toaster).
- Delete orphaned *-variants.ts / *-utils.ts files (variants are inline in v4).
- Drop duplicate src/hooks/use-mobile.ts; sidebar now imports the existing useIsMobile hook.
- Rewrite src/index.css in the shadcn v4 idiom: raw hsl() values on --background etc., with @theme inline remapping to --color-*. Switch --sidebar-background to --sidebar to match the new sidebar classes.
- Keep toast.tsx, toaster.tsx, and qrcode.tsx untouched.
Migrate from v3's JS config + PostCSS to v4's CSS-first setup using the @tailwindcss/vite plugin. Theme tokens move into @theme inline in src/index.css, tailwindcss-animate is replaced by tw-animate-css, and the container utility is redeclared via @utility. A compatibility layer preserves v3's default border color so existing shadcn/ui components render unchanged. Also exclude .agents/** (and other non-source dirs) from the Vitest run.
Deletes the entire DM stack \u2014 DMProvider, DMContext, the dm/ UI
components, useDMContext, useConversationMessages, the dm* library
modules, pages/Messages.tsx, and the nostr-direct-messages skill.
Also drops the idb dependency, which was only used by the DM
IndexedDB message store.
The implementation was complex and tightly coupled; removing it
clears the way for a future, cleaner approach if DM support is
needed again.
Moves NWC wallet connection (useNWC, NWCContext, WalletModal) along with
the WebLN wallet detection (useWallet) and NIP-57 zap stack (useZaps,
ZapButton, ZapDialog) out of src/ and into .agents/skills/nwc/ as an
opt-in skill. Removes NWCProvider from App.tsx and TestApp.tsx, drops
the NWC-only dependencies (@getalby/sdk, @webbtc/webln-types) from
package.json, and updates AGENTS.md to stop referencing the extracted
hooks and components.
The new SKILL.md explains how to reinstall the dependencies, copy the
files back into src/, and wire up NWCProvider when a project actually
needs Lightning wallet and zap functionality.
@radix-ui/react-popper 1.2.4 had a useEffect with no dependency array
that called setState on every render, causing an infinite loop. Fixed
in 1.2.8 by tracking the previous anchor in a ref.
Sign kind 22242 AUTH events automatically when relays send challenges.
Uses a signer ref pattern so the pool doesn't need to be recreated
when the user logs in/out or switches accounts.
Upgrade to @nostrify/[email protected] and implement the nostrconnect:// login flow:
- QR code display on desktop, deep link on mobile
- Copy URI button, retry on timeout, abort on dialog close
- Bunker URI manual input as fallback under the Remote Signer tab
- Add QRCodeCanvas component using the existing qrcode dependency
This change removes the webln package as it serves no specific function that isn't
already provided via native browser capability as it relates to WebLN.