mirror of
https://github.com/we-promise/sure.git
synced 2026-06-04 10:19:03 +00:00
feat(transactions): add inline tag creation and search in txn form (#1719)
* feat(transactions): add inline tag creation and search in transaction forms * fix(transactions): add tag-only update endpoint for edit drawer * feat(transactions): implement TagSelectComponent for improved tag selection and management * feat(tag-select): refactor tag selection component for improved functionality and accessibility * feat(tag-select): implement inline tag rendering and error handling in tag selection component * refactor(tag-select): remove unused list target from tag select controller * fix: return forbidden JSON for denied tag updates * fix: lock transaction tags when clearing them * refactor: move tag select into DS namespace * refactor: add multiselect trigger form field style * fix: auto-position tag select dropdowns * feat: add keyboard navigation to tag select * feat: add create tag and search placeholder to transaction forms in multiple languages * style: tighten tag select option spacing * fix: align tag select spacing and focus behavior * refactor: render tag badges with DS pill --------- Signed-off-by: Juan José Mata <juanjo.mata@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
committed by
GitHub
parent
f4eb58d5d6
commit
5e558fa3ab
@@ -51,6 +51,14 @@ class DS::PillTest < ViewComponent::TestCase
|
||||
assert_includes pill.palette[:bg], "color-red-50"
|
||||
end
|
||||
|
||||
test "custom color renders dynamic badge styles" do
|
||||
render_inline(DS::Pill.new(label: "Groceries", marker: false, custom_color: "#f97316"))
|
||||
|
||||
pill = page.find("span", text: "Groceries")
|
||||
assert_includes pill[:style], "color-mix(in oklab, #f97316 10%, transparent)"
|
||||
assert_includes pill[:style], "color: #f97316"
|
||||
end
|
||||
|
||||
test "icon option renders glyph in place of dot" do
|
||||
render_inline(DS::Pill.new(label: "Syncing", tone: :info, marker: false, icon: "loader"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user