mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 23:02:10 +03:00
* feat(providers): implement bulk paste for extra API keys Adds `parseExtraApiKeys` utility to process multi-line key inputs. Integrates bulk paste functionality into the provider connection modal. Users can now paste multiple API keys, one per line, into the input field. Provides notifications for successfully added keys and ignored duplicates. Adds a "Delete all" button to clear all extra API keys. Updates i18n messages for new features and improved key masking/pluralization. * refactor(providers): streamline API key bulk paste and i18n Remove unused return from `handleAddParsedExtraKeys` to clean up code. Adjust `onPaste` to allow default paste for single-line input, improving UX. Remove obsolete bulk paste UI translation keys to reduce bundle size. Update pluralization for bulk paste messages to ensure correct grammar. Refine Portuguese (Brazil) API key translations for clarity. * fix(logs): apply code review feedback - robust signature, immediate fetch on tab restore, reuse memoized apiKeyCount * test(logs): extract pure polling/signature helpers + cover them (#3109) Hard rule #8: the perf fix touched src/ without tests. Extract computeLogsSignature, shouldAutoRefresh and resolveInitialVisibility into a pure module and unit-test them (change-detection, first-page polling guard, SSR/hidden-tab visibility init). Also fixes visibleRef to honor the real visibilityState on mount instead of hardcoding true (no poll when mounted in a hidden tab). --------- Co-authored-by: diegosouzapw <diegosouza.pw@gmail.com>