Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
7c3307a
Add edit field declaration schema with mock data
pierosavi Oct 15, 2026
a44c0df
Add edit field validation helpers
pierosavi Oct 15, 2026
0946eb5
Add generic edit field element
pierosavi Oct 15, 2026
4468509
Add text type to edit field
pierosavi Oct 15, 2026
4698b31
Add edit field playground
pierosavi Oct 15, 2026
a68d5a2
Add toggle type to edit field
pierosavi Oct 15, 2026
02e7b46
Add static picker type to edit field
pierosavi Oct 15, 2026
a6627e8
Add resource picker type to edit field
pierosavi Oct 15, 2026
6131310
Add photos type to edit field
pierosavi Oct 15, 2026
1cda616
Keep photo preview on category change
pierosavi Oct 15, 2026
c8895df
Search once on first combobox keystroke
pierosavi Oct 15, 2026
a0e743b
Wait for photo category before showing errors
pierosavi Oct 15, 2026
7c785a2
Enforce allowUnset in edit field validation
pierosavi Oct 15, 2026
77a70b9
Release photos dropped from a declaration
pierosavi Oct 15, 2026
aaf0835
Load edit field styles only where used
pierosavi Oct 15, 2026
7b0c94a
Share icon helper across islands
pierosavi Oct 15, 2026
8d20283
Fix combobox match count wording
pierosavi Oct 15, 2026
33eb32d
Fire input event on photo removal
pierosavi Oct 15, 2026
c345bfd
Follow declaration id for edit field name
pierosavi Oct 15, 2026
445e2a0
Show inline errors only on submit
pierosavi Oct 19, 2026
56a9782
Pick playground examples by editor
pierosavi Oct 19, 2026
62d2c74
Restyle photo editor slots
pierosavi Oct 19, 2026
6db5bc3
Submit only changed edit fields
pierosavi Oct 19, 2026
e1abd68
Add edit form with field revert
pierosavi Oct 19, 2026
29fe6b9
Add server-rendered edit field view
pierosavi Oct 19, 2026
9ca645c
Add view mode to edit playground
pierosavi Oct 19, 2026
133e236
Show photos in edit field view
pierosavi Oct 19, 2026
eefbec0
Save submitted values in playground
pierosavi Oct 19, 2026
1ebc3ca
Skip unsupported edit declarations
pierosavi Oct 19, 2026
75198c1
Reserve space for edit field errors
pierosavi Oct 19, 2026
297acd0
Sync edit form after reset
pierosavi Oct 19, 2026
ff70a6c
Load edit styles from the page
pierosavi Oct 19, 2026
d780923
Add btn disabled style, improve photo validation, fix revert all
pierosavi Oct 20, 2026
70f182f
Move edit field css to global, reuse dimentions results, fix photos p…
pierosavi Oct 20, 2026
3e7d614
Reuse search to narrow down wording in combobox
pierosavi Oct 21, 2026
d205026
Update src/islands/edit-field/text.ts
pierosavi Oct 21, 2026
f83f97b
Move through combobox options with Tab like the search bar
pierosavi Oct 21, 2026
63f3931
Render the edit field view with lit, on the server through lit ssr
pierosavi Oct 21, 2026
2fc0aaa
Strip lit markers from server rendered html, keep the renderer server…
pierosavi Oct 21, 2026
512fb65
Render the edit field view with Lit SSR
pierosavi Oct 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 44 additions & 1 deletion messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,5 +192,48 @@
"device_wtb_choose": "Choose your country",
"device_wtb_selection": "Sites are chosen for independence and no paid ranking, and listed in alphabetical order. {#link}Missing a comparison site? Get in touch{/link}",
"device_wtb_location": "Your country is preselected from your device's time zone, read only in your browser. Your choice is remembered on this device.",
"device_wtb_all_sites": "All comparison sites we link to, by country"
"device_wtb_all_sites": "All comparison sites we link to, by country",
"edit_field_about": "About {label}",
"edit_field_unset": "Not set",
"edit_field_option_devices": [
{
"declarations": [
"input count",
"local countPlural = count: plural",
"local countNumber = count: number"
],
"selectors": ["countPlural"],
"match": {
"countPlural=one": "{countNumber} device",
"countPlural=other": "{countNumber} devices"
}
}
],
"edit_field_combobox_loading": "Loading…",
"edit_field_combobox_error": "Couldn't load options, try typing again",
"edit_field_combobox_empty": "No matches",
"edit_field_combobox_count": "Matches: {count}",
"edit_field_combobox_more": "Showing {shown} of {total}. Search to narrow down.",
"edit_field_photo_slot": "Photo {number}",
"edit_field_photo_any": "Any category",
"edit_field_photo_category": "Category for photo {number}",
"edit_field_photo_choose_category": "Category",
"edit_field_photo_remove": "Remove photo {number}",
"edit_field_photo_add": "Choose or drop an image",
"edit_form_revert": "Revert",
"edit_form_revert_field": "Revert {label}",
"edit_form_submit": "Submit changes",
"edit_form_reset": "Revert all",
"edit_field_toggle_yes": "Yes",
"edit_field_toggle_no": "No",
"edit_field_issue_multiline": "Must be a single line",
"edit_field_issue_invalid_character": "{character} at position {position} is not allowed",
"edit_field_issue_too_short": "Must be at least {min} characters, currently {length}",
"edit_field_issue_too_long": "Must be at most {max} characters, currently {length}",
"edit_field_issue_ean_length": "Must be 8 or 13 digits, currently {length}",
"edit_field_issue_ean_checksum": "The last digit doesn't match the others, check for typos",
"edit_field_issue_unknown_option": "Choose one of the available options",
"edit_field_issue_unset": "A value that was set can't be removed",
"edit_field_issue_photo_type": "Photo {number} is not an image",
"edit_field_issue_photo_category": "Choose a category for photo {number}"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
]
},
"dependencies": {
"@lit-labs/ssr": "^4.1.0",
"lucide": "^1.17.0",
"undici": "^8.10.0"
},
Expand Down
71 changes: 71 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading