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

Add Expandable section #55

Merged
merged 1 commit into from
Mar 18, 2024
Merged

Conversation

jrusz
Copy link
Contributor

@jrusz jrusz commented Mar 14, 2024

Adding this mainly because of the child_widget_access functionality. The widget is fairly simple, I was heavily inspired by the tabs widget.

Adding just a basic test as all the other sections work the same on the page and the text is visible anyway even without expanding. I have a better use case in iqe-image-builder plugin where I need to expand the section to access a button which is actually not clickable before. It works there for me as expected and even watching the test here it does expand the section before trying to read it.

I am not adding a section_name property for it as it can change based on whether it's expanded or not so I don't think it's very useful unlike the tab_name in the tabs widget...

Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.83%. Comparing base (e0cae05) to head (b2a38a2).
Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #55   +/-   ##
=======================================
  Coverage   99.82%   99.83%           
=======================================
  Files          43       44    +1     
  Lines        1706     1766   +60     
=======================================
+ Hits         1703     1763   +60     
  Misses          3        3           
Flag Coverage Δ
unittests 99.83% <100.00%> (+<0.01%) ⬆️

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.

@jrusz jrusz force-pushed the expandable-section branch from cec1262 to c68ce3b Compare March 14, 2024 09:43
@jrusz
Copy link
Contributor Author

jrusz commented Mar 14, 2024

Hi @digitronik can you review please? The way I'm using in iqe-image-builder can be seen here https://gitlab.cee.redhat.com/insights-qe/iqe-image-builder-plugin/-/merge_requests/123/diffs?commit_id=9cd1f31845166b173bb06d86afc4fb22fffc3271

Copy link
Member

@digitronik digitronik left a comment

Choose a reason for hiding this comment

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

LGTM with first look. Lets discuss some use cases.

@jrusz jrusz force-pushed the expandable-section branch from c68ce3b to 33149c4 Compare March 15, 2024 11:07
Copy link
Member

@digitronik digitronik left a comment

Choose a reason for hiding this comment

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

LGTM
The only one thing which i missed.

@jrusz jrusz force-pushed the expandable-section branch from 33149c4 to b2a38a2 Compare March 15, 2024 11:47
@digitronik
Copy link
Member

LGTM 👍 Thanks @jrusz for this work.

The failures are not related to this. I will work on fixes.

@digitronik digitronik merged commit 734784c into RedHatQE:main Mar 18, 2024
6 of 9 checks passed
@jrusz jrusz deleted the expandable-section branch March 18, 2024 07:54
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.

2 participants