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

Feature: add graceful fallback alternatives for img and link in toolkitpage #70

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

gurtatiLND
Copy link
Collaborator

@gurtatiLND gurtatiLND commented Dec 10, 2024

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Styling
  • Build
  • Chore

Description

  • Add graceful fallback options for missing images and links on the Toolkit page to ensure the UI remains consistent and user-friendly.

Screenshots

Screenshot 2024-12-10 at 22 05 39

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Semantic HTML implemented?
  • Checked with axe DevTools and addressed Critical and Serious issues?
  • Color contrast tested?

Added/updated tests?

Please aim to keep the code coverage percentage at 80% and above.

  • Yes
  • No, and this is why: don't need
  • I need help with writing tests

Delete branch after merge?

  • Yes
  • No

What gif best describes this PR or how it makes you feel?

alt_text

Copy link

netlify bot commented Dec 10, 2024

Deploy Preview for thingswedo ready!

Name Link
🔨 Latest commit dc38279
🔍 Latest deploy log https://app.netlify.com/sites/thingswedo/deploys/6759725f5da0a500080304a0
😎 Deploy Preview https://deploy-preview-70--thingswedo.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.

maxitect
maxitect previously approved these changes Dec 11, 2024
Copy link
Collaborator

@maxitect maxitect left a comment

Choose a reason for hiding this comment

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

Great, thanks Tanya we can close this one hopefully now, just let me know if you definetely need that commented out code or if we can remove and then I will merge

Comment on lines 19 to 28
// const isValidUrl = (url: string | undefined): boolean => {
// if (!url) return false;
// try {
// new URL(url);
// return true;
// } catch {
// return false;
// }
// };

Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
// const isValidUrl = (url: string | undefined): boolean => {
// if (!url) return false;
// try {
// new URL(url);
// return true;
// } catch {
// return false;
// }
// };
// const isValidUrl = (url: string | undefined): boolean => {
// if (!url) return false;
// try {
// new URL(url);
// return true;
// } catch {
// return false;
// }
// };

Do we need to add this commented out code? [will not block merge]

@maxitect maxitect merged commit c26b7b2 into main Dec 11, 2024
5 checks passed
@maxitect maxitect deleted the feat-img-and-link branch December 11, 2024 12:06
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