Skip to content

Commit 13d25da

Browse files
devin-ai-integration[bot]ben-fornefelddrankou
authored
chore: remove dead migration tooling, stale README steps, and unused assets (#319)
## Summary Removes dead/stale code that no longer serves any purpose. No logic changes. **Deleted files:** - `scripts/create-migration.ts` — creates SQL files in a `migrations/` directory that no longer exists - `readme-assets/logo-circle.png` — only referenced in a commented-out README block - `readme-assets/preview.png` — zero references anywhere in repo - `public/graphics/docs/analyze-data-chart.png` and `static-chart.png` — orphaned from a removed docs port (`c07895da`); the consuming `src/app/docs` and `src/content/docs` trees were deleted long ago **`package.json` script cleanup:** - Removed `db:migrations:create`, `db:migrations:apply` (broken — calls nonexistent `scripts:apply-migrations`), `scripts:create-migration`, and the empty `<<<<<<< Database` section header - Removed redundant `scripts:check-all-env` alias (was just `bun scripts:check-app-env`); inlined its 3 callers (`test:run`, `test:watch`, `test:ui`) to use `scripts:check-app-env` directly **`README.md` cleanup:** - Title: `# E2B Dashboard` → `# Dashboard` - Updated stack version: Next.js 15 → Next.js 16 (overview + features) - Updated prereq: Node.js 18+ → Node.js 20.9+ (Next.js 16's actual minimum) - Removed stale `**Documentation**: Integrated MDX documentation support` feature line — MDX docs feature was removed - Removed PostHog and Plain prerequisites (no longer relevant for local setup) - Removed "Database Setup" step pointing at a non-existent `/migrations` folder; renumbered subsequent steps - Removed two non-existent script references (`bun run db:types`, `bun run db:migration`) - Removed commented-out `<p align="center">…logo-circle.png…</p>` block - Updated Project Structure section to match actual `src/` layout: added `configs/`, `core/`, `trpc/`; removed non-existent `server/`; refreshed descriptions ## Review & Testing Checklist for Human - [ ] Verify no remaining references to `create-migration`, `db:migrations`, `scripts:check-all-env`, MDX docs, Plain, or PostHog in any docs you care about - [ ] Confirm README setup steps still read correctly after renumbering (c → Supabase Storage, d → Start dev server) - [ ] Confirm Next.js 16 / Node 20.9+ versions are the ones you want documented ### Notes - `knip` reports 0 unused files and 0 unused dependencies after this change (unchanged from main) - Biome lint + format pass cleanly; pre-existing unit test failures are unchanged - Separately noted: `.github/workflows/sync-infra-specs.yml:76` references stale paths (`src/types/*` instead of `src/core/shared/contracts/*`) — left alone since fixing it changes workflow behavior Link to Devin session: https://app.devin.ai/sessions/bf92d86408ce4a6496ae425d4a9a9ac5 --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: ben@e2b.dev <ben@e2b.dev> Co-authored-by: Alex Drankou <alex@e2b.dev>
1 parent 6994abf commit 13d25da

7 files changed

Lines changed: 17 additions & 67 deletions

File tree

README.md

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
<!-- <p align="center">
2-
<img width="100" src="/readme-assets/logo-circle.png" alt="e2b logo">
3-
</p> -->
41
![Dashboard Preview Dark](/readme-assets/dashboard-preview-dark.png#gh-dark-mode-only)
52
![Dashboard Preview Light](/readme-assets/dashboard-preview-light.png#gh-light-mode-only)
63

7-
# E2B Dashboard
4+
# Dashboard
85

96
[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)
107
[![Discord](https://img.shields.io/discord/1092455714431180995?color=7289DA&label=Discord&logo=discord&logoColor=white)](https://discord.com/channels/1092455714431180995)
@@ -17,26 +14,23 @@
1714
- 🤝 [Contributing Guide](CONTRIBUTING.md)
1815

1916
## Overview
20-
Our Dashboard is a modern, feature-rich web application built to manage and monitor E2B services. Built with Next.js 15 and React 19, it provides a seamless user experience for managing sandboxes, API keys, and usage analytics.
17+
Our Dashboard is a modern, feature-rich web application built to manage and monitor E2B services. Built with Next.js 16 and React 19, it provides a seamless user experience for managing sandboxes, API keys, and usage analytics.
2118

2219
## Features
23-
- **Modern Stack**: Built with Next.js 15, React 19, and TypeScript
20+
- **Modern Stack**: Built with Next.js 16, React 19, and TypeScript
2421
- **Real-time Analytics**: Monitor your sandbox usage and performance
2522
- **Authentication**: Secure authentication powered by Supabase
26-
- **Documentation**: Integrated MDX documentation support
2723
- **Type Safety**: Full TypeScript support throughout the codebase
2824

2925
## Getting Started
3026

3127
> **Self-hosting Note**: If you're planning to self-host this dashboard, you'll likely want to self-host our infrastructure first. Please refer to our [infrastructure repository](https://github.com/e2b-dev/infra) for guidance on setting up the E2B platform on your own infrastructure.
3228
3329
### Prerequisites
34-
- Node.js 18+
30+
- Node.js 20.9+
3531
- Git
3632
- Vercel account
3733
- Supabase account
38-
- PostHog account (optional for analytics)
39-
- Plain account (optional for customer support)
4034

4135
### Local Development Setup
4236

@@ -103,18 +97,11 @@ This project requires a Redis-compatible key-value store. You'll need to:
10397
{{ .SiteURL }}/api/auth/confirm?token_hash={{ .TokenHash }}&type=email&next={{ .RedirectTo }}&confirmation_url={{ .ConfirmationURL }}
10498
```
10599

106-
#### c. Database Setup
107-
1. Apply the database migrations manually:
108-
- Navigate to the `/migrations` folder in the project
109-
- Execute each SQL migration file in sequential order against your Supabase database
110-
- You can run these migrations using the Supabase SQL Editor or a PostgreSQL client
111-
- Make sure to apply migrations in the correct order based on their timestamp prefixes
112-
113-
#### d. Supabase Storage Setup
100+
#### c. Supabase Storage Setup
114101
1. Go to Storage > Buckets
115102
2. Create a new **public** bucket named `profile-pictures`
116103

117-
#### e. Start the development server
104+
#### d. Start the development server
118105
```bash
119106
# Using Bun (recommended)
120107
bun run dev
@@ -138,8 +125,6 @@ bun run lint # Run Biome linter
138125
bun run lint:fix # Auto-fix Biome lint issues
139126
bun run format # Format + organize imports with Biome
140127
bun run check # Run full Biome check (lint + format + imports)
141-
SUPABASE_PROJECT_ID=your-project-id bun run db:types # Generate DB types
142-
bun run db:migration # Create migration
143128

144129
# All commands work with npm as well:
145130
npm run dev
@@ -149,13 +134,15 @@ npm run dev
149134
### Project Structure
150135
```
151136
src/
152-
├── app/ # Next.js app router pages
153-
├── features/ # Feature-specific components
154-
├── ui/ # Reusable UI components
155-
├── lib/ # Utility functions and shared logic
137+
├── app/ # Next.js App Router pages and layouts
138+
├── configs/ # Global constants, feature flags, and URL maps
139+
├── core/ # Server-side logic: actions, adapters, modules, and shared clients
140+
├── features/ # Domain-specific components (auth, dashboard, billing, etc.)
141+
├── lib/ # Utility functions, hooks, and shared helpers
156142
├── styles/ # Global styles and Tailwind config
157-
└── types/ # TypeScript type definitions
158-
└── server/ # Server only logic & actions
143+
├── trpc/ # tRPC client and server setup
144+
├── types/ # TypeScript type definitions
145+
└── ui/ # Reusable UI primitives and Shadcn components
159146
tests/
160147
├── unit/ # Vitest unit tests
161148
├── integration/ # Vitest integration tests

package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
"prebuild": "bun scripts:check-app-env",
1717
"<<<<<<< Development Tools": "",
1818
"scan:local": "bunx react-scan@latest localhost:3000",
19-
"<<<<<<< Database": "",
20-
"db:migrations:create": "bun run scripts:create-migration",
21-
"db:migrations:apply": "bun run scripts:apply-migrations",
2219
"<<<<<<< Gen": "",
2320
"generate:infra": "bunx openapi-typescript ./spec/openapi.infra.yaml -o ./src/core/shared/contracts/infra-api.types.ts",
2421
"generate:dashboard-api": "bunx openapi-typescript ./spec/openapi.dashboard-api.yaml -o ./src/core/shared/contracts/dashboard-api.types.ts",
@@ -27,16 +24,14 @@
2724
"<<<<<<< Scripts": "",
2825
"scripts:check-app-env": "bun scripts/check-app-env.ts",
2926
"scripts:check-playwright-env": "bun scripts/check-playwright-env.ts",
30-
"scripts:check-all-env": "bun scripts:check-app-env",
31-
"scripts:create-migration": "bun scripts/create-migration.ts",
3227
"<<<<<<< Development": "",
3328
"shad": "bunx shadcn@canary",
3429
"test:dev:traffic": "vitest run tests/development/traffic.test.ts",
3530
"test:dev:build": "vitest run tests/development/template-build.test.ts",
3631
"test:dev:events": "vitest run tests/development/sandbox-events.test.ts",
3732
"clean": "rm -rf .next node_modules && bun install",
3833
"<<<<<<< Testing": "",
39-
"test:run": "bun scripts:check-all-env && vitest run",
34+
"test:run": "bun scripts:check-app-env && vitest run",
4035
"test:integration": "bun scripts:check-app-env && vitest run tests/integration/",
4136
"test:unit": "vitest run tests/unit/",
4237
"e2e:install-browsers": "playwright install chromium --with-deps",
@@ -46,8 +41,8 @@
4641
"e2e:headed": "PLAYWRIGHT_MODE=dev bun scripts:check-playwright-env && PLAYWRIGHT_MODE=dev playwright test --headed",
4742
"knip": "knip",
4843
"knip:ci": "knip --include files,dependencies --reporter github-actions",
49-
"test:watch": "bun scripts:check-all-env && vitest",
50-
"test:ui": "bun scripts:check-all-env && vitest --ui",
44+
"test:watch": "bun scripts:check-app-env && vitest",
45+
"test:ui": "bun scripts:check-app-env && vitest --ui",
5146
"test:ui:integration": "bun scripts:check-app-env && vitest --ui tests/integration/"
5247
},
5348
"dependencies": {
-87.3 KB
Binary file not shown.
-18.4 KB
Binary file not shown.

readme-assets/logo-circle.png

-20.1 KB
Binary file not shown.

readme-assets/preview.png

-824 KB
Binary file not shown.

scripts/create-migration.ts

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)