Commit Graph
515 Commits
Author SHA1 Message Date
Alex Gleason e1d6a5f687 Upgrade Nostrify 2026-08-19 09:54:05 -05:00
Alex Gleason 2c21ed2daa Update dependencies to patch npm audit vulnerabilities
npm audit reported 9 vulnerabilities (6 high, 2 moderate, 1 low),
including a react-router open redirect and DoS, a vite server.fs.deny
bypass, path traversal in postcss sourcemap loading, and a batch of
undici request/cache handling issues.

All fixes fell within existing semver ranges, so package.json is
untouched and only the lockfile moves: react-router 7.18.2, vite 8.2.1,
postcss 8.5.26, nanoid 3.3.18, undici 7.29.0, valibot 1.4.2,
@babel/core 7.29.7, brace-expansion 5.0.9.

npm audit now reports 0 vulnerabilities.
2026-08-08 13:01:39 -05:00
Alex Gleason aa8614630f Merge branch 'replace-damus-relay' into 'main'
Replace relay.damus.io with nos.lol in default relays

Closes #22

See merge request soapbox-pub/mkstack!31
2026-07-28 14:53:21 +00:00
Derek Ross b5da5127da Replace damus relay examples in skill docs
relay.damus.io is shutting down; the nostr-relay-pools and
relay-management skills still used it as an illustrative URL, which
would teach a dead relay to anything generating code from them.

Use relay.ditto.pub instead. The relay group example already listed
nos.lol, so ditto avoids duplicating an entry there.
2026-07-28 10:19:06 -04:00
Derek Ross ac7a6d9435 Replace relay.damus.io with nos.lol in default relays
relay.damus.io is shutting down at the end of July 2026. It ships in
APP_RELAYS, so every app bootstrapped from MKStack would include a dead
relay out of the box. Swap in nos.lol, keeping read: false / write: true
so the outbox strategy is unchanged.

Also refresh the AGENTS.md copy of the default relay list, which had
drifted from src/lib/appRelays.ts and still named damus.

Closes #22
2026-07-28 10:09:52 -04:00
Alex Gleason 9776c727bb Dedicate MKStack to the public domain in README
Fixes https://gitlab.com/soapbox-pub/mkstack/-/work_items/21
2026-07-11 14:10:29 -05:00
Alex Gleason 05202229a5 Validate gift-wrap event id even when skipping Schnorr verify
Returning true unconditionally for wrap kinds also skipped the event id
(content hash) check. The id is what we index and dedupe on, so it must
still match the event's contents. Recompute the hash and compare it while
continuing to skip only the redundant outer signature verification.
2026-07-09 15:17:57 -05:00
Alex Gleason 17be8730f5 Skip redundant Schnorr verify on gift-wrap ingest
The outer signature on a NIP-59 gift-wrap (1059/21059) is cryptographically
meaningless to the client: wraps are signed by a single-use ephemeral key
(direct invites) or, in Concord V2, by a group-shared derived stream key any
member can sign with, so the outer sig establishes no sender identity.
Authenticity comes from NIP-44 authenticated encryption plus the inner seal
signature check and rumor-pubkey/id bindings in the decrypt path.

Pass a kind-scoped verifyEvent to NRelay1 that skips the Schnorr verify for
wrap kinds only while keeping full verification for every other kind, whose
identity does rest on its outer signature.
2026-07-09 12:29:44 -05:00
Alex Gleason 49fbba6f98 Show all accounts in switcher; current user links to profile 2026-06-25 12:22:24 +03:00
Alex Gleason b50dbdb2dc Add NIP-07 quick login and redesign login dialog 2026-06-23 22:06:10 +03:00
Alex Gleason 9a9616be29 Add damus and primal as write-only relays 2026-06-19 10:23:27 +03:00
Alex Gleason c4b2c1ddbe Swap out Damus relay for Dreamith relay 2026-06-12 10:38:58 -05:00
Alex Gleason fd9068f598 Fix react-router DoS vulnerability via npm audit fix 2026-06-05 09:46:01 -05:00
Alex Gleason 772479e232 Update AI context for Tailwind v4 and React 19
- AGENTS.md: describe ui components as React 19 ref-as-prop function
  components using data-slot and the unified radix-ui package
