Skip to content

chore(app): fix the svelte-check warnings in ProfileEditor - #53

Merged
arifintahu merged 1 commit into
mainfrom
chore/profile-editor-svelte-warnings
Nov 17, 2026
Merged

arifintahu merged 1 commit into
mainfrom
chore/profile-editor-svelte-warnings

Conversation

@arifintahu

Copy link
Copy Markdown
Member

What and why

Fixes the 9 svelte-check warnings in ProfileEditor.svelte. Closes #38.

  • state_referenced_locally (6): the form is a draft copied once from the profile prop. SettingsPanel mounts a fresh editor for each Edit/New click and hides the list while one is open, so the prop never changes during an editor's life. Made that explicit with untrack and a short comment; behaviour is unchanged.
  • Unused CSS (3): removed the select, select:focus and input[type="number"] selectors. The editor has no <select> or number input.

How you checked it

  • pnpm --filter @emberterm/app check: 0 errors, 0 warnings (was 0 errors, 9 warnings)

  • pnpm turbo check test build: passes (181 Vitest tests)

  • cargo fmt --check, cargo clippy --all-targets -- -D warnings: clean

  • cargo test: 111 passed

  • pnpm version:check: all versions 1.1.0

  • Not exercised in the running app: opening, editing, saving and deleting a profile. No Windows-specific or Rust code changed.

  • cargo fmt --check, cargo clippy -- -D warnings and cargo test pass

  • pnpm turbo check test build and pnpm version:check pass

  • Bug fixes have a test that failed before the fix (n/a, no bug fix)

  • No secrets, personal paths or machine names in the diff

  • Docs and CHANGELOG.md updated if behaviour changed (n/a, no behaviour change)

Copy the profile prop once on purpose (SettingsPanel mounts a fresh editor
per Edit/New click) and say so in a comment, and drop the unused select and
number-input CSS selectors.

Closes #38
@arifintahu arifintahu added the enhancement New feature or request label Nov 17, 2026
@arifintahu
arifintahu merged commit 48eef46 into main Nov 17, 2026
4 checks passed
@arifintahu
arifintahu deleted the chore/profile-editor-svelte-warnings branch November 17, 2026 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(app): fix the 9 svelte-check warnings in ProfileEditor.svelte

1 participant