Skip to content

Conversation

jake-bassett
Copy link
Contributor

@jake-bassett jake-bassett commented Jan 22, 2021

Description

  • Renames mode toggle in Table controls to a more generic view toggle.
  • Changes the table mode toggle widget to a more generic view toggle widget
  • Added some additional checks and sorting in table-widget-select-filter.model.ts

@jake-bassett jake-bassett requested a review from a team as a code owner January 22, 2021 20:35
type: 'table-widget',
id: 'service-list.table',
mode: TableMode.Flat,
style: TableStyle.FullPage,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added FullPage here to push the pagination to the bottom.

@codecov
Copy link

codecov bot commented Jan 22, 2021

Codecov Report

Merging #523 (da3c216) into main (326b173) will decrease coverage by 0.03%.
The diff coverage is 62.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #523      +/-   ##
==========================================
- Coverage   85.60%   85.57%   -0.04%     
==========================================
  Files         757      758       +1     
  Lines       15519    15524       +5     
  Branches     1839     1839              
==========================================
- Hits        13285    13284       -1     
- Misses       2203     2209       +6     
  Partials       31       31              
Impacted Files Coverage Δ
.../src/pages/apis/services/service-list.dashboard.ts 100.00% <ø> (ø)
.../widgets/table/table-widget-select-filter.model.ts 46.66% <16.66%> (-13.34%) ⬇️
...rd/widgets/table/table-widget-view-toggle.model.ts 24.24% <26.66%> (ø)
...d/widgets/table/table-widget-renderer.component.ts 55.55% <60.00%> (-3.27%) ⬇️
...dashboard/widgets/table/table-widget-base.model.ts 78.37% <75.00%> (-4.48%) ⬇️
...nts/src/table/controls/table-controls.component.ts 96.07% <100.00%> (ø)
...dashboard/widgets/table/table-widget-view.model.ts 100.00% <100.00%> (ø)
...red/dashboard/widgets/table/table-widget.module.ts 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 326b173...da3c216. Read the comment docs.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

public onModeChange(mode: TableMode): void {
this.activeMode = mode;
this.model.setMode(mode);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on mode change is only called in on init now right? we can probably just remove this method, that call and change the template to use this.model.mode directly.

key: 'view',
type: STRING_PROPERTY.type
})
public view!: string;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the label that appears in the dropdown? If so, it's name could be updated to clarify.

@github-actions

This comment has been minimized.

@jake-bassett jake-bassett merged commit 225901a into main Jan 25, 2021
@jake-bassett jake-bassett deleted the table-widget-controls-view-toggle branch January 25, 2021 22:03
@github-actions
Copy link

Unit Test Results

    4 files  ±0  232 suites  ±0   13m 36s ⏱️ +30s
818 tests ±0  818 ✔️ ±0  0 💤 ±0  0 ❌ ±0 
822 runs  ±0  822 ✔️ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 225901a. ± Comparison against base commit 326b173.

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.

2 participants