Skip to content

Make the cron prompt assistant a toggleable sidebar#246

Merged
ramonski merged 3 commits into
masterfrom
feat/cron-assistant-sidebar
Jul 9, 2026
Merged

Make the cron prompt assistant a toggleable sidebar#246
ramonski merged 3 commits into
masterfrom
feat/cron-assistant-sidebar

Conversation

@ramonski

@ramonski ramonski commented Jul 9, 2026

Copy link
Copy Markdown
Member

Context

Follow-up to #245 based on live-use feedback. The assistant sat below the prompt in the modal, so on a long prompt it was off-screen. Worse, once it proposed a rewrite the instruction input went disabled and the Accept/Reject buttons were buried far below the fold — it looked like nothing happened.

What changed

The assistant is now a sidebar, opened by a Sparkles button next to the PROMPT label; the modal widens (lg → xl) when it's open and collapses back when closed. Layout is now two columns: prompt on the left, assistant on the right.

  • The proposed rewrite still renders as an inline diff in the prompt column (in context), but Accept / Reject moved into the sidebar, right where you typed, under a clear "review the suggested changes, then accept or reject" prompt. Nothing is hidden below the fold.
  • A one-line hint clarifies that changes are a diff and nothing saves until you click Save.
  • The instruction box clears after each rewrite.

No backend change.

Verified

Drove the real app (ollama:gemma4:26b): opened the sidebar via the button, asked to "add a sentence saying to skip forks", got a green diff line "Skip all forks; focus only on original repositories." in the prompt with Accept/Reject in the sidebar; Accept folded it into the editor and reset the sidebar. tsc + build clean.

CHANGELOG

Refines #245's unreleased entry — see the updated line rather than a duplicate, since the feature hasn't shipped yet.

The assistant used to sit below the prompt, so on a long prompt
it was off-screen -- and once it proposed a rewrite, the input
went disabled with the Accept/Reject buttons buried far below,
making it look like nothing happened.

It is now a sidebar opened by a Sparkles button next to the
prompt label (the modal widens when open). The proposed rewrite
still renders as a diff in the prompt column, but Accept / Reject
now live in the sidebar right where you typed, under a clear
"review the suggested changes" prompt. The instruction box also
clears after each rewrite.
@ramonski ramonski self-assigned this Jul 9, 2026
@ramonski ramonski added the Enhancement ✨ Improvement to existing functionality label Jul 9, 2026
The add/remove rows used light-tinted text on a light-tinted
background, which was hard to read in light mode. Switch to
dark text (emerald-800 / red-800) on the tinted rows, keeping
the lighter emerald-200 / red-200 for dark mode.
@ramonski
ramonski merged commit 70633a9 into master Jul 9, 2026
2 checks passed
@ramonski
ramonski deleted the feat/cron-assistant-sidebar branch July 9, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement ✨ Improvement to existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant