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

feat: adding route and navigation to the task details page #97

Merged
merged 1 commit into from
Sep 11, 2020

Conversation

schottra
Copy link
Contributor

This adds plumbing and interaction to allow users to navigate to the details page for a Task. It works pretty much the same as the behavior for Workflows.

  • Wrapped items in SearchableTaskList in Links, and added chevrons to indicate that they navigate to details upon click.
  • Added necessary items in routes to allow navigating to TaskDetails view.
  • Updated EntityDetailsHeader so that the back link changes depending on what type of entity we are rendering (so that clicking back from a Task takes you to the Tasks section instead of Workflows)
  • (chore) Removed an unnecessary fragment in EntityDetailsHeader

TaskDetailsNavigation

@codecov-commenter
Copy link

Codecov Report

Merging #97 into single-task-execution will increase coverage by 0.13%.
The diff coverage is 58.82%.

Impacted file tree graph

@@                    Coverage Diff                    @@
##           single-task-execution      #97      +/-   ##
=========================================================
+ Coverage                  67.54%   67.67%   +0.13%     
=========================================================
  Files                        372      372              
  Lines                       6021     6030       +9     
  Branches                     945      945              
=========================================================
+ Hits                        4067     4081      +14     
+ Misses                      1954     1949       -5     
Impacted Files Coverage Δ
src/components/Entities/EntityDetails.tsx 48.27% <0.00%> (ø)
src/routes/ApplicationRouter.tsx 77.77% <ø> (ø)
src/components/Task/SearchableTaskNameList.tsx 57.50% <75.00%> (+1.94%) ⬆️
src/components/Entities/EntityDetailsHeader.tsx 57.14% <100.00%> (ø)
src/components/Entities/EntityExecutions.tsx 63.63% <100.00%> (ø)
src/components/Entities/generators.ts 77.77% <100.00%> (ø)
src/routes/components.ts 100.00% <100.00%> (ø)
src/components/Task/TaskDetails.tsx 60.00% <0.00%> (+60.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9c7ec47...a3e46be. Read the comment docs.

@schottra schottra merged commit 38eab6d into single-task-execution Sep 11, 2020
@schottra schottra deleted the task-details-route branch September 11, 2020 18:13
schottra added a commit that referenced this pull request Oct 8, 2020
* refactor: make workflow details generic so it can be used for tasks (#96)

* refactor: make workflow details generic so it can be used for tasks

* chore: cleanup and moving tests over

* feat: adding route and navigation to the task details page (#97)

* Refactor Launch form to use a state machine (#99)

* refactor: filling out details of the state machine for launch

* refactor: checkpoint

* refactor: mostly finished wiring of machine to component state

* refactor: more work to get form component migrated to using machine

* refactor: cleaning up state for selectors

* fix: type error due to patch version upgrade

* refactor: trying a flat state structure

* fix: getting all tests passing again

* chore: cleanup and docs

* chore: pull request feedback

* refactor: Make launch state and components generic (#100)

* refactor: splitting launch machine into two separate types

* refactor: move shared state out to component

* refactor: use composition to create workflow form

* refactor: update usage of LaunchWorkflowForm -> LaunchForm

* chore: cleanup and fix tests

* feat: Add Task support to Launch form (#101)

* feat: add task support in launch components

* test: updating launch form tests to handle task cases

* fix: remaining broken tests

* Cleanup work for launching single task executions. (#102)

* feat: add support for launch tasks in entity details view

* fix: correctly map initial parameters when relaunching

* fix: correct parent name and back link in execution details page

* fix: pass through referenceExecution when relaunching

* test: check rendering of referenceExecution

* test: adding tests for relaunch flow
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.

3 participants