Skip to content

Replace the editor with a notation-first test workbench - #2

Merged
manabeai merged 8 commits into
mainfrom
feat/direct-input-workbench
Sep 16, 2026
Merged

manabeai merged 8 commits into
mainfrom
feat/direct-input-workbench

Conversation

@manabeai

Copy link
Copy Markdown
Owner

Summary

  • replace the three-panel editor with a notation-first 64/36 input and generated-case workbench
  • edit variables through Rust-projected primitive × horizontal × vertical structure controls; name helpers only fill the identifier draft
  • add Number interval sliders with exact bounds and String/Char character-set controls
  • surface Rust-projected generation blockers, direct recovery actions, undo/redo, seed controls, responsive output switching, and keyboard-accessible interactions
  • replace DESIGN.md and add the product contract for the production experience

Depends on manabeai/cp-ast-ecosystems#5

Verification

  • npm run lint
  • npm run test:unit (20 tests)
  • npm run test:e2e (64 tests)
  • npm run build
  • Rust dependency: cargo test --workspace and strict cargo clippy --workspace --all-targets -- -D warnings from a clean checkout

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-08-29T11:10:15.860276Z 3356535 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 33565350c8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/editor/TypedConstraintControls.tsx Outdated
Comment on lines +27 to +29
const numberVars = projection.value.available_vars.filter(
variable => variable.value_type === 'number' && variable.node_kind === 'scalar',
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Project eligible SumBound variables from Rust

Move this eligibility predicate into the Rust projection instead of interpreting the generic available_vars list in the view. When SumBound eligibility changes or becomes context-dependent, this duplicate TypeScript rule can hide valid targets or offer illegal ones before the Rust action rejects them; the component should only render action-specific candidates projected by the domain layer.

AGENTS.md reference: AGENTS.md:L11-L15

Useful? React with 👍 / 👎.

Comment thread src/editor/EditorPage.tsx
Comment on lines +31 to +34
if ((event.metaKey || event.ctrlKey) && event.key.toLowerCase() === 'z') {
event.preventDefault();
if (event.shiftKey) redoDocument();
else undoDocument();

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve native undo while editing form fields

When focus is inside a name, constraint, or seed input, this window-level handler still prevents the browser's native Ctrl/Cmd+Z and instead undoes the latest AST action. For example, typing a new node name and pressing Ctrl+Z can remove the previously created node rather than undoing the typed characters; ignore shortcuts originating from editable controls before dispatching document history.

Useful? React with 👍 / 👎.

@manabeai
manabeai merged commit 368b9bd into main Sep 16, 2026
4 checks passed
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