Closed technophile-04 closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
grants-bg | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 12, 2024 2:52pm |
Thanks @technophile-04!!
At first, I thought about an admin route for this, but this makes sense too.
NOTE: We need to add index on "approvedAt"
Just created it, it's building atm.
Question: How is the new page being cached? I think we want it to be fresh all the time.
Oh, let's add a link to the new page in /admin! (maybe on the right corner? above completed grants)
At first, I thought about an admin route for this, but this makes sense too.
Yeah even I had this in my mind but while tackling realised that it was already public so kept it as it.
Question: How is the new page being cached? I think we want it to be fresh all the time.
Ohh shit nice catch! actually it was completely static :
Update at https://github.com/BuidlGuidl/grants.buidlguidl.com/pull/134/commits/26df0c3b6424659abc1f7345f3329bc27131d434 so get always fresh data.
let's add a link to the new page in /admin! (maybe on the right corner? above completed grants)
Yup, update at https://github.com/BuidlGuidl/grants.buidlguidl.com/pull/134/commits/20448e5063e73172f0ccaf27bf521c55929d5eda :
Not sure whats the best place, maybe we keep it at Header instead? and show only when admin is logged in?
Ohh shit nice catch! actually it was completely static :
I always forget how caching works in NextJS app router. But my mental model is that if you don't do anything explicit, probably the stuff is going to be cached :D
Not sure whats the best place, maybe we keep it at Header instead? and show only when admin is logged in?
I moved it here for now. Seems like a decent place that doesn't get in the middle.
Now that I'm seeing my pic I see that I missed the margin on the completed grants. Will hotfix :D
Description:
Currently we were showing full list of active grants in landing page itself in the table view. This PR's limit grants displayed on home page to 8 and then creates
/active-grant
page with cards view.https://github.com/user-attachments/assets/8fe099a0-2b41-43c6-b272-211d36781ce6