Skip to content

feat: pick a parent item when creating a work item - #533

Open
m0nt0 wants to merge 5 commits into
Windshiftapp:mainfrom
m0nt0:feat/create-modal-parent-picker
Open

m0nt0 wants to merge 5 commits into
Windshiftapp:mainfrom
m0nt0:feat/create-modal-parent-picker

Conversation

@m0nt0

@m0nt0 m0nt0 commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

What

  • The create modal heading becomes a searchable parent picker scoped to the selected workspace. Picking an item creates the new work item as its child; the type field is restricted to valid child types (parent level + 1, plus generic subtasks). Items that cannot have children are hidden.
  • With an empty search the picker lists the workspace's open items.

Why

There was no quick way to create a sub-item of an existing item from the global create modal.

Testing

  • vitest, svelte-check, biome.
  • Deployed and running on a test instance.

The heading of the create modal becomes a searchable picker over the
selected workspace. Picking an item creates the new one as its child and
restricts the type field to valid child types.
With an empty search the parent picker now lists the workspace's open
items. The statusCompleted QL field is made integer-typed so its boolean
literal compares on Postgres instead of failing with boolean = integer.
@m0nt0 m0nt0 changed the title feat(create-modal): pick a parent item when creating a work item feat: pick a parent item when creating a work item Nov 18, 2026
@stefan-ernst

stefan-ernst commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the PR!
Although the statusCompleted CQL change is not needed. The boolean = integer error only occurs with an inlined integer literal; the CQL generator always binds ? parameters and the app uses lib/pq, which sends int64(0) as the text "0" — Postgres coerces that to boolean, so statusCompleted = false already works on Postgres. The CASE only changes statusCompleted IS NULL semantics (it no longer matches items without a status category) and makes the predicate non-sargable. Reverting to sc.is_completed keeps the parent picker working.

@m0nt0

m0nt0 commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

should be ok now 😄

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.

2 participants