mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
53f57c44db
## Addresses #12636 – follow-up work for PR #12713 - Update Platforms column to render the user-selected platforms for a query if any, otherwise those that are compatible <img width="686" alt="Screenshot 2023-07-14 at 6 03 06 PM" src="https://github.com/fleetdm/fleet/assets/61553566/abd1f079-bdfe-45be-b1dd-58eb903672ef"> - Clean up typing and names around this column - Encapsulate logic for query automations column cells into new QueryAutomationsStatusIndicator component - Increase modularity and decrease coupling of StatusIndicator - Cleanly handle overflowing queries table due to very long query name <img width="512" alt="Screenshot 2023-07-14 at 6 07 20 PM" src="https://github.com/fleetdm/fleet/assets/61553566/6e970038-0aac-4f71-b21d-ececfa66b94f"> - Small copy and layout fixes - [x] Manual QA for all new/changed functionality --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
21 lines
412 B
TypeScript
21 lines
412 B
TypeScript
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
import StatusIndicator from "./StatusIndicator";
|
|
|
|
const meta: Meta<typeof StatusIndicator> = {
|
|
title: "Components/StatusIndicator",
|
|
component: StatusIndicator,
|
|
args: {
|
|
value: "100",
|
|
tooltip: {
|
|
tooltipText: "Tooltip text",
|
|
},
|
|
},
|
|
};
|
|
|
|
export default meta;
|
|
|
|
type Story = StoryObj<typeof StatusIndicator>;
|
|
|
|
export const Basic: Story = {};
|