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: move recording selector position #413

Merged
merged 4 commits into from
Jan 17, 2025

Conversation

cristianoventura
Copy link
Collaborator

Description

This PR moves the Recording dropdown from the "Requests" tab in the Preview section to the top bar on the Generator page.

How to Test

Checklist

  • I have performed a self-review of my code.
  • I have added tests for my changes.
  • I have run linter locally (npm run lint) and all checks pass.
  • I have run tests locally (npm test) and all tests pass.
  • I have commented on my code, particularly in hard-to-understand areas.

Screenshots (if appropriate):

image

Smaller window size:

image

Related PR(s)/Issue(s)

Resolves #317

@cristianoventura cristianoventura self-assigned this Jan 15, 2025
@cristianoventura cristianoventura requested a review from a team as a code owner January 15, 2025 20:29
</>
)}
<RecordingSelector />
<Flex align="center" justify="between" gap="2">
Copy link
Collaborator Author

@cristianoventura cristianoventura Jan 15, 2025

Choose a reason for hiding this comment

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

The only change here was wrapping the content in this Flex component to achieve responsiveness.

Copy link
Collaborator

@going-confetti going-confetti left a comment

Choose a reason for hiding this comment

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

Code looks good, added a few questions/suggestions that I'd like to hear your thoughts on

@@ -65,7 +65,10 @@ export function RecordingSelector() {
id="recording-selector"
placeholder="Select recording"
css={css`
width: 250px;
width: 200px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Now that we have more horizontal space, I'd expect it to be wider rather than narrower than before, because with the addition of the starting URL in recording names, the names became even longer.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was mainly trying to keep things concise on the right side of the top bar, but given that names now can be longer, it makes sense to make it wider.

/>
</>
)}
<RecordingSelector />
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the + button might be a bit confusing with this new placement: it's not immediately clear if it's a part of the recording selected, the save generator button, or something else entirely. Perhaps we can add a gap/margin so that the hierarchy is clearer?
image

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I considered using a vertical divider as an alternative, but I kept the extra margin so it's easier to manage in smaller resolutions.

Copy link
Collaborator

@going-confetti going-confetti left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

Copy link
Collaborator

@e-fisher e-fisher left a comment

Choose a reason for hiding this comment

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

LGTM! 🚀

@cristianoventura cristianoventura merged commit c73eb40 into main Jan 17, 2025
3 checks passed
@cristianoventura cristianoventura deleted the feat/move-recording-selection-dropdown branch January 17, 2025 16:19
This was referenced Jan 17, 2025
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.

Move recording selector position in the generator
3 participants