Watch on YouTubePlayPlays from YouTube. Google's privacy policy (opens in a new tab) applies.
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
- 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.
- Start new work from a fresh session on the latest
main. - 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.
- A bigger model and higher effort for planning a new feature; plan mode; ask Claude to ask questions and to delegate to sub-agents.
- Claude's questions are product questions: phone navigation, defaults, empty states, past bookings, card component reuse. Pick the recommended option or write your own.
- Claude can catch mistakes in your Figma file (a wrong component variant).
npm run devbuilds pages on demand with hot reload;npm run startbuilds first and serves like Vercel, which is better for judging performance.- Ask Claude for dummy data to test with; reset the app's data by deleting rows in Chrome DevTools → Application → Local storage.
Chapters
- 00:00The My bookings design in Figma
- 02:21Briefing Claude in plan mode
- 04:46Claude explores with sub-agents
- 06:43Answering Claude's questions
- 12:17Claude catches two issues
- 15:09Testing the feature by hand
- 17:23Adding dummy bookings to test
- 00:00Okay, now. So, we have our repository live on GitHub.
- 00:04We have our application deployed and hosted on Vercel.
- 00:07Let's now take a look at this new feature we are going to be building in our application.
- 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.
- 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.
- 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.
- 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,
- 00:47that would increase our chances of having like like more things to iron out.
- 00:53Well, the more you give to Claude, the harder it gets to get every single detail right.
- 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.
- 01:10So we did the initial parking view as the step one.
- 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.
- 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.
- 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
- 01:40as a top and allowed this would allow me to switch into this my bookings view.
- 01:45Over here in the sidebar, we have a couple of predefined periods like all time or the bookings from this week.
- 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.
- 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
- 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
- 02:17going to show you the details for this uh over here on the in this panel.
- 02:22Um so with this uh I'm going to go ahead and copy a link to this particular frame.
- 02:29Again, I'm just making sure this is what I have in my selection.
- 02:32I can either just do command L or right click and copy link to selection.
- 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.
- 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?
- 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
- 03:06uh copy of the like main branch.
- 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.
- 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.
- 03:30Let's see if it works this time.
- 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
- 03:42in the left hand side column.
- 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
- 03:57mobile layout, uh figure out um how this page can look like on mobile devices.
- 04:05I need you to do a proper exploration and planning.
- 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.
- 04:25Okay, let's see if I got everything right.
- 04:29Claude in this session okay.
- 04:32Right. Right. Okay, yeah.
- 04:38So that's it. I think this is okay for now.
- 04:46Yeah, let's go ahead and hit site.
- 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
- 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?
- 05:13So because it's a plan mode, it's going to ask for our permissions to use Figma and whatnot.
- 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.
- 05:29Okay? Okay, I can see it has also went ahead and checked out the mobile page in Figma.
- 05:37Yeah, sometimes it's it's going to do that.
- 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
- 05:48file wasting tokens. Yeah, but sometimes you know the curiosity it just can be can be stopped.
- 05:57Okay. I'm going to give it to him this time.
- 06:00Okay, and again, one more thing to point out, we have this background task happening here.
- 06:05Um, so this is that thing which I mentioned a while ago.
- 06:09Um, Claude wanted to um, wanted to be mindful of the context window here.
- 06:16And so it it has actually created a sub agent for its own.
- 06:20Um, and and delegated the code exploration to that sub agent.
- 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.
- 06:33Which is a good thing.
- 06:35Basically. Saves down on tokens.
- 06:39Okay, and we have the questions.
- 06:41So let's go ahead and take a look.
- 06:44So the first question on phones, there is no left hand column.
- 06:47Where should the book a space slash my booking switch live?
- 06:50That is a very good question.
- 06:52Um, again going back to our desktop view.
- 06:55So the plan for the desktop is to have this tab switcher live over here in the left hand side column.
- 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.
- 07:12So let's see what kind of options Claude is suggesting here.
- 07:16Uh, row under the header.
- 07:18Same two text tabs as on desktop.
- 07:21Um, okay, inside the header bar or a bottom bar.
- 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
- 07:35mobile experiences. So I'm going to go with the with the bottom bar.
- 07:39It's also like quite convenient to use uh, with your thumb.
- 07:44Um, how should my bookings work on phones?
- 07:47Picking a period and then the list.
- 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.
- 07:57Um, so chips loose full with cards.
- 08:00I guess it tried to make a bit of a mock up, but I am it seems to be somewhat malformed.
- 08:07Let's see. So period all the time.
- 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
- 08:20you actually want to book a spot.
- 08:22Oh, let's see what's the next question like.
- 08:23Um, what should happen with bookings?
- 08:26Uh, what should happen uh with bookings when uh whose date has already passed?
- 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.
- 08:40So I'm going to leave it at the recommended recommended answer.
- 08:45And then the last question here is which order should the day groups be in?
- 08:49Uh, the Figma shows the latest date at the top.
- 08:53Friday, Thursday, Wednesday. Um, and yes, we should definitely sort them by like the newest first.
- 08:59So the upcoming are first and then the ones in the past are listed below that.
- 09:03Um. So where which is going to be the OMs?
- 09:11It is actually going to be that second option.
- 09:14Uh, so latest date at top of Figma.
- 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.
- 09:28Okay, seems like we have four more questions.
- 09:30Wonderful. Uh, let see.
- 09:33How should the new mobile button mobile bottom tab bar look like?
- 09:37It's not in Figma.
- 09:38That's true. And um so it's going to add it to the components gallery for review.
- 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.
- 09:49Um, black fill on active.
- 09:51Uh, recommended. Um, hmm.
- 09:53Okay. You know what?
- 09:56I'm going to go with the recommended option.
- 09:57I'm just going to see how it looks like.
- 09:58Um, you know um we can iterate on this if we want.
- 10:02Anyway. Um, which period should be selected when you open the my bookings?
- 10:07Uh, yeah. Exactly as in Figma.
- 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.
- 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.
- 10:28So I think the all time might be actually more uh uh might be just better all around option.
- 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.
- 10:45Exactly we want to keep it as in Figma um because we want to reuse the same component between these two screens.
- 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.
- 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
- 11:13of this component um I'm looking to reuse the same uh parking spot card component.
- 11:24Parking spot card component across both views.
- 11:33I'm going to submit let's see what's the last question.
- 11:36What should an empty list look like uh when there are no bookings?
- 11:40Um I guess a message plus a back plus a book button is okay for now.
- 11:45Let's see how it's going to turn out and we can iterate on this if we want.
- 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
- 11:59refined. Um so yeah uh another round of question uh is now um answered.
- 12:07Let's see if there are any other questions.
- 12:10Now it seems like Claude is going to proceed straight to uh creating that implementation plan.
- 12:15So, let's see how this is going to look like.
- 12:18Okay, so it seems like we have a sub agent actually creating uh the final plan.
- 12:24We can preview the work uh by just going into this background task and clicking on this.
- 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.
- 12:36So, let's give it a second.
- 12:39Okay, the planning agent has finished and it has surfaced two more questions for us to look at.
- 12:44The first one is pretty interesting.
- 12:46So, Claude says that because we decided not to go with any sort of proper back end here, which makes sense.
- 12:53We are just building a proof of concept at this point.
- 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
- 13:06are assigned to me simply because I have tied in like a very specific name over here in the name field.
- 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
- 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
- 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.
- 13:41Now, this is a temporary problem.
- 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.
- 13:50I don't think that is uh something we should do.
- 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
- 14:00a proper back end anyway.
- 14:01So, it wouldn't really matter.
- 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.
- 14:11So, over here I'm using a wrong variant of the parking spot card to um sort of style it as selected.
- 14:20It should be it should be booked and it should be active, so it should look like this.
- 14:25Uh and this is what Cloth has flagged.
- 14:26And I'm going to I'm going to um like agree with it.
- 14:30I'm going to say yes, just use the variant that we should be really using.
- 14:34Uh so I'm going to hit submit.
- 14:37And um hopefully uh you know we will going to proceed to um like start the actual implementation.
- 14:46Okay, the plan is here.
- 14:47I have read through most of it.
- 14:50It lists out all of the files that are going to be new and changed and affected.
- 14:55Um the breakings are into phases sound solid.
- 14:58I'm just going to go and hit accept and use auto mode.
- 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.
- 15:09Okay, the implementation is ready to be reviewed.
- 15:12Uh awesome. So let's go ahead and see.
- 15:15I'm going to so the Cloth has started a new dev server for me over here.
- 15:20Uh so I'm just going to open this up.
- 15:22I actually have it right here in my browser.
- 15:25Uh let's see. I can see we have the my bookings page.
- 15:28Let's see if it works as a tab.
- 15:30It does indeed. I wasn't really a fan of that you know brief uh you know flashing for a second.
- 15:38Uh but I'll let it slide for now.
- 15:41Uh okay, it seems like it's rendering.
- 15:43So that is a common thing uh when you have the npm run dev command in the background.
- 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.
- 15:57It serves them on demand as you click on though on them.
- 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
- 16:10live deployed application uh or server like like Vercel.
- 16:15Um if testing the performance of the application is important you, there is a different command we could use.
- 16:21And this command is npm run start.
- 16:26That is going to build the application first and then it's going to deploy it just like Vercel would.
- 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.
- 16:40I want to see these changes being reflected live in my browser.
- 16:44Okay. So we are in the my bookings view.
- 16:48Okay, let's see. I don't have any bookings.
- 16:51I'm not a fan of the way this empty state looks like, but that's okay.
- 16:54We can totally iterate on this in a second.
- 16:58And it seems like I'll need to make some bookings too or some reservations to actually see it working live.
- 17:04So let me do confirm and book on this one.
- 17:07Booking confirmed. And now I expect for this booking to be present over here.
- 17:11Awesome. Let me click into this.
- 17:14It seems like I can totally click into this booking and it works great.
- 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.
- 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
- 17:38works. Okay, thank you.
- 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
- 17:53attached to my active account?
- 17:59I'm going to actually do this.
- 18:05Okay. And in a sec Claude should be able to update the file in which we have the dummy data.
- 18:12And let's see if I'll be able to test this a little bit better.
- 18:17Okay, and it's back.
- 18:19Let's go ahead and I'm going to refresh this page.
- 18:24Okay, seems like I am still looking at just one booking.
- 18:28Let me do a hard refresh.
- 18:30Um, okay, nothing really changes.
- 18:33So in that case, what I'm going to do is I'm going to go into inspect in my Chrome browser.
- 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.
- 18:52Oh, we do have local storage.
- 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
- 19:02delete my local storage uh so to force the application to like regenerate.
- 19:09Uh, okay. So seems like even though I don't have any local storage, there are no booking that account is test user.
- 19:21Uh, okay. Let's see.
- 19:25Uh, right. Okay. So it has actually set that over here.
- 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
- 19:46have over here in this older browser.
- 19:49Uh, okay, that took me a while to figure out but I'm home now.
- 19:52Let's see. Okay, let me first check out the upcoming bookings.
- 19:56So this one from November 20 is upcoming and I can totally save, change or edit it, which is great.
- 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.
- 20:13So that is looking great.
- 20:14Let's make sure that you know, when I change anything about my upcoming booking that this change is going to last.
- 20:20So I'm going to Okay, I'm not going to change the test user.
- 20:22I'm going to change the um I'm going to change the license plate.
- 20:26I'm going to hit save.
- 20:27I'm going to come back.
- 20:28Okay, seems like this change is uh now preserved.
- 20:32I'm going to add a note to the second booking.
- 20:35Uh let's say I'm going to change it to 11.
- 20:37I'm going to go back to booking space, refresh, go back to bookings.
- 20:42Uh let's see. Okay, seems like the implementation is sound uh from like a functional uh standpoint.
- 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.
- 20:59And also this is when we are going to talk about working with commits.
- 21:04So I'll see you in the next video.
- 21:05Thank you.