Skip to content

Modernize to Ember 7, Vite, TypeScript/gts, Tailwind 4, and Capacitor 8 - #57

Merged
RobbieTheWagner merged 8 commits into
masterfrom
modernize
Jun 12, 2026
Merged

RobbieTheWagner merged 8 commits into
masterfrom
modernize

Conversation

@RobbieTheWagner

@RobbieTheWagner RobbieTheWagner commented Jun 11, 2026 •

Copy link
Copy Markdown
Owner

Rebuilds the app on the Ember 7 Vite app blueprint and modernizes the whole stack.

Toolchain

  • Ember 7.0 + Vite 8 (Embroider compatBuild), TypeScript with Glint 2
  • pnpm (replaces yarn 1), Node 22 pinned in .tool-versions
  • ESLint 9 flat config, Prettier 3, stylelint, ember-template-lint 7, pnpm-based CI

App code

  • All components and route templates converted to .gts template tag with typed signatures
  • Controllers and empty route classes removed — route templates are components that inject audio-analyzer directly
  • audio-analyzer service and utils fully typed; nav menu uses @tracked state instead of DOM classList manipulation
  • Tailwind 3 + SCSS/PostCSS → Tailwind 4 via @tailwindcss/vite with CSS-first @theme config

SVGs

  • ember-svg-jar is maintenance-only (The Future of Ember SVG Jar evoactivity/ember-svg-jar#290), so this migrates to its successor @svg-jar/plugin: SVGs in app/svgs/ are imported as components (import Mic from 'wuf/svgs/mic.svg') and served from a single hashed sprite sheet
  • Dynamic bark icons use a static import map in bark-type.gts (the plugin requires static imports)

Capacitor

  • 4 → 8, native projects regenerated (iOS now uses Swift Package Manager — no CocoaPods needed)
  • Removed the committed dev server.url so production builds aren't pointed at localhost; livereload setup documented in the README
  • New scripts: pnpm cap:sync, cap:ios, cap:android

Dropped (incompatible/unmaintained)

  • ember-animated — imports the ember barrel removed in Ember 7; the results fade is now a CSS animation
  • FastBoot + prember (prerendering), ember-service-worker, ember-web-app, ember-meta — webmanifest and meta/OG tags are now static

Tests (26 passing)

  • New bark-classification unit tests (including one running real Web Audio analysis on the sample clip)
  • New audio-analyzer service tests, and rendering tests for bark-type, nav-menu, audio-uploader (stubbed service), and footer
  • Acceptance tests (record + upload → "Alert") ported to TS and still exercising the full analysis pipeline

Notes for review

  • @svg-jar/plugin/client/ember must precede vite/client in tsconfig types, or the *.svg wildcard resolves to vite's string declaration
  • Capacitor appId is still com.example.app — changing the bundle ID felt like a product decision, happy to follow up
  • If prerendering for SEO or PWA/offline support is still wanted, that needs a follow-up (e.g. vite-plugin-pwa)

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Enhanced mobile platform support with updated Android and iOS configurations
  • Chores

    • Updated development environment requirements (Node.js 22+, pnpm package manager)
    • Modernized build toolchain and dependencies
    • Rebranded application to "Wüf"

Rebuild the app on the Ember 7 Vite app blueprint:

- Vite 8 + Embroider build, TypeScript with Glint 2, pnpm, Node 22
- All components and route templates converted to .gts template tag;
  controllers and empty route classes removed (route templates inject
  services directly)
- Tailwind 3 + SCSS/PostCSS replaced with Tailwind 4 via @tailwindcss/vite
  and CSS-first @theme config
- Capacitor 4 -> 8 with regenerated android/ios projects (iOS uses SPM,
  so CocoaPods is no longer required); committed dev server.url removed
- ember-svg-jar replaced with its successor @svg-jar/plugin (the addon is
  maintenance-only, see evoactivity/ember-svg-jar#290); SVGs are imported
  as components and served from a single sprite sheet
- ember-animated dropped (incompatible with Ember 7's removal of the
  ember barrel); fade handled with a CSS animation
- FastBoot/prember, ember-service-worker, ember-web-app, and ember-meta
  dropped (unmaintained); webmanifest and meta tags are now static
- Tests expanded: bark classification unit tests, audio-analyzer service
  tests, and new rendering tests for bark-type, nav-menu, audio-uploader,
  and footer, alongside the ported acceptance tests
- ESLint 9 flat config, Prettier 3, stylelint, and pnpm-based CI

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

@RobbieTheWagner, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 48 minutes and 25 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more credits in the billing tab to continue.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 90393898-0c27-4b8b-be90-9a85a2d7bb7a

📥 Commits

Reviewing files that changed from the base of the PR and between 90ae952 and d8666c6.

⛔ Files ignored due to path filters (4)
  • app/svgs/close.svg is excluded by !**/*.svg
  • app/svgs/menu.svg is excluded by !**/*.svg
  • app/svgs/mic.svg is excluded by !**/*.svg
  • app/svgs/stop-circle.svg is excluded by !**/*.svg
📒 Files selected for processing (1)
  • app/styles/app.css
📝 Walkthrough

Walkthrough

The PR migrates the app to a TypeScript, Vite, and Capacitor-based setup, replaces several Ember and build configs, rewrites app bootstrap and UI modules, refactors audio analysis utilities, and updates Android/iOS packaging plus test harnesses and coverage.

Changes

Application platform migration

Layer / File(s) Summary
Tooling and build foundation
.*, package.json, babel.config.mjs, eslint.config.mjs, tsconfig.json, vite.config.mjs, ember-cli-build.mjs, testem.cjs, netlify.toml, .github/workflows/ci.yml
Build, lint, formatter, compiler, package, and workflow configuration are updated for the new Node 22, pnpm, Vite, and flat-config setup.
App bootstrap and routing
app/app.ts, app/config/environment.ts, app/deprecation-workflow.ts, app/router.ts, app/routes/application.ts, app/index.html, index.html, app/templates/application.gts, app/templates/application.hbs, app/controllers/*, app/routes/*, config/environment.js
Application entrypoints, environment loading, router import, and route-level bark-data clearing are moved to TypeScript and updated runtime wiring.
Components, templates, and styles
app/components/*, app/templates/*.gts, app/templates/*.hbs, app/styles/*.css, app/styles/*.scss
Audio capture, audio upload, bark display, navigation, footer, page templates, and global styles are converted to Glimmer/GTS and Tailwind-based styling.
Audio analysis utilities and service
app/services/audio-analyzer.ts, app/utils/barks.ts, app/utils/statistics.ts, app/utils/convert-data-uri-to-binary.ts
Audio analysis service code and bark/statistics helpers are rewritten with typed contracts and updated processing flow.
Android and iOS native setup
android/*, ios/*, capacitor.config.json, public/manifest.webmanifest
Android Gradle, iOS project files, Capacitor settings, wrapper scripts, manifests, icons, and platform metadata are updated for the new native app packaging.
Test harness and suites
tests/*
Test bootstrapping, helpers, fixtures, acceptance coverage, and component/unit test suites are added or rewritten for the new app structure.
Docs and app metadata
README.md, config/ember-cli-update.json, public/manifest.webmanifest, netlify.toml
Project documentation and web app metadata are updated for Wüf naming, Capacitor usage, and manifest output.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant AudioCapturer
  participant AudioUploader
  participant AudioAnalyzerService
  participant BarkType
  User->>AudioCapturer: startRecording() / stopRecording()
  User->>AudioUploader: uploadFile(file)
  AudioCapturer->>AudioAnalyzerService: uploadAudioVideo({ blob })
  AudioUploader->>AudioAnalyzerService: uploadAudioVideo({ blob })
  AudioAnalyzerService->>BarkType: expose barkType and barkDescription
Loading

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~90+ minutes

Poem

🐰 I hopped through builds and barks so bright,
Vite now zips and Tailwind sings at night.
I sniffed the tracks, then thunk and thrum,
Wüf got new roots, and tests all hummed.
Ears up! The app now barks in tune.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch modernize

RobbieTheWagner and others added 7 commits June 11, 2026 15:47
pnpm/action-setup v4 errors when a version is set in both the workflow
and package.json's packageManager field.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The Netlify UI settings predate the modernization (yarn + ember build),
and the SPA needs a history-fallback redirect now that prerendering is
gone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
startRecording awaits getUserMedia before creating the MediaRecorder, so
clicking stop after a fixed 200ms could no-op on slow CI runners and the
analysis never ran. Track recording state on AudioCapturer (disabling
whichever button doesn't apply) and have the test wait for recording to
actually start before stopping it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Netlify's image optimization runs SVGO over the generated svg sprite and
removes all of the <symbol> elements, leaving every icon blank. Vite
already minifies and fingerprints assets, so skip post-processing
entirely.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The skip_processing setting doesn't apply to assets Netlify already has
in its processed cache, so give the sprite a fresh path.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The svg sprite mangling came from the UI-installed image-optim build
plugin (now removed), not Netlify post-processing, which was
end-of-serviced in 2023 and ignores this setting anyway. Leave a note
so the plugin doesn't come back.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- @svg-jar/plugin drops presentation attributes from the root <svg> when
  building sprite <symbol>s, so the feather icons lost fill="none" and
  stroke="currentColor" and rendered as black blobs. Carry those
  attributes on an inner <g> instead.
- In Tailwind 4, unlayered CSS beats @layer utilities, so .btn's w-full
  was overriding lg:w-40 and stacking the home page buttons. Move the
  custom classes into @layer components to restore Tailwind 3 semantics.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@RobbieTheWagner
RobbieTheWagner merged commit a904e75 into master Jun 12, 2026
5 checks passed
@RobbieTheWagner
RobbieTheWagner deleted the modernize branch June 12, 2026 02:12
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