Ramsundar Update current week only on own page#3742
Conversation
✅ Deploy Preview for highestgoodnetwork-dev ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Aditya-gam
left a comment
There was a problem hiding this comment.
-
When I run
npm installto install the repository, this is the error I get:

- What I found was that this branch requires React ^16.14.0 (React 16)
- @react-leaflet/core@1.0.2 requires: React ^17.0.1 (React 17+)
- The conflict: @react-leaflet/core@1.0.2 has peer dependencies that require React 17+, but branch is locked to React 16.
-
I tried installing
node 17usingnvm install 17and installing usingnpm install --legacy-peer-deps, but it throws anunsupported engineerror.

-
Even
npm install --legacy-peer-deps --forcethrows an error.

-
Please provide a fix for this.
MeronTeweldebrhan
left a comment
There was a problem hiding this comment.
PR Review Feedback
Testing Outcome
'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! notsup Required: {"node": ">=14.0.0 <15"}
npm ERR! notsup Actual: {"npm": "10.9.3", "node": "v22.19.0"}
ShradhaMBhadrannavar
left a comment
There was a problem hiding this comment.
I tried installing dependencies to test this PR, but encountered a dependency conflict error between react@16.14.0 and @react-leaflet/core@1.0.2, which requires React 17+.
The error prevents running the app locally (npm install fails with ERESOLVE unable to resolve dependency tree). Screenshot attached for reference.
Could you please confirm the compatible React version or update the dependency configuration so that it can be installed successfully?

Raghu04122002
left a comment
There was a problem hiding this comment.
Reviewed the PR#3742. The changes you have made are working as expected. The user is able to log his time while present on other users timelog
PR3742.mp4
debadyuti23
left a comment
There was a problem hiding this comment.
Hi @Ram-blip while testing your PR I have encountered the same issue as other reviewers mentioned.
npm error engine Not compatible with your version of node/npm: hgnreactapp@0.1.0 npm error notsup Not compatible with your version of node/npm: hgnreactapp@0.1.0 npm error notsup Required: {"node":">=14.0.0 <15"} npm error notsup Actual: {"npm":"10.8.2","node":"v20.19.6"}"
while I tried to install node 14.21.3 it does not integrate with the current backend whose screenshot I have attached.

I would recommend to sync the current development branch changes with your branch accordingly. Also left couple of NIT comments.
| }; | ||
| }; | ||
|
|
||
|
|
| }; | ||
| }; | ||
|
|
||
|
|
Shravan-neelamsetty
left a comment
There was a problem hiding this comment.
Hi Ramsundar, I attempted to test this PR locally but encountered a Node version compatibility issue. When running npm install, I received the error: npm error notsup Required: {"node":">=14.0.0 <15"} while my system is running Node v20.19.6, which matches the development branch requirements. This version mismatch prevents the installation from completing, making it impossible to test the changes locally.
Ganesh112001
left a comment
There was a problem hiding this comment.
I attempted to test PR #3742, which updates the "Current Week" display to only show on a user's own page and prevent data from appearing on other users' timelogs. However, I encountered multiple dependency and compatibility issues that prevented testing. The PR branch uses outdated dependencies requiring Node.js versions 14-18, but the current development environment runs Node v20. After switching to Node 18, installation still failed due to missing react-scripts and incompatible package-lock.json files created with older npm versions. The old dependencies and engine version conflicts make this PR untestable without significant environment reconfiguration. Recommend updating the PR dependencies to be compatible with current Node.js versions or testing in an environment matching the original development setup from July 2025.
|
Hi @Ram-blip |
| // const updateTimeEntries = (timeEntry, oldDateOfWork) => { | ||
| // const startOfWeek = moment().startOf('week'); | ||
|
|
||
| // return async dispatch => { |
| if (timeEntry.personId !== currentlyViewedUserId) { | ||
| return; // Don't update Redux if viewing a different user's page | ||
| } |
There was a problem hiding this comment.
Tested the current week refresh flow, this might be trying to prevent another user’s page from being updated, but it is checking state.userProfile._id here instead of using the same viewed-user source that is used when the time entry is submitted. This could be checked if the refresh condition is reading the wrong user id, because during profile switching or timer-based submissions the page that just logged time may not refresh correctly.
rithika-paii
left a comment
There was a problem hiding this comment.
Hi Ramsundar,
I reviewed this PR#3742 by checking out the branch and attempting to run the frontend locally. However, I encountered a setup issue during dependency installation.
The project specifies a Node.js engine requirement of >=14.0.0 <15, while the current development environment uses Node.js v20.x. Because of this mismatch, npm install fails with an EBADENGINE error and the application cannot be started locally.
|
Redone with this PR: #5245 |




























Description
Video Link: https://www.loom.com/share/5e27c7b0b61144d68c433044c7e97350?sid=60bac4c4-4432-4fd9-84c6-cd1a9447df30
Related PRS (if any):
This frontend PR is related to the latest Development backend branch.
Main changes explained:
Issue:
You're on User B's timelog page, but when you log time:
Fixes:
How to test:
npm installand...to run this PR locallyScreenshots or videos of changes:
video1011269524.mp4
Note:
Include the information the reviewers need to know.