-
Notifications
You must be signed in to change notification settings - Fork 0
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
Sk ja create edit programs #76
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great progress so far! will make more reviews tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking great so far guys! jamie made some good points, but other than that lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for addressing all the changes! mind taking a look at the failing check?
nit: non-functional changes should be kept separate from functional changes (ie. .github and prettier, white space changes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! submitted a couple bits of feedback, lmk if you agree
lib/components/header/index.tsx
Outdated
<Flex flexDir={'row'} justifyContent="space-between" mb={'3px'}> | ||
<Heading>{header}</Heading> | ||
{hasButton ? ( | ||
<Button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps a separate functional component would be helpful here so you can name this button, because right now I'd have to dig where this is called to figure out the context/meaning of the button
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to this!
I think they're as abstracted as they should be rn, the only similarity between the two is that they use the same form which we abstracted into |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still reading through this! lg so far
… sk-ja-create-edit-programs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found some last couple things! i think we can get this merged as soon as we resolve these comments
lib/components/header/index.tsx
Outdated
<Flex flexDir={'row'} justifyContent="space-between" mb={'3px'}> | ||
<Heading>{header}</Heading> | ||
{hasButton ? ( | ||
<Button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 to this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omg fantastic work @saahilkumar and @ja0911! Please respond to the comments and you can decide whether or not you want to merge what we have now, or update the formatting
</Flex> | ||
</Container> | ||
<> | ||
<CreateProgramModal modalManagement={createProgramModalManagement} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm ok with changing it, don't really have a preference. It's just like that cuz the header was recently changed to not have the line go all the way to the end
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think Al fixed the october events so that the line extends all the way to the end bc of Jamie's PR comment about that, so can we stay consistent :3
_hover={{ textDecoration: 'none' }} | ||
_focus={{ outline: 'none' }}> | ||
<> | ||
<EditProgramModal modalManagement={editProgramModalManagement} /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small thing but I want to know your thoughts: In the Figma designs, we don't have a version with both buttons yet since the Admin version technically can't see the button
Figma Comparison
![image](https://user-images.githubusercontent.com/71473137/200030680-d4fe71c8-fae8-45e2-adc7-c00e9a94b669.png)
Seems like it would make sense to keep the Register here button on the Admin version
Should we distance these buttons or add an "edit" icon to make them look more distinct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving this so you guys have the option of merging, but check out this slack thread regarding using icons
40eb8af
I can add the icons in tomorrow probably |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
amazing guys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is literally fire! great job @ja0911 and @saahilkumar
ℹ️ Issue
Closes #59
📝 Description
Implemented UI for Admins to create and edit events in the Programs page
✔️ Verification
Tested functionality and UI on local server
🏕️ (Optional) Future Work / Notes