Replaces the checkbox/hover-delete model with an explicit gesture+overlay
flow on /lists/[id].
Row anatomy (new)
[drag-handle] [name as button] [qty stepper − N +]
- No checkbox in normal mode.
- Checked items render with strikethrough + muted text.
- Drag handle always visible on mobile; revealed on hover on desktop
(md:opacity-0 md:group-hover:opacity-100). The handle owns the drag
(pointerdown → dragEnabled=true), so row swipes + taps keep working.
Swipe gestures (symmetric toggle, no delete)
unchecked + swipe RIGHT → mark checked (green success reveal)
checked + swipe LEFT → mark unchecked (neutral reveal)
opposite direction for each state is a no-op (snaps back).
SWIPE_COMMIT_THRESHOLD=120 (was 200 for delete); REVEAL_WIDTH=96.
Symmetry means undo is the inverse swipe — no undoQueue on toggles.
Double-tap overlay (name + delete + confirm)
Short tap: no-op. Two taps within DOUBLE_TAP_WINDOW_MS (300 ms) open a
full-screen dialog (bottom sheet on mobile) with:
- X close button (top-right)
- name input
- Delete button (red) → scheduleUndoable → UndoToast
- Confirm button (primary) → updateItem({ name })
Click outside / Escape / X all dismiss without saving.
Tests
items.test.ts
D-03 rewritten: double-tap opens overlay, value matches, X closes.
D-04 rewritten: overlay Delete removes the row; toast locator scoped
out of itemRow so it doesn't shadow the assertion.
realtime.test.ts
R-E-02 updated: Ana renames via overlay → Borja sees new name over
Realtime UPDATE. (The check/uncheck path is now gestural only and
chromium touch emulation is too flaky to drive it in E2E; Vitest
integration R-02 still covers the UPDATE-row-payload invariant.)
mobile-swipe-delete.test.ts stays describe.skip — will be renamed and
rewritten for the new semantics once WebKit install lands in CI.
i18n
list_qty_decrease, list_qty_increase, list_reorder_handle,
list_edit_item, list_confirm, list_close — en/es.
Verification
just test-e2e → 40 passed, 2 skipped (same as pre-change).
Type-check clean.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
175 lines
6.6 KiB
JSON
175 lines
6.6 KiB
JSON
{
|
|
"$schema": "https://inlang.com/schema/inlang-message-format",
|
|
"nav_lists": "Lists",
|
|
"nav_tasks": "Tasks",
|
|
"nav_notes": "Notes",
|
|
"nav_search": "Search",
|
|
"nav_settings": "Settings",
|
|
"nav_collective": "Collective",
|
|
"app_name": "Colectivo",
|
|
"loading": "Loading…",
|
|
"error_generic": "Something went wrong. Please try again.",
|
|
"login_title": "Sign in to Colectivo",
|
|
"login_button": "Sign in",
|
|
"logout_button": "Sign out",
|
|
"auth_back_to_home": "Back to home",
|
|
"onboarding_title": "Welcome to Colectivo",
|
|
"onboarding_subtitle": "Get started by creating a new collective or joining an existing one.",
|
|
"onboarding_create_tab": "Create",
|
|
"onboarding_join_tab": "Join",
|
|
"onboarding_create_collective": "Create a collective",
|
|
"onboarding_join_collective": "Join with an invitation link",
|
|
"onboarding_collective_name": "Collective name",
|
|
"onboarding_collective_name_placeholder": "e.g. Our Home",
|
|
"onboarding_collective_emoji": "Icon",
|
|
"onboarding_invite_link_label": "Invitation link",
|
|
"onboarding_invite_link_placeholder": "Paste the invite link here…",
|
|
"onboarding_create_btn": "Create collective",
|
|
"onboarding_join_btn": "Join collective",
|
|
"collective_name_label": "Collective name",
|
|
"collective_name_placeholder": "e.g. Our Home",
|
|
"invitation_title": "You're invited",
|
|
"invitation_subtitle": "You've been invited to join a collective.",
|
|
"invitation_accept_btn": "Accept invitation",
|
|
"invitation_success": "You've joined the collective!",
|
|
"invitation_invalid_link": "That doesn't look like a valid invitation link.",
|
|
"invitation_error_not_found": "This invitation link is not valid.",
|
|
"invitation_error_already_used": "This invitation has already been used.",
|
|
"invitation_error_expired": "This invitation has expired.",
|
|
"invitation_error_already_member": "You are already a member of this collective.",
|
|
"invitation_error_unauthenticated": "You must be signed in to accept an invitation.",
|
|
"invitation_error_unknown": "Something went wrong. Please try again.",
|
|
"manage_title": "Manage collective",
|
|
"manage_members": "Members",
|
|
"manage_you": "you",
|
|
"manage_remove": "Remove member",
|
|
"manage_invite_title": "Invite someone",
|
|
"manage_invite_role": "Role",
|
|
"manage_generate_link": "Generate invite link",
|
|
"manage_copy": "Copy",
|
|
"manage_copied": "Copied!",
|
|
"manage_link_expires": "Link expires in 7 days.",
|
|
"role_admin": "Admin",
|
|
"role_member": "Member",
|
|
"role_guest": "Guest",
|
|
"settings_title": "Settings",
|
|
"settings_display_name": "Display name",
|
|
"settings_saving": "Saving…",
|
|
"settings_language": "Language",
|
|
"settings_avatar": "Avatar",
|
|
"settings_avatar_initials": "Initials",
|
|
"settings_avatar_emoji": "Emoji",
|
|
"settings_avatar_upload": "Photo",
|
|
"settings_avatar_upload_btn": "Upload photo…",
|
|
"settings_account": "Account",
|
|
"settings_keycloak_link": "Change email or password",
|
|
"settings_logout": "Sign out",
|
|
"settings_save": "Save changes",
|
|
"settings_saved": "Changes saved",
|
|
"invite_member": "Invite member",
|
|
"invite_email_label": "Email address",
|
|
"invite_send": "Send invitation",
|
|
"masthead_lists_label": "Workspace",
|
|
"masthead_tasks_label": "Task Manager",
|
|
"masthead_notes_label": "Repository",
|
|
"masthead_search_label": "Omni-Search",
|
|
"masthead_search_title": "Find Anything.",
|
|
"lists_title": "Shopping Lists",
|
|
"lists_new_list": "New list",
|
|
"lists_no_lists": "No lists yet",
|
|
"lists_create_first": "Create your first shopping list",
|
|
"lists_trash": "Trash",
|
|
"list_status_active": "Active List",
|
|
"list_status_completed": "Completed",
|
|
"list_status_archived": "Archived",
|
|
"list_name_placeholder": "e.g. Weekly shop",
|
|
"list_items_empty": "List is empty",
|
|
"list_items_empty_hint": "Add your first item below",
|
|
"list_reset": "Reset list",
|
|
"list_archive": "Archive",
|
|
"list_delete": "Move to trash",
|
|
"list_actions": "List actions",
|
|
"list_item_placeholder": "Add item (e.g. Yogurt 500g)",
|
|
"list_qty_label": "Qty",
|
|
"list_add_item": "Add item…",
|
|
"list_to_buy": "To buy",
|
|
"list_checked": "Checked",
|
|
"list_start_session": "Shop",
|
|
"list_finish_shopping": "Finish shopping",
|
|
"list_finish_confirm": "Mark this list as completed?",
|
|
"list_finish_confirm_yes": "Yes, finish",
|
|
"list_finish_confirm_no": "Keep shopping",
|
|
"tasks_title": "Tasks",
|
|
"tasks_no_lists": "No task lists yet",
|
|
"tasks_create_first": "Create your first task list",
|
|
"tasks_new_list_placeholder": "New task list",
|
|
"tasks_new_task_placeholder": "Add task",
|
|
"tasks_empty": "No tasks yet",
|
|
"tasks_empty_hint": "Add your first task below",
|
|
"tasks_completed_section": "Completed",
|
|
"tasks_pending_section": "To do",
|
|
"tasks_completed_by": "Completed by {name}",
|
|
"tasks_toggle": "Toggle task",
|
|
"tasks_uncheck": "Uncheck task",
|
|
"tasks_delete": "Delete task",
|
|
"tasks_delete_list": "Delete list",
|
|
"tasks_delete_list_confirm": "Delete this task list and all its tasks?",
|
|
"notes_title": "Notes",
|
|
"notes_new": "New note",
|
|
"notes_pinned_section": "Pinned",
|
|
"notes_active_section": "Notes",
|
|
"notes_archive": "Archive",
|
|
"notes_archive_view": "Archived notes",
|
|
"notes_archived_empty": "No archived notes",
|
|
"notes_trash_view": "Notes trash",
|
|
"notes_trash_empty": "Trash is empty",
|
|
"notes_pin": "Pin note",
|
|
"notes_unpin": "Unpin note",
|
|
"notes_unarchive": "Unarchive note",
|
|
"notes_send_to_trash": "Move to trash",
|
|
"notes_restore": "Restore",
|
|
"notes_duplicate": "Duplicate",
|
|
"notes_color": "Color",
|
|
"notes_title_placeholder": "Title",
|
|
"notes_content_placeholder": "Start writing…",
|
|
"notes_content_aria": "Content",
|
|
"notes_back_to_board": "Back to board",
|
|
"notes_saved": "Saved",
|
|
"notes_saving": "Saving…",
|
|
"notes_empty_board": "No notes yet",
|
|
"notes_empty_board_hint": "Click \"New note\" to start writing",
|
|
"search_title": "Search",
|
|
"search_placeholder": "Search lists, tasks, notes…",
|
|
"search_filter_all": "All",
|
|
"search_filter_lists": "Lists",
|
|
"search_filter_tasks": "Tasks",
|
|
"search_filter_notes": "Notes",
|
|
"search_group_shopping_items": "Shopping items",
|
|
"search_group_tasks": "Tasks",
|
|
"search_group_notes": "Notes",
|
|
"search_empty": "No matches",
|
|
"search_hint": "Type at least two characters",
|
|
"trash_restore": "Restore",
|
|
"trash_delete_permanent": "Delete permanently",
|
|
"trash_empty": "Trash is empty",
|
|
"trash_expires_in": "Expires in {days} days",
|
|
"confirm_delete": "Delete?",
|
|
"cancel": "Cancel",
|
|
"save": "Save",
|
|
"action_delete": "Delete",
|
|
"edit": "Edit",
|
|
"add": "Add",
|
|
"done": "Done",
|
|
"sync_offline": "You're offline — changes will sync when you reconnect",
|
|
"sync_syncing": "Syncing…",
|
|
"undo": "Undo",
|
|
"undo_deleted_item": "Deleted {name}",
|
|
"list_item_delete_aria": "Delete item",
|
|
"list_qty_decrease": "Decrease quantity",
|
|
"list_qty_increase": "Increase quantity",
|
|
"list_reorder_handle": "Reorder",
|
|
"list_edit_item": "Edit item",
|
|
"list_confirm": "Confirm",
|
|
"list_close": "Close"
|
|
}
|