Skip to content

Fix all Svelte lint warnings and flaky CI test#2179

Merged
gary149 merged 2 commits intomainfrom
fix/lint-warnings
Mar 13, 2026
Merged

Fix all Svelte lint warnings and flaky CI test#2179
gary149 merged 2 commits intomainfrom
fix/lint-warnings

Conversation

@gary149
Copy link
Collaborator

@gary149 gary149 commented Mar 13, 2026

Summary

  • Fix 13 state_referenced_locally warnings by replacing prop-initialized $state() with default values + $effect.pre sync, and restructuring MarkdownRenderer to use $derived for sync blocks
  • Fix a11y_no_static_element_interactions in AudioPlayer by adding role="slider" with proper ARIA attributes
  • Remove unused svelte-ignore a11y_autofocus comment in NavConversationItem
  • Fix flaky 09-delete-empty-conversations test by moving lifecycle hooks inside describe block and awaiting ready before accessing DB collections

Test plan

  • npm run check — 0 errors, 1 warning (pre-existing, already suppressed in ESLint)
  • npm run lint — 0 errors
  • npm run test — 22 files, 155 tests passed
  • npm run build — success
  • Manual browser test — chat, markdown rendering, edit conversation modal all working

gary149 added 2 commits March 13, 2026 09:49
beforeAll/afterAll/afterEach were at module scope, outside the describe
block. In CI the DB connection isn't ready at module-level hook time,
causing "Cannot read properties of undefined (reading 'users')".
@gary149 gary149 force-pushed the fix/lint-warnings branch from 9881526 to 1035538 Compare March 13, 2026 09:10
@gary149 gary149 changed the title Fix all Svelte lint warnings Fix all Svelte lint warnings and flaky CI test Mar 13, 2026
@gary149 gary149 merged commit c2e6c6d into main Mar 13, 2026
6 checks passed
@gary149 gary149 deleted the fix/lint-warnings branch March 13, 2026 09:16
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