Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

68 kaitlin sindhuja #81

Merged
merged 12 commits into from
Feb 24, 2025
Merged

68 kaitlin sindhuja #81

merged 12 commits into from
Feb 24, 2025

Conversation

kaitlinnleung
Copy link
Contributor

Description

Edit bookings page & modal, program modal

Screenshots/Media

Issues

Closes #68

@theNatePi
Copy link
Collaborator

Hey @sindhujagorti, @kaitlinnleung. Looks like some of the checks are failing on the PR. Could you check those out before we review? Thank you!

@theNatePi
Copy link
Collaborator

theNatePi commented Feb 19, 2025

Hey guys, great work. There are a few changes that need to be made:

  • Edit booking page

    • For some booking ids (159, 161, 865), no information loads. The page should show all of the time, date, room, and client information when it is loaded
      • These bookings could be invalid, but try to figure out why this is happening and display as much information as you can, even if not all of it is available
    • The general description field shows up as editable on this page. It should not be editable here, only on the edit program
    • The spacing and alignment on the "save", three dots, and "deactivate" buttons do not match Figma
    • The "deactivate" button does not get highlighted when you hover over it
    • The "discard unsaved pages" modal is too wide on wider screens, it should match the Figma
    • Archiving the booking does not set archived = True in the DB
    • Make sure the edit booking page is a protected route in client/src/App.jsx
    • The dropdown for the "Archive/Delete" in the deactivate program modal does not match design (see bottom)
  • Archived program page

    • Some components do not match the Figma (these might have been from the original page, but they should still match)
      • Filter button
      • Location of the "..." next to "save"
      • The popup for deleting (see below)
    • When hovered or pressed, the buttons in the popover do not work like regular buttons
    • Line 133 of client/src/components/programs/Program.jsx has a lot of commented code

This was not in the original Figma but could you update:

  • When "duplicate" is pressed, get the new id of that duplicate event and direct to that page

  • Backend endpoints (make sure to update endpoint names as well as all places they are called)

    • bookings/event/rooms/:id should be named differently (maybe /bookings/displayData/:id or something)
    • bookings/event/:id should be named differently as well
      Name these not based on the data they find, but instead their purpose

Good work so far guys, let us know if you have any questions!

image image image image image

Copy link
Collaborator

@theNatePi theNatePi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes Requested

@theNatePi
Copy link
Collaborator

theNatePi commented Feb 23, 2025

Hey @kaitlinnleung @sindhujagorti, there are still some fixes which need to be made:

  • Archiving the booking does not set archived = True in the DB
  • After archiving a booking, I am redirected to http://localhost:3000/programs/null
    • Please make sure to test your fixes in PgAdmin
  • Edit booking page should be a protected route
  • Backend endpoints (make sure to update endpoint names as well as all places they are called)
    • bookings/event/rooms/:id should be named differently (maybe /bookings/displayData/:id or something)
    • bookings/event/:id should be named differently as well
  • The "duplicate" button on the archived program screen does not seem to work

Please make sure all fixes are implemented, and let us know when you are ready for review!
Let me know if you have any questions

@theNatePi theNatePi merged commit a7ea189 into main Feb 24, 2025
1 check passed
@theNatePi theNatePi deleted the 68_Kaitlin_Sindhuja branch February 24, 2025 09:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modify booking page and Update single program page
4 participants