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

Feature: Add Option to Expand Document Source #350

Merged
merged 23 commits into from
Mar 19, 2024

Conversation

nung22
Copy link
Contributor

@nung22 nung22 commented Nov 6, 2023

Description

Gives users the ability to expand the row to view the entire document source with OuiPopover. Also refactors the getDlTmpl functional component by using OuiDescriptionList, OuiDescriptionListTitle, and OuiDescriptionListDescription in place of standard HTML tags. Removes the : in the source fields headers and updates their styling as well to make them more distinguishable from their values.

Issues Resolved

Closes #285

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Screenshots

Source details closed

issue-285-pic1

Source details open

issue-285-pic2

In action

issue-285-gif1

@nung22 nung22 changed the title Add option to expand document source Add Option to Expand Document Source Nov 6, 2023
Copy link

codecov bot commented Nov 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.74%. Comparing base (75f66b9) to head (4e849c5).
Report is 1 commits behind head on main.

❗ Current head 4e849c5 differs from pull request most recent head 7744616. Consider uploading reports for the commit 7744616 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #350      +/-   ##
==========================================
+ Coverage   83.13%   84.74%   +1.61%     
==========================================
  Files          32       32              
  Lines         415      413       -2     
  Branches       81       81              
==========================================
+ Hits          345      350       +5     
+ Misses         49       43       -6     
+ Partials       21       20       -1     
Flag Coverage Δ
dashboards-search-relevance 84.74% <100.00%> (+1.61%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
@kgcreative
Copy link
Member

Nice incremental update here

Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
Copy link
Member

@sejli sejli left a comment

Choose a reason for hiding this comment

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

Great work, I love it! Left one nitpick comment, but may need to change the .babelrc as it's not passing tests still.

Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Nicholas Ung <[email protected]>
This reverts commit 8ec3868.

Signed-off-by: Nicholas Ung <[email protected]>
@nung22 nung22 changed the title Add Option to Expand Document Source Feature: Add Option to Expand Document Source Nov 30, 2023
package.json Outdated Show resolved Hide resolved
Copy link
Contributor Author

@nung22 nung22 left a comment

Choose a reason for hiding this comment

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

Thanks for catching that! Just removed it.

package.json Outdated Show resolved Hide resolved
@sejli sejli merged commit 4e9feca into opensearch-project:main Mar 19, 2024
11 checks passed
github-actions bot added a commit that referenced this pull request Mar 19, 2024
* Add option to expand document source

Signed-off-by: Nicholas Ung <[email protected]>

* Remove redundant code

Signed-off-by: Nicholas Ung <[email protected]>

* Update test coverage

Signed-off-by: Nicholas Ung <[email protected]>

* Remove unused queryerror

Signed-off-by: Nicholas Ung <[email protected]>

* Update styling of results

Signed-off-by: Nicholas Ung <[email protected]>

* Update dependencies

Signed-off-by: Nicholas Ung <[email protected]>

* Add option to expand document source

Signed-off-by: Nicholas Ung <[email protected]>

* Remove redundant code

Signed-off-by: Nicholas Ung <[email protected]>

* Update test coverage

Signed-off-by: Nicholas Ung <[email protected]>

* Remove unused queryerror

Signed-off-by: Nicholas Ung <[email protected]>

* Update styling of results

Signed-off-by: Nicholas Ung <[email protected]>

* Update dependencies

Signed-off-by: Nicholas Ung <[email protected]>

* Revert "Update dependencies"

This reverts commit 8ec3868.

Signed-off-by: Nicholas Ung <[email protected]>

* Signed-off-by: Nicholas Ung <[email protected]>

Update merge changes

* Move styling to scss file

Signed-off-by: Nicholas Ung <[email protected]>

* Update snapshots

Signed-off-by: Nicholas Ung <[email protected]>

* Update yarn.lock

Signed-off-by: Nicholas Ung <[email protected]>

* Remove unnecessary line in package.json

Signed-off-by: Nicholas Ung <[email protected]>

* manually updating snapshots for nung22

Signed-off-by: Sean Li <[email protected]>

---------

Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Co-authored-by: Sean Li <[email protected]>
(cherry picked from commit 4e9feca)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
sejli added a commit that referenced this pull request Mar 19, 2024
* Add option to expand document source



* Remove redundant code



* Update test coverage



* Remove unused queryerror



* Update styling of results



* Update dependencies



* Add option to expand document source



* Remove redundant code



* Update test coverage



* Remove unused queryerror



* Update styling of results



* Update dependencies



* Revert "Update dependencies"

This reverts commit 8ec3868.



* Signed-off-by: Nicholas Ung <[email protected]>

Update merge changes

* Move styling to scss file



* Update snapshots



* Update yarn.lock



* Remove unnecessary line in package.json



* manually updating snapshots for nung22



---------




(cherry picked from commit 4e9feca)

Signed-off-by: Nicholas Ung <[email protected]>
Signed-off-by: Sean Li <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sean Li <[email protected]>
@nung22 nung22 deleted the feature/issue-285 branch March 22, 2024 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[FEATURE] [Search Comparison Tool] Expand Document Source
3 participants