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
udpated setTab reducer to correctly handle mode on initial connect (assume true rather than empty object--this should help with 'no target' issue). Commented out port forEach loop in background.js on connect as it causes errors and is not necessary. Thinking of adding a new reducer function that fires on context menu click to update current tab in state.
// JR: REFACTOR: 12.20.23 this code has if statement to catch diff shapes of payload ('number' vs 'object'). This should not be the case, the payload should always come in as expected.
128
+
// consider creating a custom typescript type for the action that setTab receives.
129
+
130
+
//JR: DOCS: 12.20.23 This code will update the currentTab being tracked in the Redux state. It depends, however, on the 'mode', which is an unfortunately named label for the "Locked" button status.
131
+
// The naming is unfortunate because the backend also has a mode variable that does a completely different thing, which creates confusion. Consider renaming this to 'locked' or somesuch.
132
+
// Mode is an object that expects to contain a single key, paused, with a boolean value.
133
+
// If true: Reactime is 'Locked', and navigating to another tab will not update the Redux state and trigger Reactime to take any actions.
134
+
// If false: Reactime is 'Unlocked', and navigating to another tab will update the Redux state's currentTab, which will trigger Reactime to try to run on that new tab.
// // this would allow you to split your screen, keep the browser open on the right side, and reactime always opens at the top left corner.
510
512
// // currently, invokedScreenLeft is the left of the invoked window. To get around the issue of reactime covering the refresh button (currently needed for debugging as of 12.19.23), added a vertical offset, topOffset.
511
513
// // this just pushes the top down by a fixed amount that is enough to surpass most people's bookmarks bar.
0 commit comments