You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
commented diff back out bc i couldn't get it to load formatters correctly. Got pages to stop expanding infinitely by removing unstyled parent divs where possible. Got performance tab to render by commenting out the useEffect that is needed for the tutorial. Now have issue where sub-paths are not rendering, rather it pushes you back out to component map.
@@ -83,9 +83,9 @@ function Diff(props: DiffProps): JSX.Element {
83
83
84
84
constpreviousDisplay: StatelessCleaning=statelessCleaning(previous);// displays stateful data from the first snapshot that was taken before our current snapshot.
85
85
86
-
constdelta: StatelessCleaning=diff(previousDisplay,snapshot);// diff function from 'jsondiffpatch' returns the difference in state between 'previousDisplay' and 'snapshot'
86
+
constdelta=diff(previousDisplay,snapshot);// diff function from 'jsondiffpatch' returns the difference in state between 'previousDisplay' and 'snapshot'
87
87
88
-
consthtml: StatelessCleaning=jsondiffpatch.formatters(delta,previousDisplay);// formatters function from 'jsondiffpatch' returns an html string that shows the difference between delta and the previousDisplay
88
+
consthtml=jsondiffpatch.formatters.format(delta,previousDisplay);// formatters function from 'jsondiffpatch' returns an html string that shows the difference between delta and the previousDisplay
89
89
90
90
if(show)
91
91
jsondiffpatch.formatters.showUnchanged();// shows unchanged values if we're on the '/diffRaw' path
dispatch(setCurrentTabInApp('performance'));// dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'performance' to facilitate render.
200
-
},[dispatch]);
198
+
// useEffect(() => {
199
+
// dispatch(setCurrentTabInApp('performance')); // dispatch sent at initial page load allowing changing "immer's" draft.currentTabInApp to 'performance' to facilitate render.
200
+
// }, [dispatch]);
201
201
202
202
constallRoutes=[];// create allRoutes variable to hold urls
consthierarchy=propsHierarchy||tabsHierarchy;//JR: RETURN TO THIS: alias to deconstruct from props and tab with the same name, aliases were deleted above
42
42
constviewIndex=propsViewIndex||tabsViewIndex;
43
43
44
-
// const renderComponentMap = () => {
45
-
// if (hierarchy) {
46
-
// // if hierarchy was initialized/created render the Map
47
-
// return (
48
-
// <ParentSize className='componentMapContainer'>
49
-
// {({ width, height }) => (
50
-
// // eslint-disable-next-line react/prop-types
51
-
// <ComponentMap
52
-
// currentSnapshot={currLocation.stateSnapshot}
53
-
// width={width}
54
-
// height={height}
55
-
// />
56
-
// )}
57
-
// </ParentSize>
58
-
// );
59
-
// }
60
-
// return <div className='noState'>{NO_STATE_MSG}</div>; // otherwise, inform the user that there has been no state change in the target/hooked application.
61
-
// };
62
-
63
-
64
-
65
-
// const renderTree = () => {
66
-
// if (hierarchy) {
67
-
// // if a hierarchy has been created/initialized, render the appropriate tree based on the active snapshot
// return <div className='noState'>{NO_STATE_MSG}</div>; // otherwise, inform the user that there has been no state change in the target/hooked application.
71
-
// };
72
-
73
-
// let LCPColor: String;
74
-
// let FIDColor: String;
75
-
// let FCPColor: String;
76
-
// let TTFBColor: String;
77
-
// let CLSColor: String;
78
-
// let INPColor: String;
79
-
80
-
// // adjust the strings that represent colors of the webmetrics performance bar for 'Largest Contentful Paint (LCP)', 'First Input Delay (FID)', 'First Contentfuly Paint (FCP)', 'Time to First Byte (TTFB)', 'Cumulative Layout Shift (CLS)', and 'Interaction to Next Paint (INP)' based on webMetrics outputs.
81
-
// if (webMetrics.LCP <= 2500) LCPColor = '#0bce6b';
// description={`Assesses a page's overall responsiveness to user interactions by observing the latency of all click, tap, and keyboard interactions that occur throughout the lifespan of a user's visit to a page`}
Copy file name to clipboardExpand all lines: src/app/styles/layout/_stateContainer.scss
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@
113
113
align-items: center;
114
114
height: 30px;
115
115
position: sticky;
116
-
top: 40px; //JR 12.16.23 @12:15pm: this hardcoding is not best practice, should revisit to figure out a more dynamic way of sticking the navbar to the bottom of the main-navbar
116
+
top: 0px; //JR 12.16.23 @12:15pm: this hardcoding is not best practice, should revisit to figure out a more dynamic way of sticking the navbar to the bottom of the main-navbar
0 commit comments