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

Feat/UI to create new events #37

Merged
merged 14 commits into from
Oct 17, 2024
Merged

Feat/UI to create new events #37

merged 14 commits into from
Oct 17, 2024

Conversation

alvaro1080
Copy link
Contributor

@alvaro1080 alvaro1080 commented Oct 16, 2024

An UI to create new events

The objective of this pull request is to add a new screen that will be used to create and add a new event to a given park. I tried as much as possible to make sure that the interface is easily usable on a smartphone. This is the reason why a slider is used for the selection of the maximum number of participants of an event. The selection of the date selection is improved to also allow the user to pick a specific hour of the day, since it is important to have a clear hour for the events.

The UI is not totally functional yet, as it will need a viewModel for the parks and one for the events in order to be able to use Firebase. Those viewModels should be available soon.

Features

  • two text field to specify the name and the description of the event
  • A "time selection" composable, that can be used to first select the date, and then the hour of the event
  • A slider to select the maximum number of participants

Objective of the PR
In addition of any improvement you might suggest, I would really appreciate a feedback about the user experience. In particular, do you think that this UI is easily usable on a smartphone? (If anyone could try on a real device, I think it could be useful)

Screenshots
image

image image

@alvaro1080 alvaro1080 linked an issue Oct 16, 2024 that may be closed by this pull request
2 tasks
@alvaro1080 alvaro1080 marked this pull request as ready for review October 16, 2024 17:46
@alvaro1080 alvaro1080 changed the title Create an UI to create new events feat/UI to create new events Oct 16, 2024
@alvaro1080 alvaro1080 changed the title feat/UI to create new events Feat/UI to create new events Oct 16, 2024
@alvaro1080 alvaro1080 self-assigned this Oct 16, 2024
@alvaro1080 alvaro1080 added the Enhancement ✨ New feature or request label Oct 16, 2024
@alvaro1080 alvaro1080 added this to the Milestone M1 milestone Oct 16, 2024
Copy link
Contributor

@Alex720p Alex720p left a comment

Choose a reason for hiding this comment

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

Really clean code, tests and UI!
However there's a few things that need change:

  • modify the naming and place of the constants
  • review how the events are modified or be clear with the rest of group how we pass events to the composable (i.e by copy if we keep the code like this) Mixed things up, it's not an issue
  • Change the logo for the time input to remove ambiguities
  • Make it so the UI informs the user when an invalid date is used as input

Copy link

@alvaro1080 alvaro1080 merged commit 6e25f34 into main Oct 17, 2024
2 checks passed
@alvaro1080 alvaro1080 deleted the feat/implement-event-ui branch November 2, 2024 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement ✨ New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement an UI to be able to add an event to a given park
2 participants