Skip to content

Conversation

@solarmarius
Copy link

This PR implements a priority registration system that allows specific årskull (graduation year) cohorts to register for events before the general registration opens. This addresses the need to give certain year groups early access to limited capacity events.

  • Implement priority registration date and time fields
  • Add validation for prioritized years (comma-separated format)
  • Update event models with new prioritizedRegistrationDate and prioritizedYears fields
  • Show priority registration info to eligible users in EventBody component
  • Add disabling of 'classof' field in user settings if a year already is set

View for eglible member
image

View for regular members
image

View for admins when creating an event
image

- Implement priority registration date and time fields
- Add validation for prioritized years (comma-separated format)
- Update event models with new prioritizedRegistrationDate and prioritizedYears fields
- Show priority registration info to eligible users in EventBody component
- Add disabling of 'classof' field in user settings if a year already is set
minWidth={20}
onChange={onFieldChange}
/>
<TextField
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion to make it visualy the same as time and date when not in focus

Image Image

event.prioritizedYears?.includes(parseInt(userClassof)) ? (
<div>
{event.registrationOpeningDate && (
<p style={{ fontWeight: 'lighter' }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

Try to keep static styling effects in scss

- Extract inline styles to CSS modules in EventBody and EventForm
- Add placeholder prop support to TextField component
- Fix TextField label positioning with placeholder
- Improve DropdownHeader className handling
- Fix placeholder opacity visibility in text.scss
@solarmarius
Copy link
Author

  • Extract inline styles to CSS modules in EventBody and EventForm
  • Add placeholder prop support to TextField component, to allow elevated label styling when not in focus
  • Improve DropdownHeader className handling to merge classes instead of replace
  • Fix placeholder opacity visibility in text.scss

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.

2 participants