Skip to content

feat(web): create an empty workspace - #176

Merged
harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:feat/empty-workspace
Nov 17, 2026
Merged

harenome merged 1 commit into
ThinkFlowLab:mainfrom
harenome:feat/empty-workspace

Conversation

@harenome

@harenome harenome commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #175

What

New workspace can now make a workspace with no runs in it. On the form, the run folders are optional in new mode: the label reads Run folders (optional). Open workspace with a name and no folder makes the workspace with workspace.create(home, [], name) and opens it with shared.open_workspace, the same calls that adopt_roots makes. A blank name gives two random words, as today. No new storage: the workspace is a workspace.json with "roots": [].

The Runs page of an empty workspace shows the import form, as for a workspace with no jobs:

Add runs to Scratch
Harbor, ATIF and OpenTelemetry output, recognised by shape.
Run folders · Drop folders here or click to browse · Add runs
No run yet? Build one →

The warning "Nothing job-shaped under the scanned path." now shows only when the workspace has a root, because an empty workspace scanned no path.

Folders and uploads work as before. In add mode (Add runs to the open workspace), the form still needs a folder, and /use-path and /upload with nothing make no workspace. The form token is checked first, as before.

Touches

routes (web/runs) · templates and static (runs/setup.html) · docs and site (concepts.md)

Before and after

The workspace menu, New workspace, the name "Scratch ", no folder, then Open workspace. Before, the form does not send and asks for a path. After, the empty workspace opens on its Runs page.

Before After
Light, 1280 px 01-before-light-1280 05-after-light-1280
Light, 390 px 02-before-light-390 06-after-light-390
Dark, 1280 px 03-before-dark-1280 07-after-dark-1280
Dark, 390 px 04-before-dark-390 08-after-dark-390

Verified

On this branch, on main at c4c082a5, in a throwaway container (python:3.12):

  • python3 app/tests/parallel.py: 2047 tests in 119 modules, OK.
  • python3 app/tests/parallel.py app/ui_tests: 361 tests in 43 modules, OK.
  • New: app/ui_tests/test_empty_workspace.py. A name alone makes and opens a workspace with no roots, and its Runs page has no "Nothing job-shaped" warning. A blank name gives two random words. Add runs with nothing makes no workspace, on /use-path and on /upload. A folder still goes to adopt_roots. A folder that does not exist makes no workspace. No form token gives 403. On main, the first two tests fail.

Browser check, Chromium (Playwright 1.49), light and dark, 1280 px and 390 px, from the workspace menu (at 390 px, through the menu button). On main, the form shows "Enter a path, or add a folder below." and stays. On this branch, each run opens the Runs page of the new workspace, Add runs to Scratch light 1280 and so on, with no warning. No page JavaScript errors.

Risk

Low. The new path runs only in new mode with no path sent. A revert removes it and leaves the empty workspaces on disk, where they open and can be deleted as any other.

New workspace accepts a name and no path. The form creates the
workspace and opens it. A blank name gives two random words. Adding
runs to the open workspace still needs a path. An empty workspace
shows the import form without the "Nothing job-shaped" warning.
@harenome
harenome merged commit 60d4fc9 into ThinkFlowLab:main Nov 17, 2026
2 checks passed
@harenome
harenome deleted the feat/empty-workspace branch November 17, 2026 09:14
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.

Workspaces: create a workspace with no runs in it

1 participant