Skip to content

feat(kanban): convert inline-create title input to multiline textarea - #20970

Closed
JezzaHehn wants to merge 1 commit into
NousResearch:mainfrom
JezzaHehn:kanban-textarea-feature
Closed

feat(kanban): convert inline-create title input to multiline textarea#20970
JezzaHehn wants to merge 1 commit into
NousResearch:mainfrom
JezzaHehn:kanban-textarea-feature

Conversation

@JezzaHehn

@JezzaHehn JezzaHehn commented May 7, 2026

Copy link
Copy Markdown
Contributor

Problem

The title input in the kanban inline-create form is a single-line <input>, making it awkward for longer task descriptions or multi-line ideas.

Solution

Convert to <textarea> with:

  • 2-row default height
  • Vertical resize
  • Max-height cap (8rem)
  • Same placeholder text ("Rough idea — AI will spec it…" for triage, "New task title…" for others)

Behavior Changes

  • Enter no longer auto-submits — type newlines freely
  • Submit via the Create button (explicit action)
  • Escape still cancels the form

Screenshot

Before: Single-line input, Enter submits immediately
image

After: 2-row textarea, Create button to submit
image

Second example showing expanded textarea for more space
image

Technical Note

This PR modifies dist/index.js directly because the kanban dashboard source (TypeScript/JSX) is not in this repository. The dashboard was added in commit c868425 and shipped only as a pre-built IIFE bundle.

If maintainers have access to the source, I'm happy to provide a source-level PR instead.

Consideration

If users prefer the single-line behavior, a future PR could add a user preference toggle. This change errs on the side of multiline-friendly for task descriptions, which is the more common use case for kanban cards.

- Changed Input component to native textarea for task creation
- Removed Enter-to-submit behavior (use Create button instead)
- Added proper styling: border, padding, rounded corners, focus ring
- 2-row default height with vertical resize and max-height cap
- Escape still cancels the form
@JezzaHehn

Copy link
Copy Markdown
Contributor Author

Looks like the "Lint" Action got rate limited and this "Tests" Action also borked for some reason? not sure what's up with that haha, presumably not related to this code but rather upstream pipeline infrastructure, but please do let me know if those failures are related to the PR itself!

@JezzaHehn
JezzaHehn marked this pull request as ready for review May 7, 2026 01:57
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have comp/plugins Plugin system and bundled plugins labels May 7, 2026
@teknium1

teknium1 commented May 7, 2026

Copy link
Copy Markdown
Contributor

Merged via PR #21243 — your commit landed on main as b93c9f6 with your authorship preserved (rebase-merge).

Thanks for the contribution! I added a small follow-up on top (commit fa58274) to restore Enter=submit / Shift+Enter=newline in the new textarea — the standard convention in Slack/Discord/GitHub. The single-line common case now still submits with Enter while you can multi-line with Shift+Enter.

#21243

@teknium1 teknium1 closed this May 7, 2026
@JezzaHehn

JezzaHehn commented May 9, 2026

Copy link
Copy Markdown
Contributor Author

Many thanks! Excellent followup for Shift+Enter, that is consistent with the conventions of many other sites yes. Cheers 💚

@JezzaHehn
JezzaHehn deleted the kanban-textarea-feature branch May 9, 2026 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/plugins Plugin system and bundled plugins P3 Low — cosmetic, nice to have type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants