feat(FN-4762): merge fusion/fn-4762
Commits merged: - merge fusion/fn-4762 Files changed: AGENTS.md | 25 ++++++++++++++++++++++--- docs/README.md | 6 ++++++ packages/core/src/store.ts | 4 ++-- packages/dashboard/app/App.tsx | 10 ++++++++-- packages/dashboard/src/__tests__/github.test.ts | 3 ++- 5 files changed, 40 insertions(+), 8 deletions(-) Fusion-Task-Id: FN-4762 Fusion-Task-Lineage: 5c7ef3b8-fefc-4cc2-a703-634124d77cde
This commit is contained in:
committed by
gsxdsm
parent
1543df69a4
commit
01caeb6d88
@@ -799,9 +799,15 @@ function AppInner() {
|
||||
const previousCapacityRiskBannerEnabledRef = useRef(capacityRiskBannerEnabled);
|
||||
const previousCapacityRiskTodoThresholdRef = useRef(capacityRiskTodoThreshold);
|
||||
const previousCapacityRiskProjectIdRef = useRef(currentProject?.id);
|
||||
const capacityRiskSettingsHydratedRef = useRef(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (previousCapacityRiskProjectIdRef.current !== currentProject?.id) {
|
||||
if (!settingsLoaded) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!capacityRiskSettingsHydratedRef.current || previousCapacityRiskProjectIdRef.current !== currentProject?.id) {
|
||||
capacityRiskSettingsHydratedRef.current = true;
|
||||
previousCapacityRiskProjectIdRef.current = currentProject?.id;
|
||||
previousCapacityRiskBannerEnabledRef.current = capacityRiskBannerEnabled;
|
||||
previousCapacityRiskTodoThresholdRef.current = capacityRiskTodoThreshold;
|
||||
@@ -821,7 +827,7 @@ function AppInner() {
|
||||
previousCapacityRiskProjectIdRef.current = currentProject?.id;
|
||||
previousCapacityRiskBannerEnabledRef.current = capacityRiskBannerEnabled;
|
||||
previousCapacityRiskTodoThresholdRef.current = capacityRiskTodoThreshold;
|
||||
}, [capacityRiskBannerEnabled, capacityRiskTodoThreshold, currentProject?.id]);
|
||||
}, [settingsLoaded, capacityRiskBannerEnabled, capacityRiskTodoThreshold, currentProject?.id]);
|
||||
|
||||
const skillsEnabled = experimentalFeatures.skillsView === true;
|
||||
const nodesEnabled = experimentalFeatures.nodesView === true;
|
||||
|
||||
@@ -325,6 +325,7 @@ describe("GitHubClient", () => {
|
||||
url: "https://github.com/owner/repo/pull/42",
|
||||
title: "Test PR",
|
||||
state: "OPEN",
|
||||
isDraft: false,
|
||||
baseRefName: "main",
|
||||
headRefName: "feature-branch",
|
||||
});
|
||||
@@ -334,7 +335,7 @@ describe("GitHubClient", () => {
|
||||
expect(mockRunGhJsonAsync).toHaveBeenCalledWith([
|
||||
"pr", "view", "42",
|
||||
"--repo", "owner/repo",
|
||||
"--json", "number,url,title,state,baseRefName,headRefName",
|
||||
"--json", "number,url,title,state,isDraft,baseRefName,headRefName",
|
||||
]);
|
||||
expect(result.number).toBe(42);
|
||||
expect(result.status).toBe("open");
|
||||
|
||||
Reference in New Issue
Block a user