Skip to content

fix(ui): keep relevant file path segments visible - #628

Open
pascalandr wants to merge 2 commits into
NeuralNomadsAI:devfrom
pascalandr:fix/issue-603-file-path-display
Open

fix(ui): keep relevant file path segments visible#628
pascalandr wants to merge 2 commits into
NeuralNomadsAI:devfrom
pascalandr:fix/issue-603-file-path-display

Conversation

@pascalandr

@pascalandr pascalandr commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • show the file or directory name first in each @ picker result
  • show the immediate parent and complete root-aligned directory on separate lines
  • preserve horizontal inspection for long directories and reset it when results change
  • retain the complete path for assistive technology without changing selection values
  • run the focused path-splitting regression test in PR CI

Context

PR #623 replaced end truncation with horizontal scrolling. This follow-up keeps that behavior while moving the relevant filename and parent to the start of each result, matching the CLI-style expectation from the report.

Validation

  • workspace typecheck passes
  • UI production build passes
  • focused path test passes
  • git diff check passes
  • Gatekeeper round 3: zero findings

Closes #603

Render mention-picker file results with the filename on its own line and an abbreviated first-folder/parent context so deeply nested paths remain identifiable without horizontal scrolling.

Keep selection values unchanged, expose the complete path to assistive technology and hover users, and preserve shared overflow behavior for command and agent results. Add focused path-splitting coverage to the PR UI test job.

Validated with workspace typecheck, UI production build, the focused Node test, and repeated Gatekeeper review.

@pascalandr pascalandr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gatekeeper review, round 1: 2 findings. Long filenames could wrap across enough lines to consume the picker viewport, and the omitted middle path was unavailable to sighted keyboard/touch users because the complete value was only exposed through sr-only text/title. Both are being corrected while preserving the immediately visible filename, parent, and starting folder.

@github-actions

Copy link
Copy Markdown

PR builds are available as GitHub Actions artifacts:

https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/30355336542

Artifacts expire in 7 days.
Artifacts:

  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-tauri-windows
  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-electron-macos
  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-tauri-macos
  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-tauri-macos-arm64
  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-tauri-linux
  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-electron-linux
  • pr-628-33339fe741dd84f1ee45991a9f72f3ec69334212-electron-windows

Keep filename, parent, and root-aligned directory context independently visible while retaining the horizontally scrollable complete directory introduced by the large-workspace picker follow-up.

Reset horizontal position when results change, avoid unsupported Array.at calls on older WKWebView releases, and keep the selected attachment payload unchanged.

Validated with workspace typecheck, UI production build, focused path tests, diff checks, and Gatekeeper rounds through zero findings.

@pascalandr pascalandr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gatekeeper review, round 2: 3 findings. Query changes preserved horizontal scroll position, Array.at would fail on older supported WKWebView releases, and an extreme filename could push the parent out of the initial viewport. All three are corrected in ab55667. The existing keyboard limitation of PR #623's horizontal panning was classified as pre-existing; no footer workaround was retained.

@pascalandr pascalandr left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gatekeeper review, round 3: zero findings. Verified filename/parent/root visibility, complete touch-scrollable directory context, full screen-reader path, unchanged selection values, horizontal reset, older WKWebView compatibility, focused CI coverage, workspace typecheck, UI production build, and diff hygiene.

@pascalandr

Copy link
Copy Markdown
Contributor Author

@shantur LGTM

@github-actions

Copy link
Copy Markdown

PR builds are available as GitHub Actions artifacts:

https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/30357682831

Artifacts expire in 7 days.
Artifacts:

  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-macos
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-electron-macos
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-windows
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-linux
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-macos-arm64
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-electron-linux
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-electron-windows

1 similar comment
@github-actions

Copy link
Copy Markdown

PR builds are available as GitHub Actions artifacts:

https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/30357682831

Artifacts expire in 7 days.
Artifacts:

  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-macos
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-electron-macos
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-windows
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-linux
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-tauri-macos-arm64
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-electron-linux
  • pr-628-ab556674f2b2fad014d81444694f80fca9d2577e-electron-windows

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.

[Bug]: Cannot see relevant part of file names when path is long

2 participants