devops-finops

bySocial Collage

Build a multi-tenant SaaS Unified DevOps & FinOps Control Plane web application using Next.js (App Router), TypeScript, Tailwind CSS, Shadcn UI, PostgreSQL (with Prisma or Drizzle ORM), and Redis (BullMQ) for background jobs. ### 1. Core Product Goal A single-pane-of-glass developer dashboard that unifies: - **Version Control & Release Timeline:** Track Git commits, branches, PR authors, and environment mappings (Dev, Staging, Production). - **Deployment Records & Quick Actions:** CI/CD pipeline statuses (Queued, Building, Success, Failed), build durations, searchable error logs, and one-click rollback triggers. - **Server & Storage Health:** Real-time CPU, RAM, network I/O, disk usage %, storage exhaustion forecasts (e.g., "Disk full in 12 days"), and deployment markers overlaid on latency/error graphs. - **Estimated Billing & FinOps:** Month-to-date cloud spend, linear/AI month-end bill projections, per-environment cost breakdowns, and threshold anomaly alerts. ### 2. Multi-Tenant Architecture & Security Requirements - **Strict Tenant Isolation:** Implement a shared-database, shared-schema model where every core table (`organizations`, `projects`, `repositories`, `deployments`, `servers`, `server_metrics`, `billing_snapshots`, `integrations`) includes an `organization_id` (tenant ID). Enforce PostgreSQL Row-Level Security (RLS) policies on all tenant-scoped tables. - **Auth & RBAC:** Implement multi-tenant Organization support with Role-Based Access Control (`OWNER`, `ADMIN`, `DEVELOPER`, `VIEWER`). Restrict destructive actions (production rollbacks, deleting servers, updating API keys) to `OWNER` and `ADMIN` roles. - **Encrypted Credential Vault:** Create an abstraction layer using AES-256-GCM envelope encryption for storing tenant integration credentials (GitHub App installation tokens, AWS Cross-Account Role ARNs with unique `ExternalId`, and server agent ingest keys). ### 3. Data Ingestion & API Endpoints - **GitHub Webhook Receiver (`/api/webhooks/github`):** Verify `X-Hub-Signature-256`, map the repository to the corresponding `organization_id`, and enqueue deployment/push events into BullMQ. - **Server Agent Telemetry Endpoint (`/api/v1/ingest/metrics`):** Authenticate via tenant-scoped Bearer API key (`sk_live_...`), validate payload (`cpu_percent`, `ram_used_mb`, `ram_total_mb`, `disk_used_gb`, `disk_total_gb`), and batch-insert into `server_metrics`. - **Billing & Cloud Sync Worker:** Create a scheduled BullMQ worker that fetches or simulates daily cloud cost breakdowns per environment and calculates a projected month-end total. ### 4. Frontend UI & UX Specifications - **Design System:** Sleek, high-density dark-mode-first developer UI (Linear/Vercel aesthetic) using Slate/Zinc neutral tones, monospace fonts (`JetBrains Mono`) for commit hashes, IP addresses, and logs, and crisp status badges. - **Layout:** - Left sidebar with Organization Switcher, Project Selector, and navigation (`Overview`, `Deployments`, `Infrastructure & Storage`, `Billing & FinOps`, `Integrations`, `Team & Settings`). - Top bar with live environment filter (`All`, `Production`, `Staging`, `Development`) and time-range selector (`1h`, `24h`, `7d`, `30d`). - **Main Overview View:** 1. **KPI Summary Cards:** Active

LandingIntegrationsSign UpInfrastructure & StorageTeam & SettingsBilling & FinOpsOverviewLoginDeployments
Landing

Comments (0)

No comments yet. Be the first!

Project Tasks

173 tasks
#1

Generate system requirement document

0m 55s0.05 cr used
Done
#2

Generate personas & user flows

0m 13s0.05 cr used
Done
#5

Architecture

0m 33s0.05 cr used
Done
#6

Workspace task plan

2m 25s0.05 cr used
Done
#7

Create flow for Organization Owner

0m 12sCredits in parent
Done
#8

Create flow for Organization Admin

0m 12sCredits in parent
Done
#9

Create flow for Developer

0m 12sCredits in parent
Done
#10

Create flow for Viewer

0m 11sCredits in parent
Done
#11

Landing

2m 8sCredits in subtasks
Done
#12

Login

1m 25sCredits in subtasks
Done
#13

Sign Up

1m 55sCredits in subtasks
Done
#14

Overview

12m 1sCredits in subtasks
Done
#15

