-
Notifications
You must be signed in to change notification settings - Fork 23
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 full-widget-sized job detail view #46
Conversation
|
||
export interface IJobDetailProps { | ||
app: JupyterFrontEnd; | ||
model: IJobDetailModel; | ||
modelChanged: (model: IJobDetailModel) => void; |
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.
Nothing for you to do right now, but when #44 is merged in, there will be a conflict because this is being renamed to handleModelChange
.
src/mainviews/job-detail.tsx
Outdated
/> | ||
<TextFieldStyled | ||
label={trans.__('start_time')} | ||
defaultValue={job?.start_time?.toString() ?? ''} |
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.
This should be converted from epoch seconds to a readable format (see the existing list view for more about how we do this)
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.
Feel free to open another issue if this is too complex to do right now.
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.
Adapted your solution, otherwise would probably be too complex for now
src/mainviews/job-detail.tsx
Outdated
}} | ||
/> | ||
<TextFieldStyled | ||
label={trans.__('start_time')} |
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.
This field is already mentioned on line 305 above. Delete one occurrence of it.
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.
Removed 305 occurence
src/mainviews/job-detail.tsx
Outdated
}} | ||
/> | ||
<TextFieldStyled | ||
label={trans.__('status_message')} |
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.
label={trans.__('status_message')} | |
label={trans.__('Status message')} |
Shouldn't this be displayed right after "Status"?
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.
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.
status_message removed completely as it's not implemented
src/mainviews/job-detail.tsx
Outdated
/> | ||
<TextFieldStyled | ||
label={trans.__('end_time')} | ||
defaultValue={job?.end_time?.toString() ?? ''} |
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.
This should be converted from epoch seconds to a human-readable format.
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.
Done, adapted your solution
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
Co-authored-by: Jason Weill <[email protected]>
All comments are solved / answered |
This PR adds full-widget-sized job details view as per Issue #5
Currently all fields of IDescribeJob (that extends ICreateJob) are rendered even if they are not filled. email_notifications field is not rendered