Skip to content

Reorder LAMBDA input parameters in LET to LAMBDA dialog#97

Merged
jimmytacks merged 2 commits into
mainfrom
issue-92-reorder-lambda-inputs
Apr 21, 2026
Merged

Reorder LAMBDA input parameters in LET to LAMBDA dialog#97
jimmytacks merged 2 commits into
mainfrom
issue-92-reorder-lambda-inputs

Conversation

@jimmytacks
Copy link
Copy Markdown
Collaborator

Summary

  • Adds up/down reorder buttons per kept input row in the LET to LAMBDA dialog.
  • Buttons are disabled at the boundaries and hidden for unchecked rows.
  • Alt+Up / Alt+Down moves the focused row while it has keyboard focus.
  • Unchecking parks a row in the source-order unchecked section; rechecking re-inserts it at the end of the kept section.
  • LetToLambdaBuilder now drives the generated =LAMBDA(...) signature order from the order of kept items in LambdaGenerationRequest.Inputs. Internal LET bindings still appear in source order inside the body.

Spec: specs/0001-reorder-lambda-input-params.md

Closes #92

Test plan

  • dotnet test addin/lambda-boss.Tests/lambda-boss.Tests.csproj — 366 passed, 0 failed (includes 4 new builder tests covering reordered inputs, source-order internal bindings, rename-with-reorder, and ignoring unchecked input list position).
  • Manual smoke in Excel: open LET to LAMBDA dialog on a formula with 3+ value bindings and confirm up/down buttons, Alt+Up/Down, uncheck/recheck behaviour, and the generated LAMBDA signature.

🤖 Generated with Claude Code

- Add up/down buttons per kept row, disabled at boundaries.
- Alt+Up / Alt+Down keyboard shortcuts when a row has focus.
- Unchecking a row parks it in the source-order unchecked section;
  rechecking re-inserts at the end of the kept section.
- LetToLambdaBuilder now drives LAMBDA signature order from the order
  of kept items in LambdaGenerationRequest.Inputs; internal bindings
  still preserve LET source order.

Closes #92
Arrows were sitting between the checkbox and the param name textbox,
which crowded the name field. Dock them to the right of the row so
the param name gets the full width between checkbox and preview.
@jimmytacks jimmytacks merged commit 4ff568c into main Apr 21, 2026
1 check passed
@jimmytacks jimmytacks deleted the issue-92-reorder-lambda-inputs branch April 21, 2026 12:59
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.

Reorder LAMBDA input parameters in LET to LAMBDA dialog

1 participant