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}
>
-
-
- {children}
-
-
+
+
+
+ {children}
+
+
+
@@ -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 (
@@ -62,7 +69,7 @@ export const ConfigSection = ({ hidden, onOpen }: ConfigSectionProps) => {
);
- if (suggestions.length > 0 && !dismissed)
+ if (suggestions.length > 0 && !dismissed && !ignoreConfig && !ignoreSuggestions)
return (
@@ -84,6 +91,8 @@ export const ConfigSection = ({ hidden, onOpen }: ConfigSectionProps) => {
interface ScreenProps {
children: ReactNode;
footer?: ReactNode;
+ ignoreConfig?: boolean;
+ ignoreSuggestions?: boolean;
}
const Container = styled.div({
@@ -122,6 +131,8 @@ export const Screen = ({
),
+ ignoreConfig = false,
+ ignoreSuggestions = !footer,
}: ScreenProps) => {
const { configVisible } = useControlsState();
const { toggleConfig } = useControlsDispatch();
@@ -140,7 +151,12 @@ export const Screen = ({
return (
-
+
{children}
toggleConfig(false)} />
diff --git a/src/screens/Authentication/SetSubdomain.tsx b/src/screens/Authentication/SetSubdomain.tsx
index d5fb5cd5..0542bd65 100644
--- a/src/screens/Authentication/SetSubdomain.tsx
+++ b/src/screens/Authentication/SetSubdomain.tsx
@@ -56,7 +56,7 @@ export const SetSubdomain = ({ onBack, onSignIn }: SetSubdomainProps) => {
);
return (
-
+
diff --git a/src/screens/Authentication/SignIn.tsx b/src/screens/Authentication/SignIn.tsx
index 3b7102f9..2422d15e 100644
--- a/src/screens/Authentication/SignIn.tsx
+++ b/src/screens/Authentication/SignIn.tsx
@@ -26,7 +26,7 @@ const Label = styled.span(({ theme }) => ({
export const SignIn = ({ onBack, onSignIn, onSignInWithSSO }: SignInProps) => {
const theme = useTheme();
return (
-
+
{onBack && (
diff --git a/src/screens/Authentication/Verify.tsx b/src/screens/Authentication/Verify.tsx
index 2c6f9c7f..69eaf69c 100644
--- a/src/screens/Authentication/Verify.tsx
+++ b/src/screens/Authentication/Verify.tsx
@@ -139,7 +139,7 @@ export const Verify = ({
closeDialogRef.current = closeDialog;
return (
-
+
diff --git a/src/screens/Authentication/Welcome.tsx b/src/screens/Authentication/Welcome.tsx
index b9bf3caf..1a9a384b 100644
--- a/src/screens/Authentication/Welcome.tsx
+++ b/src/screens/Authentication/Welcome.tsx
@@ -16,7 +16,7 @@ interface WelcomeProps {
export const Welcome = ({ onNext, onUninstall }: WelcomeProps) => {
return (
-
+