Deployments

16m 34sCredits in subtasks
Done
#16

Infrastructure & Storage

18m 57sCredits in subtasks
Done
#17

Billing & Fin Ops

15m 51sCredits in subtasks
Done
#18

Integrations

18m 36sCredits in subtasks
Done
#19

Team & Settings

15m 10sCredits in subtasks
Done
#20

Landing / Public Header

0m 0s0.85 cr used
Done
#21

Landing / Hero

0m 19s0.85 cr used
Done
#22

Landing / Concern Band

0m 22s0.85 cr used
Done
#23

Landing / Footer

0m 0s0.85 cr used
Done
#24

Public Entry Header

0m 18sCredits in parent
Done
#25

Footer

0m 13sCredits in parent
Done
#26

Fix Landing: The required primary CTA is dead: schedules a retry state after 900ms even when…

0m 31sCredits unavailable
Done
#27

Fix Landing review finding: frontend/src/components/Landing Hero.jsx: The required…

0m 7s0 cr used
Done
#28

Login / Public Header

0m 1s0.85 cr used
Done
#29

Login / Access Form

0m 22s0.85 cr used
Done
#30

Login / Footer

0m 0s0.85 cr used
Done
#31

Sign Up / Public Header

0m 0s0.85 cr used
Done
#32

Sign Up / Enrollment Form

0m 24s0.85 cr used
Done
#33

Sign Up / Footer

0m 1s0.85 cr used
Done
#34

Overview / Content

0m 54s0.85 cr used
Done
#35

Overview / App Sidebar

0m 0s0.85 cr used
Done
#36

Overview / Footer

0m 0s0.85 cr used
Done
#37

App Sidebar

0m 24sCredits in parent
Done
#38

Deployments / Public Entry Header

0m 2s0.85 cr used
Done
#39

Deployments / App Sidebar

0m 1s0.85 cr used
Done
#40

Deployments / Page Heading

0m 24s0.85 cr used
Done
#41

Deployments / Records

1m 1s0.85 cr used
Done
#42

Deployments / Footer

0m 1s0.85 cr used
Done
#43

Infrastructure & Storage / Infrastructure Header Slot

0m 2s0.85 cr used
Done
#44

Infrastructure & Storage / Infrastructure Sidebar Slot

0m 1s0.85 cr used
Done
#45

Infrastructure & Storage / Infrastructure Page Heading

0m 17s0.85 cr used
Done
#46

Infrastructure & Storage / Infrastructure Server Inventory

0m 47s0.85 cr used
Done
#47

Infrastructure & Storage / Infrastructure Metric Panels

0m 42s0.85 cr used
Done
#48

Infrastructure & Storage / Infrastructure Latency Graph

1m 20s0.85 cr used
Done
#49

Infrastructure & Storage / Infrastructure Footer Slot

0m 1s0.85 cr used
Done
#50

Fix Overview: The Organization Switcher and Project Selector are non-functional — both elements render…

3m 5sCredits unavailable
Error
#51

Fix Overview: The top-bar environment filter and time-range selector are duplicated inside the page…

3m 5sCredits unavailable
Error
#52

Fix Overview review findings: frontend/src/components/App Sidebar.jsx: the Organization… (+1 more)

0m 41s0 cr used
Done
#53

Billing & Fin Ops / Billing Public Header

0m 1s0.85 cr used
Done
#54

Billing & Fin Ops / Billing App Sidebar

0m 1s0.85 cr used
Done
#55

Billing & Fin Ops / Billing Page Heading

0m 21s0.85 cr used
Done
#56

Billing & Fin Ops / Billing Spend Band

0m 46s0.85 cr used
Done
#57

Billing & Fin Ops / Billing Environment Breakdown

0m 26s0.85 cr used
Done
#58

Billing & Fin Ops / Billing Anomaly Alerts

0m 35s0.85 cr used
Done
#59

Billing & Fin Ops / Billing Footer

0m 1s0.85 cr used
Done
#60

Fix Overview review findings: frontend/src/components/App Sidebar.jsx: the Organization… (+2 more)

0m 44s0 cr used
Done
#61

Integrations / Sidebar Slot

0m 1s0.85 cr used
Done
#62

Integrations / Header Slot

0m 1s0.85 cr used
Done
#63

Integrations / Page Heading

0m 21s0.85 cr used
Done
#64

Integrations / Credential Vault

0m 53s0.85 cr used
Done
#65

Integrations / Footer Slot

0m 1s0.85 cr used
Done
#66

