Disable project creation when user has 10 projects#469
Merged
AnthonyRonning merged 1 commit intomasterfrom Apr 14, 2026
Merged
Conversation
- Add MAX_PROJECTS constant (10) - When at limit, disable 'New project' button with reduced opacity and cursor-not-allowed - Show tooltip on hover explaining 'Maximum of 10 projects reached' - Uses existing Tooltip component from shadcn/ui Co-Authored-By: tony@opensecret.cloud <TonyGiorgio@protonmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Deploying maple with
|
| Latest commit: |
4af319f
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://071b833a.maple-ca8.pages.dev |
| Branch Preview URL: | https://devin-1776139457-max-10-proj.maple-ca8.pages.dev |
Contributor
Author
Testing ResultsTested locally on Test Results (3/3 passed)
|
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.
Summary
Enforces a maximum of 10 projects in the sidebar UI. When a user has 10 or more conversation projects, the "New project" button becomes disabled (grayed out with
cursor-not-allowed) and shows a tooltip on hover explaining that the maximum has been reached.Changes are limited to
ChatHistoryList.tsx:MAX_PROJECTS = 10module-level constantTooltipcomponent from shadcn/ui (provider is already mounted at the app level)Review & Testing Checklist for Human
asChildon adisabledHTML button can behave inconsistently across browsers — hover events may not fire on truly disabled elements. Test in Chrome, Safari, and Firefox.Notes
<span>so the tooltip trigger receives pointer events even when the child is disabled.Link to Devin session: https://app.devin.ai/sessions/fd74c469a38d4cc79e8877d0e05fab2b
Requested by: @AnthonyRonning