Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
d695f47
remove: envd gen + chore: fix test ts issues
ben-fornefeld Jun 12, 2025
c970001
add: fs context,store & events-manager
ben-fornefeld Jun 13, 2025
bca7060
update: e2b sdk to fix isolatedModules errors
ben-fornefeld Jun 13, 2025
8c125e4
chore: rename feature folder
ben-fornefeld Jun 13, 2025
177894d
chore: rename context
ben-fornefeld Jun 13, 2025
3c81713
add: sandbox context
ben-fornefeld Jun 13, 2025
babe066
chore: re-organize files
ben-fornefeld Jun 13, 2025
06f2591
refactor: move sandbox connection to sandbox context
ben-fornefeld Jun 13, 2025
df3dbe9
chore: syntax
ben-fornefeld Jun 13, 2025
a4d7a2b
improve: watchHandle event handling
ben-fornefeld Jun 13, 2025
3abb218
add: mermaid overview chart
ben-fornefeld Jun 13, 2025
5e4b13a
refactor: mermaid chart
ben-fornefeld Jun 13, 2025
d0aea8b
chore: cleanup mermaid chart
ben-fornefeld Jun 13, 2025
327ff90
refactor: sandbox inspect application layer to use a single watch han…
ben-fornefeld Jun 18, 2025
b27a795
refactor: prepare state layer for react
ben-fornefeld Jun 18, 2025
ad5c88c
refactor: server side sandbox connection handling
ben-fornefeld Jun 20, 2025
346ae15
chore: reduce watch route timeout to 10 min
ben-fornefeld Jun 20, 2025
9c37670
chore: re-organize/comment pools
ben-fornefeld Jun 20, 2025
e820397
fix: correctly close SandboxPool connections in WatchDirPool and callers
ben-fornefeld Jun 20, 2025
bed005d
refactor: inspect context to correctly populate store based on seedEn…
ben-fornefeld Jun 20, 2025
5b457fc
feat: add E2B_DOMAIN to environment configuration and enhance watch r…
ben-fornefeld Jun 20, 2025
e9dee98
fix: missing test env
ben-fornefeld Jun 23, 2025
4f1157a
improve: loggign & watchDir release in watch route
ben-fornefeld Jun 23, 2025
96ac9d2
improve: sandbox inspect watch route and pooling
ben-fornefeld Jun 23, 2025
e22bca5
refactor: handle sandbox connection client side but fetch root + deta…
ben-fornefeld Jun 24, 2025
3f5fbee
remove: rename E2B_DOMAIN env to NEXT_PUBLIC_E2B_DOMAIN for client si…
ben-fornefeld Jun 24, 2025
78bb86d
fix: connect to correct sandboxId on client and pass secure connectio…
ben-fornefeld Jun 24, 2025
1974819
feat: load directory debounce and unlimited watchDir timeout
ben-fornefeld Jun 24, 2025
049ae99
feat: add sorting direction state and normalize order on node insert …
ben-fornefeld Jun 24, 2025
7d92137
chore: update e2b sdk
ben-fornefeld Jun 24, 2025
ad737d3
fix: missing test env
ben-fornefeld Jun 24, 2025
4c30400
fix: debounce to not act as a delay on first call
ben-fornefeld Jun 25, 2025
a46ff3c
chore: clean up sandbox root fetch
ben-fornefeld Jun 25, 2025
c93c0d5
chore: refactor events-manager -> sandbox-manager
ben-fornefeld Jun 30, 2025
e701876
chore: clean-up sandbox context
ben-fornefeld Jun 30, 2025
f0879d4
refactor: sandbox-manager debounce handling
ben-fornefeld Jun 30, 2025
66b8712
feat: file viewing / content loading state
ben-fornefeld Jun 30, 2025
3230785
refactor: file node selection state + refresh file after write event
ben-fornefeld Jun 30, 2025
5382b67
refactor: selection / state
ben-fornefeld Jun 30, 2025
6d5bfe4
feat: add content / file hooks
ben-fornefeld Jun 30, 2025
b46fd4a
refactor: await file read after selection
ben-fornefeld Jun 30, 2025
378b444
refactor: ensure file / node states are using separate store props
ben-fornefeld Jun 30, 2025
debe519
fix: useFile return
ben-fornefeld Jun 30, 2025
7aaad36
refactor: handle different file content encodings
ben-fornefeld Jul 1, 2025
6910d7a
fix: stable reference children caching
ben-fornefeld Jul 1, 2025
f30dbef
refactor: filesystem store
ben-fornefeld Jul 1, 2025
8920b32
feat: add resetSelected operation and update file selection logic
ben-fornefeld Jul 2, 2025
cab6ce9
chore: move file content state logic to filesystem utility and remove…
ben-fornefeld Jul 2, 2025
b0b0b5e
fix: update import path for determineFileContentState to filesystem u…
ben-fornefeld Jul 2, 2025
5f4ab45
feat: implement debounced file read logic in SandboxManager
ben-fornefeld Jul 3, 2025
6d29aa1
feat: add file download functionality and improve file content state …
ben-fornefeld Jul 3, 2025
779165e
feat: enhance error handling in SandboxManager with user-friendly mes…
ben-fornefeld Jul 3, 2025
ca9fd12
feat: implement loaded state management for filesystem nodes in Sandb…
ben-fornefeld Jul 3, 2025
9ceea54
fix: update useFilesystemNode hook to return undefined instead of thr…
ben-fornefeld Jul 3, 2025
46cc482
refactor: improve directory loading state management in SandboxInspec…
ben-fornefeld Jul 3, 2025
18a52a5
fix: enhance user feedback for aborted requests in SandboxManager err…
ben-fornefeld Jul 3, 2025
a02e121
fix: update file download logic to use node name and open in new tab
ben-fornefeld Jul 3, 2025
03b7a60
fix: update file reading logic in SandboxManager to use blob format a…
ben-fornefeld Jul 3, 2025
d159541
chore: remove outdated overview diagram from dashboard sandbox
ben-fornefeld Jul 3, 2025
9b42c45
fix: enhance error handling in SandboxManager to detect directory-rel…
ben-fornefeld Jul 7, 2025
85539d0
feat: add Content Security Policy header to enhance security in Next.…
ben-fornefeld Jul 15, 2025
9c67951
refactor: move fumadocs roots to archive + add env configs for CSP he…
ben-fornefeld Jul 19, 2025
7519412
fix: add Supabase URL to CSP img-src directive
ben-fornefeld Jul 19, 2025
fbc62dc
chore: add GitHub and Google avatar URLs to CSP image sources
ben-fornefeld Jul 19, 2025
cc2a9b5
chore: configure ESLint directories and clean up TypeScript paths
ben-fornefeld Jul 19, 2025
dc360da
feat: add frame-src CSP header support with configurable sources
ben-fornefeld Jul 19, 2025
3579587
chore: remove deprecated files and clean up archive structure
ben-fornefeld Jul 28, 2025
56384d7
chore: remove optional Content Security Policy configurations from en…
ben-fornefeld Jul 30, 2025
de2935d
Apply suggestion from @Copilot
ben-fornefeld Jul 29, 2025
22a3237
chore: add 'pathe' dependency and refactor path utility functions for…
ben-fornefeld Jul 30, 2025
1fcc468
feat: enhance SandboxManager to support secure sandbox environments w…
ben-fornefeld Jul 30, 2025
52b46a7
feat: enhance SandboxManager to support secure sandbox environments w…
ben-fornefeld Jul 30, 2025
6859798
refactor: simplify setSelected method in SandboxInspectProvider and u…
ben-fornefeld Jul 30, 2025
6d674c5
remove: envd gen + chore: fix test ts issues
ben-fornefeld Jun 12, 2025
8aa1350
update: e2b sdk to fix isolatedModules errors
ben-fornefeld Jun 13, 2025
da89543
remove: rename E2B_DOMAIN env to NEXT_PUBLIC_E2B_DOMAIN for client si…
ben-fornefeld Jun 24, 2025
e4879d7
refactor: move fumadocs roots to archive + add env configs for CSP he…
ben-fornefeld Jul 19, 2025
710d3d6
remove: envd gen + chore: fix test ts issues
ben-fornefeld Jun 12, 2025
d012af8
refactor: server side sandbox connection handling
ben-fornefeld Jun 20, 2025
080abe9
add: page-layout base
ben-fornefeld Jun 18, 2025
e2a40e7
wip: component -> state layer test
ben-fornefeld Jun 18, 2025
e889b99
wip: improve components/page layout
ben-fornefeld Jun 19, 2025
20a2b4d
refactor: client for server side sandbox handling
ben-fornefeld Jun 20, 2025
f938158
chore: don't pass teamId to SandboxContext
ben-fornefeld Jun 20, 2025
71b1e9f
improve: inspect fetch caching and streaming structure
ben-fornefeld Jun 20, 2025
bd5ae50
improve: cache and link strategy
ben-fornefeld Jun 20, 2025
b6959a8
fix: dir & file component interfaces
ben-fornefeld Jun 24, 2025
05aaabf
refactor: return not found in sandbox details layout on error
ben-fornefeld Jun 24, 2025
939ad24
refactor: sandbox details header + sidebar is active state determination
ben-fornefeld Jun 25, 2025
be5df3b
feat: directory loading & error states
ben-fornefeld Jun 25, 2025
e60309a
improve: file & dir styles
ben-fornefeld Jun 25, 2025
55a773f
improve: filesystem scrollarea
ben-fornefeld Jun 25, 2025
33d82e6
refactor: ui/ux of sandbox detail & inspect
ben-fornefeld Jun 25, 2025
622c2b5
improve: details / inspect page
ben-fornefeld Jun 25, 2025
2915966
refactor: enhance sandbox inspect page layout and add polling interva…
ben-fornefeld Jun 27, 2025
0757e72
feat: file selection in file.tsx
ben-fornefeld Jun 30, 2025
936a500
wip: file viewing
ben-fornefeld Jun 30, 2025
1504031
refactor: inspect styling
ben-fornefeld Jun 30, 2025
10db389
refactor: remove access of node state through node
ben-fornefeld Jun 30, 2025
3cae956
feat: file viewer responsiveness
ben-fornefeld Jul 1, 2025
3418869
feat: enhance sandbox layout with new sidebar and theme switcher, upd…
ben-fornefeld Jul 1, 2025
acf89b3
refactor: improve styling and layout of sandbox inspect components
ben-fornefeld Jul 1, 2025
fcde4af
feat: handle different content types
ben-fornefeld Jul 1, 2025
387ff38
feat: add metadata display to sandbox header and improve styling in i…
ben-fornefeld Jul 1, 2025
726f8a0
refactor: update styling and layout in sandbox inspect components for…
ben-fornefeld Jul 2, 2025
dba8b36
refactor: streamline sandbox inspect components by removing unnecessa…
ben-fornefeld Jul 2, 2025
de6d7ec
fix: update error handling in SandboxInspectPage and enhance file vie…
ben-fornefeld Jul 2, 2025
7858a97
feat: add download functionality to SandboxInspectViewerHeader and up…
ben-fornefeld Jul 3, 2025
57dcbbe
refactor: improve component structure and conditional rendering in Re…
ben-fornefeld Jul 3, 2025
1680521
style: update error message styling and enhance button variant for un…
ben-fornefeld Jul 3, 2025
f66e584
feat: enhance text content handling in SandboxInspect by adding downl…
ben-fornefeld Jul 3, 2025
3e705e9
refactor: enhance conditional rendering and styling in SandboxInspect…
ben-fornefeld Jul 3, 2025
bc167e0
feat: add Fira Code font support and enhance SandboxInspect component…
ben-fornefeld Jul 3, 2025
ce6d7b2
style: adjust header styling in SandboxDetailsHeader for improved res…
ben-fornefeld Jul 3, 2025
ae92b33
style: update layout and styling in Sandbox components for improved u…
ben-fornefeld Jul 3, 2025
bc60e72
style: enhance layout and styling in SandboxInspect components for im…
ben-fornefeld Jul 7, 2025
7516bb2
feat: add loading.tsx to sandbox details for faster client routing
ben-fornefeld Jul 7, 2025
6968d49
wip: test sdk results explicitly specifying root user
ben-fornefeld Jul 8, 2025
208cfeb
wip: explicit root user on getSandboxRoot
ben-fornefeld Jul 8, 2025
f7aa8ba
feat: update Content Security Policy and improve RemainingTime compon…
ben-fornefeld Jul 15, 2025
ff60687
feat: add version compatibility check for sandbox filesystem inspector
ben-fornefeld Jul 16, 2025
249d380
fix: enable envd version compatibility check for sandbox inspection
ben-fornefeld Jul 16, 2025
4ca2363
feat: add copy button for sandbox ID in header with client-side clipb…
ben-fornefeld Jul 17, 2025
2cb930f
style: update text color to fg-300 for sandbox header components
ben-fornefeld Jul 17, 2025
e4c869a
refactor: improve tooltip component
ben-fornefeld Jul 17, 2025
fb2613a
wip: improve sandbox template incompatibility UI with step-by-step gu…
ben-fornefeld Jul 18, 2025
d03d650
wip: incompatible envd version dialog
ben-fornefeld Jul 18, 2025
e70f2b5
refactor: extract cookie settings to reusable constant and extend exp…
ben-fornefeld Jul 18, 2025
b9edab6
refactor: remove unused sandbox API routes and related client pools
ben-fornefeld Jul 19, 2025
3c4fa66
fix: conditionally render DashboardSurveyPopover based on PostHog key…
ben-fornefeld Jul 22, 2025
d009186
feat: add teamIdOrSlug prop to SandboxDetailsTabs and update SandboxI…
ben-fornefeld Jul 22, 2025
5d611cf
feat: enhance SandboxProvider to include teamId and implement metrics…
ben-fornefeld Jul 22, 2025
ac9bb6b
feat: enhance SandboxInspectIncompatible UI with AsciiBackgroundPatte…
ben-fornefeld Jul 22, 2025
a4b66c4
fix: adjust styling in SandboxDetailsTabs and SandboxInspectIncompati…
ben-fornefeld Jul 22, 2025
dd6c4f3
feat: add AsciiBackgroundPattern to SandboxInspectPage and update sty…
ben-fornefeld Jul 22, 2025
ef288c1
feat: add conditional rendering for empty JSON in MetadataCell and re…
ben-fornefeld Jul 22, 2025
06ca463
fix: correct capitalization in SandboxInspectIncompatible text for co…
ben-fornefeld Jul 22, 2025
650bb6c
feat: enhance resource usage components with improved metrics handlin…
ben-fornefeld Jul 23, 2025
db2758c
refactor: rename isEnvdVersionCompatible to isEnvdVersionIncompatible…
ben-fornefeld Jul 24, 2025
9b89813
refactor: simplify isEnvdVersionIncompatibleForInspect logic, add STA…
ben-fornefeld Jul 24, 2025
b37b7ce
fix: improve wording in SandboxInspectIncompatible description for cl…
ben-fornefeld Jul 24, 2025
04df1ba
refactor: update Sandbox layout and context management to improve sta…
ben-fornefeld Jul 25, 2025
9bd62f7
fix: update error messages in SandboxInspectProvider to clarify that …
ben-fornefeld Jul 25, 2025
7206c1c
refactor: update template ID label and enhance TemplateId component t…
ben-fornefeld Jul 25, 2025
39daab9
chore: indefinite request timeout for watchDir
ben-fornefeld Jul 25, 2025
5886fd5
refactor: update logging format in actionClient for consistency and c…
ben-fornefeld Jul 28, 2025
e8fb137
refactor: update logger usage in tests and sandbox manager; enhance s…
ben-fornefeld Jul 28, 2025
3f70006
refactor: streamline error handling in SandboxInspectProvider by remo…
ben-fornefeld Jul 28, 2025
6f84a24
refactor: optimize date handling in RanFor component by replacing use…
ben-fornefeld Jul 28, 2025
ef0a5cc
chore: update e2b package to version 1.10.0; adjust sandbox spawn par…
ben-fornefeld Jul 29, 2025
d6c5868
refactor: optimize TemplateId component by using useMemo for value ca…
ben-fornefeld Jul 29, 2025
b898adf
chore: update minimum environment version to 0.2.7; refactor SandboxM…
ben-fornefeld Jul 29, 2025
ec221e9
refactor: enhance SandboxManager to track last updated timestamps; st…
ben-fornefeld Jul 29, 2025
c791283
fix: update StoppedBanner component to use conditional rendering base…
ben-fornefeld Jul 29, 2025
e5c4508
chore: add 'pathe' package version 2.0.3 to dependencies in bun.lock
ben-fornefeld Jul 30, 2025
2ca2d26
refactor: update dependencies in SandboxInspectProvider and adjust fi…
ben-fornefeld Jul 30, 2025
0b596be
refactor: improve error handling in SandboxInspectProvider and enhanc…
ben-fornefeld Jul 30, 2025
bf10b32
fix: improve error handling in SandboxManager by logging watcher exit…
ben-fornefeld Jul 30, 2025
9cb9cb9
delete: remove metadata.ts file as it is no longer needed for project…
ben-fornefeld Jul 30, 2025
77829f7
feat: add 'user' parameter to filesystem watcher in SandboxManager fo…
ben-fornefeld Jul 30, 2025
14573ea
refactor: simplify CardDescription in StoppedBanner component by remo…
ben-fornefeld Jul 30, 2025
755b66d
Update src/features/dashboard/sandbox/inspect/hooks/use-watcher.ts
ben-fornefeld Jul 30, 2025
6a38cff
chore: remove LOCAL_STORAGE_KEYS config
ben-fornefeld Jul 30, 2025
3ae0539
Merge branch 'create-page-layout-e2b-2464' of https://github.com/e2b-…
ben-fornefeld Jul 30, 2025
668607c
refactor: enhance error logging in sandbox components and improve API…
ben-fornefeld Jul 30, 2025
db110ce
refactore: add serialize-error dependency and refactor sandbox contex…
ben-fornefeld Jul 31, 2025
810ad21
refactor: remove secure option from Sandbox connection for cleaner co…
ben-fornefeld Jul 31, 2025
1ae6480
refactor: replace FileType enum with string literals for 'file' and '…
ben-fornefeld Jul 31, 2025
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
169 changes: 102 additions & 67 deletions bun.lock

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { withSentryConfig } from '@sentry/nextjs'


/** @type {import('next').NextConfig} */
const config = {
eslint: {
Expand Down Expand Up @@ -76,22 +75,25 @@ const config = {
// Campaigns
{
source: '/start',
destination: '/careers?utm_source=billboard&utm_medium=outdoor&utm_campaign=launch_2025&utm_content=start_ooh',
destination:
'/careers?utm_source=billboard&utm_medium=outdoor&utm_campaign=launch_2025&utm_content=start_ooh',
permanent: false,
statusCode: 302,
},
{
source: '/machines',
destination: '/enterprise?utm_source=billboard&utm_medium=outdoor&utm_campaign=launch_2025&utm_content=machines_ooh',
destination:
'/enterprise?utm_source=billboard&utm_medium=outdoor&utm_campaign=launch_2025&utm_content=machines_ooh',
permanent: false,
statusCode: 302,
},
{
{
source: '/humans',
destination: '/enterprise?utm_source=billboard&utm_medium=outdoor&utm_campaign=launch_2025&utm_content=humans_ooh',
destination:
'/enterprise?utm_source=billboard&utm_medium=outdoor&utm_campaign=launch_2025&utm_content=humans_ooh',
permanent: false,
statusCode: 302,
}
},
],
skipTrailingSlashRedirect: true,
}
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"@radix-ui/react-separator": "^1.1.3",
"@radix-ui/react-slider": "^1.2.4",
"@radix-ui/react-slot": "^1.2.0",
"@radix-ui/react-tabs": "^1.1.4",
"@radix-ui/react-tabs": "^1.1.12",
"@radix-ui/react-toast": "^1.2.7",
"@radix-ui/react-tooltip": "^1.2.0",
"@radix-ui/themes": "^3.2.1",
Expand Down Expand Up @@ -86,7 +86,7 @@
"geist": "^1.3.1",
"immer": "^10.1.1",
"lucide-react": "^0.525.0",
"motion": "^12.0.6",
"motion": "^12.18.1",
"nanoid": "^5.0.9",
"next": "15.3.0-canary.23",
"next-logger": "^5.0.1",
Expand All @@ -109,6 +109,8 @@
"rehype-katex": "^7.0.1",
"remark-math": "^6.0.0",
"remark-mermaid": "^0.2.0",
"semver": "^7.7.2",
"serialize-error": "^12.0.0",
"shiki": "3.2.1",
"swr": "^2.3.4",
"tailwind-merge": "^2.6.0",
Expand All @@ -135,6 +137,7 @@
"@types/pg": "^8.11.11",
"@types/react": "^19.0.8",
"@types/react-dom": "19.0.3",
"@types/semver": "^7.7.0",
"@vitest/coverage-v8": "^3.0.7",
"@vitest/ui": "3.0.7",
"autoprefixer": "^10.4.20",
Expand Down
Loading