Fix Overview review findings: frontend/src/components/App Sidebar.jsx: the Organization… (+3 more)

0m 39s0 cr used
Done
#67

Team & Settings / Team Settings Sidebar

0m 1s0.85 cr used
Done
#68

Team & Settings / Team Settings Header

0m 1s0.85 cr used
Done
#69

Team & Settings / Team Settings Page Heading

0m 28s0.85 cr used
Done
#70

Team & Settings / Team Settings Members

0m 44s0.85 cr used
Done
#71

Team & Settings / Team Settings Organization Settings

0m 22s0.85 cr used
Done
#72

Team & Settings / Team Settings Project Settings

0m 25s0.85 cr used
Done
#73

Team & Settings / Team Settings Footer

0m 3s0.85 cr used
Done
#74

Fix Overview review findings: frontend/src/components/App Sidebar.jsx: the Organization… (+3 more)

0m 15s0 cr used
Done
#75

Retry Failed Pages

2m 52s0 cr used
Error
#76

Fix Overview: Organization selector label is clipped in the sidebar at desktop and tablet…

2m 7sCredits unavailable
Error
#77

Fix Overview: The Organization Switcher and Project Selector render only a disabled placeholder option…

2m 7sCredits unavailable
Error
#78

Fix Overview: The top-bar environment filter and time-range selector are duplicated inside the page…

2m 7sCredits unavailable
Error
#79

Fix Overview review findings: Organization selector label is clipped in the sidebar at… (+2 more)

0m 29s0 cr used
Done
#80

Fix Overview review findings: Organization selector label is clipped in the sidebar at… (+3 more)

0m 24s0 cr used
Done
#81

Fix Overview review findings: Organization selector label is clipped in the sidebar at… (+4 more)

0m 18s0 cr used
Done
#82

Fix Overview review findings: Organization selector label is clipped in the sidebar at… (+5 more)

0m 14s0 cr used
Done
#83

Retry Failed Pages

10m 5s0 cr used
Done
#84

Fix Overview: The page renders its own Organization and Project selectors (, ) in the masthead while…

1m 49sCredits unavailable
Error
#85

Fix Overview: The time-range selector ( / ) only filters records by ; it never filters , so the…

0m 53sCredits unavailable
Done
#86

Fix Overview: The release timeline rows render only , a derived message, , , environment, duration…

1m 27sCredits unavailable
Done
#87

Fix Overview review findings: frontend/src/components/Overview Content.jsx: the page… (+2 more)

0m 33s0 cr used
Done
#88

Fix Overview review findings: frontend/src/components/Overview Content.jsx: the page… (+1 more)

0m 24s0 cr used
Done
#89

Fix Overview review finding: frontend/src/components/Overview Content.jsx: the page…

7m 15s0 cr used
Paused
#90

Fix Integrations Page Heading.jsx: ✗ Build failed in 386ms

0m 14s0 cr used
Done
#91

Fix Team & Settings: The tablet page heading breaks “Settings” mid-word in the narrow main column…

0m 53sCredits unavailable
Done
#92

Fix Team & Settings: The member table reads () but the declared collection schema only has, so members and…

0m 52sCredits unavailable
Done
#93

Fix Team & Settings: The empty-state copy and the retry guidance describe invite/access-request capabilities…

0m 52sCredits unavailable
Done
#94

Fix Billing & Fin Ops: Billing Spend Band.jsx and Billing Spend Band.css (.bsb-rail, .bsb-numerals, .bsb-numeral)…

1m 45sCredits unavailable
Done
#95

Fix Team & Settings review findings: The tablet page heading breaks “Settings” mid-word in the… (+2 more)

0m 27s0 cr used
Done
#96

Fix Deployments: The deployment table never renders the pipeline status badge, environment, or build…

2m 21sCredits unavailable
Done
#97

Fix Deployments: Error logs can never be displayed. The log loader throws whenever is not an array ()…

2m 7sCredits unavailable
Done
#98

Fix Deployments: The rollback control is not actually disabled for DEVELOPER/VIEWER. It uses on a plain…

2m 7sCredits unavailable
Done
#99

Fix Integrations: Tablet main content is too narrow, breaking the page heading mid-word; implicated files…

2m 44sCredits unavailable
Done
#100

Fix Integrations: The vault never reads or writes the shared collection — it keeps credentials only in…

3m 54sCredits unavailable
Error
#101

Fix Integrations: The primary action is dead — is never supplied by the page, so always hits and returns…

3m 54sCredits unavailable
Error
#102

