Add filter input to source manager for searching cached sources by name
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -148,7 +148,7 @@ While the bulk import is in progress, the user sees a text counter ("Loading sou
|
||||
If the user closes the side panel while a bulk import is still in progress, a persistent toast notification appears at the bottom-center of the screen showing the same progress text and progress bar.
|
||||
|
||||
**US-M6 — Manage Cached Sources (P4)**
|
||||
A DM wants to see which sources are cached, clear a specific source's cache, or clear all cached data. A management UI provides this visibility and control.
|
||||
A DM wants to see which sources are cached, find a specific source, clear a specific source's cache, or clear all cached data. A management UI provides this visibility and control, including a filter input to quickly locate sources by name when many are cached.
|
||||
|
||||
### Requirements
|
||||
|
||||
@@ -174,7 +174,7 @@ A DM wants to see which sources are cached, clear a specific source's cache, or
|
||||
- **FR-044**: The bulk import MUST run asynchronously and not block the rest of the app.
|
||||
- **FR-045**: The user MUST explicitly provide/confirm the URL before any fetches occur — the app never auto-fetches content.
|
||||
- **FR-046**: The "Load All" button MUST be disabled when the URL field is empty or while a bulk import is already in progress.
|
||||
- **FR-047**: The app MUST provide a management UI showing cached sources with options to clear individual sources or all cached data.
|
||||
- **FR-047**: The app MUST provide a management UI showing cached sources with a filter input for searching by display name and options to clear individual sources or all cached data.
|
||||
- **FR-048**: The normalization adapter and tag-stripping utility MUST remain the canonical pipeline for all fetched and uploaded data.
|
||||
- **FR-049**: The distributed app bundle MUST contain zero copyrighted prose content — only mechanical facts and creature names in the search index.
|
||||
|
||||
@@ -198,6 +198,7 @@ A DM wants to see which sources are cached, clear a specific source's cache, or
|
||||
16. **Given** two sources have been cached, **When** the DM opens the source management UI, **Then** both sources are listed with their display names.
|
||||
17. **Given** the source management UI is open, **When** the DM clears a single source, **Then** that source's data is removed; stat blocks for its creatures require re-fetching, while other cached sources remain.
|
||||
18. **Given** the source management UI is open, **When** the DM clears all cached data, **Then** all source data is removed and all stat blocks require re-fetching.
|
||||
19. **Given** many sources are cached, **When** the DM types a partial name in the filter input, **Then** only sources whose display name matches (case-insensitive) are shown.
|
||||
|
||||
### Edge Cases
|
||||
|
||||
|
||||
Reference in New Issue
Block a user