Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/ui/components/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ import ProtocolViewer from "./ProtocolViewer";
import Tour from "./Tour/Tour";
import styles from "src/ui/components/SidePanel.module.css";

// The welcome box for signed-out viewers is turned off: it's so eye-catching that it
// draws attention away from the debugging controls right next to it. Bring it back only
// with a toned-down design (or a different kind of onboarding).
const SHOW_WELCOME_BOX = false;

function useInitialPrimaryPanel() {
const dispatch = useAppDispatch();
const selectedPrimaryPanel = useAppSelector(getSelectedPrimaryPanel);
Expand Down Expand Up @@ -139,7 +144,7 @@ function SidePanelSuspends() {

return (
<div className="flex w-full flex-col gap-2">
{!isAuthenticated && !testSuite && isNGXHeaderVisible && (
{SHOW_WELCOME_BOX && !isAuthenticated && !testSuite && isNGXHeaderVisible && (
<div className={styles.TourBox}>
<h2>Welcome to Replay!</h2>
{comments.length > 0 ? (
Expand All @@ -159,7 +164,7 @@ function SidePanelSuspends() {
)}
</div>
)}
{!isAuthenticated && testSuite && isNGXHeaderVisible && (
{SHOW_WELCOME_BOX && !isAuthenticated && testSuite && isNGXHeaderVisible && (
<div className={styles.TourBox}>
<h2>Welcome! 👋</h2>
<p>We've written some docs to get the most out of Replay test suites. Check them out!</p>
Expand Down
Loading