Fix Integrations: The loading skeleton is not a real loading state — it is rendered whenever () with no…

2m 43sCredits unavailable
Done
#103

Fix Infrastructure & Storage: Tablet graph header is broken into an unusably narrow text column; see selectors , , and .

3m 53sCredits unavailable
Done
#104

Fix Infrastructure & Storage: The page renders (a public marketing header with only / links) as the page-level header…

4m 12sCredits unavailable
Error
#105

Fix Infrastructure & Storage: The environment and time-range scope is read only from the URL via (, ) and there is no…

3m 53sCredits unavailable
Done
#106

Fix Infrastructure & Storage: The latency and error series are fabricated in from hardcoded windows (, ) rather than…

4m 11sCredits unavailable
Error
#107

Fix Billing & Fin Ops review finding: Billing Spend Band.jsx and Billing Spend Band.css (.bsb-rail…

0m 27s0 cr used
Done
#108

Fix Deployments review findings: frontend/src/components/Deployments Records.jsx: the… (+2 more)

0m 53s0 cr used
Done
#109

Fix Integrations review findings: Tablet main content is too narrow, breaking the page… (+3 more)

0m 44s0 cr used
Done
#110

Fix Infrastructure & Storage review findings: Tablet graph header is broken into an unusably narrow text… (+3 more)

0m 43s0 cr used
Done
#111

Fix Integrations review findings: frontend/src/components/Integrations Credential Vault.jsx… (+1 more)

1m 8s0 cr used
Paused
#112

Fix Infrastructure & Storage review findings: frontend/src/pages/Infrastructure Storage.jsx: the page… (+1 more)

0m 34s0 cr used
Paused
#113

Create backend_modules diagram

0m 27sCredits in parent
Done
#114

Create er_diagram diagram

0m 27sCredits in parent
Done
#115

Create frontend_modules diagram

0m 26sCredits in parent
Done
#116

Create sequence diagram

0m 25sCredits in parent
Done
#117

Create service_network diagram

0m 25sCredits in parent
Done
#118

Delete servers and read infrastructure health with forecasts

120 cr estimated
To Do
#119

Sign Up creates an account and organization with the user as OWNER

120 cr estimated
To Do
#120

Billing & Fin Ops figures with filters, empty, error, and anomaly inspection

100 cr estimated
To Do
#121

Scheduled billing sync and background job processing on Bull MQ

120 cr estimated
To Do
#122

Deployments view with release timeline, filters, and rollback entry

120 cr estimated
To Do
#123

Billing & Fin Ops projections and anomaly alerts for the Owner

80 cr estimated
To Do
#124

Investigate failures, search error logs, and perform production rollback

120 cr estimated
To Do
#125

Telemetry ingestion and infrastructure graphs with deployment markers

140 cr estimated
To Do
#126

Serve billing spend, projections, breakdowns, and anomaly alerts

120 cr estimated
To Do
#127

Accept authenticated server-agent metric batches

120 cr estimated
To Do
#128

Enforce login and verify identity for dashboard access

120 cr estimated
To Do
#129

Gate destructive actions to OWNER and ADMIN

120 cr estimated
To Do
#130

Run scheduled billing sync and surface figures on Billing & Fin Ops

140 cr estimated
To Do
#131

Serve Overview KPI band and release timeline by scope

120 cr estimated
To Do
#132

Support organization switching, team management, and integration setup

120 cr estimated
To Do
#133

Support KPI drill-down and deployment-marker correlation

100 cr estimated
To Do
#134

Serve live server metrics and deployment markers to Infrastructure & Storage

120 cr estimated
To Do
#135

Store integration credentials encrypted and masked for OWNER and ADMIN

140 cr estimated
To Do
#136

Feed Overview and Deployments dashboards with current scoped data

120 cr estimated
To Do
#137

Delete servers with OWNER/ADMIN gating and live health data

120 cr estimated
To Do
#138

Support dashboard states, organization switching, and read-only Viewer access

120 cr estimated
To Do
#139

Gate Integrations to OWNER and ADMIN with masked vault credentials

120 cr estimated
To Do
#140

Deliver the unified Overview with organization context and KPI band

120 cr estimated
To Do
#141

Verify Git Hub webhook signatures and enqueue mapped events

120 cr estimated
To Do
#142

Manage encrypted integration credentials on the Integrations page

140 cr estimated
To Do
#143

Run Bull MQ background jobs for webhook events and scheduled billing sync

140 cr estimated
To Do
#144

Accept tenant-scoped server agent telemetry and reject unscoped writes

100 cr estimated
To Do
#145

Deployment records, error log search, and one-click rollback

120 cr estimated
To Do
#146

Bind every core row to an organization for structural tenant scoping

120 cr estimated
To Do
#147

Deployment dashboards, release timeline, and role-gated rollback

120 cr estimated
To Do
#148

Encrypt and decrypt integration credentials with AES-256-GCM envelope encryption

140 cr estimated
To Do
#149

Application-owned login gating all dashboard destinations

120 cr estimated
To Do
#150

Infrastructure view with server metrics, forecast, and gated server deletion

120 cr estimated
To Do
#151

Encrypted credential vault with masked integration cards

120 cr estimated
To Do
#152

Team & Settings member roster with role assignment

120 cr estimated
To Do
#153

Deployment records, error log search, and role-gated rollback control

120 cr estimated
To Do
#154

API key updates restricted to OWNER and ADMIN

100 cr estimated
To Do
#155

Shared backend serving APIs, Git Hub webhook receiver, and telemetry endpoint

140 cr estimated
To Do
#156

One-click production rollback with role gating and retry

140 cr estimated
To Do
#157

Tenant isolation via organization_id and RLS plus authenticated telemetry ingest

160 cr estimated
To Do
#158

Role-based access control and member role visibility

120 cr estimated
To Do
#159

Persist tenant data in Postgre SQL under Row-Level Security

140 cr estimated
To Do
#160

Application-owned login for protected surfaces

120 cr estimated
To Do
#161

Role-based authorization across pages and actions

120 cr estimated
To Do
#162

Provision an organization on application deployment

100 cr estimated
To Do
#163

Self-enrollment through Sign Up creates an OWNER organization

120 cr estimated
To Do
#164

Per-organization isolation, RBAC, and encrypted credential vault

140 cr estimated
To Do
#165

Login and OWNER/ADMIN gate on production rollbacks

100 cr estimated
To Do
#166

Run scheduled billing and cloud sync worker

120 cr estimated
To Do
#167

Wire Sign Up to create account and organization as OWNER

100 cr estimated
To Do
#168

Bind Integrations page to encrypted credential vault

140 cr estimated
To Do
#169

Bind Deployments page to records, log search, and rollback

140 cr estimated
To Do
#170

Bind Infrastructure & Storage to live metrics and server deletion

140 cr estimated
To Do
#171

Wire Login to verify identity and gate dashboard access

120 cr estimated
To Do
#172

Bind Team & Settings to members, roles, and gated actions

140 cr estimated
To Do
#173

Bind Billing & Fin Ops to spend, projections, and alerts

120 cr estimated
To Do
#174

Wire Overview to live data with scope filters and recovery states

120 cr estimated
To Do
#175

Landing page interactions: hero reveal, row hover, and CTA routing

60 cr estimated
To Do
Live
Landing design preview
Landing: Read product purpose
Login: 1. Submit credentials
Login: 2. Re-enter credentials after error
Overview: 1. Scan KPI band and release timeline
Overview: 2. Change environment and time range
Overview: 3. Retry after fetch failure
Deployments: Read pipeline status and duration
Deployments: 1. Search error logs
Deployments: Identify failure and log lines
Deployments: 2. Retry log search after failure
Deployments: View disabled rollback reason
Infrastructure & Storage: 1. Read CPU, RAM, disk and forecast
Infrastructure & Storage: Inspect latency and error graphs
Infrastructure & Storage: Correlate deployment marker with incident
Infrastructure & Storage: 2. Retry after fetch failure
Deployments: Open related deployment
Billing & FinOps: Read spend and projections
Team & Settings: Review members and roles
Live
Landing design preview
Landing: Read product purpose
Login: 1. Submit credentials
Login: 2. Re-enter credentials after error
Overview: 1. Scan KPI band and release timeline
Overview: 2. Change environment and time range
Overview: 3. Retry after fetch failure
Deployments: Read pipeline status and duration
Deployments: 1. Search error logs
Deployments: Identify failure and log lines
Deployments: 2. Retry log search after failure
Deployments: View disabled rollback reason
Infrastructure & Storage: 1. Read CPU, RAM, disk and forecast
Infrastructure & Storage: Inspect latency and error graphs
Infrastructure & Storage: Correlate deployment marker with incident
Infrastructure & Storage: 2. Retry after fetch failure
Deployments: Open related deployment
Billing & FinOps: Read spend and projections
Team & Settings: Review members and roles