You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the scenario where a user updates the args of a story in the control panel; the user wants to:
edit an existing story
create a new story (in an existing story file)
Design (WIP)
CleanShot.2024-03-27.at.12.05.57.mp4
Requirements
As soon as arguments get updated, a toolbar should pop up to ask the user whether the changes should be saved
either to a new story
or to the existing one
The toolbar only pops up in dev mode
If the user wants to update an existing story, a EDIT_STORY server channel event should be emitted with the following payload:
interfaceData{// The id of the request. It might be simply the story Titleid: string;// The path of the StoryimportPath: string;// The whole list of set argsargs: Record<string,any>;// The exported name of the Story -> This information doesn't exist in the index.json yet.name: string;}
If the user wants to create a new story, a SAVE_STORY server channel event should be emitted with the following payload:
interfaceData{// The id of the request. It might be simply the story Titleid: string;// The path of the StoryimportPath: string;// The whole list of set argsargs: Record<string,any>;// The new name of the Storyname: string;// The exported name of the base Story -> This information doesn't exist in the index.json yet.baseStoryName: string;}
If creating a new story is successful, the user should be redirected to the new story
Ensure that the tooltip does not overlay controls and that all controls are accessible.
Look closely at how controls are populated in an Angular-based Storybook (Input/Output) and test the feature there in particular.
The toolbar should be implemented in the controls addon
The input field for the label should be validated. We shouldn't allow names for existing exports. Second, we should only allow valid names for component exports like FooBar.
Out of scope
The content you are editing has changed. Please copy your edits and refresh the page.
Given the scenario where a user updates the args of a story in the control panel; the user wants to:
Design (WIP)
CleanShot.2024-03-27.at.12.05.57.mp4
Requirements
EDIT_STORY
server channel event should be emitted with the following payload:SAVE_STORY
server channel event should be emitted with the following payload:FooBar
.Out of scope
Depends on
The text was updated successfully, but these errors were encountered: