-
Notifications
You must be signed in to change notification settings - Fork 90
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: Added complaint button, hidden as an easter egg 'complaint'. #791
Conversation
when opened you can write your info and submit.
…open-bus-map-search into Add-Complaint-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.
good job! do you need any help with the linting warnings?
Co-authored-by: Noam Gaash <[email protected]>
Co-authored-by: Noam Gaash <[email protected]>
@LiadOvdat5 - the frontend side looks clear and simple. 😺. |
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.
Sorry for the delay, seems like you solved all linting issues + the code seems great!
We would love to have this merged. Thank you! 👏 🥇
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.
some comments - can be fixed after merge, or be opened as a new issue
<TextField | ||
label={t('email')} | ||
name="email" | ||
value={complaintData.email} | ||
onChange={handleInputChange} | ||
fullWidth | ||
margin="normal" | ||
/> |
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.
if you'll add type=email
, then it will show better keyboard on some devices and also be more accessible.
same can be done for numbers and phone numbers
(can be done in future PR)
@@ -134,6 +134,29 @@ | |||
"coords": "נ.צ.", | |||
"hide_document": "הסתר מידע לגיקים", | |||
"show_document": "הצג מידע לגיקים", | |||
"open_complaint": "פתח תלונה", | |||
"close_complaint": "סגור תלונה", |
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.
"close_complaint": "סגור תלונה", | |
"close_complaint": "בטל תלונה", |
</form> | ||
<Button | ||
variant="contained" | ||
color="success" |
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 button will lead the user to cancel their complaint and potentially loose everything they typed
color="success" | |
color="danger" |
border: '2px solid #000', | ||
boxShadow: 24, | ||
p: 4, | ||
textAlign: i18n.language === 'he' ? 'left' : 'right', |
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.
something feels weird about this condition, are you sure it works as intended?
Loving the speed here 🙌. |
@supervxn Once the pull request is merged (you'll probably get a notification about it) the deployment process will start automatically. It takes 10 minutes on average, but sometime (rarely) it gets stuck for about a day |
@supervxn |
@all-contributors please add @LiadOvdat5 for code |
I've put up a pull request to add @LiadOvdat5! 🎉 |
is this the right fork? If so, how can I preview (without installing anything)? |
@supervxn have you seen this comment? |
I type complaint and nothing happens |
did you click on a bus icon inside the real-time map page before typing complaint? |
Also, now when this PR is merged, you can see it on production |
Got it! Thanks @LiadOvdat5 - you rock! BTW: is the form connected to somewhere already? |
not yet |
Phew. |
New Feature
Description
When opened you can write your info and submit.
to show the button, write 'complaint'
screenshots