Claude Code for Product Designers
Lesson 19 of 49, 0 of 49 lessons completed
Sign in
Watch on YouTubePlay

Plays from YouTube. Google's privacy policy (opens in a new tab) applies.

Up next

2.5 A branch and your changes

Next lesson in 8 s

2.4 Design the next feature

Adam briefs Claude in plan mode to build the My bookings view from a Figma frame, answering its questions to fill the gaps for phones. Then he tests the feature by hand and has Claude add dummy bookings to test with.

What you'll learn

  1. Break a project into smaller chunks and give Claude one at a time; the more you give at once, the harder it is to get every detail right.
  2. Start new work from a fresh session on the latest main.
  3. Copy a link to the exact Figma frame (Cmd+L or "Copy link to selection") so Claude doesn't wander the file and waste tokens.
  4. A bigger model and higher effort for planning a new feature; plan mode; ask Claude to ask questions and to delegate to sub-agents.
  5. Claude's questions are product questions: phone navigation, defaults, empty states, past bookings, card component reuse. Pick the recommended option or write your own.
  6. Claude can catch mistakes in your Figma file (a wrong component variant).
  7. npm run dev builds pages on demand with hot reload; npm run start builds first and serves like Vercel, which is better for judging performance.
  8. Ask Claude for dummy data to test with; reset the app's data by deleting rows in Chrome DevTools → Application → Local storage.

