Files
Oier Bravo Urtasun 4ce24a4145 feat(fase-18): CreateListModal replaces empty-create-then-rename flow
`CreateListModal.svelte` is the new entry point for "New list" — opens
on the masthead button click, prefills the input with
`currentCollective.default_list_title` (Fase 18.3.1), shows an inline
autocomplete dropdown via `fetchTitleSuggestions`, and renders a
"Sugerencia: Compra #6" chip when (a) the typed value exactly matches a
catalog-curated prefix case-insensitively and (b) `computeNextNumber`
resolves a value (Fase 18.3.2). Submit is disabled while the trimmed
value is empty or creation is in flight (Fase 18.3.3). On submit, if the
catalog match still holds, the modal auto-suffixes "#N" before
inserting and the lists page shows a transient toast confirming the
final name (Fase 18.3.4).

The prefill effect is gated by a `wasOpen` edge-tracker — a naive
`$effect(() => { if (open) value = default })` re-runs whenever
`$currentCollective` updates (e.g. a realtime UPDATE landing after the
user typed something), which clobbered the typed value and froze the
submit button as disabled. The edge guard limits the prefill to the
false→true transition.

`/lists/+page.svelte`: the masthead "New list" button now opens the
modal instead of calling `createList(collective, '', user)` and goto-ing
to the detail page for inline rename. The legacy flow was nice for
quick creates but couldn't enforce a required title or surface the
catalog. Existing per-list actions are unchanged.

15 new i18n strings (en + es) for the modal, the suggestion chip, the
auto-numbered toast, and the manage-page subsection that ships in the
next commit.

Updated existing e2e specs: `lists.test.ts`'s `createList()` helper +
the C-13 guest path now drive the modal instead of the legacy
placeholder input; `session.test.ts` S-03 uses the modal for the
fresh-list setup. New `tests/e2e/list-title-flow.test.ts` adds LTF-01
(default prefill end-to-end with a Supabase-driven setDefaultListTitle
since the manage UI lands in the next commit) and LTF-03 (empty input
keeps submit disabled, even with whitespace).

Tests: 4 lists + 3 session + 2 new LTF specs all green (9/9).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-19 02:29:17 +02:00

