feat(FN-3950): reorder task form sections and document github tracking plac

Reorganized the TaskForm to move the GitHub tracking section and locked the create-form section order, with tests verifying the new layout and documentation added for the tracking placement in the dashboard guide.

Fusion-Task-Id: FN-3950
This commit is contained in:
Fusion
2026-05-10 16:07:52 -07:00
committed by gsxdsm
parent 8b56dff8b0
commit 60d16aa267
5 changed files with 60 additions and 38 deletions

View File

@@ -1071,6 +1071,19 @@ describe("NewTaskModal", () => {
});
describe("GitHub tracking", () => {
it("renders GitHub tracking after Workflow Steps in more options", async () => {
renderNewTaskModal();
fireEvent.click(screen.getByTestId("task-form-more-options-toggle"));
const workflowLabel = await screen.findByText("Workflow Steps");
const githubTrackingSection = screen.getByTestId("task-form-github-tracking");
expect(
workflowLabel.compareDocumentPosition(githubTrackingSection) & Node.DOCUMENT_POSITION_FOLLOWING,
).toBe(Node.DOCUMENT_POSITION_FOLLOWING);
});
it("seeds tracking toggle from project settings and submits githubTracking payload", async () => {
const { fetchSettings } = await import("../../api");
vi.mocked(fetchSettings).mockResolvedValueOnce({