diff --git a/src/Panel.tsx b/src/Panel.tsx index 9d2dc68a..39952860 100644 --- a/src/Panel.tsx +++ b/src/Panel.tsx @@ -80,11 +80,13 @@ export const Panel = ({ active, api }: PanelProps) => { addonUninstalled={addonUninstalled} setAddonUninstalled={setAddonUninstalled} > - - - + + + + + @@ -151,17 +153,15 @@ export const Panel = ({ active, api }: PanelProps) => { const localBuildIsRightBranch = gitInfo.branch === localBuildProgress?.branch; return withProviders( - - setLocalBuildProgress(undefined)} - isOutdated={!!isOutdated} - localBuildProgress={localBuildIsRightBranch ? localBuildProgress : undefined} - setOutdated={setOutdated} - updateBuildStatus={updateBuildStatus} - projectId={projectId} - gitInfo={gitInfo} - storyId={storyId} - /> - + setLocalBuildProgress(undefined)} + isOutdated={!!isOutdated} + localBuildProgress={localBuildIsRightBranch ? localBuildProgress : undefined} + setOutdated={setOutdated} + updateBuildStatus={updateBuildStatus} + projectId={projectId} + gitInfo={gitInfo} + storyId={storyId} + /> ); }; diff --git a/src/components/Screen.tsx b/src/components/Screen.tsx index 6118ecd8..9ab9a933 100644 --- a/src/components/Screen.tsx +++ b/src/components/Screen.tsx @@ -27,10 +27,17 @@ const InfoSection = styled(Section)(({ theme }) => ({ interface ConfigSectionProps { hidden?: boolean; + ignoreConfig?: boolean; + ignoreSuggestions?: boolean; onOpen: (scrollTo?: keyof ConfigInfoPayload["configuration"]) => void; } -export const ConfigSection = ({ hidden, onOpen }: ConfigSectionProps) => { +export const ConfigSection = ({ + hidden, + ignoreConfig, + ignoreSuggestions, + onOpen, +}: ConfigSectionProps) => { const [configInfo] = useSharedState(CONFIG_INFO); const problems = Object.keys(configInfo?.problems || {}); const suggestions = Object.keys(configInfo?.suggestions || {}); @@ -48,7 +55,7 @@ export const ConfigSection = ({ hidden, onOpen }: ConfigSectionProps) => { ); - if (problems.length > 0) + if (problems.length > 0 && !ignoreConfig) return ( ); - if (suggestions.length > 0 && !dismissed) + if (suggestions.length > 0 && !dismissed && !ignoreConfig && !ignoreSuggestions) return (