Skip to content

Commit ab28767

Browse files
committed
increasing readability of psuedocode
1 parent f4adf6f commit ab28767

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/components/legend.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ type snapHierarchy = {`Record<string, unknown>`}
1212
export default function LegendKey(props: snapHierarchy) {
1313
const { hierarchy } = props;
1414

15-
// We are taking the array of displayNames and sifting through them and placing each set of
16-
// branches as a key in an object, { '.0': [1.0, 2.0, 3.0, 4.0], '.1': [1.1, 2.1, 3.1,...], '.2': [....]}
15+
// we are sifting through array of displayNames and sorting them into key value pairs in an object, based on the branch they are on:
16+
// { '.0': [1.0, 2.0, 3.0, 4.0], '.1': [1.1, 2.1, 3.1,...], '.2': [....]}
17+
// then we create an array, with each index being strings showing the range of the branch,
1718
// we then take that and place it in an array, with each element being a range of the values in that branch -> ['1.0-4.0', '1.1-6.1',...]
1819
function colorRanger(snapshotIdsArray) {
1920
const resultRangeColor = {};

0 commit comments

Comments
 (0)