Skip to content

feat(cleaner): add open file location button to scan results#83

Merged
dbfx merged 2 commits intomainfrom
feat/cleaner-open-location
Mar 26, 2026
Merged

feat(cleaner): add open file location button to scan results#83
dbfx merged 2 commits intomainfrom
feat/cleaner-open-location

Conversation

@dbfx
Copy link
Contributor

@dbfx dbfx commented Mar 26, 2026

Summary

  • Adds an "Open file location" button to cleaner scan results, on both group headers and individual item rows
  • Clicking the button reveals the file/folder in the system file manager (Explorer / Finder / Files)
  • Button is positioned as the rightmost element in each row, after the file size

Test plan

  • Run a cleaner scan
  • Verify the folder icon button appears on each group header row (rightmost)
  • Verify the folder icon button appears on each expanded item row (rightmost)
  • Click the button on a group header — should open the file manager highlighting the first item
  • Click the button on an individual item — should open the file manager highlighting that specific file
  • Verify clicking the button does NOT toggle the item checkbox
  • Test on Windows (Explorer), macOS (Finder), Linux (Files)

🤖 Generated with Claude Code

Allow users to reveal scanned items in their system file manager
(Explorer/Finder/Files) directly from the cleaner results list.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5afa3276a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Skip rendering the open-location button for items that use non-filesystem
labels (e.g. "Recycle Bin", "PATH → …") where the action would be a
silent no-op.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dbfx dbfx force-pushed the feat/cleaner-open-location branch from a270e80 to 39f2389 Compare March 26, 2026 12:35
@dbfx dbfx merged commit 80dd048 into main Mar 26, 2026
8 checks passed
@dbfx dbfx deleted the feat/cleaner-open-location branch March 26, 2026 12:35
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 39f2389c28

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

import { toast } from 'sonner'

/** Check whether a path looks like an absolute filesystem path (not a label like "Recycle Bin" or "PATH → …"). */
const isAbsolutePath = (p: string) => /^[A-Za-z]:[\\/]/.test(p) || p.startsWith('/')

Choose a reason for hiding this comment

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

P2 Badge Accept UNC paths in absolute-path guard

isAbsolutePath only recognizes drive-letter and POSIX-rooted paths, so valid Windows UNC paths (for example \\server\share\file.tmp) are treated as non-absolute and the new open-location button is never rendered for those entries. The IPC handler uses Node path.isAbsolute, which does accept UNC paths, so this frontend check is stricter than the backend and blocks the feature for users with redirected/network profile paths.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant