Skip to content

Conversation

@samhvw8
Copy link
Contributor

@samhvw8 samhvw8 commented Mar 28, 2025

Track the current workspace path in history items to enable filtering and organization of history by workspace. This change adds the workspace property to the history schema and ensures it's saved with each history entry.

Context

Implementation

Video

https://www.loom.com/share/1e39622d294a42cfb564a65afe3f002d?sid=649de302-352f-4340-a084-39b3aa3e20d2

How to Test

Get in Touch


Important

Add workspace filtering to history items, update UI, and enhance translations.

  • Behavior:
    • Add workspace field to historyItemSchema in index.ts.
    • Store current workspace path in Cline.ts when saving history items.
    • Add UI elements in HistoryPreview.tsx and HistoryView.tsx to filter history by current workspace.
    • Display workspace folder name in history items in HistoryPreview.tsx and HistoryView.tsx.
  • UI Enhancements:
    • Add search highlighting styles in index.css.
    • Update translations for all supported languages in webview-ui/src/i18n/locales/*/history.json.
  • Misc:
    • Add useTaskSearch hook in useTaskSearch.ts to manage task search and filtering logic.

This description was created by Ellipsis for 225fb068e9b5d26bae84700af31a72e314470a8c. It will automatically update as commits are pushed.

@changeset-bot
Copy link

changeset-bot bot commented Mar 28, 2025

⚠️ No Changeset found

Latest commit: 4445ffe

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Mar 28, 2025
Copy link
Collaborator

@mrubens mrubens left a comment

Choose a reason for hiding this comment

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

I like the idea of this, but I'm not sure the right UX. I wonder if the first thing we should do is to have a PR with only the code that tracks the workspace for the task (i.e. no UI changes) so we can build up some historical data while we figure it out.

@samhvw8
Copy link
Contributor Author

samhvw8 commented Mar 30, 2025

@mrubens can i remove the button show only in preview history, and keep fix highlight, show workspace and can search workspace in history task ?

@samhvw8 samhvw8 force-pushed the feat/WorkspacehistoryItem branch from 225fb06 to c252acd Compare March 30, 2025 15:03
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Mar 30, 2025
@samhvw8
Copy link
Contributor Author

samhvw8 commented Mar 30, 2025

@samhvw8 samhvw8 force-pushed the feat/WorkspacehistoryItem branch from c252acd to 66ec715 Compare March 31, 2025 12:19
@hannesrudolph hannesrudolph moved this from New to PR [Pre Approval Review] in Roo Code Roadmap Apr 1, 2025
Track the current workspace path in history items to enable filtering and organization of history by workspace. This change adds the workspace property to the history schema and ensures it's saved with each history entry.
@samhvw8 samhvw8 force-pushed the feat/WorkspacehistoryItem branch from 66ec715 to 4445ffe Compare April 1, 2025 05:11
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Apr 1, 2025
@samhvw8 samhvw8 changed the title feat: add workspace filtering to history items feat: add workspace tracking to history items Apr 1, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Apr 5, 2025
@mrubens mrubens merged commit bf64885 into RooCodeInc:main Apr 5, 2025
16 checks passed
@github-project-automation github-project-automation bot moved this from PR [Pre Approval Review] to Done in Roo Code Roadmap Apr 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants