Skip to content

Conversation

@luSteven01
Copy link

Merge #1853 first!

Added a modal button to the navbar for users who are on mobile to be able to access the modal using sce context!!!!!

image

luSteven01 and others added 14 commits July 29, 2025 02:26
… chatMessage in the db (SCE-Development#1822)

* added ChatMessage schema & modified writeMessage function to write to mongodb

* modified /getLatestmessage to get the latest message, need to test it out in postman now

* updated writeMessage to be async for proper mongoDB chatMessage creation

* getLatestMessage now works for specific chatRoom ids, gets the userid via querying the User database by username and then extracting the userId

* uncommented out some token and apikey logic

* fixed lint errors yay

* reverted the package-lock.json file to the one from dev branch

* removed all the random styling changes, kept only the logic changes

* changed from expiresAt to expireAt and added TTL index for automatic expiration

* made writing to mongoDb as a seperate function

* removed the extracting username logic from writeMessage.

* fixed lint errors

* removed writeToMongo function, just added it inside the /send route

* Fixed lint errors
* updated forgot page to match login page ui

* Fix linting issues on ForgotPassword.js

* removed originalForgot.js

* disable button sometimes

---------

Co-authored-by: evan <[email protected]>
…#1865)

* Fix: Set lastLogin date in /login route

* delete the api function

* delete updateLastLoginDate

* delete comment
* add basic audit logs page for admin dashboard

* change items per page from 5 to 50 + lint updates

* add formatting for audit log cards

* remove unused error + loading components

* move utils to components file

* combine utils into AuditLogCard.js

* lint fix

* implement filtering and updated pagination

* update activityTypes.js to match mongodb schema

* ensure filtering takes into account 0-indexed currentPage + adjust useEffect to trigger when applying filter

* lint fix

* change filtering to one input that searches for first name, last name, and email

* add key per auditLogCard + combine FilterActivityTypes to AuditLog.js page

* lint fix

* implement colors for light mode + redirect to user edit when pressing on audit log username

* minor css change
* add audit logs on led sign update + tests

* lint fix

* lint fix

* remove editedBy field in audit log details

Co-authored-by: Evan Ugarte <[email protected]>

* fix api test

---------

Co-authored-by: Evan Ugarte <[email protected]>
)

* add audit logs for ad creation/deletion

* i accidentally changed the wrong file lol

* remove createdBy field in audit log details

Co-authored-by: Evan Ugarte <[email protected]>

* remove redundant fields in audit logs

* lint fix

* Update api/main_endpoints/routes/Advertisement.js

Co-authored-by: Evan Ugarte <[email protected]>

---------

Co-authored-by: Evan Ugarte <[email protected]>
* add audit on user password/profile change

* Update api/main_endpoints/routes/User.js

Co-authored-by: Evan Ugarte <[email protected]>

* delete unused endpoint

* fix User tests + lint

---------

Co-authored-by: Evan Ugarte <[email protected]>
…light mode for now cause it was bugging out on me, and changed the input text to white
@luSteven01
Copy link
Author

i screwed up this branch, i made a new one. see #1868

@luSteven01 luSteven01 closed this Aug 1, 2025
@luSteven01 luSteven01 deleted the luSteven/20250729_show_modal_button branch August 1, 2025 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants