Skip to content

Mentorship resource images#283

Open
Deejarh wants to merge 3 commits into
Women-Coding-Community:mainfrom
Deejarh:codex/mentorship-resource-images
Open

Mentorship resource images#283
Deejarh wants to merge 3 commits into
Women-Coding-Community:mainfrom
Deejarh:codex/mentorship-resource-images

Conversation

@Deejarh

@Deejarh Deejarh commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Description

This PR restores the mentorship resource page changes from #277, which were reverted in #279 due to broken resource card images, and fixes the Google Drive image loading issue.

Root Cause

The backend sends mentorship resource images as Google Drive URLs, for example:

https://drive.google.com/uc?id=<file-id>

These URLs are not reliable as direct values. In the browser, Google Drive may redirect them through download/auth flows, or return a response that is not a clean image resource. As a result, the resource cards showed broken images even though the URLs could appear to work when opened directly in Chrome.

Fix

  • Adds Google Drive image URL normalization in ResourcesCard.

  • Supports backend resource image data sent either as:

  1. An Image object with path
  2. A string image URL/path

Screenshots

Before
Screenshot 2026-06-01 at 21 22 02

After
Screenshot 2026-06-01 at 21 21 11

Type

  • Bug Fix
  • New Feature
  • Code Refactor
  • Documentation
  • Other

Related Issue

Testing

Pull request checklist

Please check if your PR fulfills the following requirements:

  • I checked and followed the contributor guide
  • I have tested my changes locally.
  • I have added a screenshot from the website after I tested it locally

@sonarqubecloud

sonarqubecloud Bot commented Jun 1, 2026

Copy link
Copy Markdown

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.

1 participant