Skip to content

Dipal and Sajeeth Combined Remote Profile Redesign - #952

Merged
Sajeeth-Wimalasuriyan merged 21 commits into
mainfrom
sw-combine-remote-panel-revamp
Jul 24, 2026
Merged

Sajeeth-Wimalasuriyan merged 21 commits into
mainfrom
sw-combine-remote-panel-revamp

Conversation

@Sajeeth-Wimalasuriyan

Copy link
Copy Markdown
Contributor
image image image

Sajeeth-Wimalasuriyan and others added 19 commits July 17, 2026 11:06
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Panels revamped:

- Remote Trace dialog (rocprofvis_ssh_test_dialog.cpp): header/body/footer layout, connection shown as a clickable header button that opens Configure (or 'Configure' when unset), auto-height window so there is no wasted vertical space, tighter panel spacing.

- SSH Connection Settings dialog (rocprofvis_ssh_settings_dialog.cpp): Profile / Connection / Authentication cards with a titled header (compass icon), aligned label+field rows, password and passphrase show toggles, sticky footer with Cancel/Save, auto-height (no scrollbar), draggable window, tighter panel spacing.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Shorten verbose layout comments to concise why-notes.

- Drop empty TextUnformatted placeholder cell and fix stray alignment.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Reorganize options: General keeps preset/output/trace-window; move
  sampling toggles to Sampling, AMD SMI to Process Sampling, and summary
  profile to Config & Logging; Advanced opens in its own window
- Add live config chips (connection/tool/output/preset) and show the
  selected preset's description inline
- Rework Arguments & Environment as one panel with add-and-pill editing
- Restore standard window padding/rounding for the launcher windows
- Remove deprecated Timemory Components; force PID-in-output off with MPI
- Responsive column grids for long checkbox lists; aligned, sized inputs
- Rename: Timing -> Trace window, Statistical -> Call-stack sampling,
  saved Profile -> Saved Config
- Clean up: constants for magic numbers, remove dead code, trim comments

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
- Put Output Format / Trace Window side by side; seed the preview panel to a 3:2 form:preview split on first open

- Tighten card padding and inter-card spacing; size the bottom button row to its content so there's no dead space beneath it

- Hoist layout magic numbers into named constants, dedupe the preset-locked banner into one helper, and trim excessive comments

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	src/view/src/remote/rocprofvis_ssh_test_dialog.cpp
Centralize the shared panel-card vocabulary so SSH prompts, remote progress/output popups, and profiler cards use consistent themed styling.

Co-authored-by: Cursor <cursoragent@cursor.com>
Restyle the profiler remote download popup and "Run on" connection section, and the SSH connection settings modal, to use the shared panel-card helpers so all remote profiling surfaces match the remote trace dialog.

Co-authored-by: Cursor <cursoragent@cursor.com>
Scope each password/passphrase reveal button by its field id so the two eye toggles no longer hash to the same ImGui ID within the shared auth table column.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Extract RemoteFileBrowser from SshTestDialog so it can be reused (adds a directory pick mode; SshTestDialog now delegates to it).
- Profiler launcher: enable the Target Browse buttons in Remote (SSH) mode to open the shared browser; local mode unchanged.
- Add SshConnectionConfig::DisplayLabel() and use it in the connection chips (name if set, else user@host:port).

Co-authored-by: Cursor <cursoragent@cursor.com>
The remote file browser owns its own SSH session, but auth prompts were
only rendered for the launch/test dialogs' sessions, so browsing a host
that needs a password (or unknown host-key) wedged the worker on a prompt
nobody drew.

- SshSession: add a live-session registry (ActiveSessions) alongside the
  existing count.
- ssh_auth_modal: RenderSshAuthModal now returns whether it rendered; add
  RenderSshAuthModals() which draws the prompt for every live session
  (one per frame). AppWindow calls it centrally; drop the per-dialog calls.
- RemoteFileBrowser is itself a modal, so it renders its own session's auth
  nested inside its popup and marks the session self-managed; the central
  path skips it (and defers others) so a second top-level modal can't
  dismiss the browser.
- Reconcile the shared kbdint answer buffer to the request's prompt count
  every frame, fixing an out-of-range crash when switching between
  sessions' prompts.
- Replace the deprecated fixed-buffer strncpy/InputText with the
  std::string-backed InputTextString helper.
- ssh_client: password fallback prompt now shows "Enter the password for
  user@host" instead of a redundant second "Password" line.
@amokiche-amd

Copy link
Copy Markdown
Contributor

Great improvements, looks very great. A small suggestion regarding the profiler window. I find it odd that it appears as a window inside the main window and can be moved, but only within the main window. I think it would be better to make it fixed, so that it occupies the entire space of the main window and cannot be moved. But if it needs to be movable, then it probably makes sense to make it a fully independent window that can be moved outside of the main window.

@tomk-amd

Copy link
Copy Markdown
Collaborator

then it probably makes sense to make it a fully independent window that can be moved outside of the main window.

This is the final goal, if we ever have the technology :) #791

Co-authored-by: Cursor <cursoragent@cursor.com>
@Sajeeth-Wimalasuriyan
Sajeeth-Wimalasuriyan merged commit 56da95e into main Jul 24, 2026
9 checks passed
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.

4 participants