Skip to content

Monorepo: merge the website (ewiz-releases/app) into apps/web; Swift app to apps/macos - #85

Merged
broisnees merged 65 commits into
mainfrom
monorepo
Nov 21, 2026
Merged

broisnees merged 65 commits into
mainfrom
monorepo

Conversation

@broisnees

Copy link
Copy Markdown
Collaborator

Turns this repo into a Bun workspaces + Turborepo monorepo (t3code-style).

Layout

  • apps/macos: the Swift app, helper, MCP server, release scripts (moved with git mv, history intact)
  • apps/web: ewiz.app, merged from stroke-app/ewiz-releases/app with its full history (filter-repo + unrelated-histories merge)
  • packages/: for shared code later

Changes

  • Root package.json (workspaces, turbo, changesets, husky + lint-staged), turbo.json, root bun.lock
  • apps/macos/package.json now holds the app version (ewiz); changesets workflow reads it from there
  • release.yml runs in apps/macos; artifact/upload paths prefixed
  • CI: path-filtered Swift job and web job (format check, lint, build)
  • Web: renamed @ewiz/web, pnpm → bun, fixed LICENSE?raw import, own LICENSE; oxfmt applied to 3 files that already failed format:check
  • README documents the layout

Not changed

The update feed (appcast.xml/appcast.json) and Homebrew cask are still published to stroke-app/ewiz-releases; installed apps read raw.githubusercontent.com/stroke-app/ewiz-releases/main/appcast.xml.

Verified locally: bun run build builds both apps; web lint passes.

broisnees and others added 30 commits July 1, 2026 22:47
Switch the Drizzle setup, better-auth adapter, and env/vite/wrangler
config from postgres-js to drizzle-orm/d1. Replace the legacy pg
migration chain with a single SQLite 0000_init. Add wrangler.toml with
the D1 binding and worker-configuration types.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
# Conflicts:
#	app/src/lib/db/schema/license.schema.ts
Regenerate the license device-binding schema change as a proper SQLite
migration (0001) instead of the Postgres 0002 that came from feat/license:
make `key` nullable and add device_code, device_bound_at, rebind_count.

The rebuild copies only pre-existing columns so it applies cleanly whether
or not the remote D1 has already run 0000_init (verified both paths).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Unify the app on a single near-black + vivid-blue theme (replacing the
warm-green app tokens and the 1600-line bespoke `.blf` light landing CSS).
Blue is the interactive accent; green/orange are reserved for battery
status only.

- styles.css: rewrite :root/.dark tokens; drop the entire `.blf` block
- landing: rebuild to the SQL Studio shape (eyebrow → headline → product
  mockup → feature cards → how-it-works → specs → testimonials → pricing
  → maker → footer) in the macmousefix voice; new monochrome logo mark;
  new dark menu-bar popover mockup; footer links to legal pages
- auth: restyle login/signup to match the reference (icon-in-field inputs,
  required asterisk, password show/hide, "OR CONTINUE WITH", stacked
  social buttons); new shared AuthField; social buttons -> outline
- app: logo in header, drop the no-op theme toggle (dark-only)
- legal: new /legal/privacy and /legal/terms (Battlify + Dodo + Cloudflare),
  with [LEGAL_ENTITY]/[CONTACT_EMAIL]/[JURISDICTION] placeholders to fill