- theming skill: register fonts and color tokens via @theme in
  src/index.css (no tailwind.config.ts); fix color values to use the
  hsl() wrapper that matches the real index.css
- ai-chat skill: import VisuallyHidden from the unified radix-ui package
- nwc skill: convert ZapDialog/WalletModal forwardRef to ref-as-prop
- edit-profile skill: drop React.FC in favor of plain function typing
2026-06-05 09:43:15 -05:00
Alex Gleason 459221305f Upgrade Nostrify 2026-06-01 20:38:34 +02:00
Alex Gleason 74c8445f4c Upgrade Nostrify 2026-05-31 02:55:30 +02:00
Alex Gleason a9a378b568 Make signup/login dialog language Nostr-specific
Match Agora's wording in the AuthDialog welcome step and generate
step title to be more explicit that accounts are Nostr accounts:

- 'Create new account' -> 'Create a new Nostr account'
- 'I already have an account' -> 'Log in to an existing account'
- 'Create account' (step title) -> 'Create a Nostr account'
2026-05-30 18:54:35 +02:00
Alex Gleason 2b7d6655af Remove remaining genUserName references from docs and skill templates 2026-05-30 18:44:53 +02:00
Alex Gleason 881629a746 Remove genUserName, use Anonymous fallback directly 2026-05-30 02:06:38 +02:00
Alex Gleason 4878f9414c Switch to the newly added account when logging in
addLogin appends to the end of the logins array, but the current user
is logins[0]. So when an already-logged-in user opened "Add another
account" and chose any login method, the new account silently landed
at the back of the queue while the prior account remained current.

Most damaging on the signup path: login.nsec(nsec) was called before
the profile step, then publishEvent({ kind: 0, ... }) signed kind 0
metadata with the *previous* user's signer — overwriting their profile.

- useLoginActions: wrap each addLogin in addAndActivate, which also
  calls setLogin(login.id) to promote the new login to logins[0].
- AuthDialog.finishSignup: defensive guard that verifies the active
  signer matches the just-generated nsec before publishing kind 0;
  refuse and toast otherwise. Belt and suspenders against any future
  regression in the switch logic.
- Add a targeted regression test for the auto-switch behavior.
2026-05-24 17:50:59 -05:00
Alex Gleason 3f69f84d19 Skeletonize account UI while metadata is loading
While the kind-0 metadata query for logged-in accounts is in flight, we
were rendering the genUserName-derived animal name (and its first
letter as the avatar fallback) before falling back to the real display
name once the profile arrived. That made the AccountSwitcher trigger
flash a meaningless 'Brave Otter' / 'B' before settling on the real
identity.

Expose isLoading from useLoggedInAccounts and, while it is still true
and we have no metadata.name yet, render Skeletons in place of:
  - the avatar fallback letter (in the AccountSwitcher trigger and the
    other-accounts dropdown rows),
  - the displayed name in the dropdown rows.

Once the query settles, behavior is unchanged: a real name renders if
present, otherwise the genUserName fallback fills in.
2026-05-11 18:16:59 -05:00
Alex Gleason 2357913037 Add onchain-bitcoin skill 2026-05-11 10:09:05 -07:00
Alex Gleason 46119367c8 Use APP_RELAYS as nostrconnect fallback
When the user has no NIP-65 write relays configured, getRelayUrls() was
building the nostrconnect:// URI with a single relay (wss://relay.ditto.pub).
Fall back to the full APP_RELAYS write list instead so the remote signer
has more connection options during the handshake.

