Skip to content

Conversation

@d-buchmann
Copy link
Contributor

Fixes #1157.

  • Focus name field on all new entity editors
  • Focus amount on add/withdraw modal
  • Focus first number type input on any newly added CollectionType table row
    (debatable and slightly buggy - focuses Max field in parameters...)
  • Nothing for Project BOM yet; could be useful there too

It would be even more favorable if the user could configure if they want to use autofocus and/or for which fields/dialogs it should be enabled. I read that autofocus can cause issues with accessibility, especially when using screenreaders. Unfortunately I have no experience in that area :/

Fixes Part-DB#1157.
- Focus `name` field on new part
- Focus `amount` on add/withdraw modal
- Focus first "number type" input on any newly added collectionType table row... (debatable)

It would be even more favorable if the user could configure if they want to use autofocus and/or for which fields/dialogs it should be enabled.
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.73%. Comparing base (41252d8) to head (47c0d78).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1240      +/-   ##
============================================
- Coverage     54.74%   54.73%   -0.01%     
  Complexity     7924     7924              
============================================
  Files           596      596              
  Lines         25478    25480       +2     
============================================
  Hits          13947    13947              
- Misses        11531    11533       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

Auto-focus main fields on page load

1 participant