0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-08-06 13:17:38 +00:00
Commit Graph

231 Commits

Author SHA1 Message Date
Gazook89 fa07af2d82 Add tests for the Dropdown structure and behavior
Largely this is written by an LLM after I provided the targets, and I've looked through the tests themselves to confirm they are accurate.  There may be improvements in how to actually *set up* the tests, though, as I am less familiar with those.

This has two test suites:  the first for html structure, the second for behavior.  Each of them calls another script that provides helper functions for setting things up and taking them down.  This keeps the test suites themselves fairly lean.
2026-05-29 11:08:05 -05:00
Gazook89 f716c390b9 Add some defaults to dropdown 2026-05-29 10:54:58 -05:00
Gazook89 13196941eb popovertarget is typically not camelcase in html 2026-05-28 11:43:33 -05:00
Gazook89 3110d2cc69 Add icons to menu triggers
This fixes the odd alignments of menu-wrapper names by ensuring that both menuitems and menu-wrappers (actually their child triggers) both have space for icons.
2026-05-28 11:43:05 -05:00
Gazook89 2e4439c9f4 Remove ID collisions on repeated menu names
Add React `useId()` method, safely stripped of invalid characters for use in CSS/HTML, to make each trigger/menu unique to avoid collisions.
2026-05-28 11:41:27 -05:00
Gazook89 5e122626d4 Merge branch 'master' into Better-Dropdowns 2026-05-27 22:22:34 -05:00
Gazook89 612614fa12 menu items dismiss menu on click by default
Unless a menu item has the `no-dismiss` attribute (set to either `''` or `'true'`), clicking a menu item will dismiss the menu.  Clicking a submenu trigger will not dismiss the menu.

The `no-dismiss` attribute must take a string, either empty or `'true'` because react doesn't allow boolean custom attributes.
2026-05-27 22:21:28 -05:00
Víctor Losada Hernández 7a0348536c fix image request going crazy 2026-05-23 09:18:04 +02:00
Víctor Losada Hernández 15df8f2a22 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-image-preview 2026-05-21 00:34:58 +02:00
Víctor Losada Hernández 15db3c9f66 lint client 2026-05-18 16:21:57 +02:00
Víctor Losada Hernández 074af5e8e0 more solid block tokenizing 2026-05-16 16:28:53 +02:00
Víctor Losada Hernández 16948f451f add a comment 2026-05-14 11:08:09 +02:00
Víctor Losada Hernández d630882f18 add padding 2026-05-13 12:51:45 +02:00
Víctor Losada Hernández 0721a69345 Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-image-preview 2026-05-13 12:50:49 +02:00
Víctor Losada Hernández 3c4bafd1ad eslint changes 2026-05-13 12:46:10 +02:00
Víctor Losada Hernández 097b941580 move to use html img element 2026-05-13 12:45:46 +02:00
Víctor Losada Hernández c66310fbe7 linting 2026-05-13 12:09:43 +02:00
Víctor Losada Hernández df4c59cbd6 move highlight plugin into its own file 2026-05-13 12:06:21 +02:00
Víctor Losada Hernández 0f7aa0ad49 change tok for token 2026-05-13 11:49:41 +02:00
Víctor Losada Hernández 2971fe0679 add transition delay 2026-05-13 11:47:00 +02:00
Víctor Losada Hernández b39502d806 lint more 2026-05-10 19:42:02 +02:00
Víctor Losada Hernández aac384390b lint 2026-05-10 19:41:11 +02:00
Víctor Losada Hernández 70d9614fb1 lint 2026-05-10 19:39:26 +02:00
Víctor Losada Hernández 793adafe32 fix work on first load for images inside other nodes 2026-05-10 19:35:09 +02:00
Víctor Losada Hernández e521db78ce Merge branch 'master' of https://github.com/naturalcrit/homebrewery into add-image-preview 2026-05-10 19:10:23 +02:00
Víctor Losada Hernández 01060c38c8 make wrapselection work with multiple selections 2026-05-08 23:23:48 +02:00
Víctor Losada Hernández 9f6e03fd80 add strikethrough highlight 2026-05-04 16:24:41 +02:00
Víctor Losada Hernández 43c9f35f3c Merge branch 'master' of https://github.com/naturalcrit/homebrewery into fix-CM-bugs 2026-05-04 16:16:02 +02:00
Víctor Losada Hernández 80093a1998 remove console.log 2026-05-04 16:13:15 +02:00
Víctor Losada Hernández 60b5f6bac2 fix tab insert 2026-05-04 16:06:53 +02:00
Víctor Losada Hernández 6e39a70706 lint 2026-05-04 16:03:07 +02:00
Víctor Losada Hernández 102d1f4186 restore folds when changing tab 2026-05-04 16:02:15 +02:00
Víctor Losada Hernández 72465317f3 store scroll positions 2026-05-04 00:31:43 +02:00
Víctor Losada Hernández 4edae9ef5a some cleanup 2026-05-03 18:01:37 +02:00
Víctor Losada Hernández 6faca50a19 simplify 2026-05-03 18:00:15 +02:00
Víctor Losada Hernández d758fc2d20 fix scroll to page not working after switching editors 2026-05-03 17:53:09 +02:00
Gazook89 a34a5d187b Fix issue with closing brace not highlighting 2026-05-02 15:36:56 -05:00
Gazook89 d368e53b30 add some comments 2026-04-26 10:44:52 -05:00
Gazook89 5b11827c56 fix disabled attribute 2026-04-25 23:33:04 -05:00
Gazook89 4d3179fc35 remove unused less file 2026-04-25 23:32:48 -05:00
Gazook89 d686c78fdf fix oddbird polyfill so custom properties are used correctly
Co-authored-by: Copilot <copilot@github.com>
2026-04-25 22:16:25 -05:00
Gazook89 359d87440b add oddbird polyfill - not quite working
Not quite working yet.  polyfill is loaded, but positioned elements are spanning whole viewport.  Parking this for now.
2026-04-24 22:06:52 -05:00
Gazook89 87ed5d107d add jsdoc documentation. 2026-04-24 20:32:05 -05:00
Gazook89 c0c4db95a4 remove id attribute from component 2026-04-24 10:19:16 -05:00
Víctor Losada Hernández 8872adfd95 make sure tall images fit 2026-04-24 13:18:18 +02:00
Víctor Losada Hernández fac3ef15fa format 2026-04-24 12:42:14 +02:00
Víctor Losada Hernández 0587266e22 repair injection highlight and add image previews 2026-04-24 12:34:16 +02:00
Víctor Losada Hernández cb4bc16c69 move codemirror extensions into their own folder 2026-04-24 10:17:28 +02:00
Gazook89 904b14af19 icons in triggers and menus are aligned. 2026-04-23 22:52:39 -05:00
Gazook89 992b72ee6f empty menus styled as disabled 2026-04-23 22:17:52 -05:00