Skip to content

fix some stuff!! - #8

Merged
CodeMeAPixel merged 4 commits into
mainfrom
feat/agent-error-reporting
May 18, 2026
Merged

CodeMeAPixel merged 4 commits into
mainfrom
feat/agent-error-reporting

Conversation

@CodeMeAPixel

@CodeMeAPixel CodeMeAPixel commented May 18, 2026 •

Copy link
Copy Markdown
Contributor

Description

Please provide a brief description of the changes introduced in this pull request.

Related Issues

Closes #<issue_number>

Checklist

  • My code follows the code style of this project.
  • I have performed a self-review of my code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have updated the documentation, if necessary.
  • I have added tests that prove my fix is effective or my feature works.
  • New and existing tests pass locally with my changes.

Screenshots (if applicable)

Additional Notes

Summary by CodeRabbit

  • New Features

    • Admin analytics dashboard with KPIs & charts
    • Real‑time server console, live metrics, RCON send UI (queued), and health indicators
    • Stripe checkout provisioning flow and checkout success handling
    • Activity feed, bulk actions, mobile drawer & bottom‑sheet, server cards/grid
    • Agent error reporting API and storage
  • Improvements

    • Redesigned admin UI (sidebar, timeline audit log, metrics/sections)
    • Enhanced dashboard components, responsive tables, subscription/backup validation, safer delete confirmations
  • Styling

    • Updated theme to a violet/slate palette
  • Documentation

    • Expanded .env example (provider, Stripe, SMTP, analytics, build options)

Review Change Stack

@CodeMeAPixel
CodeMeAPixel requested a review from NodeByteLTD as a code owner May 18, 2026 19:01
@vercel

vercel Bot commented May 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gsm Ready Ready Preview, Comment May 18, 2026 7:14pm

Request Review

@coderabbitai

coderabbitai Bot commented May 18, 2026 •

Copy link
Copy Markdown
ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Free

Run ID: c0a514e3-dcb0-446a-8918-70d2a6a4a3ae

📥 Commits

Reviewing files that changed from the base of the PR and between 19a9942 and 3f76d70.

📒 Files selected for processing (1)
  • .github/workflows/dependency-review.yml
✅ Files skipped from review due to trivial changes (1)
  • .github/workflows/dependency-review.yml

📝 Walkthrough

Walkthrough

Adds Stripe checkout-based provisioning, admin analytics API and page, extensive admin/dashboard UI refactors, live metrics and console (SSE + polling), agent error reporting with DB model/migration, backup/subscription checks, and a broad set of reusable dashboard components and theme/layout updates.

Changes

Unified Feature and Infrastructure Update

Layer / File(s) Summary
Checkout flow and provisioning integration
app/dashboard/new/actions/create-server.ts, app/api/webhooks/stripe/route.ts, app/dashboard/new/success/page.tsx
Switches to Stripe Checkout; webhook upserts subscription/addons, starts provisioning worker, and redirects users to servers after checkout success.
Admin analytics and UI overhaul
app/admin/..., app/api/admin/analytics/route.ts, app/styles.css
Adds admin analytics API/page, new admin components (charts, metrics, nav, sidebar), refactors admin tables/panels, and updates global theme variables.
Live metrics and console
app/api/servers/[id]/metrics/live/route.ts, app/dashboard/[id]/components/*, app/dashboard/[id]/console/page.tsx
Adds live metrics route, client polling hook, LiveMetricsPanel, ConsolePanel (SSE), ServerCard metrics, and RCON action scaffolding.
Agent error intake and persistence
app/api/agent/errors/route.ts, prisma/migrations/*, prisma/schema.prisma
Adds agent error POST route with Zod validation, creates agent_errors migration/model, persists errors, and updates server observed state on reports.
Dashboard components and layout
app/dashboard/components/*, app/dashboard/page.tsx, components/ui/shared-sidebar.tsx, components/panel.tsx
Introduces many reusable UI components (tables, grids, cards, sheets, drawers, filters), refactors sidebar/header, and centralizes status styling.
Backups and billing checks
app/api/servers/[id]/backups/*, lib/billing/subscription-check.ts, app/dashboard/account/billing/page.tsx
Adds backup eligibility check endpoint, enforces subscription validation on backup creation, and adds subscription-check helpers plus billing UI updates.

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant App
  participant Stripe
  participant DB
  participant Worker
  User->>App: Create server → Checkout session
  App->>Stripe: Create Checkout Session (metadata: serverId)
  Stripe-->>User: Hosted checkout
  Stripe->>App: webhook checkout.session.completed
  App->>DB: Upsert subscription & addons
  App->>Worker: start(provisionServer, serverId)
  App->>User: Revalidate dashboard / redirect to server
Loading

Estimated code review effort

🎯 5 (Critical) | ⏱️ ~120 minutes

Poem

I hopped through charts and violet hues,
Spun up checkout—stripey news!
Logs now stream, the metrics sing,
Admin burrows everything.
Agents cry, the schema holds; provision begins as story folds. 🐇✨

@github-actions

Copy link
Copy Markdown

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 2 package(s) with unknown licenses.
See the Details below.

License Issues

.github/workflows/dependency-review.yml

PackageVersionLicenseIssue Type
actions/checkout6.*.*NullUnknown License
actions/dependency-review-action5.*.*NullUnknown License

OpenSSF Scorecard

PackageVersionScoreDetails
actions/actions/checkout 6.*.* 🟢 5.7
Details
CheckScoreReason
Code-Review🟢 10all changesets reviewed
Maintained⚠️ 01 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Binary-Artifacts🟢 10no binaries found in the repo
Token-Permissions⚠️ 0detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Packaging⚠️ -1packaging workflow not detected
Pinned-Dependencies🟢 3dependency not pinned by hash detected -- score normalized to 3
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Security-Policy🟢 9security policy file detected
Branch-Protection🟢 5branch protection is not maximal on development and all release branches
SAST🟢 8SAST tool detected but not run on all commits
actions/actions/dependency-review-action 5.*.* 🟢 7.7
Details
CheckScoreReason
Maintained🟢 1030 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
Packaging⚠️ -1packaging workflow not detected
Binary-Artifacts🟢 10no binaries found in the repo
Security-Policy🟢 9security policy file detected
Code-Review🟢 10all changesets reviewed
Token-Permissions🟢 9detected GitHub workflow tokens with excessive permissions
CII-Best-Practices⚠️ 0no effort to earn an OpenSSF best practices badge detected
Pinned-Dependencies⚠️ 1dependency not pinned by hash detected -- score normalized to 1
Fuzzing⚠️ 0project is not fuzzed
License🟢 10license file detected
Signed-Releases⚠️ -1no releases found
Branch-Protection🟢 6branch protection is not maximal on development and all release branches
SAST🟢 9SAST tool detected but not run on all commits

Scanned Files

  • .github/workflows/dependency-review.yml

@CodeMeAPixel
CodeMeAPixel merged commit 8140801 into main May 18, 2026
9 checks passed
@CodeMeAPixel
CodeMeAPixel deleted the feat/agent-error-reporting branch May 18, 2026 19:16

This branch was successfully deployed

1 active deployment
Preview — 3f76d703 Deployed May 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant