Make the cron prompt assistant a toggleable sidebar#246
Merged
Conversation
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
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.