From 7dcfea10dcb496cc494c43d0868330949047cdcd Mon Sep 17 00:00:00 2001 From: Kira Pilot Date: Fri, 17 Jun 2022 13:26:13 -0400 Subject: [PATCH] feat: add feedback link to footer (#2447) * add ability to activate users resolves #2254 * added test * PR feedback * guarding against null validation_contains field * fixing type for ParameterSchema resolves #2161 * added report link to footer resolves #1885 * added test * Footer story * fix broken test --- .github/ISSUE_TEMPLATE/external_bug_report.md | 9 ++++ .../components/AuthAndFrame/AuthAndFrame.tsx | 41 ++++++++++++++----- site/src/components/Footer/Footer.stories.tsx | 17 ++++++++ site/src/components/Footer/Footer.test.tsx | 10 ++++- site/src/components/Footer/Footer.tsx | 37 ++++++++--------- 5 files changed, 82 insertions(+), 32 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/external_bug_report.md create mode 100644 site/src/components/Footer/Footer.stories.tsx diff --git a/.github/ISSUE_TEMPLATE/external_bug_report.md b/.github/ISSUE_TEMPLATE/external_bug_report.md new file mode 100644 index 0000000000..1e82a3be55 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/external_bug_report.md @@ -0,0 +1,9 @@ + + +## Expected Behavior + + + +## Current Behavior + + diff --git a/site/src/components/AuthAndFrame/AuthAndFrame.tsx b/site/src/components/AuthAndFrame/AuthAndFrame.tsx index 180e978459..2473ef6472 100644 --- a/site/src/components/AuthAndFrame/AuthAndFrame.tsx +++ b/site/src/components/AuthAndFrame/AuthAndFrame.tsx @@ -1,4 +1,7 @@ -import { FC } from "react" +import { makeStyles } from "@material-ui/core/styles" +import { useActor } from "@xstate/react" +import { FC, useContext } from "react" +import { XServiceContext } from "../../xServices/StateContext" import { Footer } from "../Footer/Footer" import { Navbar } from "../Navbar/Navbar" import { RequireAuth } from "../RequireAuth/RequireAuth" @@ -10,12 +13,30 @@ interface AuthAndFrameProps { /** * Wraps page in RequireAuth and renders it between Navbar and Footer */ -export const AuthAndFrame: FC = ({ children }) => ( - - <> - - {children} -