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

Han event expanded view component issue 11 #31

Merged
merged 52 commits into from
Feb 11, 2024

Conversation

HanYu-Wu04
Copy link
Collaborator

Developer: HanYu Wu

Closes #11

Pull Request Summary

Created expanded view client component and its parent component which serves as a mock data setup to showcase the EventExpandedView Component. toggleModal function is created for better modal control, content section is conditionally rendered to appear only when showExpandedView is true, which happens when clicking on the expanded icon, collapsing when clicking on the X. Sign up options, edit, and delete feature are also conditionally rendered based on the user state, everything are styled for better mobile-friendliness by utilizing Chakra UI's responsive utility.

Modifications

Added a ExpandedViewComponent.tsx, YourParentComponent.tsx, added ChakraProvider in Providers.tsx

Pull Request Checklist

  • Code is neat, readable, and works
  • Comments are appropriate
  • The commit messages follows our guidelines
  • The developer name is specified
  • The summary is completed
  • Assign reviewers

Screenshots/Screencast

Screen Shot 2024-01-27 at 4 53 48 PM Screen Shot 2024-01-27 at 4 53 56 PM Screen Shot 2024-01-27 at 4 54 07 PM

Copy link
Collaborator

@javalosr2004 javalosr2004 left a comment

Choose a reason for hiding this comment

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

When I tried the demo with , the css stylings started overlapping on lower resolutions.
image

Copy link
Collaborator

@javalosr2004 javalosr2004 left a comment

Choose a reason for hiding this comment

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

Nice job on fixing the media query for medium screen view ports, however, the overlap continues to show on smaller viewports, I went ahead and fixed this, I believe you will have to run git pull in order to see the changes, but can you make it so that the buttons are a little bigger on viewport sm.
image

@HanYu-Wu04
Copy link
Collaborator Author

Screen Shot 2024-01-28 at 3 09 06 PM

I think now it looks better in small viewports, let me know if there is any adjustment you felt needed.

Copy link
Collaborator

@javalosr2004 javalosr2004 left a comment

Choose a reason for hiding this comment

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

I don't think those changes were pushed.

@javalosr2004 javalosr2004 self-requested a review February 4, 2024 01:04
…n components and onclick to expand/collapse when clicked on anywhere of the component
…github.com/hack4impact-calpoly/slo-beaver-brigade into han-event-expanded-view-component-issue-11

Merge branch 'han-event-expanded-view-component-issue-11' of https://github.com/hack4impact-calpoly/slo-beaver-brigade into han-event-expanded-view-component-issue-11# the commit.
Copy link
Collaborator

@javalosr2004 javalosr2004 left a comment

Choose a reason for hiding this comment

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

Bugs:

  • if you click on the edit or delete or any of the buttons within the modal, it closes the modal and does the operation after opening it again.
    Improvements:
  • Can you separate the eventDetails.startTime.toLocaleTimeString, to a seperate const variable within the Page itself. possibly as multiple variables.

Copy link
Collaborator

@javalosr2004 javalosr2004 left a comment

Choose a reason for hiding this comment

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

I went ahead and fixed a cursor pointer bug you had, if you want to run git pull, but I see you created an event props, and while I appreciate the effort, there is a premade / updated one in the database folder.

@javalosr2004
Copy link
Collaborator

make sure to run git pull origin main, to stay up to date with changes, after you run git pull

Copy link
Collaborator

@javalosr2004 javalosr2004 left a comment

Choose a reason for hiding this comment

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

Amazing work Han! Your hard work has paid off! Time to merge!

@javalosr2004 javalosr2004 merged commit c463b88 into main Feb 11, 2024
1 of 4 checks passed
javalosr2004 added a commit that referenced this pull request Apr 2, 2024
…ew-component-issue-11

feat: expanded view component
@SilveerDusk SilveerDusk deleted the han-event-expanded-view-component-issue-11 branch May 18, 2024 20:37
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.

Create Event Expanded View Component
6 participants