feat(app): add recent projects section to open project modal#12886
Closed
pablopunk wants to merge 16 commits intoanomalyco:devfrom
Closed
feat(app): add recent projects section to open project modal#12886pablopunk wants to merge 16 commits intoanomalyco:devfrom
pablopunk wants to merge 16 commits intoanomalyco:devfrom
Conversation
- Display top 10 most recently accessed projects in the Cmd+O modal - Fetch projects from GET /project API endpoint, sorted by time.updated - Filter out root directory (/) project which is not useful - Recent projects section only shows when projects exist - Clicking a recent project opens it directly, same as file browser - Improve UI with proper spacing and no divider - Improves discoverability of previously worked projects in web UI
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
Contributor
|
The following comment was made by an LLM, it may be inaccurate: No duplicate PRs found |
50fc719 to
5247b21
Compare
5247b21 to
161789e
Compare
- Create reusable PathDisplay component for consistent path rendering - Extract formatProjectPath helper for path formatting logic - Extract RecentProjectItem component to reduce JSX complexity - Use single isRoot boolean instead of repeated conditions - Apply same path display logic to both recent projects and search results
pablopunk
commented
Feb 11, 2026
| return sync.data.project | ||
| .slice() | ||
| .sort((a, b) => (b.time.updated ?? b.time.created) - (a.time.updated ?? a.time.created)) | ||
| .toSorted((a, b) => (b.time.updated ?? b.time.created) - (a.time.updated ?? a.time.created)) |
Contributor
Author
There was a problem hiding this comment.
apparently toSorted does not mutate the original array so we don't need to slice
…e into recent-projects-web-ui
# Conflicts: # packages/app/src/components/dialog-select-directory.tsx
6 tasks
Contributor
Author
|
Closing because I'm not cool enough I guess #15270 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Recently I switched to coding on the go and the opencode web UI is the perfect candidate to do so. But I found it annoying that when I opened a project, suddenly it was pretty difficult to find recent projects from my phone. Clicking the "+" icon just shows your whole file tree and it's a bit annoying to search for your project on the phone, while the UI knows exactly which recent projects you worked on.
So, whenever you press cmd+o or click Open Project, we could show the same "Recent Projects" we show on the home page (which is not reachable anymore, unless you close all projects).
How did you verify your code works?