366 lines
17 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",
"logged_out_title": "You've been signed out",
"logged_out_subtitle": "Sign in again to continue.",
"logged_out_sign_in": "Sign in",
"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_new_list": "New list",
"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",
"pwa_update_available": "New version available",
"pwa_update_reload": "Reload",
"pwa_offline_ready": "Ready to use offline",
"pwa_offline_chip": "Offline",
"pwa_offline_tooltip": "No connection — changes will sync when you reconnect",
"pwa_pending_ops": "{count} pending change",
"pwa_pending_ops_plural": "{count} pending changes",
"pwa_sync_conflicts_banner": "Sync conflicts need attention",
"pwa_sync_conflicts_review": "Review",
"sync_conflicts_title": "Sync conflicts",
"sync_conflicts_empty": "Nothing pending — local and server agree.",
"sync_conflicts_discard_local": "Discard local",
"sync_conflicts_discard_remote": "Discard remote",
"sync_conflicts_back": "Back to settings",
"settings_about": "About",
"settings_about_version": "v{version} · {commit} · {date}",
"settings_about_view_changelog": "View changelog",
"changelog_modal_title": "Changelog",
"changelog_modal_close": "Close",
"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",
"list_select": "Select",
"list_selection_count": "{n} selected",
"list_cancel_selection": "Cancel",
"list_bulk_delete": "Delete",
"list_bulk_move": "Move",
"list_bulk_mark_checked": "Mark checked",
"list_undo_bulk_delete": "Deleted {n} items",
"list_move_title": "Move to list",
"list_move_create_new": "Create new list",
"settings_appearance": "Appearance",
"settings_theme_light": "Light",
"settings_theme_dark": "Dark",
"settings_theme_system": "System",
"settings_sync_conflicts": "Sync conflicts",
"settings_sync_conflicts_empty": "No conflicts logged.",
"settings_sync_conflicts_export": "Export JSON",
"settings_collectives": "Your collectives",
"settings_collectives_empty": "You don't belong to any collective.",
"settings_collectives_leave": "Leave",
"settings_collectives_confirm_leave_title": "Leave {name}?",
"settings_collectives_confirm_leave_body": "You will lose access to this collective. The content stays for the other members.",
"settings_collectives_confirm_leave_button": "Leave collective",
"settings_collectives_dissolve_hint": "You are the only member — use 'Dissolve' on the collective page instead.",
"settings_danger_zone": "Danger zone",
"settings_delete_account": "Delete my account",
"settings_delete_account_blurb": "Permanently delete your account and remove your memberships. Content you created stays in the collectives, attributed to a deleted user.",
"settings_delete_account_modal_title": "Delete your account?",
"settings_delete_account_modal_body": "This is permanent. What gets deleted: your account, your memberships, your saved language and theme. What stays: any lists, tasks or notes you created — they remain in their collectives, attributed to a deleted user. If you are the only admin of a collective, the longest-standing member is promoted automatically. Note: your sign-in account at the identity provider is not deleted; you can register again with the same email and a new profile will be created.",
"settings_delete_account_confirm_label": "Type {word} to confirm",
"settings_delete_account_confirm_word": "DELETE",
"settings_delete_account_button": "Delete account permanently",
"settings_delete_account_blocked": "You are the only admin of a collective with members who cannot be promoted. Promote someone first, or remove the other members.",
"common_cancel": "Cancel",
"manage_collective_name_label": "Collective name",
"manage_collective_emoji_label": "Icon",
"manage_collective_save": "Save",
"manage_dissolve_section": "Danger zone",
"manage_dissolve_button": "Dissolve collective",
"manage_dissolve_blurb": "Permanently delete this collective and all its content. This cannot be undone.",
"manage_dissolve_title": "Dissolve {name}?",
"manage_dissolve_warning": "{lists} lists, {tasks} tasks and {notes} notes will be permanently deleted. This is irreversible.",
"manage_dissolve_confirm_label": "Type {name} to confirm",
"manage_dissolve_confirm_button": "Dissolve permanently",
"sidebar_create_collective": "+ New collective",
"create_collective_modal_title": "New collective",
"create_collective_modal_button": "Create",
"tag_picker_placeholder": "Search or create tag",
"tag_picker_create": "Create \"{name}\"",
"tag_picker_empty": "No tags yet.",
"tag_picker_label": "Tags",
"list_filter_by_tag": "Filter by tag",
"list_filter_clear": "Clear",
"settings_tags_section": "Tags",
"settings_tags_empty": "No tags yet — create one from any list.",
"settings_tags_delete": "Delete",
"settings_tags_color": "Color",
"section_disabled_for_collective": "That section is hidden for this collective.",
"settings_section_visibility_title": "Visible sections",
"settings_section_visibility_blurb": "Hide top-level sections you don't use. Your admin can also hide them for the whole collective.",
"settings_section_visibility_overridden": "Hidden by the collective.",
"collective_section_visibility_title": "Collective sections",
"collective_section_visibility_blurb": "Hide sections for every member of this collective. Members can also hide them individually for themselves.",
"section_label_lists": "Lists",
"section_label_tasks": "Tasks",
"section_label_notes": "Notes",
"section_label_search": "Search",
"admin_banner": "Admin mode — actions are logged",
"admin_nav_collectives": "Collectives",
"admin_nav_admins": "Admins",
"admin_nav_audit": "Audit log",
"admin_nav_server": "Server",
"admin_menu_entry": "Server admin",
"admin_collectives_title": "Collectives",
"admin_collectives_search_placeholder": "Search by name…",
"admin_collectives_empty": "No collectives match.",
"admin_collectives_col_name": "Name",
"admin_collectives_col_members": "Members",
"admin_collectives_col_created": "Created",
"admin_collectives_col_status": "Status",
"admin_collectives_status_active": "Active",
"admin_collectives_status_deleted": "Soft-deleted",
"admin_action_view": "View",
"admin_action_soft_delete": "Soft-delete",
"admin_action_restore": "Restore",
"admin_action_hard_delete": "Hard-delete",
"admin_action_remove": "Remove",
"admin_modal_soft_delete_title": "Soft-delete collective",
"admin_modal_soft_delete_help": "The collective is hidden from members but recoverable for 30 days. Reason is logged.",
"admin_modal_reason_label": "Reason",
"admin_modal_reason_placeholder": "Why?",
"admin_modal_hard_delete_title": "Hard-delete collective",
"admin_modal_hard_delete_help": "This is irreversible. All lists, items, tasks, and notes will be deleted.",
"admin_modal_hard_delete_confirm": "I understand this is irreversible",
"admin_modal_hard_delete_force_label": "Force (bypass 30-day wait)",
"admin_modal_cancel": "Cancel",
"admin_modal_confirm": "Confirm",
"admin_collective_detail_back": "Back to collectives",
"admin_collective_detail_members": "Members",
"admin_collective_detail_recent_actions": "Recent actions",
"admin_modal_remove_member_title": "Remove member",
"admin_modal_remove_member_help": "Membership is revoked immediately. Reason is logged.",
"admin_admins_title": "Server admins",
"admin_admins_promote": "Promote user",
"admin_admins_promote_help": "Enter the email of the user to promote.",
"admin_admins_email_label": "Email",
"admin_admins_email_placeholder": "user@example.com",
"admin_admins_email_not_found": "No user with that email.",
"admin_admins_revoke_self": "you (cannot revoke yourself while sole admin)",
"admin_admins_revoke": "Revoke",
"admin_audit_title": "Audit log",
"admin_audit_empty": "No actions logged yet.",
"admin_audit_col_when": "When",
"admin_audit_col_actor": "Actor",
"admin_audit_col_action": "Action",
"admin_audit_col_target": "Target",
"admin_audit_col_payload": "Payload",
"admin_server_title": "Server settings",
"admin_server_default_sections": "Default section visibility",
"admin_server_default_sections_help": "Server-level overrides. ON or OFF here wins over every collective and user override.",
"admin_server_section_state_off": "OFF",
"admin_server_section_state_on": "ON",
"admin_server_section_state_unset": "No opinion",
"admin_server_info": "Server info",
"admin_error_forbidden": "You don't have access to this area.",
"admin_error_unknown": "Something went wrong. Please try again.",
"common_items_title": "Common items",
"common_items_blurb": "Promote items that always appear first in suggestions, or hide noise. Members see the catalogue but cannot edit it.",
"common_items_search_placeholder": "Search items…",
"common_items_empty": "No common items yet. Items added to lists will appear here.",
"common_items_empty_filtered": "No items match your search.",
"common_items_col_name": "Name",
"common_items_col_weight": "Visibility",
"common_items_col_uses": "Uses",
"common_items_col_last_used": "Last used",
"common_items_col_actions": "Actions",
"common_items_state_hide": "Hide",
"common_items_state_normal": "Normal",
"common_items_state_boost": "Boost",
"common_items_state_locked_tooltip": "Only admins can manage common items.",
"common_items_purge_button": "Remove",
"common_items_purge_modal_title": "Remove {name}?",
"common_items_purge_modal_body": "This only removes the suggestion entry. Items already in lists are not affected.",
"common_items_purge_confirm": "Remove",
"common_items_add_button": "Add common item",
"common_items_add_modal_title": "Add common item",
"common_items_add_name_label": "Item name",
"common_items_add_name_placeholder": "e.g. olive oil",
"common_items_add_visibility_label": "Visibility",
"common_items_add_save": "Add",
"create_list_modal_title": "New shopping list",
"create_list_input_label": "List name",
"create_list_input_placeholder": "e.g. Weekly shop",
"create_list_submit": "Create",
"create_list_suggestion_chip": "Suggestion: {title}",
"create_list_auto_numbered_toast": "Created as “{title}”",
"manage_list_titles_section_title": "Suggested titles",
"manage_list_titles_blurb": "Pre-set a default title for new lists and curate suggestions admins want to surface.",
"manage_default_list_title_label": "Default new-list title",
"manage_default_list_title_placeholder": "e.g. Weekly shop",
"manage_default_list_title_clear": "Clear",
"manage_list_titles_empty": "No curated titles yet.",
"manage_list_titles_add_button": "Add title",
"manage_list_titles_add_modal_title": "Add suggested title",
"manage_list_titles_add_name_label": "Title",
"manage_list_titles_add_name_placeholder": "e.g. Compra",
"manage_list_titles_add_save": "Add",
"manage_list_titles_remove": "Remove",
"manage_list_titles_readonly": "Only admins can curate these titles."
}