ToolJet/frontend/assets
Muhsin Shah C P f3da972089
Feature: Restrict version rename for git-sync orgs (#16370)
* feat: gate version rename restrictions behind git sync; restore non-git-sync behavior

- Add useGitSyncConfig() hook as shared source of truth for isGitSyncEnabled
  and defaultBranch (reads orgGit store, uses correct github_branch field)
- VersionDropdownItem: show branch name as display name for git-sync drafts;
  show fixed description "Latest commit to main will appear here" for git-sync
  drafts; hide "Edit details" only when git sync is ON (non-git-sync keeps
  original cursor/tooltip/disabled behavior for module versions)
- VersionSwitcherButton: header shows "Draft" (not branch name) for git-sync
  draft versions
- VersionManagerDropdown: source isGitSyncEnabled from hook; render
  EditVersionModal only for non-git-sync workspaces
- CreateDraftVersionModal: show version name input only for non-git-sync;
  set fixed draft name (branch name) and description when git sync is ON;
  replace appGit-based effect with useGitSyncConfig hook
- CreateVersionModal: blank name/description pre-fill when git sync ON; fix
  TDZ by moving effectiveIsBranchingEnabled after useStore block; add git-ref
  character validation for git-sync-enabled orgs
- service.ts: block name/description edits on PUBLISHED versions only when
  org-level git sync is enabled (non-git-sync orgs retain edit capability)

* feat: add immutability warning banner to Save version modal for git-sync orgs

Adds an inline info banner "Name and description cannot be edited after saving"
below the description field when git sync is enabled, matching the Figma design.

* fix: move immutability warning banner to top of Save version modal body

Figma (node 2091-172093) shows the banner above the version name input,
not below the description field.

* fix: improve error message for invalid version names in CreateVersionModal

* feat: enforce version name validation across modals and DTOs

* feat: add validation for version names to prevent spaces and special characters

* feat: refactor version selection logic in CreateVersionModal for improved clarity

* feat: enhance version name validation and update API request format

* Fixed draft version case

---------

Co-authored-by: Yukti Goyal <yuktigoyal02@gmail.com>
Co-authored-by: YuktiGoyal02 <100783212+YuktiGoyal02@users.noreply.github.com>
2026-05-19 10:48:09 +05:30
..
csv Fix/remove metadata ce (#12559) 2025-04-14 17:28:02 +05:30
fonts fix: agent node stylings 2026-01-30 14:30:12 +00:00
images feat: Creates a file button widget for appbuilder (#15506) 2026-03-23 13:12:02 +05:30
libs/pyodide-0.23.2 move pyodide to static assets 2024-02-19 18:16:02 +05:30
translations Feature: Restrict version rename for git-sync orgs (#16370) 2026-05-19 10:48:09 +05:30