- remove dead app-mockups.tsx and _DELETE_ME template cruft

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Rework the landing to follow sql.studio's exact section structure with
Battlify content: centered hero (eyebrow → headline → 2-line subtext →
single Download button → "free for 30 days" caption), a wide macOS app-
window mockup with blue glow, "MADE WITH LOVE" + "What sets Battlify apart?"
full-width feature rows, a 3-card showcase, a "Made by a single developer"
section, a "Which Macs are supported?" status-card row, a two-tier
Free-trial / $2.99-license pricing block, and a Product/Connect/Legal footer.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Near-pure-black bg; single narrow centered column; borderless minimal nav;
compact Download button with trailing icon; blue-glow panel behind app
screenshots; left-aligned borderless feature rows (first filled); second
app-window screenshot; small maker card; centered Mac-support status cards;
pricing buttons pinned to card bottom; tri-color eyebrows (blue/rose/green).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Give :root a real sql.studio-style light palette (off-white ground, white
cards, deep-blue accent) and keep .dark as near-black + vivid blue. Default
ThemeProvider to system (was forced dark) and wire the Light/Dark/System
toggle back into the landing nav and app header. Soften the hero/frame blue
glows in light mode via dark: variants. All surfaces are token-driven, so
both themes stay in sync.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Replace lucide-react + simple-icons across the app with @hugeicons/react +
@hugeicons/core-free-icons, via a small <Icon> wrapper (currentColor, size-4
default). Swap landing, auth (incl. Google/GitHub brand marks), dashboard,
auth-field eye toggle, and sonner toast icons.

Rewrite ThemeToggle as a plain one-tap light/dark button (ContrastIcon) —
drops the DropdownMenu/@base-ui menu dependency that was pulled into the
landing route mid-session and caused the 'Outdated Optimize Dep' 504.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
New /blog section (layout + index + /blog/$slug) built on a Prose component,
with a posts registry. Flagship post covers how a lithium-ion cell works, why
cycle count is a myth, the real killer (high charge + heat), the chemistry
(SEI, plating, cathode wear, Arrhenius, voltage), practical longevity habits,
and a Battlify tie-in. Surface Blog in the landing nav + footer. Also pin
CLOUDFLARE_ACCOUNT_ID in the deploy script so remote D1 migrations stop
failing on the two-account ambiguity.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Ciechanowski-style: each concept is something you manipulate before it's
explained. Three interactive canvas figures (theme-aware, DPR-crisp,
reduced-motion aware):
- CellDiagram: animated Li-ion shuttle with Charge/Discharge, live SoC + voltage
- ChargeVoltage: slider over the voltage curve with the >80% high-stress zone
- AgingExplorer: charge-ceiling × temperature sliders showing the two killers
  multiply into a 2-year health projection

Rewrite the article to build intuition progressively around the figures.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- Client-only, SSR-safe PostHog init via a provider in the root document
- Route-change $pageview tracking wired to the TanStack router
- User identify/reset on sign-in/out from the authenticated layout
- Public key + host read from VITE_PUBLIC_POSTHOG_* env (no-ops if unset)
Includes PostHog config. Real secrets stay in the gitignored .env.
The README already referenced this file but it was never committed.
…design-sqlstudio

# Conflicts:
#	app/package.json
#	app/pnpm-lock.yaml
#	app/src/components/landing/landing-page.tsx
#	app/src/routeTree.gen.ts
#	app/src/routes/__root.tsx
#	app/src/styles.css
broisnees and others added 28 commits July 15, 2026 15:13
Rebrand Battlify to eWiz and move the site to ewiz.app.

Design
- New design system inspired by sql.studio: flat neutral grounds, quiet
  cards, Inter type, sky-blue accent, shared header/footer on every page.
- Landing page rebuilt around faithful HTML replicas of the real eWiz app
  (menu bar panel, Settings tabs, History, Details), an auto-advancing
  feature switcher, a bento grid of smaller features, and a lightweight
  lightning backdrop (drawn once per strike, GPU opacity fade, off for
  reduced motion).
- New wizard-hat-volt logo, favicons, Apple touch icon, OG image.
- Download, changelog (now through 0.18.1), blog, legal, auth and
  dashboard pages restyled; download page adds the Homebrew cask command.

Auth
- Account linking: GitHub, Google and email with the same address share
  one account and license; providers only render when configured.
- Dashboard card to connect sign-in methods.

SEO and infrastructure
- JSON-LD moved into <head>; richer SoftwareApplication data, breadcrumbs.
- llms.txt and llms-full.txt, web manifest, favicon.ico, image alt text,
  noindex on account pages, tighter titles and descriptions.
- Old host battlify.discerns.app 301-redirects to ewiz.app via a custom
  server entry; /license and /donate pages the Mac app links to.
- Production builds bake VITE_BASE_URL=https://ewiz.app (the client
  bundle previously pointed auth at localhost).
- Download, schema and llms files point to eWiz 0.18.2.
- Changelog entry for 0.18.2 (AI Agents).
- The Settings replica's Automation tab gains the AI Agents card from the
  app (agent switches, live hold, Claude Desktop / Cursor / Claude Code),
  and the feature switcher adds 'AI agents, kept in check', which scrolls
  the window to it.
The site no longer needs an edit per release: /changelog, /download, the
JSON-LD version and llms.txt read the stroke-app/ewiz releases API, cached
at the edge for 10 minutes and served stale if GitHub is unreachable.
Each change in a release's notes gets its own heading, the title box goes,
the version column stays in view while scrolling, and a title that repeats
the first heading is merged into it.
The website and update feed move from the TanStarter template's Unlicense
to the eWiz License the app uses, worded for a site: publishing a copy must
credit eWiz, carry no malware, keep the license key, checkout and payment
systems paying the author, and not pass itself off as eWiz.
Adopt the eWiz License (MMF-style)
/pricing shows the trial and license plans with how the license works
(trial, one Mac, dashboard key, Dodo checkout, refunds, source terms); the
nav and footer point at it. /legal/license renders the repository's LICENSE
file, so the page can't drift from it. The plan cards are shared with the
home page's pricing section.
feat: a /pricing page and the eWiz License on /legal/license
The "Made with care / What sets eWiz apart?" header becomes "A closer
look" with a line on what the window does. The list drops its per-row
icons and filled card for plain titles on a thin rail, with the 7-second
progress running down the rail. The window now sits inside its frame with
even margins instead of running off the bottom, and picking a tab in the
window selects the matching feature in the list.
feat: a calmer feature tour on the home page
Plainer, specific copy grounded in what eWiz actually does: the hero says
what wears a battery out and what eWiz does about it, features name real
trade-offs (Sealed Sleep's slower wake), the developer note is first
person, and the FAQ gains the password and Gatekeeper questions. The hero
caption no longer calls the web rebuild "the real eWiz panel". Colored
uppercase section labels are gone from the home and pricing pages.
feat: rewrite the home page copy in the developer's own voice
Sync the license notes with the app; ignore local tool state
"Make macOS stop wrecking your battery" becomes "Stop charging your
MacBook to 100%", on the page and in the Open Graph share image.
Removes the developer note from the home page and the "built by one
developer" phrasing from the footer, the Donate page and llms.txt.
A "Donate" link under the closing buttons on the home page, and one in
the footer's Product column on every page.
A plainer headline, no "one developer" lines, and a Donate link
Charge limit, bag drain, earbuds and a closed lid, music with the lid shut,
clamshell on battery, and AI agents: each headline brings its own line
underneath and they rotate every five seconds, the new one rising in as the
old one lifts away. All of them share one grid cell, so the hero keeps a
fixed height. No rotation with Reduce Motion on.
The route loader picks it, so the server render and the hydrated page
always agree on which one shows first.
Rotating hero headlines, with a random one first
- Root package.json with workspaces (apps/*, packages/*), turbo, changesets, husky
- apps/macos/package.json carries the app version ('ewiz') for changesets
- apps/web renamed @ewiz/web, pnpm → bun, lockfile at the root, LICENSE import fixed
- CI: path-filtered macOS (Swift) and web (format, lint, build) jobs
- release.yml runs in apps/macos; changesets reads the version from there
- README documents the layout; the feed and cask stay in ewiz-releases
@broisnees
broisnees merged commit 17e10e9 into main Nov 21, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant