arrow_back Back to Tickets

Ticket #03bec7

open

Problem

show me both profile versions. show user profile page. editable Version. show public profile page. Not Editable Version.

Creator

marcus

Priority

1

Urgent

urgent

Important

important

Project Name

zfrika

Question

Q1. which route called enhance-profile.ejs and did they pass a datatoken? \nA1. i see a datatoken being passsed. see the following route.\n GET /app2/enhance-profile/98e87823ae84bb9bc70521de7cebb51d814846d9eb9a3ae88e302e28438a7729\n\n Q2. wher is the other version of the profile page that you wer t4stiing to upload pictures of the user?\n A2.

Root Cause

.public-view .edit-actions { display: none; } display begin set to none or block , determine if the editable version is visible.

Diagram

https://app.diagrams.net/#D254kenya%20website.drawio#%7B%22pageId%22%3A%22o_YwohmaNIowPl5twEu3%22%7D

Previous Steps

i see the version that is non editable. GET /app2/enhance-profile/datatoken. but I dont see the editable version. check the playgrounds/javascript/dom page to see if you created both versions. Nothing found in dom/testinghtml/ folder. Is profile.ejs the original ? swap out vim enhance-profile.html_backup4 with enhance-profile.ejs. Just create a new page for the editedable vs non editable profile page. i checked my other computer but couldnt find a ejs file that upload profile pictures,. I see something in enhance-profile.html_backup4 that looks like it updates profile pictures. i see a route for editing the profile picture. see editprofilepictureRoutes.js public/scripts/profile-system.js calls the edit profile picture on line 143 ../editprofilepicture. who is calling profile-system.js? both called profile-system.js. does the profile-system.js have the editable pop up for picture edit? when is saveProfilePicture being called? button onclick=profileManager.saveProfilePicture(); return false; Save Picture seem that these editprofile is visible when logged in. So, Are we logged in? .public-view .edit-actions { display: none; } this is turning off the displace because its set to public. which means it not logged in. I turned of the feature that was hiding the .edit-actions by setting display: to block.

Next Steps

create a function that is toggle when we are logged in. what nodejs value that is passed into ejs determines if we a logged in? what caused this error when I went to this page? why did i go to this page? http://165.232.48.178/app2/editprofilepicture profile picture update failed. Failed to find user, please try again. editprofileRoutes.js route: router.get('/enhance-profile/:datatoken') passed userprofile.datatoken. So we expect to recieve editprofile/<%= userprofile.datatoken %> in enhance-profile.ejs. did we ever pass the datatoken when we did the post? save this.profile to the localstorage save <%= userprofile.datatoken %> to the sessionStorage. then pull it from profile-system.js or try to pass userprofile.datatoken to funtion saveProfile() . we didnt save any data to sessionStorage , includiing the datatoken. ****

Insight

you can't afford to try to solve complex problems without using a flow diagram such as https://app.diagrams.net on the web or flowdiadiagrams app on your phone. make sure to use this for simple problems so you can get things done. try to use it for writing short stories as well.

Ticket Information

Ticket ID: 693ed98a97eae16e1a03bec7
Date Initiated: 12/23/2025, 3:32:00 PM
Status: open
Urgent: urgent
Important: important
Created: 12/14/2025, 7:36:42 AM
Last Updated: 12/15/2025, 8:13:36 PM