Skip to content

Adds ResourceList to Resources tabs.#20

Merged
simba-git merged 13 commits intodevelopfrom
feature/simba/feature-table
Jul 22, 2020
Merged

Adds ResourceList to Resources tabs.#20
simba-git merged 13 commits intodevelopfrom
feature/simba/feature-table

Conversation

@simba-git
Copy link

No description provided.

Simba added 10 commits July 20, 2020 14:56
Adding *.png fixed this, but adding to be explicit in case that is
not universally true.
We will use material-table to display sources, features, etc.
Rather than hard-coding the sections in Nav, we inject them in from
App component.

We have to also hard-code the current version into the Nav test to
pass the snapshot test. We could change the snapshot, but I think
this is a better test.
The Material-UI framework uses them to power the Icon API. Specifically,
they are required for the material-table library to work.
Using enzyme to render MaterialTable requires the HTML canvas API to
exist. Importing this dependency mocks it to clear out the error when
testing.
Title is a more descriptive name for the parameter than text.
Sources is a material table that will eventually show a list of
resources that can be expanded and interacted with.
enzyme-to-jest allows us to use snapshot tests on shallow rendering
which is useful for testing top-level components like App.
ResourceList is slightly more descriptive that it is a list, and that it
is focused on all resources not just data sources.
Adds a snapshot of a shallow rendering of App to catch any rendering
side-effects.
@codecov
Copy link

codecov bot commented Jul 21, 2020

Codecov Report

Merging #20 into develop will increase coverage by 14.19%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop      #20       +/-   ##
============================================
+ Coverage    82.35%   96.55%   +14.19%     
============================================
  Files            4        5        +1     
  Lines           34       58       +24     
  Branches         1        2        +1     
============================================
+ Hits            28       56       +28     
+ Misses           6        2        -4     
Flag Coverage Δ
#dashboard 96.55% <100.00%> (+14.19%) ⬆️
#macos-latest 96.55% <100.00%> (+14.19%) ⬆️
#node 96.55% <100.00%> (+14.19%) ⬆️
#node-12.x 96.55% <100.00%> (+14.19%) ⬆️
#node-14.x 96.55% <100.00%> (+14.19%) ⬆️
#ubuntu-latest 96.55% <100.00%> (+14.19%) ⬆️
#windows-latest 96.55% <100.00%> (+14.19%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
dashboard/src/components/app/App.js 100.00% <100.00%> (+100.00%) ⬆️
dashboard/src/components/nav/Nav.js 100.00% <100.00%> (ø)
...board/src/components/resource-list/ResourceList.js 100.00% <100.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 f77a927...c28cd79. Read the comment docs.

Simba added 3 commits July 21, 2020 01:19
Now when you click on different Nav links, it will swap the props
out for the ResourceLists.
Now when a user enters the dashboard, they will be redirected to the
first item in the Nav, and the path will be changed accordingly.
Using `make format` in the dashboard directory.
@simba-git simba-git merged commit 4bf7699 into develop Jul 22, 2020
@simba-git simba-git deleted the feature/simba/feature-table branch July 22, 2020 05:36
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.

1 participant