fix(panel): forms catch up with the backend (#614)

New Project claimed GitLab/Gitea were 'planned' while both providers are
fully shipped, showed a hardcoded GitHub badge, and never sent git_provider
at all — a non-GitHub project could not be created without an immediate
edit. It now carries the same forge Select the edit dialog has; the edit
dialog's own 'GitLab support is planned' tooltip is corrected too.

Also: the git actions panel's hardcoded 'main' (wrong PR-eligibility and
target label for master-default and env-ladder projects) is replaced by the
project's resolved head branch; acceptance criteria become editable in the
edit-task dialog; three feature flags get their missing descriptions; and
three forms swap raw-UUID text inputs for the existing Task/Agent selectors.

Co-authored-by: Renn F <rennf93@users.noreply.github.com>
This commit is contained in:
Renzo F
2026-07-20 20:38:36 +02:00
committed by GitHub
co-authored by Renn F
parent fbec679878
commit 8cb233c1e8
13 changed files with 243 additions and 74 deletions
@@ -154,4 +154,26 @@ describe("FeatureFlagsCard — M42 off-transition confirm + pending-keys Set", (
const unmapped = screen.getByText("Alpha");
expect(unmapped.getAttribute("data-state")).toBeNull();
});
// FLAG_DESCRIPTIONS previously lagged FLAG_TOOLTIPS for three vault/docs
// flags — the always-visible paragraph silently rendered empty for them.
it("renders an always-visible description for every vault/docs-sync flag", async () => {
getFeatureFlags.mockResolvedValueOnce({
flags: [
{ key: "docs_sync_enabled", label: "Docs Sync", enabled: false },
{
key: "obsidian_vault_enabled",
label: "Obsidian Vault",
enabled: false,
},
{ key: "vault_intake_enabled", label: "Vault Intake", enabled: false },
],
note: "Changes take effect on the next backend restart.",
});
render(withQueryClient(<FeatureFlagsCard />));
expect(await screen.findByText(/docs-update task/i)).toBeInTheDocument();
expect(screen.getByText(/wikilinked Obsidian vault/i)).toBeInTheDocument();
expect(screen.getByText(/board-review drafts/i)).toBeInTheDocument();
});
});