Hi everyone, in this video we're going to look at... organizing our components into group... we've kind of touched on it already so want to make it clearer... we're going to be using this external design library, another document... we're going to make sure everything is nicely grouped into different sections... there's two ways of doing that, let me show you the old perfectly good way...
and the new perfectly good way, all right, let's jump in. Let's start to tidy up our component naming... at the moment we've got a mix of the slash, '/' naming convention... and we started using sections... plus we're starting to use other documents to hold our main styles... so let me show you the two routes, and you can decide which one you want to do...
let's tidy up our emojis... these are my main components here, I'm going to cut them... remember, when you have to cut... we're going to move them to another main styles document... we're going to paste them, and to make sure the connection works. We're going to hold down 'Option 3' on a Mac, 'Alt 3' on a PC...
and we're going to publish those four changes, these emojis have moved... let's make sure that this original document-- all right, and then naming, you got two options... we can select all of these guys, we are going to... instead of calling Emoji Smile, which came from the actual file names itself... we can rename, so with lots of them selected... we can hold 'Command R', 'Ctrl R'...
what we're going to do is we're going to say, emoji is replaced with 'emoji/'... and we'll use spaces, you don't have to... let's rename it, let's publish it, so everything kind of knows what's going on... and it means, now back at this original document... when I am holding down my 'Shift I' to get to my components... let's have a look at that document that we've shared with this document...
this is our Main Styles, you can see there, emoji is in its nice little folder... there they all are, forward slash, '/' is awesome. What's becoming more popular now is, actually, just use a section... we did sections earlier, remember, they're hiding under here, 'Shift S'... we draw a section, and I'm going to name this one... 'Command R', or 'Ctrl R', I'm going to call this one "emoji"...
what I can do with these guys is I can rename them and say... actually, where it says Emoji, Emoji space forward slash, "Emoji / "... I'm going to replace with nothing, and I'm just going to hit 'Rename'... it's going to pull all of that emoji off, and the naming can come from the section... let's publish those... go back to the original here, and let's look at the library, 'Shift I'.
So we got our main styles, and you can see here, same thing happens... I've got this Emoji folder, it looks exactly the same... and now in there, why is this better or worse? It's marginally better... it just means, if I say I've got a button section... I don't have to name everything...
I can just go 'Shift S', Section, this one's going to be called "Button"... this early bird button, and just throw it in, I don't have to rename it... I've got some icons down here, they've got that naming convention "icon /"... I'm going to remove it, 'Command R', 'Ctrl R' on a PC... and I'm going to say, icon/, replace with nothing... 'Shift S' for a Section, that's 'Command R', call this "Icon"...
and then just grab these guys, throw them in. It's a lot easier to move them from one to the other... because really, that thing there is probably not a button... might end up having a Tags section... and I can just go drag to this Emoji section... and it renames it and reorders it...
in all the connecting documents, that are referencing this style, this one... there you go, they're thrown in... need to double click the edge to fit them all in... not fitting it in, not enough room... but now they're part of this Buttons sub category... you can go further with a slashing naming convention...
say that you've got these but you've got two versions... there's one that are solid, and one that has outline... these are outlined versions, that one's kind of a bit of both... but let's say that-- I'm going to 'Command R' now... and I'm going to say, this one is going to replace with... 'outline/", and then current name.
So I've got some depth in here, but the parent is from Icons... and I can go into the weeds with the slash naming convention in here... let's publish. I'm going to review all the changes, basically they just moved around... let's accept them all, and now 'Shift I'... let's have a look let's go to our Main Styles...
and under 'Icons' here, I have still got this extra level to go to Outline... and in here I might have a solid version, I show you this, is because... mainly at the moment people are only using the naming convention... and they're just using frames for this outer wrapper here... because of the introduction of sections, allows us to group things quite easily... and move them around from section to section...
rather than have to rename and group rename stuff... up to you how you want to tidy up your components... you'll see both around, and occasionally you'll see this... where there is icon/current name... so now they have icon/outline/magnifying glass... but because they're in this other thing called, let's call it icon...
you can get a little confusing, not confusing... but over here now, oh, 'Publish'... 'Review', let's 'Update All'... now if I go into my Components, and I go to my Main Styles... you can see, I've got icon plus icon... plus outline, doesn't really matter...
but that's what will happen if you're using a mix of the full naming from slashes... and the sections on top... I'm going to remove those... undo and publish. Now I'm going to have to work through my document and go through the 'Assets'... and find everything that is used locally, find a home for it on my main component...
put them in the right section, or if you're not using a separate document... have it on a separate page... and just move them all onto their other page... into a section, with some slash naming... all right, that is it, I'll see you in the next video.