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: implement delete facility functionality to moderation panel #917

Draft
wants to merge 21 commits into
base: main
Choose a base branch
from

Conversation

NabbeunNabi
Copy link
Contributor

Resolves #916

🔧 What changed

🧪 Testing instructions

Tests are being added in ticket #538 currently

📸 Screenshots

  • Before

  • After

This was changed since on input it was calling out backend. This would cost a lot of money as we call the database every time and that is how payment works on this project. Along with this we do not have many doctors as of now so this isn't a heavy operation for the frontend
This was updated since it is used as a button for a destructive action and in UI design red is for destructive actions
This was componentized as it can be used in the edit submission form and edit facility section. It will help keep the code a bit shorter while having consistent styling in different parts of the moderation dashboard
For the background color of gray inverted was too dark. This failed all the accessibility scores that I check on Figma with the contrast plugin. This plugin checks the scores for the Web Accessibility Initiative Guidelines. This introduces a gray that passes
Previously this function did not use the updated API call as well as the mutation had the wrong input. It should be id not deleteFacilityId
@NabbeunNabi NabbeunNabi self-assigned this Nov 25, 2024
@NabbeunNabi NabbeunNabi added enhancement New feature or request moderation panel labels Nov 25, 2024
Copy link

netlify bot commented Nov 25, 2024

Deploy Preview for findadoc ready!

Name Link
🔨 Latest commit 5718a9c
🔍 Latest deploy log https://app.netlify.com/sites/findadoc/deploys/6743c5bb397e5e0008e6671a
😎 Deploy Preview https://deploy-preview-917--findadoc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request moderation panel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add functionality to Mod Facility Form for deleting an existing facility
1 participant