open-sauced / hot

πŸ•The site that recommends the hottest projects on GitHub.
https://hot.opensauced.pizza
MIT License
418 stars 143 forks source link

fix(search): navigation URL path change #506

Closed sourabpramanik closed 4 months ago

sourabpramanik commented 7 months ago

Description

Changed the path name in navigating URL so now after selection of the search result from the list the user will be navigated to correct page.

And removing the filter in the dashboard won't lead the user to 404.

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

Related Tickets & Documents

This PR fixes both issues #505 and #2423 in open-sauced/app repo

Mobile & Desktop Screenshots/Recordings

fix

Steps to QA

1.go to https://hot.opensauced.pizza/

  1. type rust
  2. wait for the results, click on the first one to select it, then press Enter to navigate
  3. try removing filter now

Added to documentation?

[optional] Are there any post-deployment tasks we need to perform?

NO

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

netlify[bot] commented 7 months ago

Deploy Preview for hot-sauced-ui ready!

Name Link
Latest commit c45773c08c8e79a2e0bbc073ea4f590d443ad9d2
Latest deploy log https://app.netlify.com/sites/hot-sauced-ui/deploys/659c3441b9be0100081f1067
Deploy Preview https://deploy-preview-506--hot-sauced-ui.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

Lighthouse
1 paths audited
Performance:
Accessibility:
Best Practices:
SEO:
PWA: -
View the detailed breakdown and full score reports

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

nickytonline commented 7 months ago

As soon as I type the letter r in the deploy preview, the screen goes blank and there are errors in the console.

CleanShot 2024-01-08 at 16 06 37

supabase.ts:120 {code: '42501', details: null, hint: null, message: 'permission denied for schema public'}
overrideMethod @ console.js:213
Ou @ supabase.ts:120
await in Ou (async)
(anonymous) @ Hero.tsx:50
(anonymous) @ useDidUpdate.js:28
Ki @ react-dom.production.min.js:244
ma @ react-dom.production.min.js:286
(anonymous) @ react-dom.production.min.js:282
z @ scheduler.production.min.js:13
B @ scheduler.production.min.js:14
Show 1 more frame
Show less
react-dom.production.min.js:189 TypeError: Cannot read properties of null (reading 'length')
    at bK (Hero.tsx:114:26)
    at Lf (react-dom.production.min.js:167:137)
    at Kl (react-dom.production.min.js:197:258)
    at im (react-dom.production.min.js:292:88)
    at am (react-dom.production.min.js:280:389)
    at s0 (react-dom.production.min.js:280:320)
    at ki (react-dom.production.min.js:280:180)
    at iu (react-dom.production.min.js:271:88)
    at tm (react-dom.production.min.js:268:429)
    at z (scheduler.production.min.js:13:203)

Hero.tsx:114 Uncaught TypeError: Cannot read properties of null (reading 'length')
    at bK (Hero.tsx:114:26)
    at Lf (react-dom.production.min.js:167:137)
    at Kl (react-dom.production.min.js:197:258)
    at im (react-dom.production.min.js:292:88)
    at am (react-dom.production.min.js:280:389)
    at s0 (react-dom.production.min.js:280:320)
    at ki (react-dom.production.min.js:280:180)
    at iu (react-dom.production.min.js:271:88)
    at tm (react-dom.production.min.js:268:429)
    at z (scheduler.production.min.js:13:203)
sourabpramanik commented 7 months ago

Yes @nickytonline the supabase env variables VITE_SUPABASE_URL and VITE_SUPABASE_API_KEY are not working correctly.

I actually used the production supabase URL and API key ( from headers when you make requests ) to fix this issue 😁

bdougie commented 5 months ago

Sorry for letting this one go stale @sourabpramanik. We have some updates that will make this PR not as useful.

https://github.com/open-sauced/app/issues/2961 https://github.com/open-sauced/hot/pull/516

I am updating the URL here, but let me know if you want to continue the path of improving the experience on this project.

sourabpramanik commented 5 months ago

I am updating the URL here, but let me know if you want to continue the path of improving the experience on this project.

Sure thing @bdougie

bdougie commented 4 months ago

This PR makes this not worth pursuing as is. We would need an entirely different approach for search.

Most like something similar to app.opensauced.pizza, where we use the GitHub API directly.

https://github.com/open-sauced/app/blob/beta/lib/hooks/useSearchRepos.ts