Skip to content

Commit 4b0f9f6

Browse files
authored
Resolves: MTV-3561 | Refactor StandardPage (#2105)
* Resolves: MTV-3561 | Refactor StandardPage Signed-off-by: Jeff Puzzo <[email protected]> * Resolves: MTV-3561 | Refactor StandardPage - Unit tests Signed-off-by: Jeff Puzzo <[email protected]> * Resolves: MTV-3561 | Refactor StandardPage - address feedback Signed-off-by: Jeff Puzzo <[email protected]> --------- Signed-off-by: Jeff Puzzo <[email protected]>
1 parent c4f4d44 commit 4b0f9f6

File tree

29 files changed

+1720
-877
lines changed

29 files changed

+1720
-877
lines changed

src/components/common/FilterGroup/matchers.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,17 @@ export const createMetaMatcher =
172172
resourceFields: ResourceField[],
173173
valueMatchers: ValueMatcher<string>[] = defaultValueMatchers,
174174
) =>
175-
(
176-
resourceData: Record<string, object | string | boolean | ((resourceData: unknown) => unknown)>,
177-
): boolean =>
175+
(resourceData: unknown): boolean =>
178176
valueMatchers
179177
.map(({ filterType, matchValue }) =>
180178
createMatcher({ filterType, matchValue, resourceFields, selectedFilters }),
181179
)
182-
.map((match) => match(resourceData))
180+
.map((match) =>
181+
match(
182+
resourceData as Record<
183+
string,
184+
object | string | boolean | ((resourceData: unknown) => unknown)
185+
>,
186+
),
187+
)
183188
.every(Boolean);

src/components/page/StandardPage.style.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.forklift-page__main-title {
2-
padding-bottom: 0;
3-
}
4-
51
.forklift-page__toolbar-item__selected-count {
62
color: var(--pf-t--global--text--color--subtle);
73
margin-inline-start: auto;

0 commit comments

Comments
 (0)