-
Notifications
You must be signed in to change notification settings - Fork 22
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
Validate OUI theme compliance - phase 1 #217
Comments
Hi @joshuarrrr there are mainly two kind of screens in the admin UI now. Here are the screenshots: We will try to find out all the typographic and styles that not inherited from OUI components, and then try to mitigate them. |
@wanglam To answer your offline question, for:
and
The inline-styling of the font size should just be removed, and use the default sizing from cc @KrooshalUX for visibility of guidance. |
@wanglam Can you provide some instructions or pointers to sample data and models? We'd like to be able to load that into our testing endpoint and reproduce the views you've included here. |
Hi @joshuarrrr , Thank you for answering my questions. There is a model upload process in functional test. We can upload all the pre-trained models by this flow. Here is a pure API flow to deploy a model with opensearch ml-commons 2.8 installed:
Response example
Response example
Response example
The model id won't be exists if task state not be
Response example
We can use the get task API to track the deploy process, the model will be list in admin UI once deploy success. |
@joshuarrrr There are another customize styles in the repo. Here are the codes:
There are some style properties includes |
@AMoo-Miki When you get a chance, can you confirm the pre-trained model instructions in #217 (comment) are sufficient |
In general, we shouldn't be manually specifying font-weight. In this case, I'd recommend replacing the
This should be replaced with an OUI component that sets the correct background automatically. I can review with @KrooshalUX and provide specific guidance. |
It would be helpful to understand why the customization have been made - I suspect that in some cases it may be because the component was detached in Figma therefore exposing exact values instead of the OUI Sass values. In some cases it may be because the designs that were handed off had minor deviations from standards, but even in this case, the standards should always be used from OUI. I believe that @lauralexis had delivered some of these mockups prior to our internal Figma library launch, which may have lead engineering to believe optimizations should have been made. @wanglam if you can help outline that, @lauralexis and I can provide further guidance. |
@KrooshalUX @lauralexis The duration picker isn't an OUI component. The background of the duration picker is |
@wanglam This is in regards to the auto refresh feature correct? I think I recall trying to work through this with @lauralexis during the design phase. I am aware that the current ReadOnly state for our form controls is lacking in contrast between the active state of the form control, and perhaps that is why this customization was made to SuperDatePicker. I am wondering if instead we need to have the SuperDatePicker functionality next to an on/off switch instead? Otherwise, we should roll with the defaults for now - we have an issue open and I am working on improving the visual differentiation between the active and read only state of all form controls. If we have a customization in there, you wont get this benefit once its released. |
@KrooshalUX Thank you for suggesting using |
@joshuarrrr We have some customized color in the scss files. Is that means we need to replace it with oui variables? |
Yeah, you'll definitely want to update both of those to use the OUI SASS variables. @lauralexis can you provide the corret variable? |
@wanglam Got it, thanks for the context refresher - its been a while since I have looked at the UI. All good to keep the higher order component you have built, please ignore my question about switching to |
@joshuarrrr I've created this PR to mitigate all the typographic and color styles. Would you mind to help me review it? |
This is a tracking issue for phase 1 of OUI theme plugin compliance, which will involve changes to OUI typography and color SASS variables (for both dark and light mode). For full details, including dates and tooling, see opensearch-project/OpenSearch-Dashboards#4291
If your plugin has no UI views or components, please add a comment to that effect, and we'll remove the repo from future look and feel update campaigns.
Actions required
Questions?
Add a comment on opensearch-project/OpenSearch-Dashboards#4291
The text was updated successfully, but these errors were encountered: