Skip to content
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

Merged
merged 14 commits into from
Aug 1, 2024
Merged

feat: Route-based nav #74

merged 14 commits into from
Aug 1, 2024

Conversation

going-confetti
Copy link
Collaborator

@going-confetti going-confetti commented Jul 30, 2024

No description provided.

@going-confetti going-confetti marked this pull request as draft July 30, 2024 15:24
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image View meant exclusively for previewing existing recordings.

@going-confetti going-confetti requested a review from Llandy3d July 31, 2024 08:57
@going-confetti going-confetti marked this pull request as ready for review July 31, 2024 08:57

export function createNewGeneratorFile(recordingPath = ''): GeneratorFileData {
return {
name: 'New test generator',
Copy link
Collaborator Author

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

Copy link
Member

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

Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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.

Copy link
Collaborator Author

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

Copy link
Member

@Llandy3d Llandy3d left a 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',
Copy link
Member

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

@going-confetti going-confetti merged commit 9a15f76 into main Aug 1, 2024
1 check passed
@going-confetti going-confetti deleted the feat/route-based-nav branch August 1, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants