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

Implementation of Discord invite link display and feedback mechanism on /intro page #901

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from

Conversation

Achintya-Chatterjee
Copy link
Member

@Achintya-Chatterjee Achintya-Chatterjee commented Aug 17, 2024

Date: 18th August, 2024

Developer Name: @Achintya-Chatterjee @rishirishhh


Issue Ticket Number:-

Description:

This PR addresses the requirements outlined in issue #900 and implements the following features for the /intro page:

  • Superusers can now approve or reject new user applications directly from the /intro page.

  • Added a text box where superusers can provide feedback when rejecting an application.

  • When an application is accepted, RDS Discord server invite link is generated and displayed to the user on the intro page of a particular user followed by their userId.

  • Users can copy the Discord invite link or open it in a new tab.

  • Users see the status of their application on the /intro page, along with any feedback provided by the superuser.
    Is Under the Feature Flag

  • Yes

  • No

Database changes

  • Yes
  • No

Breaking changes (If your feature is breaking/missing something please mention pending tickets)

  • Yes
  • No

Is Development Tested?

  • Yes
  • No

Tested in staging?

  • Yes
  • No

Add relevant Screenshot below ( e.g test coverage etc. )

…ith copy option

- Implemented approveAction to generate a Discord invite link for approved users.
- Added the invite link display in the template with a button to copy the link to the clipboard.
- Styled the Copy Link button and integrated it with existing button styles.
- Ensured the invite link opens in a new tab when clicked.
Copy link

cloudflare-workers-and-pages bot commented Aug 17, 2024

Deploying www-rds with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1ecdcda
Status: ✅  Deploy successful!
Preview URL: https://6b17dad5.www-rds.pages.dev
Branch Preview URL: https://feat-discord-link.www-rds.pages.dev

View logs

joyguptaa

This comment was marked as resolved.

yesyash and others added 7 commits August 18, 2024 20:28
integrate api to approve / reject a application
fix super user feedback text area styling
…tance in /intro page

- Added functionality to generate Discord invite link when an application is accepted.
- Display the invite link to the new user on the /intro page if their application is accepted.
- Handle errors and provide feedback via toast notifications.
…isplay

- Refactor intro page template to conditionally display content based on user role and application status.
- Remove debug information from the intro page view.
- Ensure that regular users can only see their own intro data, with appropriate messages for accepted, rejected, and pending statuses.
- Allow superusers to review and update application statuses with relevant feedback.
@Achintya-Chatterjee Achintya-Chatterjee changed the title added approve and reject buttons with a feedback box Implementation of Discord invite link display and feedback mechanism on /intro page Aug 19, 2024
@Achintya-Chatterjee Achintya-Chatterjee changed the title Implementation of Discord invite link display and feedback mechanism on /intro page Implementation of Discord invite link display and feedback mechanism on intro page Aug 19, 2024
@Achintya-Chatterjee Achintya-Chatterjee changed the title Implementation of Discord invite link display and feedback mechanism on intro page Implementation of Discord invite link display and feedback mechanism on /intro page Aug 19, 2024
@Achintya-Chatterjee Achintya-Chatterjee changed the title Implementation of Discord invite link display and feedback mechanism on /intro page Implementation of Discord invite link display and feedback mechanism on /intro page Aug 19, 2024
@rishirishhh rishirishhh removed their assignment Oct 18, 2024
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.

Get discord link on the /intro page
5 participants