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

Implement grouping of Attributes on generated UIs #19

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Conversation

GDYendell
Copy link
Contributor

@GDYendell GDYendell commented Jan 18, 2024

@MJGaughran I will leave this open and merge it when I next start on another set of changes. If you get a chance to look at it that would be great. No worries if not.

The accompanying change to the demo may help.

With grouping the generated UI looks like this:

image

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 49 lines in your changes are missing coverage. Please review.

Comparison is base (497316c) 45.19% compared to head (a0944fb) 43.79%.

Files Patch % Lines
src/fastcs/backends/epics/gui.py 9.75% 37 Missing ⚠️
src/fastcs/attributes.py 28.57% 5 Missing ⚠️
src/fastcs/wrappers.py 20.00% 4 Missing ⚠️
src/fastcs/cs_methods.py 57.14% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #19      +/-   ##
==========================================
- Coverage   45.19%   43.79%   -1.40%     
==========================================
  Files          17       17              
  Lines         624      653      +29     
==========================================
+ Hits          282      286       +4     
- Misses        342      367      +25     

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

src/fastcs/attributes.py Outdated Show resolved Hide resolved
src/fastcs/attributes.py Outdated Show resolved Hide resolved
src/fastcs/attributes.py Show resolved Hide resolved
src/fastcs/backends/epics/gui.py Outdated Show resolved Hide resolved
src/fastcs/backends/epics/gui.py Outdated Show resolved Hide resolved
src/fastcs/backends/epics/ioc.py Outdated Show resolved Hide resolved
src/fastcs/controller.py Outdated Show resolved Hide resolved
src/fastcs/datatypes.py Outdated Show resolved Hide resolved
src/fastcs/datatypes.py Outdated Show resolved Hide resolved
src/fastcs/wrappers.py Outdated Show resolved Hide resolved
Attributes and Methods take an optional group to be placed in.
If group is unset it will appear at the root of the UI.

SubControllers are displayed on a SubScreen of the parent Controller.

Update to use pvi DLSFormatter class directly rather than relying on yaml file.
There are ongoing breaking changes to pvi, so pin to minor version.
Bugfix version bumps are OK.
@GDYendell GDYendell merged commit bf41c16 into main Jan 23, 2024
14 of 16 checks passed
@GDYendell GDYendell deleted the ui-groups branch June 7, 2024 08:47
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