diff --git a/src/web/HTMLIngredient.mjs b/src/web/HTMLIngredient.mjs index be62f222..adb89811 100755 --- a/src/web/HTMLIngredient.mjs +++ b/src/web/HTMLIngredient.mjs @@ -9,8 +9,8 @@ import Utils from "../core/Utils.mjs"; /** * Object to handle the creation of operation ingredients. * - * @TODO: would be nice to refactor this. Move everything to c-ingredient-li and - * implement there accordingly, delete this file + * Note: Not to be confused with the native web component c-ingredient-li, which is the component that makes the parent + * list item 'ingredient' in recipe-list. */ class HTMLIngredient { diff --git a/src/web/TODO.md b/src/web/TODO.md index e69de29b..b6a963dc 100644 --- a/src/web/TODO.md +++ b/src/web/TODO.md @@ -0,0 +1,21 @@ +recipe: +- ignore dropped item outside of rec-list +- bit smoother sort experience would be nice +- RecipeWaiter opSortEnd() + +operations: +- can only drag an op to favourites 1 time +- initial search is kinda slow +- popovers should also show on key up and down per operation +- little line on click ( for all input fields, also ingredient focus ) +- after dragging op to rec, popover no longer works on original op ( see opSortEnd ) + +- stupid popovers on deleting favs for instance ( dont always close nicely ) +- native focus thingy is a bit ugly +- UI tests etc. + +-------- + +x highlight strings +x esc on focused-op search results will add that op to recipe +x be able to tab from panel to panel, open and close them, use up and down arrows diff --git a/src/web/components/c-category-li.mjs b/src/web/components/c-category-li.mjs index baa1cf50..5826f61f 100644 --- a/src/web/components/c-category-li.mjs +++ b/src/web/components/c-category-li.mjs @@ -6,8 +6,9 @@ import {COperationList} from "./c-operation-list.mjs"; * @param {App} app - The main view object for CyberChef * @param {CatConf} category - The category and operations to be populated. * @param {Object.} operations - The list of operation configuration objects. - * @param {Boolean} isExpanded - expand the category on init or not - * @param {Boolean} includeOpLiStarIcon - Include the left side 'star' icon to favourite an operation easily + * @param {Boolean} isExpanded - expand the category by default on init or not + * @param {Boolean} includeOpLiStarIcon - Include the left side 'star' icon to each of the c-category-li > + * c-operation-list > c-operation-li list items in this category * */ export class CCategoryLi extends HTMLElement { constructor( @@ -102,6 +103,9 @@ export class CCategoryLi extends HTMLElement { if (this.label === "Favourites"){ const editFavouritesButton = this.buildEditFavouritesButton(a); + // Note: I'm leaving this here as it was in the code originally, but it's not doing anything and it didn't + // do anything before my refactoring. I imagine we may want to fix that at some point though, + // hence I'm leaving this here. a.setAttribute("data-help-title", "Favourite operations"); a.setAttribute("data-help", `

This category displays your favourite operations.