Extract the default relay list into src/lib/appRelays.ts as a single
source of truth, shared between App.tsx (defaultConfig) and
useLoginActions.ts (nostrconnect fallback).
2026-05-06 14:08:59 -05:00
Alex Gleason f9673379d7 Speed up npm run test with eslint/tsc caching
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.
2026-05-05 19:00:54 -05:00
Alex Gleason e289c67a70 Show live progress during the nostrconnect login handshake
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.
2026-05-04 21:51:06 -05:00
Alex Gleason 551928849a AGENTS tweak 2026-05-04 09:15:29 -05:00
Alex Gleason 4e910ed1f0 Add Blossom server list to app config (kind 10063)
Blossom servers now live in AppConfig alongside the NIP-65 relay list:
- blossomServerMetadata (BUD-03 server list) and useAppBlossomServers flag
- src/lib/appBlossom.ts provides APP_BLOSSOM_SERVERS defaults
  (blossom.ditto.pub, blossom.dreamith.to, blossom.primal.net),
  parseBlossomServerList, and getEffectiveBlossomServers
- NostrSync hydrates the user's kind 10063 event on login
- useUploadFile reads effective servers from config
2026-05-04 09:09:51 -05:00
Alex Gleason 4e8aedde9c Update AGENTS.md to reflect TailwindCSS 4.x upgrade 2026-04-26 23:14:21 -05:00
Alex Gleason 009265b017 Add lockdown-mode skill 2026-04-26 22:52:50 -05:00
Alex Gleason 9e230f45d3 Upgrade all dependencies to latest versions
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.
2026-04-26 22:41:37 -05:00
Alex Gleason 4efc3c7273 Modernize ESLint setup to v10 with defineConfig
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.
2026-04-26 22:33:39 -05:00
Alex Gleason 75598c45b1 Tighten capacitor skill (434 -> 184 lines)
The skill was the longest in the repo; most of the bulk was narrative
duplication of content that already ships in the JSDoc headers of the
files users copy in. Material changes:

- Drop the per-package bullet list (17 lines of 'what is @capacitor/*')
  in favor of a single-line pointer to Capacitor's own docs.
- Drop the 'Using the APIs' section (~110 lines of Haptics /
  Download / SecureStorage / useSecureLocalStorage walkthroughs). Each
  source file has thorough @example blocks in its JSDoc — the skill
  now shows a short import+call tour and directs readers to the file
  headers for the rest.
- Collapse the three 'Files Provided by This Skill' tables (source /
  project-root / optional) into one table with inline notes. Same
  information, a third of the vertical space.
- Merge the former ten setup steps into seven: trivial steps like 'run
  npx cap add/sync/open' are one code block now; removed the cap:sync
  package.json snippet (a convenience script the user can trivially
  add themselves).
- Shrink the safe-area utilities table to a bulleted highlight list
  with a link to the plugin README for the full utility surface.
- Replace the four standalone safe-area example snippets with a single
  four-line example block.
- Trim troubleshooting to the five most common issues, noting that the
  remaining edge cases (secureStorage per-bundle-id behavior, custom-
  theme status-bar sync) are documented in the relevant file headers.

No API changes, no Tailwind-v4 regressions — all the instructions from
the previous revision are preserved or pushed down into the copied
files' JSDoc where they belong.
2026-04-26 22:01:49 -05:00
Alex Gleason 924d430310 Update capacitor skill for Tailwind v4 safe-area plugin
The previous version pinned tailwindcss-safe-area to 0.8.0 and walked
through registering it in a tailwind.config.ts plugins array. mkstack
now ships Tailwind v4 with CSS-first config (@import "tailwindcss"
in src/index.css, no tailwind.config.ts), and the plugin's v1.x line
has switched from a JS plugin entry point to a plain CSS file consumed
via @import — using @plugin fails to resolve.

Updates:
- Install step now pulls the latest tailwindcss-safe-area (1.x) with
  a note that v3 projects still need 0.8.0 + plugins array.
- Step 3 replaces the tailwind.config.ts edit with an @import line in
  src/index.css, placed after @import "tailwindcss".
- Troubleshooting entries for WebView <140 and 'pt-safe does not
  exist' rewritten to reference the CSS import model.
- Utilities table refreshed to match the v4 README (adds border-*-safe,
  h-svh-safe/h-lvh-safe/h-vh-safe/h-fill-safe, start/end logical
  variants, and the safe/safe-none enable-disable toggles).
