Nested Menus

Friday Demos · September 29, 2023 · 5:37

Transcript

This transcript is auto-generated. Names and product terms may be wrong.

  1. um along the way I worked on improving menu some so uh now when you open a menu you can use your arrow key hopefully your signal will like read out here of my keyboard um and you get tape ahead so you type S it jumps to that first one with that label on it so um if you're a keyboard person you can do that um so again like s here we'll jump into like and um part of that I'm trying to find my notes here um I wanted to there was a sort of funny use of accordion and also I kind of hate our accordion so I went chasing that so we have an accordion here in the correct version and in this version uh

  2. I instead used menus to do this so we get these fields popping out as menus it's a little easier to navigate through and also I can use my keyboard so like I can go move around those with keyboard um since that gives us sub menus we can do things like this so again we get sub menus there and then last but not least here we get aggregations and modeling popped out into their little menus also looks like created as so much tighter menus this is the nested menus that Jamie's been asking me for for a little while um so yeah uh these have a minor bug well they're a major bug that I need to go fix but it's hopefully not gonna be a huge

  3. fix which is that if I try interact with the mouse with the sub menu disappears whereas the keyboard works just fine so uh some work to do then but yeah so fancier menus I think that deserves a Katie Gillespie woohoo yes for sure and also too the way you the way you're doing it too and sort of progressively guys like I don't know is it is it is it oh so so stoked um the yeah there are a couple little implications of like we have to kind of do a broad refresh there's a new menu component that basically replaces the old menu component we'll Google it out incrementally so that'll touch every file that they in the code base um and I do think there's

  4. some trade-offs you want to do with like the field and view menus the aggregations being fully collapsed is annoying because there's a few you probably want like out at the top level always um it's actually really easy to compose them like they're just really easy simple dance size compositions so we can make decisions there um the main problem is like things like aggregations right now you can get a list of aggregations and we're gonna need to get like two listed allegations like you know top level and secondary or something like that to decide so maybe we collapse the model for the first run and then we get smarter about that a bit excuse which ones to collapse same for modeling it feels wrong there's like

  5. a few you want out sitting at the top and there's a bunch you like I don't care um so I will leave that to others to decide what goes where but if you need to build those we can just do a project to go through them all but I feel like that's a perfect start actually is that you can have them ask that I think is way more organized yeah your brain goes like Oh okay that's this one there um but yeah I think blowing them back out will be good um is there any reason we can't put more stuff in them now uh no I mean that at some point you're going to make it unusable but uh no yeah yeah no it's just

  6. there there have been like ones and twos where we've wanted that yeah we've wanted to put an action in but kind of we didn't want to take the list from 11 to 12 to 14. yeah and now that we can nest this don't put thousands for like a variety yeah performance being the key one but yeah I mean the difference between 1 10 and 20 is going to be nothing um I think it's really until you hit 100 I'm not at all concerned um we should not be doing that yeah don't do that um I think if you have to reach for search it's the wrong component is the big thing like if you're putting so many in there that the user wants to search

  7. it it's not the right choice um so that's probably a good threshold so like more than 20 too many um that said the type of head solves for a lot of the worst of it if you're like I just want to jump into aggregation C type A here it jumps there so um yeah um what about her Richard's question can you can we do multi-nusting uh yes hold on I forgot a demo demo all right so there's a route that I will not ship to production but it's over here this is uh like there's no limit to number of layers you can go um please don't I think two maybe three don't go further it's gonna get down really quick um the other thing you

  8. might have seen in my demo is I don't I didn't handle very well or at all the scenario of you hit this Edge the arrow really should probably go to the other side the little upsetting that it goes that way because when you use the arrow keys you have to push the wrong direction it's a little weird but I don't know there's also like maybe just don't play on menu at the edge of the screen okay so there's a couple of little tiny dashes um but yeah what should we just we can decide more things there but yes you can go as many layers deep as you want please don't um yeah awesome