-
Notifications
You must be signed in to change notification settings - Fork 1
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 tasks details #61
Conversation
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.
The code looks good to me, with some exceptions 😄 Take a look at the comments
frontend/src/features/subtasks/table/table/subtask-status-cell.tsx
Outdated
Show resolved
Hide resolved
frontend/src/product-specific/sidebar/authenticated-sidebar-menu-items.ts
Outdated
Show resolved
Hide resolved
@Gelio I have updated this PR, please review again. |
frontend/src/features/distributed-task-definitions/details/types.ts
Outdated
Show resolved
Hide resolved
frontend/src/features/distributed-tasks/details/format-distributed-task-status.tsx
Outdated
Show resolved
Hide resolved
frontend/src/features/distributed-tasks/details/get-details-grid.tsx
Outdated
Show resolved
Hide resolved
frontend/src/features/subtasks/table/table/subtask-status-cell.tsx
Outdated
Show resolved
Hide resolved
frontend/src/features/distributed-tasks/details/get-details-grid.tsx
Outdated
Show resolved
Hide resolved
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.
Some more changes to go 😄
frontend/src/features/distributed-task-definitions/details/details.tsx
Outdated
Show resolved
Hide resolved
frontend/src/features/distributed-task-definitions/details/details.tsx
Outdated
Show resolved
Hide resolved
Server/Models/Subtask.cs
Outdated
@@ -10,6 +10,7 @@ public class Subtask : Identifiable | |||
[Attr("sequence-number", isImmutable: true)] | |||
public int SequenceNumber { get; set; } | |||
|
|||
[Attr("distributed-task-id")] |
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.
I reckon we should add isImmutable: true
to this attribute
class DetailsPage extends PureComponent< | ||
DistributedTaskDetailsProps & WithRouterProps | ||
> { | ||
public static getInitialProps: GetInitialPropsFn = ({ query }) => { |
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.
Let's move the implementation of getInitialProps
to inside src/features
, similar to how other pages implement getInitialProps
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 way all the logic regarding a feature is in one directory instead of in two
</Pane> | ||
|
||
<Pane marginRight={minorScale(2)} display="inline"> | ||
<a href={resultsUrl} download={true} className="without-underline"> |
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.
Let's only pass the href
when taskDone === true
. Currently even though the button is disabled, the user may still click it and be redirected to an API endpoint for downloading the results.
<a href={taskDone ? resultsUrl : null} ...
Welp, now there are merge conflicts 😢 Could you apply the fixes you made to |
4242432
to
03388e8
Compare
No description provided.