Repository navigation
feat(site/src): choose an organization when creating a project - #30181
Merged
Merged
Conversation
… the memory toggle
# Conflicts: # docs/reference/api/schemas.md
# Conflicts: # coderd/database/db2sdk/db2sdk.go # coderd/database/dbauthz/dbauthz.go # coderd/database/dbmetrics/querymetrics.go # coderd/database/dbmock/dbmock.go # coderd/database/modelmethods.go # coderd/database/querier.go # coderd/database/querier_test.go # coderd/database/queries.sql.go
…ories # Conflicts: # coderd/database/dbauthz/dbauthz.go # coderd/database/dbmetrics/querymetrics.go # coderd/database/querier.go # coderd/database/querier_test.go # coderd/database/queries.sql.go # coderd/x/chatd/memory_extract_internal_test.go # coderd/x/chatd/projectmemory_extract.go
…olidation # Conflicts: # coderd/database/dbauthz/dbauthz.go # coderd/database/dbmetrics/querymetrics.go # coderd/database/querier.go # coderd/x/chatd/memory_extract.go
…re writing the target
…iled chats visible
…emories Memory permissions now derive from the project owner and ACL, memory tools and the extractor use scope-neutral names, and the extraction cursor table is chat_memory_cursors.
…onsolidation Drops personal memory: consolidation now runs only for project memory and its journal follows the project ACL.
…' into f0ssel/chat-projects-ui-folders
The chat sharing popover now takes a chat or project target, and the project page shows a Share control to users who may share it.
Sharing (#29597) is parked; memory permissions follow the project owner only and the memory migration returns to 000599.
…to f0ssel/chat-memory-consolidation
…onsolidation Sharing is out of the stack; the consolidation migration returns to 000600.
…' into f0ssel/chat-projects-ui-folders
Sharing (#29597) is parked; the sharing popover is chat-only again.
…oject before other chat updates
…to tmp-folders-resync
…to tmp-folders-resync
…ers-resync # Conflicts: # site/src/pages/AgentsPage/components/ChatsSidebar/chats/ChatsPanel.tsx
…ct folder review feedback - Show an empty state when every visible chat is filed in a project. - Reuse the chat list empty-state copy for empty folders. - Make the projects loading and error props required. - Rename ProjectDialogMode to ProjectDialogState. - Add mock prefixes to new test fixtures. - Add stories for loading, error, and empty emoji-icon folder states.
…lar empty state when every chat is in a project Project chats live only in their folders, so the Chats section uses its usual empty-state copy when nothing outside a project remains.
…folders open when navigating between projects A folder that was open because its project was active now stays open when the user opens a chat in another project. Only an explicit toggle collapses a folder.
…roject's page after creating it
…t folders with the chat list The Projects section no longer has its own bounded scroll area. It sits in the sidebar's scroll area above the Chats section, so expanding a folder pushes the chats down.
…coder/coder into f0ssel/chat-projects-ui-folders # Conflicts: # site/src/pages/AgentsPage/components/ChatsSidebar/chats/ChatsPanel.tsx
…ct's page after deleting it
… Projects section
…ew feedback on project deletion and stories
…s empty state while projects load When every chat belongs to a project, those chats are held back until the project list loads. The Chats section showed "No agents yet" in the meantime, which falsely told users their chats did not exist.
… into tmp-30181 # Conflicts: # site/src/pages/AgentsPage/components/ChatsSidebar/ChatsSidebar.test.tsx # site/src/pages/AgentsPage/components/ChatsSidebar/ChatsSidebar.tsx # site/src/pages/AgentsPage/components/ChatsSidebar/dialogs/ChatProjectDialog.test.tsx # site/src/pages/AgentsPage/components/ChatsSidebar/dialogs/ChatProjectDialog.tsx
…the project dialog compilable by the React Compiler
…ganization picker as a combobox The organization picker trigger now has role="combobox" (#30402).
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Stacked on #29583, the sidebar PR at the top of f0ssel's #30377 → #30378 → #30379 → #29583 stack. Merge after #29583.
The project creation modal now has a required Organization dropdown after Project name and Description, and it creates the project in the organization you choose. Until now the sidebar always used the default organization, or the first accessible organization when there was no default, and never showed the choice. That organization is still preselected, and the dropdown appears even when there is only one organization. The create copy is now Create a project, Project name, and Create project. Create project stays disabled until the form has been edited, so it no longer flashes enabled while the initial validation runs.
The selected organization goes only into the URL (
/api/experimental/organizations/{organizationId}/chats/projects). The request body is still limited to name, description, and icon, so the backend is unchanged. Creation is blocked when no organization is available or the selected one has been removed. Editing a project is unchanged: it has no organization field, and it keeps the existing labels, Save button, and update request.This builds on the
ChatProjectDialogfrom #30377 and keeps its validation: code-point length limits, trimmed values, and Save disabled for an edit that changes nothing.ChatProjectFormValuesgains an optionalorganizationId, which the dialog sets only when creating.OrganizationAutocompletenow forwardsaria-invalidandaria-describedbyto its trigger, which letsFormFieldlink its error and description text to the dropdown. The hidden emoji picker thatIconFieldpreloads is nowinert, so its controls are no longer in the tab order.The
ChatProjectDialogstories cover the default, open dropdown, single organization, no available organizations, unavailable selection, invalid name, submitting, mutation error, edit, and narrow viewport states. They replace #30377'sNewProject,EditProject, andSaveErrorstories, which covered the same states.