Commit Graph
146 Commits
Author SHA1 Message Date
silvertakana 11919731d2 fix: skip unverified plugin dialog on demo admin already approved by installing 2026-03-18 22:13:20 +13:00
silvertakana 2a285312b0 feat: show ADMIN badge in header when demo admin is logged in, text input on demo login 2026-03-18 22:11:06 +13:00
silvertakana 027672d885 fix: use text input on demo login so admin username works without email validation 2026-03-18 22:08:50 +13:00
silvertakana e016342dea feat: session-based demo admin login via /login with admin credentials 2026-03-18 22:07:30 +13:00
silvertakana a56e2b6340 feat: allow operator plugin management on demo via admin secret header 2026-03-18 22:02:42 +13:00
silvertakana b1fa384476 fix: re-stamp trust at load time against live registry
Plugins installed while verified had stale trust values in the DB.
The load route now re-checks the registry so revoked plugins correctly
trigger the unverified warning dialog.
2026-03-18 18:31:57 +13:00
silvertakana efa886ad3e feat: signal pending state for unverified plugin installs
install-redirect returns ?pending=pluginId for unverified plugins
instead of ?installed, so the marketplace can show correct status.
2026-03-18 18:26:24 +13:00
silvertakana 3d25b2642a feat: enhance layer item UI with trust badges, category badges, and proper icon rendering
- Extract LayerItem component from LayerPanel for modularity
- Use PluginIcon component for proper Lucide SVG icon rendering (fixes raw text like 'Atom' showing instead of icon)
- Add trust badges (Official/Verified/Unverified) matching marketplace design
- Add category badges matching marketplace PluginCard style
- Move layer-item CSS from globals.css to dedicated LayerItem.css
2026-03-18 18:07:33 +13:00
silvertakana ca7125f3ac feat: server-side trust stamping and unverified plugin warning dialog 2026-03-18 17:13:04 +13:00
silvertakana c247e3dde0 fix: bypass auth on demo edition no login required
- proxy.ts: early return NextResponse.next() when isDemo
- auth.config.ts: authorized() returns true when isDemo
- Demo instance is now fully public as designed in the architecture
2026-03-18 16:45:27 +13:00
silvertakana a25d7ce09b feat: block demo instance from marketplace plugin operations
- Guard install-redirect, install, uninstall, grant-token routes with
  isPluginInstallEnabled check (returns 403 on demo edition)
- Expose edition field in setup-status endpoint for marketplace detection
2026-03-18 16:40:42 +13:00
silvertakana 1bbd97b382 security: remove legacy bridge token, add rate limiting to all marketplace endpoints 2026-03-18 16:05:51 +13:00
silvertakana 5999ef7d8d fix: align MilitaryPlugin ID with marketplace/npm name (military-aviation) 2026-03-18 15:45:47 +13:00
silvertakana a764eefcd8 fix: respect callbackUrl on login for marketplace redirect flow 2026-03-18 15:39:06 +13:00
silvertakana f2bd3fecfe feat: allow uninstalling built-in plugins via marketplace
- Add disableBuiltinPlugin/getDisabledBuiltinIds to repository
- Uninstall endpoint inserts 'disabled' marker for built-ins
- Status endpoint filters out disabled built-ins
- New /api/marketplace/disabled-builtins endpoint
- AppShell skips registering disabled built-in plugins
2026-03-18 15:35:24 +13:00
silvertakana ee5702f21e fix: report built-in plugins as installed in marketplace status endpoint 2026-03-18 15:21:27 +13:00
silvertakana c4e9dd3951 perf: optimize animation loop for 17k+ static entities
- Remove redundant JS frustum culling (Cesium handles natively via GPU)
- Static entities (no speed/heading) only horizon-culled every 30 frames
- Dynamic entities (aviation) still update per frame
- Cache animatables array to avoid per-frame allocation
- Use distanceSquared to avoid sqrt in hot path
2026-03-18 12:58:13 +13:00
silvertakana 2e928d2d64 feat: add changelog sections to all plugin READMEs, bump versions for npm publish 2026-03-18 12:48:32 +13:00
silvertakana 8ec9465274 feat: add lucide icon name lookup to PluginIcon + update scaffold script 2026-03-18 12:45:50 +13:00
silvertakana de40d79662 fix: resolve ghost data points by switching to synchronous entity rendering
The async chunked processor (renderEntitiesChunked) spread entity processing
across multiple requestAnimationFrame frames. When plugin polling triggered a
re-render mid-flight, the old run was cancelled but stale primitives remained
in the shared map, causing brief ghost point flashes.

Switch to synchronous renderEntities so all entities are processed atomically
in a single frame, eliminating the race condition.
2026-03-18 12:38:21 +13:00
silvertakana 853c173c37 feat: add embassies plugin (17266 diplomatic missions from OSM) 2026-03-18 12:06:22 +13:00
silvertakana fcef4d46fa rename: wwv-plugin-military wwv-plugin-military-aviation 2026-03-18 11:51:16 +13:00
silvertakana 3e8a54a541 feat: add nuclear facilities plugin (758 global sites from OSM) 2026-03-18 11:44:19 +13:00
silvertakana 5c97ceaa64 feat: add wwv-plugin-military-bases package for marketplace listing 2026-03-18 11:39:55 +13:00
silvertakana 9312c40862 feat: Add core globe rendering and entity management, implement login actions, update CSP, and ignore agents directory. 2026-03-18 11:19:15 +13:00
silvertakana 52a08dfd7b fix: correct GitHub username in package URLs (silveittakana -> silvertakana) and bump to v1.0.3 2026-03-18 11:17:52 +13:00
silvertakana fe1c80e798 docs: add README files to all plugin packages, bump to v1.0.2 2026-03-17 19:05:10 +13:00
silvertakana bce7da4006 chore: enhance plugin descriptions and metadata, bump to v1.0.1 2026-03-17 18:54:39 +13:00
silvertakana 534ccc03af docs: rewrite npm-plugin-publishing skill with OIDC, ops guide, troubleshooting 2026-03-17 18:13:55 +13:00
silvertakana 0736b7a051 chore: gitignore packages dist, remove tracked build artifacts 2026-03-17 18:12:22 +13:00
silvertakana c706d83009 chore: add tsconfig.json to plugin packages, update package.json for npm publish 2026-03-17 18:11:54 +13:00
silvertakana 6b3f351d38 ci: switch to OIDC trusted publishing, remove NPM_TOKEN dependency 2026-03-17 16:50:41 +13:00
silvertakana 62c333e99a chore: remove old plugin folders, fix FrustumRenderer import path 2026-03-17 16:43:50 +13:00
silvertakana e46096dd87 feat: restructure plugins into npm workspace monorepo with wwv-plugin-sdk 2026-03-17 16:37:04 +13:00
silvertakana 48c4045f84 feat: add rate limiting to sensitive API endpoints (keys, proxy, install, auth) 2026-03-17 16:32:04 +13:00
silvertakana c656c86baa fix: JWT user binding (sub/iss/aud), CSP headers, token via URL fragment 2026-03-17 16:25:44 +13:00
silvertakana 975c4b1d38 fix: security hardening - SSRF protection, auth gates, manifest validation, domain fixes 2026-03-17 16:17:04 +13:00
silvertakana 38fc546b12 fix: correct domain allowlists (.io → .dev), harden CORS fallback, fix test env vars 2026-03-17 13:30:17 +13:00
silvertakana 66f9d705d7 feat: add edition detection module (local/cloud/demo) 2026-03-17 12:41:37 +13:00
silvertakana 652aa3f94f chore: remove stale MVP files (Task, Implementation Plan, temp scripts) 2026-03-16 17:59:03 +13:00
silvertakana e6995e3a17 Merge branch 'main' of https://github.com/silvertakana/worldwideview into feature/marketplace-integration 2026-03-16 17:28:36 +13:00
silvertakana ba8d031d19 feat: track camera source type in analytics (default/traffic/url/file) 2026-03-16 15:26:46 +13:00
silvertakana 4d33d434c0 feat: add Umami analytics tracking across all UI components
- Add analytics utility (src/lib/analytics.ts) with null-safe trackEvent wrapper
- Add TypeScript declarations for window.umami (src/types/umami.d.ts)
- Migrate script tag to next/Script for hydration-safe loading
- Track 21 custom events across the platform:
  - UI: region-select, time-window-change, search-query, search-select,
    layer-toggle, panel-tab-switch, discord-link-click, view-mode-change,
    imagery-layer-change, filter-change, filter-clear, favorite-select,
    favorite-remove, panel-toggle
  - Behavioral: camera-move-end (2s debounce), platform-boot (with duration),
    entity-select, geojson-import, video-feed-open
  - Errors: plugin-error (centralized via PluginManager.onError)
2026-03-16 14:52:26 +13:00
silvertakana 350f70c34f Merge branch 'main' into feature/marketplace-integration
merge gitignore
2026-03-16 14:33:19 +13:00
silvertakana 0c54d6ca1d chore: gitignore generated prisma client and local database 2026-03-16 14:32:43 +13:00
silvertakana 9a92640469 Merge branch 'main' into feature/marketplace-integration
analytics
2026-03-16 14:27:41 +13:00
Silvertakana 44c05efd95 Update analytics script source to secure URL 2026-03-16 14:17:12 +13:00
Silvertakana b19ec0af6e Add script tag for umami tracking 2026-03-16 10:55:29 +13:00
silvertakana 0a3d7c96ea fix: grant-token endpoint + manage page token detection + load route filtering
- Add GET /api/marketplace/grant-token: issues marketplace JWT for users
  configuring instance URL from Manage page (no install required)
- Update GET /api/marketplace/load: skip trust:'built-in' plugins (already
  in AppShell) and invalid/empty manifests from legacy installs
- Fix CORS on GET /api/auth/setup-status (needed by marketplace Test Connection)
- Fix AUTH_SECRET variable name in marketplaceToken.ts (was NEXTAUTH_SECRET)
- Fix btoa Unicode error in InstallButton (unescape+encodeURIComponent)
- Fix bundle plugin manifests missing entry field in getInstallManifest()
- Add top-level try/catch in install-redirect route for better error handling
- Update artifacts/marketplace design doc to reflect current implementation
2026-03-15 19:36:10 +13:00
silvertakana 665ad5317c feat: marketplace token-on-redirect for cross-origin Manage page auth
- Add lib/marketplace/marketplaceToken.ts: issueMarketplaceToken() and
  verifyMarketplaceToken() using jose JWT signed with NEXTAUTH_SECRET,
  30-day expiry, scope:'marketplace' claim (stateless, no DB needed)
- Update lib/marketplace/auth.ts: validateMarketplaceAuth now accepts
  session OR marketplace JWT OR legacy bearer token (in that order)
- Update api/marketplace/install-redirect/route.ts: issue JWT on
  successful install and append ?token=<jwt> to redirect URL
- Add marketplaceToken.test.ts: 5 tests covering round-trip, tamper,
  wrong secret, and wrong scope (node environment for jose compat)
2026-03-15 18:15:10 +13:00