Run confirmations show only the first line of the statement

Open
#507 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
cli

Research direction

Start by locating the code that builds the run, plan and export confirmation dialogs and the one-line excerpt that trims the statement to its first non-empty line. Add the failing multi-line confirmation test first, then make those dialogs show the full statement with wrapping and scrolling, keeping the short excerpt only where it labels rather than confirms. Done when every line of a multi-line statement appears in all three confirmations and the tests pass.

Written by the indexing model from the issue text.

Description

bug

What happens

Run confirmations (and the confirmations shown for plans and exports) display a one-line excerpt of the statement: its first non-empty line, cut to the dialog width. The statement that is sent is the full text, so for multi-line or long statements the user confirms something they cannot see in full.

Expected

A confirmation shows the whole statement that will be sent (wrapped and scrollable when long), so what is confirmed is exactly what runs.

Plan

  • Failing test first: a multi-line statement in the run confirmation; the dialog must contain every line.
  • Show the full text (wrapped, scrollable) in the run, plan and export confirmations.
  • Keep the short excerpt only where it is a label, not a confirmation.
Dominant language
Rust
Stars
166
Forks
8
Avg merge
4h 24m
Merged PRs (30d)
291

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DokaDev/datarig

All issues in DokaDev/datarig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.