Skip to content

feat: Lookup control in Table and Modify-structure wizards (#62)#67

Merged
DDecoene merged 2 commits into
release/v1.3.0from
feature/62-wizard-lookup
Jul 12, 2026
Merged

feat: Lookup control in Table and Modify-structure wizards (#62)#67
DDecoene merged 2 commits into
release/v1.3.0from
feature/62-wizard-lookup

Conversation

@DDecoene

Copy link
Copy Markdown
Owner

Summary

The Assistant sidebar's New-table and Modify-structure wizards gain an optional per-column "lookup" input, accepting either TABLE.COLUMN [DISPLAY COLUMN] or a quoted list — so declaring a LOOKUP no longer requires dropping into raw W3Script syntax. A shared lookupClause() helper (exported from TableWizard.ts, reused by ModStructWizard.ts) parses the input and folds the resulting clause into every emitted CREATE TABLE/ALTER TABLE ADD/ALTER TABLE ALTER command.

This is the last issue in the v1.3.0 lookup-columns milestone. With this merged, the language (#58), enforcement + BROWSE (#60), field-bound forms (#59), two demo apps (#61), and now the GUI wizards all agree on one constraint, declared once, on the column.

Plan: docs/superpowers/plans/2026-07-11-lookup-columns.md (Task 13)

Closes #62.

Test plan

  • npm test — 446/446 vitest pass
  • npm run build — clean typecheck + build
  • npx playwright test — 95/96 pass. The one failure (assistant.spec.ts › "open database via picker") is the same pre-existing environment flake already documented and verified against unmodified main in PR feat: demos adopt LOOKUP columns — overtime + CRM (#61) #66 — unrelated to this change.
  • New Playwright case drives the wizard end-to-end: fills the lookup field, asserts the exact preview text, submits, then opens BROWSE and confirms the created column's grid editor is an in-viewport <select> with exactly the declared option list

DDecoene added 2 commits July 12, 2026 15:58
Notes the Assistant sidebar's parity with the raw-syntax LOOKUP
clause, and that this closes out the full lookup-columns milestone
(#58-#62).
@DDecoene DDecoene merged commit 1b7973a into release/v1.3.0 Jul 12, 2026
2 checks passed
@DDecoene DDecoene deleted the feature/62-wizard-lookup branch July 12, 2026 14:19
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