Open jengkhaw95 opened 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
defaang | ✅ Ready (Inspect) | Visit Preview | Oct 7, 2022 at 4:53PM (UTC) |
Thank you @jengkhaw95.
This is a good start:
A few issues though:
What do you think of setting the initial goal to 10 questions?
Then we can describe what will happen when we have 10 approved questions. Maybe something like - "All users with at least one approved question get access to all other questions"?
Yes, it makes sense that we start with 10 approved questions. Let me work on a sample describing the goal. (Will upload it here when it's ready)
Currently, I don't have any idea about separating the landing page and the progress bar section. I'm open to suggestions for both.
@jengkhaw95 any updates?
One idea: what if we pulled the progress bar all the way to the bottom?
That way, we can have a white background there, and show the progress bar in its own distinct section - just an idea though.
Like this: https://github.com/ykdojo/defaang/pull/303
🛠️ Fixes Issue
Closes #262
➕ Changes Introduced
Added a component
QuestionApprovalProgressBarSection
and placed it on the homepage.Count of the approved questions is fetched in a
useEffect
(on mount) using supabase client in theQuestionApprovalProgressBarSection
component.📄 Note To Reviewers
Inline style (width) is used on the progress bar element as a dynamic class name like:
w-[{currentPercentage}]
does not work in tailwindcss JIT mode. ReferenceImplementation of a multi-step progress bar could be introduced in the future, as soon as the steps are defined. (Might require further discussion)
📷 Screenshots
Mobile View
Desktop View