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

Content: UUID Field Revamp #2549

Merged
merged 18 commits into from
Apr 10, 2024
Merged

Content: UUID Field Revamp #2549

merged 18 commits into from
Apr 10, 2024

Conversation

jomarmontuya
Copy link
Contributor

closes #2449

image

@jomarmontuya jomarmontuya changed the title revamp the uuid field Content: UUID Field Revamp Feb 12, 2024
@jomarmontuya jomarmontuya self-assigned this Feb 12, 2024
@jomarmontuya jomarmontuya added question Further information is requested enhancement Improvement to an existing feature labels Feb 12, 2024
@jomarmontuya jomarmontuya added ready PR is complete and ready for deployment and removed question Further information is requested labels Feb 13, 2024
@zcolah
Copy link

zcolah commented Feb 20, 2024

@jomarmontuya

@jomarmontuya
Copy link
Contributor Author

@zcolah quick question, regarding the text.primary color of the uuid field, do we really wanted to be the same with the others?

because this field is not editable, it would make sense the this field is set to disabled, therefore if we do set it to disabled, MUI has default styling for disabled field which is what we currently see right now it affects the field and the text inside it.

if we need to change it to text.primary i would have to override that mui styling.

cc: @agalin920

@jomarmontuya
Copy link
Contributor Author

@zcolah I've adjusted the size of the icon to small and fontsize to small but it looks like the gap is relatively wider than what it is on figma design.
image

we can adjust the gap by i would have to override some styling here.

@agalin920

@agalin920
Copy link
Contributor

@zcolah quick question, regarding the text.primary color of the uuid field, do we really wanted to be the same with the others?

because this field is not editable, it would make sense the this field is set to disabled, therefore if we do set it to disabled, MUI has default styling for disabled field which is what we currently see right now it affects the field and the text inside it.

if we need to change it to text.primary i would have to override that mui styling.

cc: @agalin920

I believe we have handled this in the past by giving the input the read only attribute

@agalin920
Copy link
Contributor

@zcolah quick question, regarding the text.primary color of the uuid field, do we really wanted to be the same with the others?

because this field is not editable, it would make sense the this field is set to disabled, therefore if we do set it to disabled, MUI has default styling for disabled field which is what we currently see right now it affects the field and the text inside it.

if we need to change it to text.primary i would have to override that mui styling.

cc: @agalin920

Have you experimented with the end adornment position values? It can also be set to start depending on placement

@zcolah
Copy link

zcolah commented Feb 21, 2024

@jomarmontuya

Regarding the text.primary color of the uuid field, do we really wanted to be the same with the others?
Yes. As @agalin920 shared keep it as a read-only field. This is because we do not want users to think this field is not available or is switched off.

With respect to the icon size issues
Look at the Global Search Text Input as prior art to see how it was achieved. @theofficialnar was responsible for that project and can provide context on how it was done.

@jomarmontuya
Copy link
Contributor Author

Screen.Recording.2024-02-22.at.2.17.39.PM.mov

@zcolah @agalin920 thank you for your inputs. I've updated kindly see demo

@zcolah
Copy link

zcolah commented Mar 14, 2024

Hi @jomarmontuya

  • The UUID Field looks good. However the MUI Theme update seems to have impacted the spacing between the Search Icon and Search Text in the search bar. Please look into this.

https://www.figma.com/file/zOI7oSH3fG1XDmmPzsP6PX?node-id=4081:30129&mode=design#735360365

@jomarmontuya
Copy link
Contributor Author

@zcolah do you think we should create new ticket for that instead of adding it here? The search bar is affected because of the adjustment we did in the material repo

cc: @agalin920

@jomarmontuya
Copy link
Contributor Author

@zcolah new issue I created to address that global search -> #2595

@agalin920 agalin920 self-requested a review March 18, 2024 21:01
Copy link
Contributor

@agalin920 agalin920 left a comment

Choose a reason for hiding this comment

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

.

@agalin920 agalin920 self-requested a review March 18, 2024 21:02
agalin920
agalin920 previously approved these changes Mar 18, 2024
Copy link
Contributor

@agalin920 agalin920 left a comment

Choose a reason for hiding this comment

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

.

@agalin920
Copy link
Contributor

agalin920 commented Mar 18, 2024

@jomarmontuya

@zcolah do you think we should create new ticket for that instead of adding it here? The search bar is affected because of the adjustment we did in the material repo

cc: @agalin920

@jomarmontuya Is it? I thought you said it was due to an custom override. But come to think of if it that was truly the case then this would remain in tact.

Is this because the way it achieves the spacing different than your previous solution? If thats the case why was a different route taken? should the solution be changed?

@jomarmontuya
Copy link
Contributor Author

jomarmontuya commented Mar 19, 2024

@agalin920

The InputAdornment in the global search previously has set to margin-right:0px so with the theme change it now has 4px margin-right.

however I think it was the right change, the problem in this search is not the inputAdornment but the search input has padding left and right which pushes the text few pixels to the right.

image

This issue wasn't visible before because of the margin-right:0px

@agalin920
Copy link
Contributor

@jomarmontuya gotcha thanks. Please add this as context to the ticket you made

@zcolah
Copy link

zcolah commented Mar 21, 2024

@jomarmontuya pls fix the Search Input issue and we will deploy both tickets together along with the MUI ticket

@jomarmontuya
Copy link
Contributor Author

@zcolah here's related PR -> #2622

@zcolah
Copy link

zcolah commented Mar 22, 2024 via email

@shrunyan shrunyan changed the base branch from master to dev March 25, 2024 19:20
@jomarmontuya jomarmontuya dismissed stale reviews from agalin920 and finnar-bin via 4cc1833 March 29, 2024 18:06
agalin920
agalin920 previously approved these changes Apr 1, 2024
@shrunyan shrunyan enabled auto-merge April 2, 2024 00:11
@shrunyan shrunyan disabled auto-merge April 4, 2024 19:45
@shrunyan shrunyan enabled auto-merge (squash) April 4, 2024 19:45
@agalin920 agalin920 self-requested a review April 9, 2024 20:01
@shrunyan shrunyan merged commit f56854f into dev Apr 10, 2024
1 check passed
@shrunyan shrunyan deleted the enhancement/uuid-field-revamp branch April 10, 2024 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to an existing feature ready PR is complete and ready for deployment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Content: UUID Field Revamp
5 participants