Repository navigation
Modernize to Ember 7, Vite, TypeScript/gts, Tailwind 4, and Capacitor 8 - #57
Conversation
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>
|
Warning Review limit reached
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 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 configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (4)
📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe 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. ChangesApplication platform migration
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
Estimated code review effort🎯 5 (Critical) | ⏱️ ~90+ minutes Poem
✨ Finishing Touches🧪 Generate unit tests (beta)
|
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>
Rebuilds the app on the Ember 7 Vite app blueprint and modernizes the whole stack.
Toolchain
compatBuild), TypeScript with Glint 2.tool-versionsApp code
.gtstemplate tag with typed signaturesaudio-analyzerdirectlyaudio-analyzerservice and utils fully typed; nav menu uses@trackedstate instead of DOMclassListmanipulation@tailwindcss/vitewith CSS-first@themeconfigSVGs
ember-svg-jaris maintenance-only (The Future of Ember SVG Jar evoactivity/ember-svg-jar#290), so this migrates to its successor@svg-jar/plugin: SVGs inapp/svgs/are imported as components (import Mic from 'wuf/svgs/mic.svg') and served from a single hashed sprite sheetbark-type.gts(the plugin requires static imports)Capacitor
server.urlso production builds aren't pointed at localhost; livereload setup documented in the READMEpnpm cap:sync,cap:ios,cap:androidDropped (incompatible/unmaintained)
emberbarrel removed in Ember 7; the results fade is now a CSS animationTests (26 passing)
audio-analyzerservice tests, and rendering tests forbark-type,nav-menu,audio-uploader(stubbed service), andfooterNotes for review
@svg-jar/plugin/client/embermust precedevite/clientin tsconfigtypes, or the*.svgwildcard resolves to vite'sstringdeclarationappIdis stillcom.example.app— changing the bundle ID felt like a product decision, happy to follow upvite-plugin-pwa)🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Chores