refactor(ext/popup): rename entry-* → item-* components

Git-moves the three popup components so history survives the content
rewrite that follows in Tasks 22–24:
- entry-list.ts   → item-list.ts
- entry-detail.ts → item-detail.ts
- entry-form.ts   → item-form.ts

Also renames the exported render functions (renderEntryList →
renderItemList, etc.) and updates popup.ts imports + render switch.
The files still wear @ts-nocheck and reference the old Entry type;
content rewriting happens in Tasks 22–24.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken
2026-04-20 21:01:50 -04:00
parent 856ceb2d93
commit d090fc421e
4 changed files with 10 additions and 10 deletions

View File

@@ -29,7 +29,7 @@ async function copyToClipboard(text: string): Promise<void> {
}
}
export function renderEntryDetail(app: HTMLElement): void {
export function renderItemDetail(app: HTMLElement): void {
const state = getState();
const entry = state.selectedEntry;
const id = state.selectedId;

View File

@@ -4,7 +4,7 @@
import { getState, setState, sendMessage, navigate, escapeHtml } from '../popup';
import type { Entry, ManifestEntry } from '../../shared/types';
export function renderEntryForm(app: HTMLElement, mode: 'add' | 'edit'): void {
export function renderItemForm(app: HTMLElement, mode: 'add' | 'edit'): void {
const state = getState();
const existing = mode === 'edit' ? state.selectedEntry : null;

View File

@@ -23,7 +23,7 @@ function getGroups(entries: Array<[string, ManifestEntry]>): string[] {
return Array.from(groups).sort();
}
export function renderEntryList(app: HTMLElement): void {
export function renderItemList(app: HTMLElement): void {
const state = getState();
const groups = getGroups(state.entries);
const filtered = getFilteredEntries();