-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to a new progress event for build status #55
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import type { Meta, StoryObj } from "@storybook/react"; | ||
|
||
import { withFigmaDesign } from "../../utils/withFigmaDesign"; | ||
import { BuildStatus } from "./BuildStatus"; | ||
|
||
const meta = { | ||
component: BuildStatus, | ||
} satisfies Meta<typeof BuildStatus>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = { | ||
args: { | ||
// build: passedBuild, | ||
}, | ||
parameters: withFigmaDesign( | ||
"https://www.figma.com/file/GFEbCgCVDtbZhngULbw2gP/Visual-testing-in-Storybook?type=design&node-id=508-525764&t=18c1zI1SMe76dWYk-4" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this supposed to link to the "Render settings" screen? |
||
), | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import React from "react"; | ||
|
||
export function BuildStatus({}) { | ||
return <div>Build Status</div>; | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this intentionally unfinished? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, there is a second PR that actually implements the UI: #56 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not quite sure about this logic, @ghengeveld do you have a better idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not digging the
let newStep
. I'd rather have a function that returns the new step.As you know I don't like
let
at all. I can sort of let it slide when it's used for memory storage over time (such asstep
above), but not when it's used with a series ofif
statements to (synchronously) determine its final value.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think what I'd like to see is a map (or other iteration) of steps, each specifying how they'd react to
onTaskComplete
and/oronTaskProgress
events. Something like:Note I also renamed
initialize
toannounce
andsnapshot
totest
.