Chapters

  1. 00:00The My bookings design in Figma
  2. 02:21Briefing Claude in plan mode
  3. 04:46Claude explores with sub-agents
  4. 06:43Answering Claude's questions
  5. 12:17Claude catches two issues
  6. 15:09Testing the feature by hand
  7. 17:23Adding dummy bookings to test
  1. 00:00Okay, now. So, we have our repository live on GitHub.
  2. 00:04We have our application deployed and hosted on Vercel.
  3. 00:07Let's now take a look at this new feature we are going to be building in our application.
  4. 00:13And as we are going to be working on this, we are going to also observe how our workflow is going to be different from that first implementation.
  5. 00:21Meaning how does working with Git looks like in practice and how Vercel is going to be building live previews for the work we do.
  6. 00:29Okay, so I'm back in Figma and I'm going to select the booking view because that is [snorts] ultimately what we are going to be adding here.
  7. 00:36We could have of course, you know, build the entire application from the ground up during that first initial prompt that we did in the previous module, but you know,
  8. 00:47that would increase our chances of having like like more things to iron out.
  9. 00:53Well, the more you give to Claude, the harder it gets to get every single detail right.
  10. 00:58This is exactly why it's generally a wise idea to try to break down your project into smaller chunks and also ask Claude to work on them one by one.
  11. 01:10So we did the initial parking view as the step one.
  12. 01:13Then in step two, we have created a subsection to create a mobile view for which we don't have designs in this Figma whatsoever.
  13. 01:20And then now we are going to go and implement this view that allows me to preview all of my bookings from the past and the ones that are upcoming.
  14. 01:30So the way for me as a user to get into this view is by going over here, clicking into like adding like a new label which would also act
  15. 01:40as a top and allowed this would allow me to switch into this my bookings view.
  16. 01:45Over here in the sidebar, we have a couple of predefined periods like all time or the bookings from this week.
  17. 01:52And clicking on those is going to filter a list of all of my bookings which are now presented in a form of this list.
  18. 01:59We are to be reusing the parking spot card component, but we are going to treat it a little bit differently, uh so that, you know, it reads as a
  19. 02:08list. But then, you know, the side panel, it works exactly the same way as before, meaning uh whichever spot or reservation you're going to click on, uh we are
  20. 02:17going to show you the details for this uh over here on the in this panel.
  21. 02:22Um so with this uh I'm going to go ahead and copy a link to this particular frame.
  22. 02:29Again, I'm just making sure this is what I have in my selection.
  23. 02:32I can either just do command L or right click and copy link to selection.
  24. 02:38And with that link copied in put my clipboard, I'm going to start a new session while making sure that I am in the Tonik Parking Course folder, of course.
  25. 02:48Uh I can also double check by going into this folder and I can confirm that I am indeed starting off in an in the main branch, okay?
  26. 02:57Uh so this is just to make sure that we always, you know, start off uh whatever we do, we always start off on the most recent, the most fresh
  27. 03:06uh copy of the like main branch.
  28. 03:10Um right. Okay, because this is a new implementation, I'm going to switch over to Opus 5.5 and I'm going to set the reasoning on high.
  29. 03:21I'm going to switch over to the plan mode um and then I 'm going to paste the link and I 'm going to uh try using dictation.
  30. 03:30Let's see if it works this time.
  31. 03:32Um Claude, um in this session I would like you to help me implement the my bookings view to which you as the user can get into um using tabs
  32. 03:42in the left hand side column.
  33. 03:45Um I have a Figma design for the desktop version of the application and I'll need your help to help me fill out the gaps and um considering our current
  34. 03:57mobile layout, uh figure out um how this page can look like on mobile devices.
  35. 04:05I need you to do a proper exploration and planning.
  36. 04:10I'm expecting you to ask me questions and I would like you to use sub agents to delegate different phases of the implementation to the sub agents.
  37. 04:25Okay, let's see if I got everything right.
  38. 04:29Claude in this session okay.
  39. 04:32Right. Right. Okay, yeah.
  40. 04:38So that's it. I think this is okay for now.
  41. 04:46Yeah, let's go ahead and hit site.
  42. 04:48So we're going to start off in that main branch as I said before, but as Claude is doing the exploration, I'm expecting to see the plan mentioning the fact
  43. 05:01that it's going to eventually before we start building, it's going to create a new branch and it's going to actually commit this work on on this other branch, okay?
  44. 05:13So because it's a plan mode, it's going to ask for our permissions to use Figma and whatnot.
  45. 05:18So let's be patient and let's bear with Claude during these initial couple of turns and let us just have him do the proper exploration.
  46. 05:29Okay? Okay, I can see it has also went ahead and checked out the mobile page in Figma.
  47. 05:37Yeah, sometimes it's it's going to do that.
  48. 05:39As much as possible, I always try to copy and paste a link to a very specific thing in my selection just not to have Claude wandering around my Figma
  49. 05:48file wasting tokens. Yeah, but sometimes you know the curiosity it just can be can be stopped.
  50. 05:57Okay. I'm going to give it to him this time.
  51. 06:00Okay, and again, one more thing to point out, we have this background task happening here.
  52. 06:05Um, so this is that thing which I mentioned a while ago.
  53. 06:09Um, Claude wanted to um, wanted to be mindful of the context window here.
  54. 06:16And so it it has actually created a sub agent for its own.
  55. 06:20Um, and and delegated the code exploration to that sub agent.
  56. 06:25Uh, and that sub agent just came back to our main agent with just a plain text summary of what we are working with.
  57. 06:33Which is a good thing.
  58. 06:35Basically. Saves down on tokens.
  59. 06:39Okay, and we have the questions.
  60. 06:41So let's go ahead and take a look.
  61. 06:44So the first question on phones, there is no left hand column.
  62. 06:47Where should the book a space slash my booking switch live?
  63. 06:50That is a very good question.
  64. 06:52Um, again going back to our desktop view.
  65. 06:55So the plan for the desktop is to have this tab switcher live over here in the left hand side column.
  66. 07:00But if we go into this mobile design, um, yeah, there is no there is no left hand side column because we use this as a like horizontal scroll strip.
  67. 07:12So let's see what kind of options Claude is suggesting here.
  68. 07:16Uh, row under the header.
  69. 07:18Same two text tabs as on desktop.
  70. 07:21Um, okay, inside the header bar or a bottom bar.
  71. 07:25You know what? I think like the bottom bar is uh, is probably the most natural pattern that we could um, that we could like latch onto in terms of
  72. 07:35mobile experiences. So I'm going to go with the with the bottom bar.
  73. 07:39It's also like quite convenient to use uh, with your thumb.
  74. 07:44Um, how should my bookings work on phones?
  75. 07:47Picking a period and then the list.
  76. 07:49Um, so yeah, it should be basically the same pattern as we have right now on when you try to like book your spot.
  77. 07:57Um, so chips loose full with cards.
  78. 08:00I guess it tried to make a bit of a mock up, but I am it seems to be somewhat malformed.
  79. 08:07Let's see. So period all the time.
  80. 08:10Right. Okay, so I'm going to go with that recommended option because that will is going to um fit really nicely with the way we have the experience for when
  81. 08:20you actually want to book a spot.
  82. 08:22Oh, let's see what's the next question like.
  83. 08:23Um, what should happen with bookings?
  84. 08:26Uh, what should happen uh with bookings when uh whose date has already passed?
  85. 08:32Um, so we should definitely keep them visible, but they should be view only and this actually matches um like what I had in mind previously.
  86. 08:40So I'm going to leave it at the recommended recommended answer.
  87. 08:45And then the last question here is which order should the day groups be in?
  88. 08:49Uh, the Figma shows the latest date at the top.
  89. 08:53Friday, Thursday, Wednesday. Um, and yes, we should definitely sort them by like the newest first.
  90. 08:59So the upcoming are first and then the ones in the past are listed below that.
  91. 09:03Um. So where which is going to be the OMs?
  92. 09:11It is actually going to be that second option.
  93. 09:14Uh, so latest date at top of Figma.
  94. 09:17Yep. Okay, with these questions out of the way, uh let's wait around and see um what is the plan going to be.
  95. 09:28Okay, seems like we have four more questions.
  96. 09:30Wonderful. Uh, let see.
  97. 09:33How should the new mobile button mobile bottom tab bar look like?
  98. 09:37It's not in Figma.
  99. 09:38That's true. And um so it's going to add it to the components gallery for review.
  100. 09:43Yeah, that page that Claude asked like that Claude did at the beginning which I didn't ask it to which is nice I guess.
  101. 09:49Um, black fill on active.
  102. 09:51Uh, recommended. Um, hmm.
  103. 09:53Okay. You know what?
  104. 09:56I'm going to go with the recommended option.
  105. 09:57I'm just going to see how it looks like.
  106. 09:58Um, you know um we can iterate on this if we want.
  107. 10:02Anyway. Um, which period should be selected when you open the my bookings?
  108. 10:07Uh, yeah. Exactly as in Figma.
  109. 10:09um this week. So um or you know what, on a second thought I think I'm going to go with close recommended option actually.
  110. 10:22Uh all time yeah it might be possible it might be totally possible that you know I have any bookings uh within the last seven days.
  111. 10:28So I think the all time might be actually more uh uh might be just better all around option.
  112. 10:36Okay uh what should the booking card say um in Figma they show reserve plus your first name which is always you on the screen.
  113. 10:45Exactly we want to keep it as in Figma um because we want to reuse the same component between these two screens.
  114. 10:53So uh this time I'm actually going to go for the other option I'm going to make sure this is extra clear.
  115. 10:59Uh I want want you to keep it uh as we have it uh in Figma as I am looking to reuse the same uh let me find the name
  116. 11:13of this component um I'm looking to reuse the same uh parking spot card component.
  117. 11:24Parking spot card component across both views.
  118. 11:33I'm going to submit let's see what's the last question.
  119. 11:36What should an empty list look like uh when there are no bookings?
  120. 11:40Um I guess a message plus a back plus a book button is okay for now.
  121. 11:45Let's see how it's going to turn out and we can iterate on this if we want.
  122. 11:49Um it's a lot faster just coming up with that first view uh and letting Claude fill out the gaps and then just seeing you know what needs to be
  123. 11:59refined. Um so yeah uh another round of question uh is now um answered.
  124. 12:07Let's see if there are any other questions.
  125. 12:10Now it seems like Claude is going to proceed straight to uh creating that implementation plan.
  126. 12:15So, let's see how this is going to look like.
  127. 12:18Okay, so it seems like we have a sub agent actually creating uh the final plan.
  128. 12:24We can preview the work uh by just going into this background task and clicking on this.
  129. 12:28We can see Claude has spawned another Opus 5.5 model to take care of just uh um to just take care of the plan.
  130. 12:36So, let's give it a second.
  131. 12:39Okay, the planning agent has finished and it has surfaced two more questions for us to look at.
  132. 12:44The first one is pretty interesting.
  133. 12:46So, Claude says that because we decided not to go with any sort of proper back end here, which makes sense.
  134. 12:53We are just building a proof of concept at this point.
  135. 12:56Um the initial implementation, at least in my case, in your case it may be different, um has been created in such a way that um well uh my bookings
  136. 13:06are assigned to me simply because I have tied in like a very specific name over here in the name field.
  137. 13:12And Claude flags that um if we were to uh if we were to just follow the Figma implementation, if I then go and change this, you know, Jack Black
  138. 13:20in this case in Figma to something else, uh well then this implementation or this booking space is going to disappear from my bookings view because again, just for the
  139. 13:30time of having no back end over here, we are uh assigning booking places uh like booking uh spot bookings to me simply because of this matching name.
  140. 13:41Now, this is a temporary problem.
  141. 13:43So, I'm going to and Claude is asking me, by the way, if um we should therefore make the name be just read only.
  142. 13:50I don't think that is uh something we should do.
  143. 13:52I'm going to leave it editable as in Figma uh because, you know, if we ever decide to take this application a step further, uh we are going to have
  144. 14:00a proper back end anyway.
  145. 14:01So, it wouldn't really matter.
  146. 14:03Um and then the next question is um actually I made a bit of a mistake here in Figma and Claude was right to notice it.
  147. 14:11So, over here I'm using a wrong variant of the parking spot card to um sort of style it as selected.
  148. 14:20It should be it should be booked and it should be active, so it should look like this.
  149. 14:25Uh and this is what Cloth has flagged.
  150. 14:26And I'm going to I'm going to um like agree with it.
  151. 14:30I'm going to say yes, just use the variant that we should be really using.
  152. 14:34Uh so I'm going to hit submit.
  153. 14:37And um hopefully uh you know we will going to proceed to um like start the actual implementation.
  154. 14:46Okay, the plan is here.
  155. 14:47I have read through most of it.
  156. 14:50It lists out all of the files that are going to be new and changed and affected.
  157. 14:55Um the breakings are into phases sound solid.
  158. 14:58I'm just going to go and hit accept and use auto mode.
  159. 15:02And I'm going to close this thing here and we are going to wait and see um how this implementation is going to turn out.
  160. 15:09Okay, the implementation is ready to be reviewed.
  161. 15:12Uh awesome. So let's go ahead and see.
  162. 15:15I'm going to so the Cloth has started a new dev server for me over here.
  163. 15:20Uh so I'm just going to open this up.
  164. 15:22I actually have it right here in my browser.
  165. 15:25Uh let's see. I can see we have the my bookings page.
  166. 15:28Let's see if it works as a tab.
  167. 15:30It does indeed. I wasn't really a fan of that you know brief uh you know flashing for a second.
  168. 15:38Uh but I'll let it slide for now.
  169. 15:41Uh okay, it seems like it's rendering.
  170. 15:43So that is a common thing uh when you have the npm run dev command in the background.
  171. 15:48Um a reminder that what this command does, it's running this application locally in a way that like builds um all of your views sort of on demand.
  172. 15:57It serves them on demand as you click on though on them.
  173. 16:00Uh which might not be the best um um this might not be the best representation of how your application is actually going to behave um uh like on a
  174. 16:10live deployed application uh or server like like Vercel.
  175. 16:15Um if testing the performance of the application is important you, there is a different command we could use.
  176. 16:21And this command is npm run start.
  177. 16:26That is going to build the application first and then it's going to deploy it just like Vercel would.
  178. 16:32But yeah, for now I'm just going to leave it at npm run dev because I want to have that hot reload whenever we change anything about the application.
  179. 16:40I want to see these changes being reflected live in my browser.
  180. 16:44Okay. So we are in the my bookings view.
  181. 16:48Okay, let's see. I don't have any bookings.
  182. 16:51I'm not a fan of the way this empty state looks like, but that's okay.
  183. 16:54We can totally iterate on this in a second.
  184. 16:58And it seems like I'll need to make some bookings too or some reservations to actually see it working live.
  185. 17:04So let me do confirm and book on this one.
  186. 17:07Booking confirmed. And now I expect for this booking to be present over here.
  187. 17:11Awesome. Let me click into this.
  188. 17:14It seems like I can totally click into this booking and it works great.
  189. 17:20Now I would love to be able to test like my past bookings from let's say last month, but I don't have any local data to do this.
  190. 17:29So I'm going to go back to Claude and I'm just going to ask it to add some dummy reservations that I so that I can review if this system
  191. 17:38works. Okay, thank you.
  192. 17:41In order for me to be able to review the application, can you add some past bookings from let's say a month ago and also a couple of upcoming bookings
  193. 17:53attached to my active account?
  194. 17:59I'm going to actually do this.
  195. 18:05Okay. And in a sec Claude should be able to update the file in which we have the dummy data.
  196. 18:12And let's see if I'll be able to test this a little bit better.
  197. 18:17Okay, and it's back.
  198. 18:19Let's go ahead and I'm going to refresh this page.
  199. 18:24Okay, seems like I am still looking at just one booking.
  200. 18:28Let me do a hard refresh.
  201. 18:30Um, okay, nothing really changes.
  202. 18:33So in that case, what I'm going to do is I'm going to go into inspect in my Chrome browser.
  203. 18:38I'm going go into um application and I'm going to reset uh re um Okay, it seems like we don't have uh we don't have any session storage.
  204. 18:52Oh, we do have local storage.
  205. 18:54So I'm what I'm going to do is I'm going to um head over here into this application tab and I'm going to select each row and I'm going to
  206. 19:02delete my local storage uh so to force the application to like regenerate.
  207. 19:09Uh, okay. So seems like even though I don't have any local storage, there are no booking that account is test user.
  208. 19:21Uh, okay. Let's see.
  209. 19:25Uh, right. Okay. So it has actually set that over here.
  210. 19:37I'll need to open this up in this particular browser because Claude has added these bookings but to like a test user and not the user that I happen to
  211. 19:46have over here in this older browser.
  212. 19:49Uh, okay, that took me a while to figure out but I'm home now.
  213. 19:52Let's see. Okay, let me first check out the upcoming bookings.
  214. 19:56So this one from November 20 is upcoming and I can totally save, change or edit it, which is great.
  215. 20:04Let's check out some of the bookings from the past like November 3rd and yes, I cannot delete that booking or change it, which is the intended behavior.
  216. 20:13So that is looking great.
  217. 20:14Let's make sure that you know, when I change anything about my upcoming booking that this change is going to last.
  218. 20:20So I'm going to Okay, I'm not going to change the test user.
  219. 20:22I'm going to change the um I'm going to change the license plate.
  220. 20:26I'm going to hit save.
  221. 20:27I'm going to come back.
  222. 20:28Okay, seems like this change is uh now preserved.
  223. 20:32I'm going to add a note to the second booking.
  224. 20:35Uh let's say I'm going to change it to 11.
  225. 20:37I'm going to go back to booking space, refresh, go back to bookings.
  226. 20:42Uh let's see. Okay, seems like the implementation is sound uh from like a functional uh standpoint.
  227. 20:50There are some things that I would love to iron out uh from like a UI and UX standpoint, but um this is something we can tackle in another video.
  228. 20:59And also this is when we are going to talk about working with commits.
  229. 21:04So I'll see you in the next video.
  230. 21:05Thank you.

The cheat sheet is for signed-in viewers. Inside: the lesson's prompts ready to reuse, the commands and shortcuts, useful links and what to watch out for.

Sign in to get the cheat sheet

Loading the cheat sheet…