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

(OUI Next Theme) Search Relevance #257

Closed
3 tasks done
Tracked by #895
KrooshalUX opened this issue Jul 27, 2023 · 14 comments
Closed
3 tasks done
Tracked by #895

(OUI Next Theme) Search Relevance #257

KrooshalUX opened this issue Jul 27, 2023 · 14 comments
Assignees
Labels
good first issue Good for newcomers

Comments

@KrooshalUX
Copy link

KrooshalUX commented Jul 27, 2023

This issue to be transferred to corresponding repository

I am working on launching new light and dark mode themes provided by OUI component library for a target launch within 2.10. These changes support the vision expressed in Future Vision for Dashboards

I have identified the following front end related issues that prevent the theme from appearing complete and potential solutions within this feature:

Screen Shot 2023-07-27 at 12 19 28 PM

@wbeckler wbeckler transferred this issue from opensearch-project/oui Jul 27, 2023
@macohen macohen added the v2.10.0 Issues targeting release v2.10.0 label Aug 1, 2023
@macohen macohen added v2.11.0 and removed v2.10.0 Issues targeting release v2.10.0 labels Sep 5, 2023
@macohen
Copy link
Collaborator

macohen commented Sep 5, 2023

We'll need to push this change to 2.11. We're focused on build failures right now and see this as a minor issue for a still experimental plugin.

@macohen macohen added the good first issue Good for newcomers label Sep 14, 2023
@joshuarrrr
Copy link
Member

OpenSearch Dashboards provides a theme-aware customization of the textmate theme for ace editor. See opensearch-project/OpenSearch-Dashboards#4609

Setting the theme to textmate is likely sufficient to fix the query editor appearance.

@joshuarrrr
Copy link
Member

@macohen If your team would like a helping hand on resolving these, feel free to sign up for OpenSearch Dashboards developer office hours: https://opensearch.org/events/2023-0921-dev-officehours-dashboards/

@nung22
Copy link
Contributor

nung22 commented Sep 28, 2023

@sejli Can I get assigned to this issue?

@nung22
Copy link
Contributor

nung22 commented Oct 4, 2023

Hi @KrooshalUX, I'm currently tackling this issue and was wondering if you could elaborate on this point further "Empty state should utilize EuiEmptyPrompt." Just trying to get a better idea of what type of problem it is.

@joshuarrrr
Copy link
Member

@nung22 Thanks for picking this up! Kroosh is out of the office for a while so @kgcreative or I should be able to help anser any of these questions. For the third item, the idea is to use standard layout components, which already are styled consistently.

From the screenshot, I believe this is the component to update:

const InitialState = () => {
return (
<EuiPanel
hasBorder={false}
hasShadow={false}
grow={true}
style={{ display: 'flex', justifyContent: 'center', alignItems: 'center' }}
>
<EuiFlexGroup justifyContent="center">
<EuiTitle>
<h2>Add queries to compare search results.</h2>
</EuiTitle>
</EuiFlexGroup>
</EuiPanel>
);
};

Here's the documentation and usage guide for EuiEmptyPrompt (note that, for semver reasons, the docs us the OUI namespace while we still use the EUI namespace in code): https://oui.opensearch.org/1.3/#/display/empty-prompt

@kgcreative
Copy link
Member

kgcreative commented Oct 5, 2023

@nung22 -- once you have something working on your local env, feel free to add light/dark screenshots here and tag me, and I can give you quick validation from the UX side as to whether it looks right or not. If you're able to spin up an end-point to show WIP even better, but that can sometimes be extra time consuming for a small change like this.

@sejli sejli removed the v2.11.0 label Oct 5, 2023
@nung22
Copy link
Contributor

nung22 commented Oct 7, 2023

@kgcreative This is what I have so far!

Screenshots

Before

Dark Mode

Screenshot 2023-10-07 115045

Light Mode

Screenshot 2023-10-07 115023

After

Dark Mode

Screenshot 2023-10-07 114624

Light Mode

Screenshot 2023-10-07 114807

Navigation to "Add Sample Data" page:

Dark Mode

euiEmptyPrompt-darkMode

Light Mode

euiEmptyPrompt-lightMode

@kgcreative
Copy link
Member

@kgcreative This is what I have so far!

Thanks so much!
For this empty prompt, let's not link to adding sample data. Instead, let's use empty prompt, and supress the primary action.

image

  iconType="search"
  title={<h2>No results</h2>}
  body={
      <Fragment>
        <p>
          Add at least one query to display search results.
        </p>
      </Fragment>
    }

@kgcreative
Copy link
Member

kgcreative commented Oct 10, 2023

Similarly, when only one query is present,

image

Let's update the body of the empty pane to:

  iconType="search"
  title={<h2>No results</h2>}
  body={
      <Fragment>
        <p>
          Add a second query to display search comparison results.
        </p>
      </Fragment>
    }

@nung22
Copy link
Contributor

nung22 commented Oct 10, 2023

@kgcreative This is what I have so far!

Thanks so much! For this empty prompt, let's not link to adding sample data. Instead, let's use empty prompt, and supress the primary action.

image

  iconType="search"
  title={<h2>No results</h2>}
  body={
      <Fragment>
        <p>
          Add at least one query to display search results.
        </p>
      </Fragment>
    }

Appreciate the guidance! Is this what you meant?

Screenshot 2023-10-10 140501

Screenshot 2023-10-10 140549

@nung22
Copy link
Contributor

nung22 commented Oct 10, 2023

Similarly, when only one query is present,

image

Let's update the body of the empty pane to:

  iconType="search"
  title={<h2>No results</h2>}
  body={
      <Fragment>
        <p>
          Add a second query to display search comparison results.
        </p>
      </Fragment>
    }

With only one query present:

Screenshot 2023-10-10 140518

Screenshot 2023-10-10 140611

@kgcreative
Copy link
Member

kgcreative commented Oct 10, 2023

@nung22 LGTM!

@joshuarrrr over to you for code review whenever @nung22 is ready

@noCharger
Copy link
Collaborator

Close this issue after all tasks complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: Done
Development

No branches or pull requests

7 participants