-
Notifications
You must be signed in to change notification settings - Fork 64
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 jobs widget to jbrowse-web #3951
Conversation
Codecov Report
@@ Coverage Diff @@
## main #3951 +/- ##
==========================================
+ Coverage 63.75% 63.76% +0.01%
==========================================
Files 1018 1018
Lines 30164 30172 +8
Branches 7189 7192 +3
==========================================
+ Hits 19230 19239 +9
+ Misses 10770 10767 -3
- Partials 164 166 +2
... and 2 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -40,6 +40,7 @@ export default class extends Plugin { | |||
let jobStatusWidget = widgets.get('JobsList') | |||
if (!jobStatusWidget) { | |||
jobStatusWidget = session.addWidget('JobsListWidget', 'JobsList') | |||
session.showWidget(jobStatusWidget) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: showWidget is on both sides of the if/else, can probably move outside of if/else
@@ -11,6 +11,12 @@ const JobCard = observer(function JobCard({ job }: { job: NewJob }) { | |||
<strong>{'Name: '}</strong> | |||
{job.name} | |||
</Typography> | |||
{job.statusMessage ? ( | |||
<Typography variant="body1"> | |||
<strong>{'Message: '}</strong> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: don't have to use the curly for the plain-old-string on the strong line of the jsx
Accommodates Apollo #234
summary of changes