✨ table-controls: factor out duplicated code via new usePersistentState hook + misc cleanup + add initial documentation (DOCS.md
and JSDoc comments)
#1355
19.70% of diff hit (target 40.72%)
View this Pull Request on Codecov
19.70% of diff hit (target 40.72%)
Annotations
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts#L63
Added line #L63 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts#L66
Added line #L66 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts#L68
Added line #L68 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/getActiveItemDerivedState.ts#L70-L71
Added lines #L70 - L71 were not covered by tests
Check warning on line 36 in client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts#L35-L36
Added lines #L35 - L36 were not covered by tests
Check warning on line 38 in client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemEffects.ts#L38
Added line #L38 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L41-L42
Added lines #L41 - L42 were not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L44
Added line #L44 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L46
Added line #L46 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L51
Added line #L51 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L55
Added line #L55 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L59
Added line #L59 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L61-L63
Added lines #L61 - L63 were not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemPropHelpers.ts#L68
Added line #L68 was not covered by tests
Check warning on line 50 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L48-L50
Added lines #L48 - L50 were not covered by tests
Check warning on line 54 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L54
Added line #L54 was not covered by tests
Check warning on line 66 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L66
Added line #L66 was not covered by tests
Check warning on line 69 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L69
Added line #L69 was not covered by tests
Check warning on line 72 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L72
Added line #L72 was not covered by tests
Check warning on line 75 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L75
Added line #L75 was not covered by tests
Check warning on line 79 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L79
Added line #L79 was not covered by tests
Check warning on line 81 in client/src/app/hooks/table-controls/active-item/useActiveItemState.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/active-item/useActiveItemState.ts#L81
Added line #L81 was not covered by tests
codecov / codecov/patch
client/src/app/hooks/table-controls/expansion/getExpansionDerivedState.ts#L60
Added line #L60 was not covered by tests
Check warning on line 59 in client/src/app/hooks/table-controls/expansion/useExpansionPropHelpers.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/expansion/useExpansionPropHelpers.ts#L59
Added line #L59 was not covered by tests
Check warning on line 66 in client/src/app/hooks/table-controls/expansion/useExpansionPropHelpers.ts
codecov / codecov/patch
client/src/app/hooks/table-controls/expansion/useExpansionPropHelpers.ts#L66
Added line #L66 was not covered by tests