mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
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:
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user