- safe-area-shim.css header updated to show the v4 import order
  (@import "tailwindcss-safe-area"; then @import "./safe-area-shim.css")
  instead of the old @tailwind utilities directive.
2026-04-26 22:00:13 -05:00
Alex Gleason e0f6a061b4 Tighten nostr-security skill (321 -> 152 lines)
Removes redundancy without losing substance:
- Drops the verbatim CSP meta tag (already in index.html) in favor of a
  prose summary of what's enforced and the style-src caveat.
- Collapses the 'three attack surfaces' table of contents; section
  headers already serve that purpose.
- Merges the §2 duplicate 'addressable events' example (covered by the
  bullet rules and the spoof example above).
- Consolidates the 'safe pattern' + 'mitigation' + 'rule of thumb'
  triad in §2 into one example and one guideline sentence.
- Tightens the NIP-72 walkthrough by removing narrative duplication
  between the prose and the code comments.
- Drops the 'Remember: decode npub' aside (nip19-routing skill's job).

The pre-merge checklist, the sanitizeUrl/sanitizeCssString helpers,
the spoof-vs-authors example, and the full NIP-72 query sequence are
all preserved verbatim.
2026-04-26 21:57:54 -05:00
Alex Gleason bc0206c911 Drop 'Encourage NIP-07/NIP-46' framing from nostr-security skill
The previous subsection ranked login methods by safety, which misstates
the threat: NIP-07 extensions have their own attack surface (malicious
or compromised extensions can silently sign arbitrary events) and NIP-46
relies on a separate signer's security posture. Either way, an XSS on
the app's origin can ask an active signer to sign anything, drain funds
via zap requests, or scrape DMs as they're decrypted.

Replace with a single sentence noting that remote-signer flows don't
change the XSS mitigation story — same defenses apply regardless of
login method.
2026-04-26 21:56:17 -05:00
Alex Gleason 7de955ff87 Lead with XSS threat model in Nostr security guidance
The single most important thing to understand about a web Nostr client
is that nsec keys live in plaintext in localStorage, so any XSS =
permanent, unrecoverable key theft. The previous framing led with
author filtering (important but lower-stakes) and only mentioned XSS
implicitly via URL sanitization.

Restructures both the AGENTS.md section and the nostr-security skill
so the key-storage reality and XSS mitigations come first, CSP is
explained as defense-in-depth (with a walkthrough of the existing
index.html policy), and author filtering becomes section 3 — still
important, but secondary to script-injection prevention.

Also adds a 'no dangerouslySetInnerHTML' rule and a CSP hygiene rule
to the top-level checklist so those blockers surface before any
sanitization detail.
2026-04-26 21:55:25 -05:00
Alex Gleason 03ffbdaa44 Add nostr-security skill and trim AGENTS.md section
The skill consolidates three attack surfaces for Nostr event data:
author filtering on trust-sensitive queries, URL sanitization before
rendering event-sourced links/images, and CSS injection prevention
when interpolating event data into styles. The latter two were
previously undocumented in mkstack — imported and adapted from the
Ditto project's guidance, generalized to reference sanitizeUrl and
sanitizeCssString helpers as patterns to implement (mkstack doesn't
ship them yet) rather than existing imports.

AGENTS.md's Nostr Security Model now fits in a bulleted rule list
plus a single spoof-vs-authors example, with a pointer to the skill
for the full NIP-72 moderation walkthrough and sanitization details.
2026-04-26 21:52:42 -05:00
Alex Gleason 4217e553df Nest Loading and Empty States under Design Standards in AGENTS.md
Moves the section below the design rules list and demotes it from ## to
### so it reads as a subsection rather than a standalone top-level topic.
2026-04-26 21:50:53 -05:00
Alex Gleason a1619c1dab Extract testing guidance into a dedicated skill
Moves the 'don't write tests unless asked' policy and the Vitest +
TestApp setup example out of AGENTS.md into .agents/skills/testing/.
AGENTS.md keeps a short pointer so the 'always run the test script'
rule stays top-level while the test-authoring details load on demand.

Also adds a hook-testing example (renderHook + TestApp wrapper) and
notes for running vitest directly during iteration.
2026-04-26 21:50:26 -05:00
Alex Gleason bb24cb458b Patch lockfile to resolve npm audit advisories
Bumps transitive lodash and unhead versions within existing semver
ranges, clearing 2 moderate and 1 high advisory (GHSA-r5fr-rjxr-66jc,
GHSA-f23m-r3pf-42rh, GHSA-95h2-gj7x-gx9w).
2026-04-26 21:47:45 -05:00
Alex Gleason 66410edb60 Remove unused dependencies
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)
2026-04-26 21:46:45 -05:00
Alex Gleason ae0a857299 Enable TypeScript strict mode and drop deprecated baseUrl
tsconfig: remove the deprecated `baseUrl` (paths already use relative `./src/*`), flip strict to true, and drop the now-redundant individual linting flags that were only there to partially relax the old non-strict config.

