Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAY-1391] Add Category to Playbook kit generator (#3488)
**What does this PR do?** A clear and concise description with your runway ticket url. [PLAY-1391](https://runway.powerhrg.com/backlog_items/PLAY-1391) adds the capability to use a category flag when creating a new kit with the Playbook kit generator that allows for the newly generated kit to be sorted into one of the preexisting categories (aka submenus with in Components on the sidebar). This feature does not allow for the generation of new categories via this generator (creating new categories is a rare occurrence and should be done manually) and it is optional (when a kit is generated with a category flag, it will function like it is currently and just be appended to the bottom of the `menu.yml`). This ticket is a follow up following an initial investigation done during [PLAY-1330](https://runway.powerhrg.com/backlog_items/PLAY-1330) which fixed the Fix generator and updated its documentation. New information about the Category prop will be added to the [Generating a Kit huddle doc](https://huddle.powerapp.cloud/v2/projects/419/artifacts/6279) once this is approved (the [draft](https://gist.github.com/ElisaShapiro/922d47e7518971e49ff1014e5c1fcc36) is here with doc changes pending approval). **Screenshots:** Screenshots to visualize your addition/change Example Uno: adding a new kit with a typo in the category, then successfully doing so once fixed <img width="800" alt="uno code" src="https://github.com/powerhome/playbook/assets/83474365/54ec61f8-2ef1-4cdc-ab61-316648f7febf"><img width="400" alt="uno page" src="https://github.com/powerhome/playbook/assets/83474365/5d294f89-6c4a-43f1-9d35-ed8a713bff85"> Example dos: adding a new kit with a category and a kit type <img width="800" alt="dos code" src="https://github.com/powerhome/playbook/assets/83474365/d6edc961-5c9a-4d84-9222-6c1752720f40"><img width="400" alt="dos page" src="https://github.com/powerhome/playbook/assets/83474365/9235c2a6-c29d-4dcb-9e69-dfc3c062ef9b"> Example tres: adding a new kit without a category specified <img width="800" alt="tres code" src="https://github.com/powerhome/playbook/assets/83474365/14eea25c-bb5d-4b2c-8b8e-c19d715e3aea"><img width="400" alt="tres page" src="https://github.com/powerhome/playbook/assets/83474365/7de0cd4d-2f81-48da-832e-5ab1556095ef"> Example quatro: adding a new kit with kit type, props, and category specified <img width="800" alt="quatro code" src="https://github.com/powerhome/playbook/assets/83474365/f2a5773a-cb78-4b76-8817-19f79c3e617e"><img width="400" alt="quatro page" src="https://github.com/powerhome/playbook/assets/83474365/6a66a10c-8d85-4d99-b8a9-cb2a45777145"> **How to test?** Steps to confirm the desired behavior: 1. Pull down this branch. 2. Reference the generating a kit documentation to try to add a kit with a category (see draft linked above if huddle doc not yet updated). 3. New kit should be added to `menu.yml` file and visible on the PB website locally when you start the server and check localhost. 4. Try to add a kit omitting a category (and see it append to the bottom of `menu.yml` like it did previously; try to mess up the category name (with a typo or a category that doesn't exist) and see the generator stall out. ALTERNATIVE: Reference demo video in Runway ticket. #### Checklist: - [x] **LABELS** Add a label: `enhancement`, `bug`, `improvement`, `new kit`, `deprecated`, or `breaking`. See [Changelog & Labels](https://github.com/powerhome/playbook/wiki/Changelog-&-Labels) for details. - [x] **DEPLOY** I have added the `milano` label to show I'm ready for a review. ~~- [ ] **TESTS** I have added test coverage to my code.~~
- Loading branch information