Commit Graph
69 Commits
Author SHA1 Message Date
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 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 c6be6355a7 Remove direct messaging from the codebase
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.
2026-04-26 17:57:05 -05:00
Alex Gleason 9e2599502d Extract NWC and Lightning zap code into an nwc skill
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.
2026-04-26 17:48:46 -05:00
Alex Gleason 4044d586db Upgrade Radix UI packages to fix infinite render loop with React 19
@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.
2026-03-28 02:31:41 -05:00
Alex Gleason 01889d1207 Upgrade Vite and Nostrify 2026-03-28 00:43:37 -05:00
Alex Gleason dcfdbf9e47 Upgrade to React 19
- react, react-dom: ^18.3.1 -> ^19.2.4
- @types/react, @types/react-dom: ^18.3.1 -> ^19.x
- react-day-picker: ^8.10.1 -> ^9.14.0 (rewrite calendar.tsx for v9 API)
- vaul: ^0.9.3 -> ^1.1.2
- Fix RefObject<T> type in ZapDialog for React 19 type changes
2026-03-28 00:13:05 -05:00
Alex Gleason cb52a18d09 Add NIP-42 relay authentication support
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.
2026-03-25 02:14:41 -05:00
Alex Gleason 699a3acb85 Upgrade Nostrify 2026-03-25 01:47:45 -05:00
Alex Gleason 1caf9dabcb feat: add client-initiated NIP-46 (nostrconnect://) login support
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
2026-03-24 16:21:15 -05:00
Alex Gleason 9af2db39f2 Upgrade to Vite 8
Way faster builds!
2026-03-20 15:51:52 -05:00
Alex Gleason 7e184e9199 npm audit fix 2026-02-21 21:08:55 -06:00
Alex Gleason 3d77bdba93 Upgrade Nostrify 2026-02-21 21:08:26 -06:00
Alex Gleason 8a69f988ce npm audit fix 2026-02-19 03:52:37 -06:00
Alex Gleason 3bbdab76a1 Upgrade Nostrify 2026-02-19 03:51:30 -06:00
Alex Gleason 098be99f9f Upgrade Nostrify, also npm audit fix 2026-02-12 13:40:11 -06:00
Alex Gleason 57d3f8abec npx update-browserslist-db@latest 2026-01-30 22:58:29 -06:00
Alex Gleason b97db2ca77 Upgrade zod to v4 2026-01-23 23:59:13 -06:00
Alex Gleason 20f9ea9069 npm audit fix 2026-01-17 19:19:05 -06:00
Alex Gleason fc4c4deded Upgrade Nostrify 2026-01-17 19:18:43 -06:00
Alex Gleason 6941aad2f5 Upgrade Nostrify 2025-12-22 13:28:39 -06:00
Alex Gleason 28aba4b3a4 Revert "Fix happy-dom vuln"
This reverts commit e5b3f249f8.
2025-12-21 04:11:11 -06:00
Alex Gleason e5b3f249f8 Fix happy-dom vuln 2025-12-21 02:28:15 -06:00
Alex Gleason 12e6465912 npm audit fix 2025-12-21 02:02:24 -06:00
Alex Gleason 84a15aa077 Revert "Try adding cashu deps"
This reverts commit 6534c5fcea.
2025-11-20 11:14:14 -06:00
Alex Gleason 8c7b595d22 Revert "Use nutstack package.json and package-lock.json"
This reverts commit 0bf1e0e85e.
2025-11-20 11:14:07 -06:00
Alex Gleason 0bf1e0e85e Use nutstack package.json and package-lock.json 2025-11-19 18:47:04 -06:00
Alex Gleason 6534c5fcea Try adding cashu deps 2025-11-19 18:42:35 -06:00
Alex Gleason 0b7d86a16f Remove DMProvider from App.tsx and update DM documentation
- Removed DMProvider, DMConfig imports and configuration from App.tsx
- Updated docs/NOSTR_DIRECT_MESSAGES.md with setup instructions
- DM functionality now requires manual setup as documented
- Preserved all existing intentional test errors
2025-11-11 17:34:45 -06:00
lemonknowsall eb0fd14e33 remove /messages route 2025-11-06 19:43:20 -08:00
sam 14db9f59d0 Merge branch 'main' into feat/messaging-example 2025-10-22 23:59:41 +07:00
Alex Gleason 1b4c27d17d Use nostrify from npm 2025-10-21 20:11:41 -05:00
sam 211d303301 idb package 2025-10-21 08:58:24 +07:00
Alex Gleason 19ecfee4bf Add Buffer polyfill 2025-10-18 12:11:32 -05:00
Chad Curtis d462a8d679 Remove unneeded webln npm package
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.
2025-10-05 19:33:04 +00:00
Chad Curtis d1744b7d71 Merge branch 'infiniteScroll' into 'main'
Add context for pagination (i.e., infinite feed scroll)

See merge request soapbox-pub/mkstack!16
2025-09-01 22:02:49 +00:00
Chad Curtis 6458b24305 Add react-intersection-observer per AGENTS.md 2025-09-01 21:26:23 +00:00
Chad Curtis be0f74543c Remove copy button from signup flow. npm i 2025-09-01 19:43:53 +00:00
Alex Gleason a862d30e8e Remove sonner 2025-08-09 19:45:54 -08:00
Chad Curtis c231ee40ac Merge branch 'main' of gitlab.com:soapbox-pub/mkstack into zapSupport 2025-07-25 23:45:15 +00:00
Alex Gleason fbbf7f8c39 npm audit fix 2025-07-23 16:30:18 -05:00
Chad Curtis 612aacb00b Merge branch 'main' of gitlab.com:soapbox-pub/mkstack into zapSupport 2025-07-17 22:38:39 +00:00
Alex Gleason 94e29c2f45 Upgrade Nostrify 2025-07-15 15:56:06 -05:00
Chad Curtis ab54efba47 merge in from upstream and resolve conflicts 2025-07-14 03:58:49 +00:00
Chad Curtis 45ff37e752 messy, nwc support +_wallet fixes 2025-07-13 17:53:30 +00:00
Alex Gleason f7736ddfb1 Upgrade Nostrify 2025-07-12 18:56:22 -05:00
Chad Curtis d68f2d8486 minimal zap support 2025-07-12 19:19:41 +00:00
Alex Gleason 49952a10bf Parse AppConfig with a zod schema 2025-07-03 19:04:40 -05:00
Alex Gleason 4e1c43ee13 npm audit fix 2025-06-16 14:11:01 -05:00
Alex Gleason e70b3640e8 Remove prerendering after all 2025-06-09 22:30:09 -05:00