useNostrPublish: tighten the mutation input type to a proper EventTemplate (Pick kind+content, Partial tags+created_at) so its UseMutationResult generics match the call sites under strict mode.
2026-04-26 21:42:33 -05:00
Alex Gleason b868c445d5 Bump react, vite, and tailwind to latest
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.
2026-04-26 21:39:28 -05:00
Alex Gleason 1a27af0212 Apply @tailwindcss/upgrade canonical class migrations
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()).
2026-04-26 21:38:20 -05:00
Alex Gleason 8a02a177f4 Silence fast-refresh warnings and modernize toast
Extract non-component exports (cva variants, contexts, hooks, constants) into sibling *-variants.ts / *-utils.ts files so every .tsx exports only components. This clears the react-refresh/only-export-components warnings introduced when regenerating the shadcn v4 components.

Affected:
- badge, button, toggle, navigation-menu, tabs: variants extracted
- form: FormFieldContext, FormItemContext, useFormField extracted
- sidebar: SIDEBAR_* constants, SidebarContext, useSidebar, sidebarMenuButtonVariants extracted
- calendar, pagination: updated to import buttonVariants from button-variants

Also upgrade toast.tsx to React 19 idioms: drop forwardRef + ElementRef + ComponentPropsWithoutRef in favor of ref-as-prop + React.ComponentProps, add data-slot attributes, replace z-[100] with z-100, and extract toastVariants to toast-variants.ts.

Includes canonical-class cleanups in chart, checkbox, command, context-menu, and drawer (e.g. min-w-[8rem] \u2192 min-w-32, data-[inset] \u2192 data-inset, [&_[cmdk-*]] \u2192 **:[[cmdk-*]]).
2026-04-26 21:37:26 -05:00
Alex Gleason 7e6ee840fe Regenerate shadcn/ui components for v4
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.
2026-04-26 21:27:30 -05:00
Alex Gleason edf1b1df49 Remove unused components.json
The shadcn CLI config file isn't referenced by the build, tests, or runtime — only by `npx shadcn add`, which we don't rely on.
2026-04-26 20:52:03 -05:00
Alex Gleason f0a92e5475 Upgrade to Tailwind CSS v4
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.
2026-04-26 20:51:29 -05:00
Alex Gleason b5043195d9 Remove skill list from AGENTS.md
The skill tool already provides a list of available skills with
descriptions, so enumerating them in AGENTS.md is redundant. Inline
"load the X skill" pointers next to related sections are kept \u2014
they serve as contextual cross-references, not a directory.
2026-04-26 20:44:31 -05:00
Alex Gleason 9617964e69 Split AGENTS.md into skills; compress design and query prose
Extract five topic areas into loadable skills: file-uploads,
nostr-encryption, theming, nip19-routing, nostr-relay-pools. Trim the
shadcn component enumeration, hook list, NostrMetadata type dump, and
Design Standards prose down to concrete rules. AGENTS.md shrinks from
1147 to 409 lines (~64%) while preserving the security model, core
hook usage, routing, loading/empty state, and git/test policies.
2026-04-26 20:43:22 -05:00