You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(lambda): Refactor and optimize Lambda Remote Invoke UI with enhanced payload management (#8068)
## Problem
Few UI feedback:
- Payload is not intuitive
- Open Handler should be a button
Inconsistent layer behavior
## UI before
<img width="921" height="653" alt="image"
src="https://github.com/user-attachments/assets/0d7c2f27-78f6-453d-91fb-02ac00f2b043"
/>
## Solution
This PR refactors the Lambda Remote Invoke UI to follow VSCode's native
design patterns, optimizes the codebase by removing unused components,
and enhances the payload management experience with integrated quickpick
functionality for remote test events.
<img width="857" height="899" alt="image"
src="https://github.com/user-attachments/assets/1e446174-8cea-43a6-8ef1-44c1c8008c23"
/>
Update global layer version to 2
### 🎨 UI/UX Improvements
- __Redesigned Remote Debugging section__ to follow VSCode Settings UI
pattern
- Title with inline "Remove Debug Setup" button and timer info
- Checkbox aligned with description on same line for better visual
hierarchy
- __Redesigned Local Root Path section__ with VSCode Settings style
- Added "Open Handler" button with disabled state and helpful tooltips
- Shortened button labels to "Browse" and "Download" for cleaner
interface
- Enhanced descriptions with bold text to guide user actions
- __Completely redesigned Payload section__
- Removed radio buttons for cleaner, unified interface
- Added button group: "Load sample event", "Load local file", "Load
remote event", "Save as remote event"
- Improved textarea with monospace font and better sizing
### 🚀 New Features
- __VSCode quickpick integration for remote test events__
- `selectRemoteTestEvent()`: Shows native quickpick for loading saved
events
- `saveRemoteTestEvent()`: Quickpick with options to create new or
overwrite existing events
- Input validation for event names
- Confirmation dialogs for overwriting existing events
- __Enhanced error handling__
- Gracefully handles "lambda-testevent-schemas registry not found" error
- Returns empty array instead of throwing when no test events exist
- Helpful user messages when no events are found
- __Force flag support__ for overwriting existing test events
- Added `force` parameter to `SamCliRemoteTestEventsParameters`
- Automatically uses `--force` when user confirms overwrite
###
---
- Treat all work as PUBLIC. Private `feature/x` branches will not be
squash-merged at release time.
- Your code changes must meet the guidelines in
[CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines).
- License: I confirm that my contribution is made under the terms of the
Apache 2.0 license.
0 commit comments