style: UI polish and miscellaneous fixes

Fixes link color from hardcoded white to currentColor for proper theme
support. Adds video and audio modality icons to ModelInfo. Registers
anthropic, nvidia, and xiaomi in the provider icon map. Removes unused
pagination validation from agents and topics endpoints. Adds convenience
start script. Updates AGENTS.md.
This commit is contained in:
Zoe
2026-04-27 12:07:01 -05:00
parent 03a0c3587b
commit 7a944afdb5
9 changed files with 54 additions and 91 deletions
-13
View File
@@ -1,22 +1,9 @@
import { db } from "~~/server/lib/db";
import * as z from 'zod';
export default defineEventHandler(async (event) => {
await protectRoute(event);
const userId = event.context.user!.id as string;
const result = await getValidatedQuery(event, z.object({
page: z.number().optional(),
limit: z.number().optional(),
}).safeParse)
if (!result.success) {
throw createError({
statusCode: 400,
message: result.error.issues[0]!.message,
});
}
const agents = await db.query.agents.findMany({
where: {
userId,
+1 -17
View File
@@ -1,23 +1,9 @@
import { db } from "~~/server/lib/db";
import * as z from 'zod';
export default defineEventHandler(async (event) => {
await protectRoute(event);
const userId = event.context.user!.id as string;
const result = await getValidatedQuery(event, z.object({
page: z.number().optional(),
limit: z.number().optional(),
}).safeParse)
if (!result.success) {
throw createError({
statusCode: 400,
message: result.error.issues[0]!.message,
});
}
const { page, limit } = result.data;
const topics = await db.query.topics.findMany({
where: {
@@ -25,9 +11,7 @@ export default defineEventHandler(async (event) => {
},
orderBy: {
createdAt: 'desc',
},
limit: page && limit ? limit : undefined,
offset: page && limit ? (page - 1) * limit : undefined,
}
});
return {