mirror of
https://github.com/hanzoai/team.git
synced 2026-09-30 01:57:35 +00:00
* [MM-64430] Allow editing team name and description in System Console Make the Team Profile panel on the System Console team detail page editable so admins can rename a team and edit its description without switching to the chat-facing team settings. Changes are saved through the existing SaveChangesPanel flow via patchTeam. Co-authored-by: mattermost-code <[email protected]> * [MM-64430] Widen team profile edit inputs to fit full team name The Team Name and Team Description inputs inherited the narrow team-desc-col width, making long values appear visually truncated. Let the edit column grow to fill the panel so the full value is visible. Co-authored-by: mattermost-code <[email protected]> * [MM-64430] Add tests for editing team name and description in System Console Cover the new editable Team Profile fields and TeamDetails save flow: team_profile renders/edits the name and description inputs and surfaces the name validation error; team_details saves the trimmed name and description via patchTeam and blocks the save when the name is too short. Co-authored-by: mattermost-code <[email protected]> * [MM-64430] Strengthen team profile edit tests per review Scope the name validation error assertion to the name field, and cover error recovery, whitespace-only names, navigation blocking on edit, and resetting the fields when a different team is loaded. Co-authored-by: mattermost-code <[email protected]> * [MM-64430] Pre-commit fixes: i18n sync, lint and stylelint Run i18n-extract to drop the now-unused team profile strings, reorder the new SCSS rule properties, and reformat the new tests to satisfy JSX lint rules. Co-authored-by: mattermost-code <[email protected]> * Remove stray comment in TeamProfile cloud guard Co-authored-by: mattermost-code <[email protected]> * Retrigger CodeRabbit review after rate limit Co-authored-by: mattermost-code <[email protected]> * Address CodeRabbit feedback on team profile save flow - Only reset editable fields when the selected team changes, not when totalGroups updates - Validate team name before archive/restore operations - Patch profile fields before archiving so Save and Archive persists edits Co-authored-by: mattermost-code <[email protected]> * Retrigger Enterprise CI after transient npm ECONNRESET Co-authored-by: mattermost-code <[email protected]> * Validate team name before opening Save and Archive modal When the team name is invalid (too short) and the team is toggled to be archived, clicking Save opened the Save and Archive confirm modal and the validation error rendered behind it, so confirming appeared to do nothing. Validate the name in onSave before opening the modal so the inline error fires immediately, and defensively close the archive modal in handleSubmit. * Add e2e test for editing team name and description in System Console * Address review: exact URL assertion + archive-invalid-name e2e coverage --------- Co-authored-by: mattermost-code <[email protected]> Co-authored-by: Hanzo Dev <[email protected]>