-
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
feat: Route-based nav #74
Conversation
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.
|
||
export function createNewGeneratorFile(recordingPath = ''): GeneratorFileData { | ||
return { | ||
name: 'New test generator', |
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.
Do we actually need this field? Feels like we can always use the filename instead
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.
We might want to have it if filename can be different than Generator name and we want to allow forbidden characters on filenames.
We don't have to necessarily show the filename in the app but we can always show the assigned name
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.
On the other hand, if we end up suggesting git as the way to version control, organize, and share the studio assets, knowing the filename will be important. I'll add a question for the next WG meeting
@@ -19,7 +17,6 @@ export const useStudioUIStore = create<StudioUIStore>()( | |||
recordings: [], | |||
generators: [], | |||
scripts: [], | |||
selectedFile: null, |
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.
The route params are the source of truth now, so this is not needed.
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.
No need for this to be a store, as the data is only used within one view. Having a store actually complicates things a bit as you need to remember to reset the data on navigating to and from Recorder/Validator.
I moved the functionality to useListenProxyData
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.
Functionality wise looks great, I love the HAR view 🙌
|
||
export function createNewGeneratorFile(recordingPath = ''): GeneratorFileData { | ||
return { | ||
name: 'New test generator', |
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.
We might want to have it if filename can be different than Generator name and we want to allow forbidden characters on filenames.
We don't have to necessarily show the filename in the app but we can always show the assigned name
No description provided.