aadeshkulkarni / figuringout

Thought Journal | NextJS | MongoDB | Shadcn
https://figuringout.life
MIT License
97 stars 96 forks source link

Fix issue 256: Bugfix | Tags with 0 posts #259

Closed vverma022 closed 2 weeks ago

vverma022 commented 3 months ago

Topic Slider Changes

Description

Fixes the Bug where the Topic's with 0 posts are not shown in the topic slider and the slider is sorted in descending order.

Resolves #256

Type of Change

Changes

Screenshots/Recordings

Checklist before requesting a review

Additional Notes

The reason for such is hybrid approach is because when the backend route was implementing the filter to send only topics with > 0 posts other components which are using that route were affected for example the component which lets you select which topic a post should be associated with etc.

vercel[bot] commented 3 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
medium-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 27, 2024 7:27pm
aadeshkulkarni commented 2 months ago

@vverma022 - The tags slider isn't shown even though the API returns data.

Screenshot 2024-09-04 at 12 22 50 PM
vverma022 commented 2 months ago

@vverma022 - The tags slider isn't shown even though the API returns data.

<img alt="Screenshot 2024-09-04 at 12 22 50 PM" width="1796" src="https://private-user-images.githubusercontent.com/67855887/364256769-5a7916d2-793b-4a12-84f2-f221f67cdbbd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU5ODc1NDgsIm5iZiI6MTcyNTk4NzI0OCwicGF0aCI6Ii82Nzg1NTg4Ny8zNjQyNTY3NjktNWE3OTE2ZDItNzkzYi00YTEyLTg0ZjItZjIyMWY2N2NkYmJkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEwVDE2NTQwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThjNWI2NWEwNGM5YWYwMWFiMDg3YjZhM2VhMWQ1YTAwMTU2ZTI5NTBhMTA5MzBmYWNiNmNjZDhkYWZhYzU1ODcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.nyJ4Ab

https://github.com/user-attachments/assets/ae9a9142-1aff-43d7-a8da-e78625000100

FYA3e0aYIGg7uqnFC89d5rAuelj6s_7Fyvqq4">

I can't seem to find the problem as it's working fine for me. I'm able to filter the tags and show only the ones with posts > 0 and in desending order.

aadeshkulkarni commented 2 weeks ago

frontend undergoing redesign. this is paused for the moment. apologies.