-| TBD | **Four of the five real select2 views render through `<rfg-combobox>` now** — `line_items/_line_item_fields` (the item picker shared by donations, purchases, distributions, audits and adjustments), `served_areas/_served_area_fields`, and the two plain multi-selects on `organizations/edit` and `partners/children/_form`. `product_drives/_form`'s select2 stays (free-tagging mode, `tags: true`, no fit for a fixed-option-list component) — surveyed and named, not silently left behind. New `EssentialsComboboxInput` (`config/initializers/simple_form_essentials.rb`) overrides `SimpleForm::Inputs::CollectionSelectInput#input` directly, opted into per field with `combobox: true` — simple_form's own `b.use` wrapper DSL has no seam for substituting a different renderer, confirmed reading its source. Three real bugs found integrating `<rfg-combobox>` for the first time, each fixed upstream in designsystem: it never noticed a plain `select.value = …` assignment (only attribute mutations — would have silently broken this app's own barcode scanner, which sets the item picker's value exactly that way); its synthesized textbox's `aria-label` fell back to a generic "Options" instead of the wrapped select's own; and nothing read the wrapped select's `disabled` property (a real functional regression for `line_items`' conditionally-locked item picker). Two more found opening the actual panel: its `max-height`/`overflow-y`/`min-width` rule was a descendant-combinator selector that stops matching the instant the panel portals to `<body>` (the identical bug was in `<rfg-menu>`'s own equivalent rule, found and fixed at the same time), and `min-width: 100%` meant "100% of the viewport," not the trigger, once portalled. Every system spec touching one of these four fields updated (`select`/`find_field`/`have_field` calls need `visible: false` now that the real select is genuinely `display: none`, not select2's sr-only clip; `select2()`/`await_select2()` helper calls removed, ids read live instead of guessed). See `docs/design-decisions.md` for the full account. |
0 commit comments