import { addFieldAction, deleteFieldAction, editFieldAction } from "@/app/(app)/settings/actions" import { CrudTable } from "@/components/settings/crud" import { getCurrentUser } from "@/lib/auth" import { getFields } from "@/models/fields" import { Prisma } from "@/prisma/client" export default async function FieldsSettingsPage() { const user = await getCurrentUser() const fields = await getFields(user.id) const fieldsWithActions = fields.map((field) => ({ ...field, isEditable: true, isDeletable: field.isExtra, })) return (
You can add new fields to your transactions. Standard fields can't be removed but you can tweak their prompts or hide them. If you don't want a field to be analyzed by AI but filled in by hand, leave the "LLM prompt" empty.