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

View button (#718) #758

Merged
merged 19 commits into from
Aug 4, 2021
Merged

View button (#718) #758

merged 19 commits into from
Aug 4, 2021

Conversation

GoelBiju
Copy link
Contributor

@GoelBiju GoelBiju commented Jul 20, 2021

Description

Changes the toggle for card/table view into a button in accordance with #718. Adds a button with the "Display as cards" or "Display as table" labels depending on the view you are in.

Testing instructions

  • Review code
  • Check Actions build
  • Review changes to test coverage

Agile board tracking

Closes #718

@GoelBiju GoelBiju added enhancement New feature or request datagateway-dataview Issues corresponding to the dataview component. This component supersedes datagateway-table labels Jul 20, 2021
@codecov
Copy link

codecov bot commented Jul 20, 2021

Codecov Report

Merging #758 (65aa13e) into master (6eb1eb8) will increase coverage by 0.17%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #758      +/-   ##
==========================================
+ Coverage   98.25%   98.43%   +0.17%     
==========================================
  Files         114      114              
  Lines        5668     5673       +5     
  Branches     1448     1449       +1     
==========================================
+ Hits         5569     5584      +15     
+ Misses         94       84      -10     
  Partials        5        5              
Flag Coverage Δ
common 98.88% <ø> (ø)
dataview 98.76% <100.00%> (+0.46%) ⬆️
download 96.46% <ø> (ø)
search 98.88% <ø> (ø)

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

Impacted Files Coverage Δ
...eway-dataview/src/page/pageContainer.component.tsx 97.16% <100.00%> (+10.04%) ⬆️

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 6eb1eb8...65aa13e. Read the comment docs.

@GoelBiju GoelBiju changed the title Create initial view switch button (#718) View switch button (#718) Jul 21, 2021
@GoelBiju GoelBiju changed the title View switch button (#718) View button (#718) Jul 21, 2021
@GoelBiju GoelBiju marked this pull request as ready for review August 2, 2021 14:51
GoelBiju and others added 3 commits August 3, 2021 16:33
Due to more data mismatch issues as documented in #718, certain e2e tests relying on testing data by file size need to be skipped. They have been marked with an appropriate comment so they can be found later.

Also fixing a test for loading more rows which was failing because an element could not be located on the DOM. In reality, it was there but was not directly visible - it had to be scrolled down to for it to be detected.
@sam-glendenning
Copy link
Contributor

sam-glendenning commented Aug 4, 2021

Having to skip e2e tests in this branch due to ongoing data mismatch issue #782. See 7c0f9b7 (ignore the change to proposals.spec.ts, this was a separate issue).

@GoelBiju GoelBiju merged commit c6888ee into master Aug 4, 2021
@sam-glendenning sam-glendenning deleted the feature/toggle-button-#718 branch August 4, 2021 17:31
@GoelBiju GoelBiju restored the feature/toggle-button-#718 branch September 17, 2021 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datagateway-dataview Issues corresponding to the dataview component. This component supersedes datagateway-table enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change toggle button to a button with different labels "Display as cards" / "Display as table"
2 participants