healthyregions / SDOHPlace

Landing page and data discovery application for SDOH Place Project.
https://sdohplace.org
GNU General Public License v3.0
1 stars 1 forks source link

#181 ,#212: Created the new UI for share link and fix the html rendering issue on description #267

Closed pengyin-shan closed 2 months ago

pengyin-shan commented 3 months ago

This PR addresses issues #212 and #181. It introduces a new UI for the "Shared" function and generates a placeholder link if the description is not yet complete.

How to Test

  1. Go to the search page and select "Neighborhood Atlas."

  2. You should see that the description has been replaced with "the Link." This is because the data source for this description is not yet complete in Solr, so the HTML cannot be rendered like other result items. I have added temporary code in headerRow.tsx to create this placeholder link, which can be removed once the data is complete:

    Screenshot 2024-08-26 at 5 15 56 PM
  3. Click the "Share" button, and you should see the new UI style:

    Screenshot 2024-08-26 at 5 16 17 PM
  4. Click the "Copy" icon in the "Shared" panel. You should see a notification indicating that the link has been copied.

  5. Paste the link to a new window. You should see the same page appears.

netlify[bot] commented 3 months ago

Deploy Preview for cheerful-treacle-913a24 ready!

Name Link
Latest commit 402c2c49933f21d5cf914e2146b8034df35e4d2d
Latest deploy log https://app.netlify.com/sites/cheerful-treacle-913a24/deploys/66ccf131f9bc2400090009a7
Deploy Preview https://deploy-preview-267--cheerful-treacle-913a24.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.