Day-16: Completed 'My Threads' and 'Bookmarks' sections for ShowwcaseXS
26 May, 2023
0
0
0
Contributors
Today is May 9, 2023. Yesterday, I worked on the global authentication of the application, and I'm happy to see that it's finished! I was a little nervous about authenticating ShowwcaseXS, but it wasn't as bad as I thought it would be.
Today, I'll be working on the Threads and Bookmarks section. This should be a relatively easy task since I already have the thread card component. I just need to check the API structure and see if I need to make any changes to the card component. Most likely, I can reuse the component as-is, but I'll need to take a look at the API structure first. I'm looking forward to making progress on these features today. I'm excited to see how ShowwcaseXS comes together!
I saw an API in the Showwcase documentation to get all the threads that I have posted on Showwcase. However, the problem is that the API also returns threads that I have replied to. I want to filter out these replies so that I can only see the threads that I have created myself.
After looking through the API structure, I found that I can filter out threads that have zero participants. This will ensure that I only see threads that I have created myself, and not threads that I have replied to. This worked perfectly fine! and now I am able to easily see all of the threads that I have created myself. Let me show you how it looks.
Next up, I need to work on the bookmark section of ShowwcaseXS. I looked at the API for the bookmark section, and it was very straightforward. I can use the thread card component directly, and it will work just fine.
I implemented the bookmark section, and it looks great! It has the same kind of threads as the other sections. It was super simple to implement since I already had the thread card component created. All I had to do was pass the API keys to the API, and it gave me a list of all my bookmarks.
That's all for today. Tomorrow, I'll be working on the notifications section of ShowwcaseXS. I'm a little excited about this section, as the design is a little unique. Let's see how it goes!
l