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

Converting TicketShowHandler, NewReplyFrom and NotificationsBell into functional components #5411

Conversation

Aminehassou
Copy link
Contributor

@Aminehassou Aminehassou commented May 28, 2023

With reference to #5393

What this PR does

Converts ticket_show_handler.jsx, new_reply_form.jsx and notifications_bell.jsx into functional components.
Affected Pages:

  • /tickets/dashboard/[ticket_id] (for ticket_show_handler.jsx and new_reply_form.jsx)
  • Any page that uses the main navbar (for notifications_bell.jsx)

Videos/Screenshots

Before ticket_show_handler.jsx and new_reply_form.jsx

before.refactor.ticketshowhandler.and.newreplyform.webm

After ticket_show_handler.jsx and new_reply_form.jsx

after.refactor.ticketshowhandler.and.newreplyform.webm

Before notifications_bell.jsx
with notifications:
before refactor with notifs

without notifications:
before refactor no notifs

After notifications_bell.jsx
with notifications:
after refactor with notifs

without notifications:
after refactor no notifs

Questions/Concerns

I added a small visual feature to the ticket reply box. You can now see that when the reply box is empty, the reply buttons are disabled until the user starts typing. I thought this was a nice addition so I kept it in.

@Aminehassou Aminehassou changed the title React class component refactor Converting TicketShowHandler and NewReplyFrom into functional components May 29, 2023
@Aminehassou Aminehassou changed the title Converting TicketShowHandler and NewReplyFrom into functional components Converting TicketShowHandler, NewReplyFrom and NotificationsBell into functional components May 30, 2023
@Aminehassou Aminehassou marked this pull request as ready for review May 30, 2023 00:26
@ragesoss ragesoss merged commit 7ce5b71 into WikiEducationFoundation:master May 30, 2023
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