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: add origin selector #116

Closed
wants to merge 0 commits into from
Closed

Conversation

lfjnascimento
Copy link
Collaborator

@lfjnascimento lfjnascimento commented Aug 15, 2024

  • add Select component from shadcn
  • add Select component which is a custom version of ui/Select
  • add origin filter to tree endpoint
  • add origin selector to top bar

image

close: #78

@lfjnascimento lfjnascimento self-assigned this Aug 15, 2024
@lfjnascimento lfjnascimento changed the title Feat/add origin selector feat: add origin selector Aug 15, 2024
Copy link
Collaborator

@mari1912 mari1912 left a comment

Choose a reason for hiding this comment

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

It's working nice. I just want to make sure that it is expected to be able to change the origin in any place and when we do it, go back to the revisions initial page, right?

return (
<SelectUI {...propsWithoutChildren}>
<SelectTrigger className="w-auto rounded-full border-2 border-dimGray px-6 py-4 text-base font-medium text-dimGray">
<SelectValue placeholder="Theme" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we add a better placeholder and make it use i18n?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

actually this shouldn't be here, i was using it for testing purposes. Nice catch

Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove it?


return (
<div className="flex items-center">
<span className="mr-4 text-base font-medium text-dimGray">Origin</span>
Copy link
Collaborator

Choose a reason for hiding this comment

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

use intl

<div className="flex w-full flex-row items-center justify-between">
<span className="text-2xl">
<div className="flex flex-row items-center justify-between">
<span className="mr-14 text-2xl">
Copy link
Collaborator

Choose a reason for hiding this comment

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

just make sure it will be aligned with other content, because of the changes we are making

@lfjnascimento lfjnascimento force-pushed the feat/add_origin_selector branch from d7009b0 to 381a0d0 Compare August 15, 2024 21:11
return (
<SelectUI {...propsWithoutChildren}>
<SelectTrigger className="w-auto rounded-full border-2 border-dimGray px-6 py-4 text-base font-medium text-dimGray">
<SelectValue placeholder="Theme" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we remove it?

@lfjnascimento lfjnascimento force-pushed the feat/add_origin_selector branch from 381a0d0 to defa4cd Compare August 15, 2024 21:27
@lfjnascimento lfjnascimento force-pushed the feat/add_origin_selector branch from defa4cd to c64d035 Compare August 15, 2024 21:29
@mari1912 mari1912 deleted the feat/add_origin_selector branch August 15, 2024 21:48
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.

Add navbar with origin selection
2 participants