Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Fix metabot padding (#71680)

Ryan Laurie5886b7b7c698
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotFrame.module.css b/frontend/src/metabase/metabot/components/MetabotChat/MetabotFrame.module.css
new file mode 100644
index 00000000000..e141247760f
--- /dev/null
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotFrame.module.css
@@ -0,0 +1,66 @@
+.frame {
+ position: fixed;
+ bottom: 1.5rem;
+ right: 1.5rem;
+ z-index: 200;
+ display: flex;
+ flex-direction: column;
+ align-items: flex-end;
+ gap: 0.25rem;
+ pointer-events: none;
+}
+
+.bubbleWrapper {
+ max-width: 14rem;
+}
+
+.bubble {
+ border: 1px solid var(--mb-color-border);
+ transition:
+ opacity 0.3s ease,
+ transform 0.3s ease;
+ opacity: 1;
+ transform: translateY(0);
+
+ /* tail pointing down-right */
+ &::after {
+ content: "";
+ position: absolute;
+ bottom: -0.45rem;
+ right: 1rem;
+ width: 0;
+ height: 0;
+ border-left: 0.45rem solid transparent;
+ border-right: 0.45rem solid transparent;
+ border-top: 0.45rem solid var(--mb-color-border);
+ }
+
+ &[data-visible="false"] {
+ opacity: 0;
+ transform: translateY(4px);
+ }
+}
+
+.botWrapper {
+ display: flex;
+ justify-content: flex-end;
+ pointer-events: auto;
+}
+
+.bot {
+ width: 3rem;
+ height: 3rem;
+ display: block;
+ animation: bob 3s ease-in-out infinite;
+}
+
+@keyframes bob {
+ 0%,
+ 100% {
+ transform: translateY(0);
+ }
+
+ 50% {
+ transform: translateY(-4px);
+ }
+}
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotFrame.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotFrame.tsx
new file mode 100644
index 00000000000..e39e2baf3f3
--- /dev/null
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotFrame.tsx
@@ -0,0 +1,288 @@
+import { useEffect, useState } from "react";
+
+import { Box, Icon, Menu, Paper, Text } from "metabase/ui";
+
+import Styles from "./MetabotFrame.module.css";
+
+type MetabotDefinition = {
+ name: string;
+ price: string;
+ description: string;
+ url: string;
+ imageName: string;
+};
+
+const createMetabot = (
+ name: string,
+ description: string,
+ imageName: string,
+): MetabotDefinition => ({
+ name,
+ price: `${getMarketPrice()} metacoins`,
+ description,
+ imageName,
+ url: `app/assets/img/metabots/${imageName}.png`,
+});
+
+const getMarketPrice = () => {
+ return Math.floor(Math.random() * 190) + 10;
+};
+
+export const metabots = {
+ abstract: createMetabot(
+ `Abstract Metabot`,
+ `For when you want your Metabot to be as enigmatic as the insights it provides.`,
+ "abstract",
+ ),
+ ancient: createMetabot(
+ `Ancient Metabot`,
+ `Speaks in prophecies, forgotten joins, and suspiciously accurate retention forecasts.`,
+ "ancient",
+ ),
+ artist: createMetabot(
+ `Artist Metabot`,
+ `Turns every result set into a masterpiece and every outlier into a creative choice.`,
+ "artist",
+ ),
+ astronaut: createMetabot(
+ `Astronaut Metabot`,
+ `Built for zero-gravity brainstorming, moonshot funnels, and dashboards with orbital ambition.`,
+ "astronaut",
+ ),
+ chef: createMetabot(
+ `Chef Metabot`,
+ `Whisks raw tables into plated insights with a pinch of seasoning and a lot of aggregation.`,
+ "chef",
+ ),
+ cloud: createMetabot(
+ `Cloud Metabot`,
+ `Floats above the schema dispensing breezy forecasts and cumulonimbus-level optimism.`,
+ "cloud",
+ ),
+ cook: createMetabot(
+ `Cook Metabot`,
+ `Less haute cuisine, more weeknight query wizardry with dependable results and excellent timing.`,
+ "cook",
+ ),
+ fancy: createMetabot(
+ `Fancy Metabot`,
+ `Arrives overdressed, overprepared, and fully committed to elegant pivots.`,
+ "fancy",
+ ),
+ gardener: createMetabot(
+ `Gardener Metabot`,
+ `Prunes noisy dimensions, waters promising leads, and helps healthy metrics bloom.`,
+ "gardener",
+ ),
+ glitch: createMetabot(
+ `Glitch Metabot`,
+ `A delightfully unstable companion for experimental prompts and beautifully broken aesthetics.`,
+ "glitch",
+ ),
+ kid: createMetabot(
+ `Kid Metabot`,
+ `Asks why five times, finds the real question, and celebrates every chart like a birthday party.`,
+ "kid",
+ ),
+ melt: createMetabot(
+ `Melt Metabot`,
+ `Soft around the edges, dramatic in presentation, and extremely serious about anomaly detection.`,
+ "melt",
+ ),
+ party: createMetabot(
+ `Party Metabot`,
+ `Brings confetti energy to weekly reporting and insists every launch metric deserves a dance break.`,
+ "party",
+ ),
+ pirate: createMetabot(
+ `Pirate Metabot`,
+ `Hunts buried treasure in your warehouse and absolutely will call your KPIs booty.`,
+ "pirate",
+ ),
+ vanilla: createMetabot(
+ `Vanilla Metabot`,
+ `A classic, dependable bot for purists who like their insights smooth, clean, and unpretentious.`,
+ "vanilla",
+ ),
+ sherlock: createMetabot(
+ `Sherlock Metabot`,
+ `Obsessively inspects every clue, every filter, and every mysteriously declining trend.`,
+ "sherlock",
+ ),
+ sir: createMetabot(
+ `Sir Metabot`,
+ `Polite, formal, and quietly judgmental about malformed SQL and missing labels.`,
+ "sir",
+ ),
+ sleepy: createMetabot(
+ `Sleepy Metabot`,
+ `Moves at a yawn, thinks at a dream, and still manages to ship suspiciously good answers.`,
+ "sleepy",
+ ),
+ steampunk: createMetabot(
+ `Steampunk Metabot`,
+ `Powered by brass gears, hot steam, and an unnecessarily elaborate approach to slice-and-dice analysis.`,
+ "steampunk",
+ ),
+ stone_age: createMetabot(
+ `Stone Age Metabot`,
+ `Carves insights into metaphorical cave walls using only grit, instinct, and sturdy dimensions.`,
+ "stone_age",
+ ),
+ superhero: createMetabot(
+ `Superhero Metabot`,
+ `Swoops in when dashboards are in danger and saves the day with dramatic executive summaries.`,
+ "superhero",
+ ),
+ victorian: createMetabot(
+ `Victorian Metabot`,
+ `Elegant, verbose, and fond of turning simple KPI updates into serialized literature.`,
+ "victorian",
+ ),
+ viking: createMetabot(
+ `Viking Metabot`,
+ `Raids unruly datasets, conquers messy dashboards, and toasts every successful deploy.`,
+ "viking",
+ ),
+ wizard: createMetabot(
+ `Wizard Metabot`,
+ `Conjures predictive wisdom, enchanted charts, and the occasional inexplicable but correct query.`,
+ "wizard",
+ ),
+} as const satisfies Record<string, MetabotDefinition>;
+
+export type MetabotVariant = keyof typeof metabots;
+
+export const isMetabotVariant = (value: string): value is MetabotVariant =>
+ value in metabots;
+
+const getQuips = () => [
+ `Did you know you can filter by clicking on a chart?`,
+ `Aggregations are just vibes, statistically speaking.`,
+ `Have you tried asking me a question today?`,
+ `This dashboard is looking particularly dashboardy.`,
+ `SQL stands for Surprisingly Quirky Language.`,
+ `Your data called. It wants to be visualized.`,
+ `I counted all your rows. You have a lot of rows.`,
+ `Joins: the duct tape of database queries.`,
+ `Pro tip: naming things is the hardest part of analytics.`,
+ `I believe in you and your query.`,
+ `Null values are just data on vacation.`,
+ `Every great dashboard starts with a single question.`,
+ `Fun fact: I eat tokens for breakfast.`,
+ `If this chart had a soundtrack, it would be dramatic synthwave.`,
+ `I ran a quick vibe check on your KPIs. They passed.`,
+ `Somewhere, a CSV is dreaming of becoming a dashboard.`,
+ `This filter is doing more heavy lifting than my gym routine.`,
+ `I bring the whimsy. You bring the business questions.`,
+ `Your funnel called; it wants fewer mysterious drop-offs.`,
+ `Hot take: a well-labeled axis is peak luxury.`,
+ `I can neither confirm nor deny I benchmark for compliments.`,
+ `Another day, another beautifully suspicious spike.`,
+ `If uncertainty had a chart type, it would still need a legend.`,
+ `I put the "bot" in "bottom-line clarity."`,
+ `Tiny query tweak, massive main-character energy.`,
+ `Legend says the cleanest data model appears at quarter end.`,
+];
+
+export function MetabotFrame({
+ variant = "vanilla",
+}: {
+ variant?: MetabotVariant;
+}) {
+ const quips = getQuips();
+ const [quipIndex, setQuipIndex] = useState(() =>
+ Math.floor(Math.random() * quips.length),
+ );
+ const [visible, setVisible] = useState(true);
+ const [isClosed, setIsClosed] = useState(false);
+ const [isActionsMenuOpen, setIsActionsMenuOpen] = useState(false);
+
+ const closeFrame = () => {
+ setIsClosed(true);
+ setIsActionsMenuOpen(false);
+ };
+
+ useEffect(() => {
+ if (isClosed) {
+ return;
+ }
+
+ const interval = setInterval(() => {
+ setVisible(false);
+ setTimeout(() => {
+ setQuipIndex((i) => (i + 1) % quips.length);
+ setVisible(true);
+ }, 400);
+ }, 6000);
+
+ return () => clearInterval(interval);
+ }, [isClosed, quips.length]);
+
+ if (isClosed) {
+ return null;
+ }
+
+ return (
+ <Box className={Styles.frame} data-testid="metabot-frame">
+ <Box className={Styles.bubbleWrapper}>
+ <Paper
+ className={Styles.bubble}
+ data-visible={visible}
+ shadow="sm"
+ p="sm"
+ radius="md"
+ >
+ <Text fz="sm" lh="sm" c="text-primary">
+ {quips[quipIndex]}
+ </Text>
+ </Paper>
+ </Box>
+ <Menu
+ opened={isActionsMenuOpen}
+ onChange={setIsActionsMenuOpen}
+ position="top-end"
+ >
+ <Menu.Target>
+ <Box
+ className={Styles.botWrapper}
+ onContextMenu={(event) => {
+ event.preventDefault();
+ setIsActionsMenuOpen(true);
+ }}
+ >
+ <MetabotImage variant={variant} />
+ </Box>
+ </Menu.Target>
+
+ <Menu.Dropdown>
+ <Menu.Item leftSection={<Icon name="close" />} onClick={closeFrame}>
+ {`Close Metabot`}
+ </Menu.Item>
+ </Menu.Dropdown>
+ </Menu>
+ </Box>
+ );
+}
+
+export const MetabotImage = ({
+ variant,
+ bg,
+}: {
+ variant: MetabotVariant;
+ bg?: "transparent";
+}) => {
+ const metabot = metabots[variant] ?? metabots.vanilla;
+
+ return (
+ <Box
+ bg={bg ?? "background-primary"}
+ bdrs="lg"
+ bd={bg ? undefined : "2px solid var(--mb-color-border)"}
+ p="sm"
+ ta="center"
+ >
+ <img src={metabot.url} alt={metabot.name} style={{ width: "6rem" }} />
+ </Box>
+ );
+};
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotStore.module.css b/frontend/src/metabase/metabot/components/MetabotChat/MetabotStore.module.css
new file mode 100644
index 00000000000..71bc5cd5797
--- /dev/null
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotStore.module.css
@@ -0,0 +1,378 @@
+.storeButton {
+ position: relative;
+ overflow: hidden;
+ border: 0;
+ color: white;
+ text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
+ background: linear-gradient(
+ 115deg,
+ #ff4d6d,
+ #ff9e00,
+ #ffe45e,
+ #38b000,
+ #00bbf9,
+ #9b5de5,
+ #f15bb5,
+ #ff4d6d
+ );
+ background-size: 300% 300%;
+ box-shadow: 0 0.35rem 1rem rgb(155 93 229 / 30%);
+ animation:
+ store-button-rainbow 5s linear infinite,
+ store-button-glow 1.8s ease-in-out infinite;
+ transition:
+ transform 120ms ease,
+ box-shadow 120ms ease,
+ filter 120ms ease;
+
+ &:hover {
+ transform: translateY(-1px) scale(1.02);
+ box-shadow: 0 0.5rem 1.4rem rgb(241 91 181 / 45%);
+ filter: saturate(1.15) brightness(1.05);
+ }
+
+ &:active {
+ transform: translateY(0);
+ }
+
+ @media (prefers-reduced-motion: reduce) {
+ animation: none;
+ background-position: 50% 50%;
+ }
+}
+
+.storeModalContent {
+ overflow-y: auto;
+ overflow-x: hidden;
+ border: 1px solid rgb(255 255 255 / 28%);
+ border-radius: 1.5rem;
+ color: white;
+ background: radial-gradient(
+ circle at top left,
+ rgb(255 255 255 / 22%),
+ transparent 30%
+ ),
+ radial-gradient(circle at 85% 20%, rgb(255 228 94 / 28%), transparent 22%),
+ linear-gradient(
+ 135deg,
+ #12002f 0%,
+ #3f005c 24%,
+ #003d5b 55%,
+ #003566 76%,
+ #240046 100%
+ );
+ box-shadow:
+ 0 1.5rem 4rem rgb(0 0 0 / 35%),
+ 0 0 2rem rgb(255 77 109 / 18%);
+}
+
+.storeModalHeader {
+ position: relative;
+ z-index: 1;
+ padding: 1.25rem 1.5rem 0.5rem;
+ color: inherit;
+ background: transparent;
+}
+
+.storeModalBody {
+ padding: 0 1.5rem 1.5rem;
+}
+
+.storeModalTitle {
+ display: inline-block;
+ font-size: 1.3rem;
+ font-weight: 900;
+ letter-spacing: 0.08em;
+ text-transform: uppercase;
+ color: white;
+ text-shadow:
+ 0 0 1rem rgb(255 94 247 / 40%),
+ 0 0 1.5rem rgb(0 187 249 / 28%);
+}
+
+.storeModalClose {
+ color: white;
+ background: rgb(255 255 255 / 10%);
+ backdrop-filter: blur(8px);
+
+ &:hover {
+ background: rgb(255 255 255 / 18%);
+ }
+}
+
+.storeBackdrop {
+ position: relative;
+ padding: 1rem;
+ border-radius: 1.2rem;
+ background: linear-gradient(
+ 180deg,
+ rgb(255 255 255 / 10%),
+ rgb(255 255 255 / 4%)
+ ),
+ rgb(7 7 24 / 28%);
+ isolation: isolate;
+
+ &::before,
+ &::after {
+ content: "";
+ position: absolute;
+ inset: auto;
+ z-index: -1;
+ width: 18rem;
+ height: 18rem;
+ border-radius: 999rem;
+ filter: blur(18px);
+ opacity: 0.65;
+ animation: store-orb-drift 9s ease-in-out infinite;
+ }
+
+ &::before {
+ top: -5rem;
+ left: -4rem;
+ background: rgb(255 77 109 / 32%);
+ }
+
+ &::after {
+ right: -6rem;
+ bottom: -7rem;
+ background: rgb(0 187 249 / 25%);
+ animation-delay: -4.5s;
+ }
+}
+
+.storeIntro {
+ position: relative;
+ z-index: 1;
+ margin-bottom: 1rem;
+ max-width: 34rem;
+ color: rgb(255 255 255 / 92%);
+ font-size: 0.95rem;
+ line-height: 1.5;
+}
+
+.storeGrid {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
+ gap: 0.9rem;
+}
+
+.storeTile {
+ position: relative;
+ overflow: hidden;
+ display: flex;
+ flex-direction: column;
+ gap: 0.65rem;
+ min-height: 15rem;
+ padding: 1rem;
+ border: 1px solid rgb(255 255 255 / 14%);
+ border-radius: 1.2rem;
+ color: white;
+ background: linear-gradient(
+ 180deg,
+ rgb(255 255 255 / 16%),
+ rgb(255 255 255 / 6%)
+ ),
+ rgb(255 255 255 / 5%);
+ backdrop-filter: blur(10px);
+ box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%);
+ transition:
+ transform 160ms ease,
+ border-color 160ms ease,
+ box-shadow 160ms ease;
+
+ &:hover {
+ transform: translateY(-3px) rotate(-0.5deg);
+ border-color: rgb(255 255 255 / 26%);
+ box-shadow:
+ 0 1rem 2rem rgb(0 0 0 / 20%),
+ inset 0 1px 0 rgb(255 255 255 / 16%);
+ }
+}
+
+.storeTileGlow {
+ position: absolute;
+ top: -2rem;
+ right: -2rem;
+ width: 7rem;
+ height: 7rem;
+ border-radius: 999rem;
+ filter: blur(4px);
+ opacity: 0.8;
+}
+
+.storeTile[data-accent="sunburst"] .storeTileGlow {
+ background: radial-gradient(circle, rgb(255 158 0 / 85%), transparent 70%);
+}
+
+.storeTile[data-accent="lagoon"] .storeTileGlow {
+ background: radial-gradient(circle, rgb(0 187 249 / 80%), transparent 70%);
+}
+
+.storeTile[data-accent="berry"] .storeTileGlow {
+ background: radial-gradient(circle, rgb(241 91 181 / 82%), transparent 70%);
+}
+
+.storeTile[data-accent="lime"] .storeTileGlow {
+ background: radial-gradient(circle, rgb(86 207 105 / 80%), transparent 70%);
+}
+
+.storeTile[data-accent="violet"] .storeTileGlow {
+ background: radial-gradient(circle, rgb(155 93 229 / 82%), transparent 70%);
+}
+
+.storeTile[data-accent="gold"] .storeTileGlow {
+ background: radial-gradient(circle, rgb(255 228 94 / 85%), transparent 70%);
+}
+
+.storeTileEmoji {
+ position: relative;
+ z-index: 1;
+ font-size: 2rem;
+ line-height: 1;
+}
+
+.storeTileName {
+ position: relative;
+ z-index: 1;
+ color: white;
+ text-shadow: orangered 0.05rem 0.05rem 1rem;
+ font-size: 1rem;
+ font-weight: 800;
+ line-height: 1.25;
+}
+
+.storeTileDescription {
+ position: relative;
+ z-index: 1;
+ color: rgb(255 255 255 / 82%);
+ font-size: 0.9rem;
+ line-height: 1.45;
+}
+
+.storeTileFooter {
+ position: relative;
+ z-index: 1;
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.75rem;
+ margin-top: auto;
+}
+
+.storeTilePrice {
+ font-size: 0.85rem;
+ font-weight: 800;
+ letter-spacing: 0.05em;
+ text-transform: uppercase;
+ color: rgb(255 255 255 / 92%);
+}
+
+.storeTileButton {
+ border: 0;
+ color: #23003d;
+ font-weight: 800;
+ background: linear-gradient(135deg, #fff, #ffe45e 60%, #ff9e00);
+ box-shadow: 0 0.35rem 1rem rgb(255 228 94 / 30%);
+
+ &:hover {
+ filter: brightness(1.04);
+ }
+
+ &:disabled {
+ color: black !important;
+ opacity: 0.5;
+ cursor: not-allowed;
+ }
+}
+
+@media (max-width: 40rem) {
+ .storeModalBody {
+ padding: 0 1rem 1rem;
+ }
+
+ .storeBackdrop {
+ padding: 0.85rem;
+ }
+
+ .storeGrid {
+ grid-template-columns: 1fr;
+ }
+}
+
+@keyframes store-button-rainbow {
+ 0% {
+ background-position: 0% 50%;
+ }
+
+ 50% {
+ background-position: 100% 50%;
+ }
+
+ 100% {
+ background-position: 0% 50%;
+ }
+}
+
+@keyframes store-button-glow {
+ 0%,
+ 100% {
+ box-shadow:
+ 0 0.35rem 1rem rgb(155 93 229 / 30%),
+ 0 0 0.4rem rgb(0 187 249 / 30%);
+ }
+
+ 50% {
+ box-shadow:
+ 0 0.5rem 1.5rem rgb(241 91 181 / 45%),
+ 0 0 0.8rem rgb(255 228 94 / 45%);
+ }
+}
+
+@keyframes store-orb-drift {
+ 0%,
+ 100% {
+ transform: translate3d(0, 0, 0) scale(1);
+ }
+
+ 50% {
+ transform: translate3d(1.5rem, -1rem, 0) scale(1.08);
+ }
+}
+
+.moneyBagContainer {
+ position: fixed;
+ inset: 0;
+ pointer-events: none;
+ overflow: hidden;
+ z-index: 9999;
+}
+
+.moneyBag {
+ position: fixed;
+ font-size: 3rem;
+ will-change: transform;
+ animation: money-bag-fly var(--duration, 2s) ease-out var(--delay, 0s)
+ forwards;
+ left: var(--start-x, 50%);
+ top: var(--start-y, 50%);
+ filter: drop-shadow(0 0 1rem rgb(255 228 94 / 60%));
+}
+
+@keyframes money-bag-fly {
+ 0% {
+ opacity: 1;
+ transform: translateX(0) translateY(0) rotate(0deg) scale(1);
+ }
+
+ 50% {
+ opacity: 1;
+ transform: translateX(var(--mid-x, 10vw)) translateY(var(--mid-y, -10vh))
+ rotate(calc(var(--rotation) * 0.5)) scale(1.15);
+ }
+
+ 100% {
+ opacity: 0;
+ transform: translateX(var(--end-x, 50vw)) translateY(var(--end-y, -40vh))
+ rotate(var(--rotation, 720deg)) scale(0.2);
+ }
+}
diff --git a/frontend/src/metabase/metabot/components/MetabotChat/MetabotStore.tsx b/frontend/src/metabase/metabot/components/MetabotChat/MetabotStore.tsx
new file mode 100644
index 00000000000..35058529de6
--- /dev/null
+++ b/frontend/src/metabase/metabot/components/MetabotChat/MetabotStore.tsx
@@ -0,0 +1,159 @@
+import { useEffect, useState } from "react";
+import { t } from "ttag";
+
+import { Box, Button, Flex, Modal, Text } from "metabase/ui";
+
+import {
+ MetabotFrame,
+ MetabotImage,
+ type MetabotVariant,
+ isMetabotVariant,
+ metabots,
+} from "./MetabotFrame";
+import Styles from "./MetabotStore.module.css";
+
+function MoneyBagAnimation({ isActive }: { isActive: boolean }) {
+ if (!isActive) {
+ return null;
+ }
+
+ const moneyBags = Array.from({ length: 12 }, (_, i) => ({
+ id: i,
+ delay: i * 0.05,
+ duration: 1.5 + Math.random() * 0.5,
+ startX: `${30 + Math.random() * 40}%`,
+ endX: `${-30 + Math.random() * 160}vw`,
+ midX: `${-10 + Math.random() * 80}vw`,
+ startY: `${30 + Math.random() * 40}%`,
+ endY: `${-60 - Math.random() * 40}vh`,
+ midY: `${-20 - Math.random() * 30}vh`,
+ rotation: `${-360 - Math.random() * 360}deg`,
+ }));
+
+ return (
+ <div className={Styles.moneyBagContainer}>
+ {moneyBags.map((bag) => (
+ <div
+ key={bag.id}
+ className={Styles.moneyBag}
+ style={
+ {
+ "--delay": `${bag.delay}s`,
+ "--duration": `${bag.duration}s`,
+ "--start-x": bag.startX,
+ "--end-x": bag.endX,
+ "--mid-x": bag.midX,
+ "--start-y": bag.startY,
+ "--end-y": bag.endY,
+ "--mid-y": bag.midY,
+ "--rotation": bag.rotation,
+ } as React.CSSProperties
+ }
+ >
+ 💰
+ </div>
+ ))}
+ </div>
+ );
+}
+
+export function MetabotStore() {
+ const [isOpen, setIsOpen] = useState(false);
+ const [myMetabot, setMyMetabot] = useState<MetabotVariant>("vanilla");
+ const [showMoneyBags, setShowMoneyBags] = useState(false);
+
+ useEffect(() => {
+ const storedMetabot = localStorage.getItem("myMetabot");
+ if (storedMetabot != null && isMetabotVariant(storedMetabot)) {
+ setMyMetabot(storedMetabot);
+ }
+ }, []);
+
+ const today = new Date().toISOString().slice(0, 10);
+ if (today !== "2026-04-01") {
+ return null;
+ }
+
+ return (
+ <>
+ <Box p="1rem">
+ <Button
+ className={Styles.storeButton}
+ variant="light"
+ size="xs"
+ onClick={() => setIsOpen(true)}
+ fullWidth
+ >
+ {t`Visit the Metabot Store`}
+ </Button>
+ </Box>
+ <MetabotFrame variant={myMetabot} />
+ <Modal
+ opened={isOpen}
+ onClose={() => setIsOpen(false)}
+ title={
+ <span className={Styles.storeModalTitle}>{t`Metabot Store`}</span>
+ }
+ classNames={{
+ content: Styles.storeModalContent,
+ header: Styles.storeModalHeader,
+ body: Styles.storeModalBody,
+ close: Styles.storeModalClose,
+ }}
+ overlayProps={{ backgroundOpacity: 0.72, blur: 12 }}
+ size="60rem"
+ centered
+ >
+ <MoneyBagAnimation isActive={showMoneyBags} />
+ <div className={Styles.storeBackdrop}>
+ <Text className={Styles.storeIntro}>
+ {t`Everything here is unnecessary, flamboyant, and technically essential.`}
+ </Text>
+ <div className={Styles.storeGrid}>
+ {Object.values(metabots).map((item) => (
+ <div
+ key={item.name}
+ className={Styles.storeTile}
+ data-accent="purple"
+ >
+ <div className={Styles.storeTileGlow} />
+ <Flex h="6rem" align="end" justify="center">
+ <MetabotImage
+ variant={item.imageName as MetabotVariant}
+ bg="transparent"
+ />
+ </Flex>
+ <Text className={Styles.storeTileName}>{item.name}</Text>
+ <Text className={Styles.storeTileDescription}>
+ {item.description}
+ </Text>
+ <div className={Styles.storeTileFooter}>
+ <Text className={Styles.storeTilePrice}>
+ {myMetabot !== item.imageName ? item.price : ""}
+ </Text>
+ <Button
+ size="xs"
+ variant="white"
+ className={Styles.storeTileButton}
+ disabled={myMetabot === item.imageName}
+ onClick={() => {
+ setShowMoneyBags(true);
+ setMyMetabot(item.imageName as MetabotVariant);
+ localStorage.setItem("myMetabot", item.imageName);
+ setTimeout(() => {
+ setShowMoneyBags(false);
+ setIsOpen(false);
+ }, 2000);
+ }}
+ >
+ {myMetabot === item.imageName ? t`Owned` : t`Buy now`}
+ </Button>
+ </div>
+ </div>
+ ))}
+ </div>
+ </div>
+ </Modal>
+ </>
+ );
+}
diff --git a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.tsx b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.tsx
index c27e5818ae6..ed986ef2706 100644
--- a/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.tsx
+++ b/frontend/src/metabase/nav/containers/MainNavbar/MainNavbar.tsx
@@ -11,6 +11,7 @@ import {
import { getDashboard } from "metabase/dashboard/selectors";
import { connect } from "metabase/lib/redux";
import * as Urls from "metabase/lib/urls";
+import { MetabotStore } from "metabase/metabot/components/MetabotChat/MetabotStore";
import { closeNavbar, openNavbar } from "metabase/redux/app";
import Question from "metabase-lib/v1/Question";
import type { CollectionId, Dashboard } from "metabase-types/api";
@@ -129,6 +130,7 @@ function MainNavbar({
data-element-id="navbar-root"
>
<NavRoot isOpen={isOpen}>
+ <MetabotStore />
<MainNavbarContainer
isOpen={isOpen}
location={location}
diff --git a/resources/frontend_client/app/assets/img/metabots/abstract.png b/resources/frontend_client/app/assets/img/metabots/abstract.png
new file mode 100644
index 00000000000..a8a1b78d4ae
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/abstract.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/ancient.png b/resources/frontend_client/app/assets/img/metabots/ancient.png
new file mode 100644
index 00000000000..e92cba8931e
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/ancient.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/artist.png b/resources/frontend_client/app/assets/img/metabots/artist.png
new file mode 100644
index 00000000000..335094094dd
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/artist.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/astronaut.png b/resources/frontend_client/app/assets/img/metabots/astronaut.png
new file mode 100644
index 00000000000..182aa1b7f38
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/astronaut.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/chef.png b/resources/frontend_client/app/assets/img/metabots/chef.png
new file mode 100644
index 00000000000..8653f4cd802
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/chef.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/cloud.png b/resources/frontend_client/app/assets/img/metabots/cloud.png
new file mode 100644
index 00000000000..daec0ab82bb
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/cloud.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/cook.png b/resources/frontend_client/app/assets/img/metabots/cook.png
new file mode 100644
index 00000000000..47f92a67fe2
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/cook.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/fancy.png b/resources/frontend_client/app/assets/img/metabots/fancy.png
new file mode 100644
index 00000000000..120a123173c
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/fancy.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/gardener.png b/resources/frontend_client/app/assets/img/metabots/gardener.png
new file mode 100644
index 00000000000..f0f2fb21be4
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/gardener.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/glitch.png b/resources/frontend_client/app/assets/img/metabots/glitch.png
new file mode 100644
index 00000000000..19f72434998
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/glitch.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/kid.png b/resources/frontend_client/app/assets/img/metabots/kid.png
new file mode 100644
index 00000000000..6120b2bd394
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/kid.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/melt.png b/resources/frontend_client/app/assets/img/metabots/melt.png
new file mode 100644
index 00000000000..ee2472430b3
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/melt.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/musician.png b/resources/frontend_client/app/assets/img/metabots/musician.png
new file mode 100644
index 00000000000..ebdf862ec9c
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/musician.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/party.png b/resources/frontend_client/app/assets/img/metabots/party.png
new file mode 100644
index 00000000000..633c03f3f1c
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/party.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/pirate.png b/resources/frontend_client/app/assets/img/metabots/pirate.png
new file mode 100644
index 00000000000..9255e108dec
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/pirate.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/sherlock.png b/resources/frontend_client/app/assets/img/metabots/sherlock.png
new file mode 100644
index 00000000000..531151e8cf1
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/sherlock.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/silly.png b/resources/frontend_client/app/assets/img/metabots/silly.png
new file mode 100644
index 00000000000..ad853ad5f22
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/silly.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/sir.png b/resources/frontend_client/app/assets/img/metabots/sir.png
new file mode 100644
index 00000000000..265c706044a
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/sir.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/sleepy.png b/resources/frontend_client/app/assets/img/metabots/sleepy.png
new file mode 100644
index 00000000000..6fd6c4f9295
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/sleepy.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/steampunk.png b/resources/frontend_client/app/assets/img/metabots/steampunk.png
new file mode 100644
index 00000000000..5e37f26a737
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/steampunk.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/stone_age.png b/resources/frontend_client/app/assets/img/metabots/stone_age.png
new file mode 100644
index 00000000000..ae076cc48d3
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/stone_age.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/superhero.png b/resources/frontend_client/app/assets/img/metabots/superhero.png
new file mode 100644
index 00000000000..ce5dcd24f73
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/superhero.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/vanilla.png b/resources/frontend_client/app/assets/img/metabots/vanilla.png
new file mode 100644
index 00000000000..582785d6223
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/vanilla.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/victorian.png b/resources/frontend_client/app/assets/img/metabots/victorian.png
new file mode 100644
index 00000000000..77e74c5cd24
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/victorian.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/viking.png b/resources/frontend_client/app/assets/img/metabots/viking.png
new file mode 100644
index 00000000000..440c359cfc8
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/viking.png differ
diff --git a/resources/frontend_client/app/assets/img/metabots/wizard.png b/resources/frontend_client/app/assets/img/metabots/wizard.png
new file mode 100644
index 00000000000..319c040c136
Binary files /dev/null and b/resources/frontend_client/app/assets/img/metabots/wizard.png differ