Skip to content
This repository was archived by the owner on May 13, 2026. It is now read-only.

fix(query-form): wire schemasLoading to SelectField loading state - #1021

Merged
shiba4life merged 1 commit into
mainfrom
fix/queryform-unused-schemasloading
May 12, 2026
Merged

fix(query-form): wire schemasLoading to SelectField loading state#1021
shiba4life merged 1 commit into
mainfrom
fix/queryform-unused-schemasloading

Conversation

@shiba4life

Copy link
Copy Markdown
Collaborator

Summary

  • QueryForm.tsx:45 destructured schemasLoading but never used it, producing a @typescript-eslint/no-unused-vars error in npm run lint. Found incidentally during kanban 7758e / PR refactor(frontend): use BROWSER_CONFIG.STORAGE_KEYS.USER_HASH instead of literal 'fold_user_hash' #1020.
  • SelectField already supports config.loading (renders a spinner). Wired schemasLoading through — case (b) from the kanban prompt, 1-line fix.
  • The test at QueryForm.test.tsx:97 was checking that the combobox stayed present in loading state (it never did — the assertion only passed because the prop was unwired). Now asserts the loading indicator is shown and the combobox is gone.

Test plan

  • npm run lint — 0 errors (was 1), 89 warnings (unchanged, out of scope)
  • npm run typecheck — clean
  • npm test — 788/788 pass

🤖 Generated with Claude Code

QueryForm destructured schemasLoading but never used it, tripping
@typescript-eslint/no-unused-vars. SelectField already accepts
config.loading and renders a spinner — pass schemasLoading through
so the schema picker reflects the in-flight fetch.

Also fix the now-meaningful loading test that previously asserted
the combobox stayed present (it didn't — loading mode replaces it).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@shiba4life
shiba4life enabled auto-merge May 12, 2026 11:12
@shiba4life
shiba4life added this pull request to the merge queue May 12, 2026
Merged via the queue into main with commit f9258ec May 12, 2026
12 checks passed
@shiba4life
shiba4life deleted the fix/queryform-unused-schemasloading branch May 12, 2026 11:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant