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

Shuffle results panel top-level tabs and update default selection #1076

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

edan-bainglass
Copy link
Member

This PR does the following:

  1. Reorder results tabs as Summary | Status | Results
  2. Sets the default tab dynamically (Status if running, Results if complete)

Copy link

codecov bot commented Jan 12, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.11%. Comparing base (5d9ad7e) to head (709dcd0).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1076      +/-   ##
==========================================
+ Coverage   68.98%   69.11%   +0.13%     
==========================================
  Files         113      113              
  Lines        6764     6764              
==========================================
+ Hits         4666     4675       +9     
+ Misses       2098     2089       -9     
Flag Coverage Δ
python-3.11 69.11% <100.00%> (+0.14%) ⬆️
python-3.9 69.12% <100.00%> (+0.11%) ⬆️

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.

self.toggle_controls.value = "Summary"
self.toggle_controls.value = (
"Results"
if (process := self._model.fetch_process_node()) and process.is_finished_ok

Choose a reason for hiding this comment

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

If a process has multiple properties and one fails, would this prevent the visualization of the results for the properties that completed successfully?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see why it would. This is just defining the default selected tab. All three tabs are still there.

Choose a reason for hiding this comment

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

because if one fail, process.is_finished_ok will be false , right ?

Copy link
Member Author

Choose a reason for hiding this comment

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

The default in this case is Status and the app will direct the user there. But the other panels are still accessible.

Copy link
Member

@AndresOrtegaGuerrero AndresOrtegaGuerrero left a comment

Choose a reason for hiding this comment

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

LGTM!

@edan-bainglass edan-bainglass merged commit f80ae9a into aiidalab:main Jan 13, 2025
8 checks passed
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