Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions app/RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Release Notes

## 1.0.0 - 2026-03-05
- OpenAI-compatible API proxy for forwarding requests.
- Web UI for creating, managing, and deactivating API keys.
- Per-key usage tracking with filtering, sorting, and reporting groups.
- Admin usage and cost dashboards with range filters and charts.
- Release notes page linked from the sidebar with in-app version display.

## 0.1.0 - 2026-03-04
- Initial release notes tracking.
- Added reporting groups management and usage/cost reporting views with charts and sortable tables.
78 changes: 78 additions & 0 deletions app/drizzle/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,84 @@ export const users = pgTable(
],
);

export const reportingGroups = pgTable(
"reporting_groups",
{
id: bigint({ mode: "number" }).primaryKey().generatedAlwaysAsIdentity({
name: "reporting_groups_id_seq",
startWith: 1,
increment: 1,
minValue: 1,
// biome-ignore lint/correctness/noPrecisionLoss: matches Postgres BIGINT max.
maxValue: 9223372036854775807,
cache: 1,
}),
title: varchar({ length: 255 }).notNull(),
createdBy: varchar("created_by", { length: 255 }).notNull(),
createdAt: timestamp("created_at", {
withTimezone: true,
mode: "string",
})
.defaultNow()
.notNull(),
},
(table) => [
foreignKey({
columns: [table.createdBy],
foreignColumns: [users.id],
name: "reporting_groups_created_by_fkey",
}),
],
);

export const reportingGroupMembers = pgTable(
"reporting_group_members",
{
groupId: bigint("group_id", { mode: "number" }).notNull(),
userId: varchar("user_id", { length: 255 }).notNull(),
},
(table) => [
primaryKey({
columns: [table.groupId, table.userId],
name: "reporting_group_members_pkey",
}),
foreignKey({
columns: [table.groupId],
foreignColumns: [reportingGroups.id],
name: "reporting_group_members_group_id_fkey",
}),
foreignKey({
columns: [table.userId],
foreignColumns: [users.id],
name: "reporting_group_members_user_id_fkey",
}),
],
);

export const reportingGroupViewers = pgTable(
"reporting_group_viewers",
{
groupId: bigint("group_id", { mode: "number" }).notNull(),
userId: varchar("user_id", { length: 255 }).notNull(),
},
(table) => [
primaryKey({
columns: [table.groupId, table.userId],
name: "reporting_group_viewers_pkey",
}),
foreignKey({
columns: [table.groupId],
foreignColumns: [reportingGroups.id],
name: "reporting_group_viewers_group_id_fkey",
}),
foreignKey({
columns: [table.userId],
foreignColumns: [users.id],
name: "reporting_group_viewers_user_id_fkey",
}),
],
);

export const models = pgTable("models", {
id: varchar({ length: 255 }).primaryKey().notNull(),
});
Expand Down
4 changes: 2 additions & 2 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analytics-app",
"version": "0.1.0",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions app/src/app/release-notes/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default async function ReleaseNotesPage() {
return (
<div className="mx-auto flex w-full max-w-4xl flex-col gap-4 p-6">
<header className="flex flex-col gap-1">
<p className="text-xs text-muted-foreground">Version</p>
<h1 className="text-2xl font-semibold">v{version}</h1>
<p className="text-muted-foreground text-xs">Version</p>
<h1 className="font-semibold text-2xl">v{version}</h1>
</header>
<pre className="whitespace-pre-wrap rounded-none border border-border bg-muted/30 p-4 text-sm leading-relaxed">
{notes}
Expand Down
25 changes: 25 additions & 0 deletions app/src/app/reporting/create/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { redirect } from "next/navigation";

import { auth } from "~/server/auth";
import { ReportingCreateClient } from "./reporting-create-client";

export default async function ReportingCreatePage() {
const session = await auth();
if (!session?.user) {
redirect("/");
}

return (
<div className="mx-auto w-full max-w-6xl px-6 py-10">
<div className="space-y-2">
<h1 className="font-semibold text-2xl">Bericht erstellen</h1>
<p className="text-muted-foreground text-sm">
Auswertung nach Gruppe und Zeitraum inklusive Kostenübersicht.
</p>
</div>
<div className="mt-6">
<ReportingCreateClient isAdmin={session.user.isAdmin ?? false} />
</div>
</div>
);
}
Loading