A nicely designed user stats module showing daily/weekly insights tied to value user's experience can help gamify in-app activity.
I'll develop a user stats module in collaboration with Vercel's AI code generation tool called V0. Each iteration will include notes, prompts, and manual code edits. I'll also include a before and after comparison to see progress. In the end, I'll share the code so you are free to fork my work and build a user stats module for your app.
Create a user stats profile card centered on the screen that's 450x450 pixels and every element has to be contained within the boundaries of the card. Here are all the elements that should be included:
V0 created a solid foundation but used mostly white/gray backgrounds with dark text. I forgot to suggest using a dark layout to be compatible with the v1Labs design.
Let's try a design with a dark background and adjust the size to 500x450 pixels.
V0 successfully changed the size and got 90% of the colors right. I had to manually change the color of the bars and the stroke color of the icons. But V0 used Tailwind so it was easy to make the adjustments by changing a few class names.
Nice start, computer! Here are a few improvements:
V0 got about 85% of the instructions right. I had to rearrange sections, remove unnecessary labels, and fix a visual bug related to the stacked bars.
Going with 1 bar per day over a 30 day period is a little noisy. Fewer bars would be visually cleaner. I find myself wanting to explore the upvotes data.
Improvements:
V0 technically implemented all of the instructions correctly. However, some of the instructions were a little ambitious and the implementation isn't quite there. We can improve those interactions in future iterations. The only thing I manually added in this iteration is updating the avatar placeholder.
The biggest issue I have with this version is the interaction to go back in time. The button placement, label, and transition animation all need work.