mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-07-29 19:21:33 -07:00
feat(stats): add sentence search tab and fix mining card behavior
- Add Search tab with realtime subtitle sentence search, media context, and mining actions - Persist library card size selection across reloads - Fix selection text written only for sentence cards, not word/audio cards - Fix word mining audio routed to SentenceAudio field when present - Fix sentence card created immediately before slow media generation completes - Fix Anki config resolved at request time for sentence mining - Prefer non-Signs/Songs tracks when auto-selecting secondary subtitle language
This commit is contained in:
@@ -30,6 +30,11 @@ const VocabularyTab = lazy(() =>
|
||||
default: module.VocabularyTab,
|
||||
})),
|
||||
);
|
||||
const SearchTab = lazy(() =>
|
||||
import('./components/search/SearchTab').then((module) => ({
|
||||
default: module.SearchTab,
|
||||
})),
|
||||
);
|
||||
const SessionsTab = lazy(() =>
|
||||
import('./components/sessions/SessionsTab').then((module) => ({
|
||||
default: module.SessionsTab,
|
||||
@@ -239,6 +244,19 @@ export function App() {
|
||||
</Suspense>
|
||||
</section>
|
||||
) : null}
|
||||
{mountedTabs.has('search') ? (
|
||||
<section
|
||||
id="panel-search"
|
||||
role="tabpanel"
|
||||
aria-labelledby="tab-search"
|
||||
hidden={activeTab !== 'search'}
|
||||
className="animate-fade-in"
|
||||
>
|
||||
<Suspense fallback={<LoadingSurface label="Loading search..." />}>
|
||||
<SearchTab />
|
||||
</Suspense>
|
||||
</section>
|
||||
) : null}
|
||||
{mountedTabs.has('sessions') ? (
|
||||
<section
|
||||
id="panel-sessions"
|
||||
|
||||
Reference in New Issue
Block a user