fix: wire catalog add buttons, fix Trans bold rendering, lint cleanup
- CatalogSearchOverlay: replace handleAddStub with real openAddToCollection/openAddToThread routing based on catalogSearchMode - ConfirmDialog + __root.tsx: swap t() for Trans component on deleteItemMessage, deleteCandidateMessage, pickWinnerMessage — fixes <bold> rendering as literal text - Biome format pass: fix 23 lint/format errors across scripts, services, tests - Planning: mark all UAT and verification gaps resolved for phases 07, 11, 16, 20, 21, 22, 24, 32, 34; close debug sessions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -171,7 +171,10 @@ describe("Item Service", () => {
|
||||
|
||||
describe("reference items (globalItemId)", () => {
|
||||
async function insertManufacturer(testDb: any, name: string) {
|
||||
const slug = name.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
|
||||
const slug = name
|
||||
.toLowerCase()
|
||||
.replace(/\s+/g, "-")
|
||||
.replace(/[^a-z0-9-]/g, "");
|
||||
const [row] = await testDb
|
||||
.insert(manufacturers)
|
||||
.values({ name, slug, website: `https://${slug}.com` })
|
||||
@@ -190,13 +193,16 @@ describe("Item Service", () => {
|
||||
},
|
||||
) {
|
||||
const m = await insertManufacturer(testDb, data.brand);
|
||||
const [row] = await testDb.insert(globalItems).values({
|
||||
manufacturerId: m.id,
|
||||
model: data.model,
|
||||
weightGrams: data.weightGrams ?? null,
|
||||
priceCents: data.priceCents ?? null,
|
||||
imageUrl: data.imageUrl ?? null,
|
||||
}).returning();
|
||||
const [row] = await testDb
|
||||
.insert(globalItems)
|
||||
.values({
|
||||
manufacturerId: m.id,
|
||||
model: data.model,
|
||||
weightGrams: data.weightGrams ?? null,
|
||||
priceCents: data.priceCents ?? null,
|
||||
imageUrl: data.imageUrl ?? null,
|
||||
})
|
||||
.returning();
|
||||
return row;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user