diff --git a/android/app/build.gradle b/android/app/build.gradle index f45d9a0..4ae9f64 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -13,8 +13,8 @@ android { applicationId "com.donetick.app" minSdkVersion rootProject.ext.minSdkVersion targetSdkVersion rootProject.ext.targetSdkVersion - versionCode 66 - versionName "1.2.45" + versionCode 68 + versionName "1.2.47" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" aaptOptions { // Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps. diff --git a/index.html b/index.html index 93cec0b..035f40f 100644 --- a/index.html +++ b/index.html @@ -16,6 +16,28 @@ + + +
diff --git a/ios/App/App.xcodeproj/project.pbxproj b/ios/App/App.xcodeproj/project.pbxproj index 784fc3e..dfae351 100644 --- a/ios/App/App.xcodeproj/project.pbxproj +++ b/ios/App/App.xcodeproj/project.pbxproj @@ -462,12 +462,12 @@ CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION = YES; CODE_SIGN_ENTITLEMENTS = App/App.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 68; DEVELOPMENT_TEAM = 6UJJ78R3BS; INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 1.2.45; + MARKETING_VERSION = 1.2.47; PRODUCT_BUNDLE_IDENTIFIER = com.donetick.app; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -485,12 +485,12 @@ CODE_SIGN_IDENTITY = "Apple Distribution"; CODE_SIGN_STYLE = Manual; PROVISIONING_PROFILE_SPECIFIER = "Donetick App Store(fastline)"; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 68; DEVELOPMENT_TEAM = 6UJJ78R3BS; INFOPLIST_FILE = App/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 15.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - MARKETING_VERSION = 1.2.45; + MARKETING_VERSION = 1.2.47; PRODUCT_BUNDLE_IDENTIFIER = com.donetick.app; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = ""; @@ -504,12 +504,12 @@ buildSettings = { CODE_SIGN_ENTITLEMENTS = DonetickWidget/DonetickWidget.entitlements; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 68; DEVELOPMENT_TEAM = 6UJJ78R3BS; INFOPLIST_FILE = DonetickWidget/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - MARKETING_VERSION = 1.2.45; + MARKETING_VERSION = 1.2.47; PRODUCT_BUNDLE_IDENTIFIER = com.donetick.app.widget; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; @@ -527,12 +527,12 @@ CODE_SIGN_IDENTITY = "Apple Distribution"; CODE_SIGN_STYLE = Manual; PROVISIONING_PROFILE_SPECIFIER = "Donetick Widget App Store(fastline)"; - CURRENT_PROJECT_VERSION = 66; + CURRENT_PROJECT_VERSION = 68; DEVELOPMENT_TEAM = 6UJJ78R3BS; INFOPLIST_FILE = DonetickWidget/Info.plist; IPHONEOS_DEPLOYMENT_TARGET = 17.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks"; - MARKETING_VERSION = 1.2.45; + MARKETING_VERSION = 1.2.47; PRODUCT_BUNDLE_IDENTIFIER = com.donetick.app.widget; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; diff --git a/package-lock.json b/package-lock.json index d692d3a..0415b44 100644 --- a/package-lock.json +++ b/package-lock.json @@ -64,6 +64,7 @@ "js-cookie": "^3.0.5", "moment": "^2.30.1", "murmurhash": "^2.0.1", + "posthog-js": "^1.415.5", "prop-types": "^15.8.1", "qrcode": "^1.5.4", "quill": "^2.0.3", @@ -2322,8 +2323,6 @@ }, "node_modules/@emotion/cache": { "version": "11.14.0", - "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-11.14.0.tgz", - "integrity": "sha512-L/B1lc/TViYk4DcpGxtAVbx0ZyiKM5ktoIyafGkH6zg/tj+mA+NE//aPYKG0k8kCHSHVJrpLpcAlOBEXQ3SavA==", "license": "MIT", "dependencies": { "@emotion/memoize": "^0.9.0", @@ -4586,6 +4585,31 @@ "url": "https://opencollective.com/popperjs" } }, + "node_modules/@posthog/browser-common": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@posthog/browser-common/-/browser-common-0.5.0.tgz", + "integrity": "sha512-8DaxVZS1bQPbA514RePurLNbYjei3P4jhnC206DwVv5XThmZM3QdlsXenI2ujE3pLbgQ79hYn9o1Kda8I3WK/Q==", + "license": "MIT", + "dependencies": { + "@posthog/core": "^1.47.0", + "@posthog/types": "^1.402.2" + } + }, + "node_modules/@posthog/core": { + "version": "1.47.0", + "resolved": "https://registry.npmjs.org/@posthog/core/-/core-1.47.0.tgz", + "integrity": "sha512-LW62V+9yx7G7mLd+EYpwW0PiaPZI8XRJ1tLuhw+9fXHpugLp8XQD5JuCQ2kIXvoUfyx1DpKfGQY3dUnzMOIn7Q==", + "license": "MIT", + "dependencies": { + "@posthog/types": "^1.402.2" + } + }, + "node_modules/@posthog/types": { + "version": "1.402.3", + "resolved": "https://registry.npmjs.org/@posthog/types/-/types-1.402.3.tgz", + "integrity": "sha512-nnqKIGUqggeNbCZg6of/hYN+4shYZUoPFkILIIpYq0p9HDX8PgOrnrtBAUH8kr1MOmDh2nm+fY5Ceks7A5y6BQ==", + "license": "MIT" + }, "node_modules/@prettier/plugin-xml": { "version": "2.2.0", "dev": true, @@ -7391,6 +7415,20 @@ "version": "1.9.0", "license": "MIT" }, + "node_modules/core-js": { + "version": "3.50.0", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.50.0.tgz", + "integrity": "sha512-BRWgOLKkFeCgRudR6zrs8p9XJZcE14grzKMMssoYrk6krtuEZ7MTKPIY5RzOnqsEKIR9kst7wNzphttraT+Yqw==", + "hasInstallScript": true, + "license": "MIT", + "engines": { + "node": "*" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, "node_modules/core-js-compat": { "version": "3.45.1", "license": "MIT", @@ -7932,6 +7970,15 @@ "url": "https://github.com/fb55/domhandler?sponsor=1" } }, + "node_modules/dompurify": { + "version": "3.4.13", + "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.4.13.tgz", + "integrity": "sha512-2vmYIoqjze2d+kakP8S/nS5shfsl587kzwEjcGlTdiksUVgFHnFCsLYDVj/JNqJVOQZGSYBTmuycv0PodwmnMQ==", + "license": "(MPL-2.0 OR Apache-2.0)", + "optionalDependencies": { + "@types/trusted-types": "^2.0.7" + } + }, "node_modules/domutils": { "version": "2.8.0", "dev": true, @@ -12018,6 +12065,48 @@ "dev": true, "license": "MIT" }, + "node_modules/posthog-js": { + "version": "1.415.5", + "resolved": "https://registry.npmjs.org/posthog-js/-/posthog-js-1.415.5.tgz", + "integrity": "sha512-IUmPFtZjwDZYnRmttl+Xo5f/zDVdMdfWdZFxHqtAqq4wMwElr4dIpXmEUzh4nO8NtWT3zBmrL9+c7zZ3avzJZw==", + "license": "(Apache-2.0 AND MIT)", + "dependencies": { + "@posthog/browser-common": "^0.5.0", + "@posthog/core": "^1.47.0", + "@posthog/types": "^1.402.3", + "core-js": "^3.49.0", + "dompurify": "^3.4.13", + "fflate": "^0.4.8", + "preact": "^10.29.3", + "query-selector-shadow-dom": "^1.0.1", + "web-vitals": "^5.3.0", + "web-vitals-soft-navs": "npm:web-vitals@6.0.0" + } + }, + "node_modules/posthog-js/node_modules/fflate": { + "version": "0.4.9", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.4.9.tgz", + "integrity": "sha512-zdxgIEddhfsyCaWpJ2SdXEP8ZMrKJ6+5jl4OupODcywU0IhRk6gdXuVGcPICyfx2H97hVK7xmJtRLPjkxAX8Vw==", + "license": "MIT" + }, + "node_modules/preact": { + "version": "10.29.8", + "resolved": "https://registry.npmjs.org/preact/-/preact-10.29.8.tgz", + "integrity": "sha512-ej2aVZ+vZ8WO7tvlQWRM9N63A0KzF9q4mWJfDUHgYaIofWY9hu74QdnQrjoPMmZi2/nZ5gN0bJCQF49xQqx09Q==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/preact" + }, + "peerDependencies": { + "preact-render-to-string": ">=5" + }, + "peerDependenciesMeta": { + "preact-render-to-string": { + "optional": true + } + } + }, "node_modules/prebuild-install": { "version": "7.1.3", "devOptional": true, @@ -12402,6 +12491,12 @@ ], "license": "MIT" }, + "node_modules/query-selector-shadow-dom": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/query-selector-shadow-dom/-/query-selector-shadow-dom-1.0.1.tgz", + "integrity": "sha512-lT5yCqEBgfoMYpf3F2xQRK7zEr1rhIIZuceDK6+xRkJQ4NMbHTwXqk4NkwDwQMNqXgG9r9fyHnzwNVs6zV5KRw==", + "license": "MIT" + }, "node_modules/queue-microtask": { "version": "1.2.3", "dev": true, @@ -12466,15 +12561,6 @@ "regenerator-runtime": "^0.13.9" } }, - "node_modules/quilljs-markdown/node_modules/core-js": { - "version": "3.45.1", - "hasInstallScript": true, - "license": "MIT", - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, "node_modules/raf-schd": { "version": "4.0.3", "license": "MIT" @@ -15262,6 +15348,19 @@ "integrity": "sha512-zksaLKM2fVlnB5jQQDqKXXwYHLQUVH9es+5TOOHwGOVJOCeRBCiPjwSg+3tN2AdTCzjgli4jijCH290kXb/zWQ==", "license": "Apache-2.0" }, + "node_modules/web-vitals": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-5.3.0.tgz", + "integrity": "sha512-q6LWsLatGYZp5VGBIOvbTj6JBV2nOmC8KvWztXBmwJcfFAzhwKwbOxhUH306XY3CcaZDUlSmSuNPBsCn0bFu+g==", + "license": "Apache-2.0" + }, + "node_modules/web-vitals-soft-navs": { + "name": "web-vitals", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-6.0.0.tgz", + "integrity": "sha512-Guaibvy/+uNtL6Bsu4jmMJGzuSl91oeRH5iO9pPRbYftnFUr3yqT1TUNX/OE4o9HexuEMU3Kb/Wg7iKhlffZUA==", + "license": "Apache-2.0" + }, "node_modules/webidl-conversions": { "version": "3.0.1", "license": "BSD-2-Clause" diff --git a/package.json b/package.json index 9c20283..f8db11a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "donetick", "private": true, - "version": "1.2.45", + "version": "1.2.47", "type": "module", "engines": { "node": ">=20.0.0", @@ -96,6 +96,7 @@ "js-cookie": "^3.0.5", "moment": "^2.30.1", "murmurhash": "^2.0.1", + "posthog-js": "^1.415.5", "prop-types": "^15.8.1", "qrcode": "^1.5.4", "quill": "^2.0.3", diff --git a/public/locales/ar/auth.json b/public/locales/ar/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/ar/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/ar/chores.json b/public/locales/ar/chores.json index 38887d1..ebd0674 100644 --- a/public/locales/ar/chores.json +++ b/public/locales/ar/chores.json @@ -71,5 +71,11 @@ "reset": "إعادة تعيين المؤقت", "delete": "حذف الجلسة" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/ar/common.json b/public/locales/ar/common.json index ef4ad0a..cae00e2 100644 --- a/public/locales/ar/common.json +++ b/public/locales/ar/common.json @@ -29,7 +29,8 @@ "filters": "الفلاتر", "activities": "الأنشطة", "points": "النقاط", - "settings": "الإعدادات" + "settings": "الإعدادات", + "reportBug": "Report a Bug" }, "search": { "title": "بحث", @@ -64,11 +65,7 @@ "footer": { "navigate": "تنقل", "open": "فتح", - "results_zero": "لا توجد نتائج", "results_one": "نتيجة واحدة", - "results_two": "نتيجتان", - "results_few": "{{count}} نتائج", - "results_many": "{{count}} نتيجة", "results_other": "{{count}} نتيجة", "typeToSearch": "اكتب للبحث" } @@ -118,5 +115,37 @@ "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", "open": "Open the issue" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/ar/filters.json b/public/locales/ar/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/ar/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/ar/history.json b/public/locales/ar/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/ar/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/ar/labels.json b/public/locales/ar/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/ar/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/ar/points.json b/public/locales/ar/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/ar/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/ar/projects.json b/public/locales/ar/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/ar/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/ar/settings.json b/public/locales/ar/settings.json index ea5a7c4..8b6f1a8 100644 --- a/public/locales/ar/settings.json +++ b/public/locales/ar/settings.json @@ -171,7 +171,7 @@ "description": "غيّر إعدادات حسابك أو نوع خطتك أو كلمة المرور", "accountType": "نوع الحساب: {{type}}", "free": "مجاني", - "plus": "Plus", + "plus": "بلس", "plusUntil": "Plus (حتى {{date}})", "activeDescription": "أنت مشترك حاليًا في خطة Plus. سيتجدد اشتراكك في {{date}}.", "cancelledDescription": "لقد ألغيت اشتراكك. سيتم خفض حسابك إلى الخطة المجانية في {{date}}.", @@ -490,5 +490,78 @@ "notConnected": "التحديثات الفورية مفعّلة لكن لا يوجد اتصال حاليًا.", "basicPlanNotice": "التحديثات الفورية غير متاحة في الخطة الأساسية. رقِّ إلى Plus لتلقّي إشعارات فورية عندما تنجز أنت أو أعضاء دائرتك المهام أو تتخطّونها أو تعدّلونها." } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/ar/things.json b/public/locales/ar/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/ar/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/ar/timer.json b/public/locales/ar/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/ar/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/de/auth.json b/public/locales/de/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/de/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/de/chores.json b/public/locales/de/chores.json index e47f49e..cba362c 100644 --- a/public/locales/de/chores.json +++ b/public/locales/de/chores.json @@ -71,5 +71,11 @@ "reset": "Timer zurücksetzen", "delete": "Sitzung löschen" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/de/common.json b/public/locales/de/common.json index 20c0c0a..da4073f 100644 --- a/public/locales/de/common.json +++ b/public/locales/de/common.json @@ -29,7 +29,8 @@ "filters": "Filter", "activities": "Aktivitäten", "points": "Punkte", - "settings": "Einstellungen" + "settings": "Einstellungen", + "reportBug": "Report a Bug" }, "search": { "title": "Suche", @@ -114,5 +115,37 @@ "subtitle": "Wir haben ein Problem mit Ihren Notizen und Versionsdetails vorausgefüllt. Es wurde noch nichts verschickt – überprüfe es und poste, sobald du bereit bist.", "open": "Eröffne das Problem" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/de/filters.json b/public/locales/de/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/de/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/de/history.json b/public/locales/de/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/de/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/de/labels.json b/public/locales/de/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/de/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/de/points.json b/public/locales/de/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/de/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/de/projects.json b/public/locales/de/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/de/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/de/settings.json b/public/locales/de/settings.json index 8717f88..bc674cf 100644 --- a/public/locales/de/settings.json +++ b/public/locales/de/settings.json @@ -490,5 +490,78 @@ "notConnected": "Echtzeit-Updates sind aktiviert, aber derzeit nicht verbunden.", "basicPlanNotice": "Echtzeit-Updates sind im Basis-Tarif nicht verfügbar. Wechsle zu Plus, um sofort benachrichtigt zu werden, wenn du oder andere Circle-Mitglieder Aufgaben erledigen, überspringen oder ändern." } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/de/things.json b/public/locales/de/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/de/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/de/timer.json b/public/locales/de/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/de/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/en/chores.json b/public/locales/en/chores.json index 72c8dc6..31db9aa 100644 --- a/public/locales/en/chores.json +++ b/public/locales/en/chores.json @@ -72,7 +72,17 @@ "delete": "Delete Session" }, "unableUndo": "Failed to undo", - "restoreFailed": "Failed to restore" + "offlineComplete": "You're offline — completion will sync when back online", + "unableComplete": "Unable to complete task", + "offlineSkip": "You're offline — skip will sync when back online", + "unableSkip": "Unable to skip task", + "offlineStart": "You're offline — start will sync when back online", + "unableStart": "Unable to start task", + "offlinePause": "You're offline — pause will sync when back online", + "unablePause": "Unable to pause task", + "offlineRestore": "You're offline — restore will sync when back online", + "restoreFailed": "Failed to restore", + "unableRestore": "Unable to restore task" }, "toolbar": { "defaultProject": "Default Project", diff --git a/public/locales/en/common.json b/public/locales/en/common.json index fe1f4d4..6f55fb1 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -70,6 +70,13 @@ "typeToSearch": "Type to search" } }, + "policyUpdate": { + "title": "We've updated our Privacy Policy and Terms", + "subtitle": "Please take a moment to review them. By continuing to use Donetick, you accept the updated documents.", + "readPrivacy": "Privacy Policy", + "readTerms": "Terms", + "acknowledge": "Got it" + }, "feedback": { "later": "Maybe later", "sentiment": { diff --git a/public/locales/en/settings.json b/public/locales/en/settings.json index 5e9e6c8..ead40df 100644 --- a/public/locales/en/settings.json +++ b/public/locales/en/settings.json @@ -78,6 +78,10 @@ "title": "Advanced Settings", "description": "Configure webhooks, real-time updates, and other advanced features for enhanced productivity." }, + "privacy": { + "title": "Privacy & Analytics", + "description": "Control anonymous usage analytics and crash reporting." + }, "developer": { "title": "Developer Settings", "description": "View technical information about authentication tokens, SSE connections, and debug data." @@ -348,7 +352,8 @@ "backupCodesModal": { "title": "New Backup Codes", "warning": "Your previous backup codes are now invalid. Save these new codes in a safe place. Each code can only be used once." - } + }, + "generateCodes": "Generate New Codes" }, "apiTokens": { "title": "API Tokens", @@ -491,6 +496,15 @@ "basicPlanNotice": "Real-time updates are not available in the Basic plan. Upgrade to Plus to receive instant notifications when you or other circle members complete, skip, or modify tasks." } }, + "privacyAnalytics": { + "title": "Privacy & Analytics", + "description": "Donetick never sends task names, descriptions, notes, or other task content. Session recording is never enabled.", + "analyticsToggle": "Anonymous analytics", + "analyticsHelper": "Help improve Donetick by sharing anonymous usage statistics.", + "crashToggle": "Crash reports", + "crashHelper": "Send us the error and what led to it when Donetick crashes no task content.", + "footnote": "You can change these choices at any time." + }, "subscription": { "sessionFailed": "Failed to create subscription session", "errorTitle": "Subscription Error", diff --git a/public/locales/es/auth.json b/public/locales/es/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/es/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/es/chores.json b/public/locales/es/chores.json index 2af9159..68f93f6 100644 --- a/public/locales/es/chores.json +++ b/public/locales/es/chores.json @@ -71,5 +71,11 @@ "reset": "Reiniciar Temporizador", "delete": "Eliminar Sesión" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/es/common.json b/public/locales/es/common.json index b3e9f38..edfc97b 100644 --- a/public/locales/es/common.json +++ b/public/locales/es/common.json @@ -29,7 +29,8 @@ "filters": "Filtros", "activities": "Actividades", "points": "Puntos", - "settings": "Configuración" + "settings": "Configuración", + "reportBug": "Report a Bug" }, "search": { "title": "Buscar", @@ -114,5 +115,37 @@ "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", "open": "Open the issue" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/es/filters.json b/public/locales/es/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/es/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/es/history.json b/public/locales/es/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/es/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/es/labels.json b/public/locales/es/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/es/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/es/points.json b/public/locales/es/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/es/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/es/projects.json b/public/locales/es/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/es/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/es/settings.json b/public/locales/es/settings.json index 15583d7..1c9a6d4 100644 --- a/public/locales/es/settings.json +++ b/public/locales/es/settings.json @@ -490,5 +490,78 @@ "notConnected": "Las actualizaciones en tiempo real están activadas pero ahora mismo no hay conexión.", "basicPlanNotice": "Las actualizaciones en tiempo real no están disponibles en el plan Básico. Mejora a Plus para recibir notificaciones instantáneas cuando tú u otros miembros del círculo completéis, omitáis o modifiquéis tareas." } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/es/things.json b/public/locales/es/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/es/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/es/timer.json b/public/locales/es/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/es/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/fr/auth.json b/public/locales/fr/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/fr/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/fr/chores.json b/public/locales/fr/chores.json index 38a6911..f73ba4e 100644 --- a/public/locales/fr/chores.json +++ b/public/locales/fr/chores.json @@ -71,5 +71,11 @@ "reset": "Réinitialiser le Minuteur", "delete": "Supprimer la Session" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/fr/common.json b/public/locales/fr/common.json index d8c05b0..4a40f04 100644 --- a/public/locales/fr/common.json +++ b/public/locales/fr/common.json @@ -29,7 +29,8 @@ "filters": "Filtres", "activities": "Activités", "points": "Points", - "settings": "Paramètres" + "settings": "Paramètres", + "reportBug": "Report a Bug" }, "search": { "title": "Recherche", @@ -44,7 +45,7 @@ }, "groups": { "tasks": "Tâches", - "history": "Notes", + "history": "Remarques", "projects": "Projets", "labels": "Étiquettes", "people": "Personnes", @@ -70,49 +71,81 @@ } }, "feedback": { - "later": "Maybe later", + "later": "Peut-être plus tard", "sentiment": { "title": "How's Donetick working for you?", "subtitle": "Votre réponse nous aide à décider de ce qu'il faut construire ensuite.", "options": { - "love": "Love it", - "okay": "It's okay", - "issues": "Having issues" + "love": "J'adore", + "okay": "C'est ok", + "issues": "Problèmes rencontrés" } }, "categories": { - "bugs": "Bugs", - "missingFeature": "Missing feature", - "tooComplicated": "Too complicated", - "slow": "Slow", + "bugs": "Anomalies", + "missingFeature": "Fonctionnalités manquantes", + "tooComplicated": "Trop compliqué", + "slow": "Lent", "notifications": "Notifications", - "ai": "AI", - "other": "Other" + "ai": "IA", + "other": "Autres" }, "details": { - "title": "What could we improve?", - "messageLabel": "Tell us more", + "title": "Que pouvons-nous améliorer ?", + "messageLabel": "Dites-nous-en plus", "messagePlaceholder": "What happened, or what would make this better?", "contextNote": "We'll include your app version, device and platform so we can reproduce issues.", - "submit": "Send feedback", - "contextNoteSelfHosted": "You're on a self-hosted instance, so nothing is sent from your server — we'll open a pre-filled GitHub issue you can review and edit first.", - "submitSelfHosted": "Continue to GitHub" + "submit": "Envoyer vos remarques", + "contextNoteSelfHosted": "Vous êtes sur une instance autohébergée, donc rien n'est envoyé depuis votre serveur — nous allons ouvrir un problème GitHub prérempli que vous pouvez examiner et modifier si besoin.", + "submitSelfHosted": "Continuer sur GitHub" }, "review": { - "title": "Glad you're enjoying it!", + "title": "Nous sommes ravis que vous l'appréciez !", "subtitle": "A rating or a star helps other people find Donetick.", - "github": "Star on GitHub", - "appStore": "Rate on the App Store", - "playStore": "Rate on Google Play" + "github": "Mettez une étoile sur GitHub", + "appStore": "Évaluer sur l'App Store", + "playStore": "Évaluer sur Google Play" }, "thanks": { - "title": "Thanks for the feedback", + "title": "Merci pour votre retour", "subtitle": "We read every response and it shapes what we work on next." }, "github": { - "title": "Report it on GitHub", + "title": "Signaler sur GitHub", "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", - "open": "Open the issue" + "open": "Ouvrir un ticket" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/fr/filters.json b/public/locales/fr/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/fr/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/fr/history.json b/public/locales/fr/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/fr/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/fr/labels.json b/public/locales/fr/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/fr/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/fr/points.json b/public/locales/fr/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/fr/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/fr/projects.json b/public/locales/fr/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/fr/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/fr/settings.json b/public/locales/fr/settings.json index 64e90a5..4f8968f 100644 --- a/public/locales/fr/settings.json +++ b/public/locales/fr/settings.json @@ -490,5 +490,78 @@ "notConnected": "Les mises à jour en temps réel sont activées mais non connectées actuellement.", "basicPlanNotice": "Les mises à jour en temps réel ne sont pas disponibles dans la formule de base. Passez à Plus pour recevoir des notifications instantanées lorsque vous ou d'autres membres du cercle terminez, passez ou modifiez des tâches." } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/fr/things.json b/public/locales/fr/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/fr/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/fr/timer.json b/public/locales/fr/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/fr/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/ja/auth.json b/public/locales/ja/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/ja/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/ja/chores.json b/public/locales/ja/chores.json index cb1dac3..a9c5c99 100644 --- a/public/locales/ja/chores.json +++ b/public/locales/ja/chores.json @@ -71,5 +71,11 @@ "reset": "タイマーをリセット", "delete": "セッションを削除" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/ja/common.json b/public/locales/ja/common.json index 0fb166f..06cae8c 100644 --- a/public/locales/ja/common.json +++ b/public/locales/ja/common.json @@ -29,7 +29,8 @@ "filters": "フィルター", "activities": "アクティビティ", "points": "ポイント", - "settings": "設定" + "settings": "設定", + "reportBug": "Report a Bug" }, "search": { "title": "検索", @@ -64,6 +65,7 @@ "footer": { "navigate": "移動", "open": "開く", + "results_one": "{{count}} result", "results_other": "{{count}} 件の結果", "typeToSearch": "入力して検索" } @@ -113,5 +115,37 @@ "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", "open": "Open the issue" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/ja/filters.json b/public/locales/ja/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/ja/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/ja/history.json b/public/locales/ja/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/ja/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/ja/labels.json b/public/locales/ja/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/ja/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/ja/points.json b/public/locales/ja/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/ja/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/ja/projects.json b/public/locales/ja/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/ja/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/ja/settings.json b/public/locales/ja/settings.json index dc433ab..3199f0f 100644 --- a/public/locales/ja/settings.json +++ b/public/locales/ja/settings.json @@ -490,5 +490,78 @@ "notConnected": "リアルタイム更新は有効ですが、現在接続されていません。", "basicPlanNotice": "リアルタイム更新はベーシックプランではご利用いただけません。Plusにアップグレードすると、あなたや他のサークルメンバーがタスクを完了・スキップ・変更したときにすぐ通知を受け取れます。" } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/ja/things.json b/public/locales/ja/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/ja/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/ja/timer.json b/public/locales/ja/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/ja/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/nl/auth.json b/public/locales/nl/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/nl/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/nl/chores.json b/public/locales/nl/chores.json index 04569df..0bb8f25 100644 --- a/public/locales/nl/chores.json +++ b/public/locales/nl/chores.json @@ -71,5 +71,11 @@ "reset": "Timer Resetten", "delete": "Sessie Verwijderen" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/nl/common.json b/public/locales/nl/common.json index 5da32d4..bc5fb3f 100644 --- a/public/locales/nl/common.json +++ b/public/locales/nl/common.json @@ -29,7 +29,8 @@ "filters": "Filters", "activities": "Activiteiten", "points": "Punten", - "settings": "Instellingen" + "settings": "Instellingen", + "reportBug": "Report a Bug" }, "search": { "title": "Zoeken", @@ -114,5 +115,37 @@ "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", "open": "Open the issue" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/nl/filters.json b/public/locales/nl/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/nl/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/nl/history.json b/public/locales/nl/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/nl/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/nl/labels.json b/public/locales/nl/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/nl/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/nl/points.json b/public/locales/nl/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/nl/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/nl/projects.json b/public/locales/nl/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/nl/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/nl/settings.json b/public/locales/nl/settings.json index a188d42..00720e6 100644 --- a/public/locales/nl/settings.json +++ b/public/locales/nl/settings.json @@ -490,5 +490,78 @@ "notConnected": "Realtime-updates staan aan maar er is momenteel geen verbinding.", "basicPlanNotice": "Realtime-updates zijn niet beschikbaar in het basisabonnement. Upgrade naar Plus om direct meldingen te ontvangen wanneer jij of andere circle-leden taken afronden, overslaan of wijzigen." } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/nl/things.json b/public/locales/nl/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/nl/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/nl/timer.json b/public/locales/nl/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/nl/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/pt/auth.json b/public/locales/pt/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/pt/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/pt/chores.json b/public/locales/pt/chores.json index 7e4df50..52f8fbf 100644 --- a/public/locales/pt/chores.json +++ b/public/locales/pt/chores.json @@ -71,5 +71,11 @@ "reset": "Reiniciar cronômetro", "delete": "Excluir sessão" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/pt/common.json b/public/locales/pt/common.json index dd2514a..15a71ad 100644 --- a/public/locales/pt/common.json +++ b/public/locales/pt/common.json @@ -29,7 +29,8 @@ "filters": "Filtros", "activities": "Atividades", "points": "Pontos", - "settings": "Configurações" + "settings": "Configurações", + "reportBug": "Report a Bug" }, "search": { "title": "Pesquisar", @@ -114,5 +115,37 @@ "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", "open": "Open the issue" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/pt/filters.json b/public/locales/pt/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/pt/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/pt/history.json b/public/locales/pt/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/pt/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/pt/labels.json b/public/locales/pt/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/pt/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/pt/points.json b/public/locales/pt/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/pt/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/pt/projects.json b/public/locales/pt/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/pt/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/pt/settings.json b/public/locales/pt/settings.json index b12cfee..e27322f 100644 --- a/public/locales/pt/settings.json +++ b/public/locales/pt/settings.json @@ -490,5 +490,78 @@ "notConnected": "As atualizações em tempo real estão ativadas, mas não há conexão no momento.", "basicPlanNotice": "As atualizações em tempo real não estão disponíveis no plano Básico. Mude para o Plus para receber notificações instantâneas quando você ou outros membros do círculo concluírem, pularem ou modificarem tarefas." } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/pt/things.json b/public/locales/pt/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/pt/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/pt/timer.json b/public/locales/pt/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/pt/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/public/locales/zh/auth.json b/public/locales/zh/auth.json new file mode 100644 index 0000000..28cdec1 --- /dev/null +++ b/public/locales/zh/auth.json @@ -0,0 +1,111 @@ +{ + "validationError": "Validation Error", + "primaryUsernameRequired": "Primary username is required for sub account login", + "subNameRequired": "Sub account name is required for sub account login", + "usernameRequired": "Username is required", + "passwordRequired": "Password is required", + "loginFailed": "Login Failed", + "genericError": "An error occurred, please try again", + "providerLoginFailed": "{{provider}} Login Failed", + "providerLoginFailedMsg": "Couldn't log in with {{provider}}, please try again", + "providerLoginError": "{{provider}} Login Error", + "networkError": "Network error occurred, please try again", + "mfaFailed": "Two-Factor Authentication Failed", + "oauthError": "OAuth Error", + "oauthBrowserFailed": "Failed to open authentication browser", + "primaryAccount": "Primary Account", + "subAccount": "Sub Account", + "username": "Username", + "primaryUsernamePlaceholder": "Enter primary account username", + "subNamePlaceholder": "Enter sub account name", + "forgotPassword": "Forgot password?", + "or": "or", + "email": "Email", + "displayNamePlaceholder": "How others see your name", + "signupFailed": "Signup Failed", + "signupDisabled": "Signup disabled, please contact admin", + "usernameMinLength": "Username must be at least 4 characters", + "invalidEmail": "Invalid email address", + "passwordLength": "Password must be between 8 and 64 characters", + "displayNameRequired": "Display name is required", + "displayNameChars": "Display name can only contain letters and numbers", + "resetEmailSent": "Reset Email Sent", + "resetEmailSentMsg": "Check your email for password reset instructions", + "resetFailed": "Reset Failed", + "resetFailedMsg": "Failed to send reset email, please try again later", + "emailPlaceholder": "you@example.com", + "passwordUpdated": "Password Updated", + "passwordUpdatedMsg": "Your password has been updated successfully. Redirecting to login...", + "passwordUpdateFailed": "Password Update Failed", + "passwordUpdateFailedMsg": "Failed to update password, please try again later", + "savePassword": "Save password", + "server": { + "url": "Server URL", + "dnsFailed": "Hostname could not be resolved. Check the URL for typos or verify DNS.", + "unreachable": "Unable to reach the server. Check the URL, port, and network connection.", + "invalidUrl": "Invalid URL format. Include the protocol (http:// or https://) and port if needed." + }, + "mfaModal": { + "title": "Two-factor authentication", + "codeRequired": "Please enter a verification code", + "verifyFailed": "Failed to verify code. Please try again.", + "backupHint": "Enter one of the backup codes you saved when setting up two-factor authentication.", + "codeHint": "Enter the 6-digit code from your authenticator app.", + "verify": "Verify & Sign In", + "backupLabel": "Backup code", + "codeLabel": "Verification code", + "backupPlaceholder": "Enter backup code", + "useAuthenticator": "Use authenticator app instead", + "useBackup": "Use a backup code instead", + "backupOnce": "Each backup code can only be used once.", + "invalidCode": "Invalid verification code. Please try again." + }, + "appleLoginFailed": "Apple Login Failed", + "googleLoginFailed": "Google Login Failed", + "createOne": "Create one", + "primaryAccountUsernameLabel": "Primary account username", + "subAccountNameLabel": "Sub account name", + "serverSettings": "Server settings", + "useDifferentAccount": "Use a different account", + "yourUsername": "Your username", + "backToSignIn": "Back to sign in", + "confirmNewPassword": "Confirm new password", + "newPassword": "New password", + "reenterPassword": "Re-enter your password", + "requestNewLink": "Request a new link", + "setNewPassword": "Set a new password", + "linkInvalid": "This link is not valid", + "createAccountButton": "Create account", + "createYourAccount": "Create your account", + "displayNameLabel": "Display name", + "usernameHint": "lowercase letters, numbers, dot and dash", + "termsShort": "By creating an account you agree to our Terms of Service and Privacy", + "checkYourEmail": "Check your email", + "resetYourPassword": "Reset your password", + "serverChangeWarning": "Changing the server clears locally cached data on this device.", + "serverConnected": "Connected. Taking you to sign in...", + "passwordLabel": "Password", + "showPassword": "Show password", + "hidePassword": "Hide password", + "loginPasswordPlaceholder": "Enter your password", + "signupPasswordPlaceholder": "At least 8 characters", + "signupPasswordHelper": "Use 8 to 64 characters.", + "orContinueWith": "or continue with", + "signupSignInFailed": "Your account was created, but signing in failed. Please sign in.", + "authenticating": { + "signingIn": "Signing you in", + "signingInSub": "This will only take a moment.", + "unknownProvider": "Unknown sign-in provider", + "contactSupport": "Please contact support.", + "signInFailed": "Sign-in failed", + "mfaCancelled": "Two-factor authentication was cancelled.", + "requestNotVerified": "The sign-in request could not be verified.", + "tryAgain": "Please try again.", + "mfaSessionMissing": "The MFA session is missing. Please try again.", + "twoFactor": "Two-factor authentication", + "verifyToContinue": "Verify your login to continue.", + "noToken": "No valid authentication token was returned.", + "backToSignIn": "Back to sign in", + "mfaFailed": "Two-factor authentication failed. Please try again." + } +} diff --git a/public/locales/zh/chores.json b/public/locales/zh/chores.json index ec82037..50b151f 100644 --- a/public/locales/zh/chores.json +++ b/public/locales/zh/chores.json @@ -71,5 +71,11 @@ "reset": "Reset Timer", "delete": "Delete Session" } + }, + "toolbar": { + "defaultProject": "Default Project" + }, + "sort": { + "assignedToMe": "Assigned to me" } } diff --git a/public/locales/zh/common.json b/public/locales/zh/common.json index 258c263..aa1a1d5 100644 --- a/public/locales/zh/common.json +++ b/public/locales/zh/common.json @@ -29,7 +29,8 @@ "filters": "Filters", "activities": "Activities", "points": "Points", - "settings": "Settings" + "settings": "Settings", + "reportBug": "Report a Bug" }, "search": { "title": "搜索", @@ -114,5 +115,37 @@ "subtitle": "We've filled in an issue with your notes and version details. Nothing has been sent yet — review it and post when you're ready.", "open": "Open the issue" } + }, + "done": "Done", + "clearAll": "Clear all", + "upload": { + "quotaTitle": "Storage Quota Exceeded", + "quotaMessage": "You have exceeded your quota for uploading files.", + "tooLargeTitle": "File Too Large", + "tooLargeMessage": "The file you are trying to upload is too large.", + "deniedTitle": "Permission Denied", + "deniedMessage": "You do not have permission to upload files." + }, + "getStarted": "Get Started!", + "imageLoadFailed": "Failed to load image.", + "typeHere": "Type in here…", + "summaryOfChores": "This is a summary of your chores", + "loadingOffline": "You are offline", + "loadingOfflineSub": "This not available while offline. Please check your internet connection and try again.", + "loadingSlow": "This is taking longer than usual. There might be an issue.", + "navigateBack": "Navigate Back", + "bottomNav": "Bottom Navigation", + "profile": "Profile", + "autocompletePlaceholder": "Type here...", + "errorScreen": { + "title": "Something went wrong", + "fallback": "An unexpected error occurred. Try reloading — it usually fixes it.", + "tryAgain": "Try again", + "home": "Home", + "login": "Login", + "hideDetails": "Hide error details", + "showDetails": "Show error details", + "copyToClipboard": "Copy to clipboard", + "copied": "Error details copied to clipboard" } } diff --git a/public/locales/zh/filters.json b/public/locales/zh/filters.json new file mode 100644 index 0000000..6b10047 --- /dev/null +++ b/public/locales/zh/filters.json @@ -0,0 +1,17 @@ +{ + "builder": { + "errorName": "Please enter a filter name", + "errorConditions": "Please configure at least one filter condition", + "editTitle": "Edit Filter", + "newTitle": "New Filter", + "addConditions": "Add conditions to preview", + "save": "Save Filter", + "name": "Filter Name", + "namePlaceholder": "e.g. Overdue tasks for Alice", + "color": "Color" + }, + "nameExists": "A filter with this name already exists", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "overdue": "{{count}} overdue" +} diff --git a/public/locales/zh/history.json b/public/locales/zh/history.json new file mode 100644 index 0000000..1452849 --- /dev/null +++ b/public/locales/zh/history.json @@ -0,0 +1,89 @@ +{ + "edit": { + "title": "Edit History", + "completedDate": "Completed Date", + "note": "Note", + "additionalNotes": "Additional Notes", + "deleteTitle": "Delete History", + "deleteMessage": "Are you sure you want to delete this history?" + }, + "status": { + "inProgress": "In Progress", + "completed": "Completed", + "skipped": "Skipped", + "pendingApproval": "Pending Approval", + "rejected": "Rejected", + "missed": "Missed", + "rescheduled": "Rescheduled", + "scheduled": "Scheduled" + }, + "badge": { + "onTime": "On Time", + "onTimeLabel": "On time" + }, + "detail": { + "title": "Activity Detail", + "openTask": "Open Task", + "editEntry": "Edit Entry", + "performedBy": "Performed by", + "assignedTo": "Assigned to", + "lastUpdated": "Last updated", + "duration": "Duration", + "pointsEarned": "Points earned", + "points_one": "{{count}} pt", + "points_other": "{{count}} pts", + "note": "Note" + }, + "charts": { + "noData": "No data available", + "noLabels": "No Labels", + "unassigned": "Unassigned", + "unknownTask": "Unknown Task", + "late": "Late", + "status": { + "title": "Status", + "description": "Completed tasks status" + }, + "due": { + "title": "Due Date", + "description": "Current tasks due date" + }, + "priority": { + "title": "Priority", + "description": "Tasks by priority" + }, + "labels": { + "title": "Labels", + "description": "Tasks by labels" + }, + "labelsDuration": { + "title": "Labels (time)", + "description": "Time spent by labels (hours)" + }, + "tasksTime": { + "title": "Tasks (time)", + "description": "Time spent by individual tasks (hours)" + }, + "assigneeBreakdown": { + "title": "by Assignee", + "description": "Tasks grouped by assignee" + } + }, + "filter": { + "status": "Status", + "pending": "Pending", + "labels": "Labels", + "hasNotes": "Has Notes", + "hasPoints": "Has Points", + "timePeriod": "Time Period", + "user": "User" + }, + "period": { + "days_one": "{{count}} Day", + "days_other": "{{count}} Days", + "allTime": "All Time" + }, + "activities": { + "title": "Activities" + } +} diff --git a/public/locales/zh/labels.json b/public/locales/zh/labels.json new file mode 100644 index 0000000..93f96cb --- /dev/null +++ b/public/locales/zh/labels.json @@ -0,0 +1,9 @@ +{ + "shared": "Shared", + "delete": { + "title": "Delete Label", + "message": "Are you sure you want to delete this label? This will remove the label from all tasks." + }, + "loadError": "Failed to load labels. Please try again.", + "blurb": "Manage your labels and organize your tasks effectively. Labels will be automatically shared with your circle if they are used on a shared task." +} diff --git a/public/locales/zh/points.json b/public/locales/zh/points.json new file mode 100644 index 0000000..a6ccd40 --- /dev/null +++ b/public/locales/zh/points.json @@ -0,0 +1,74 @@ +{ + "redeem": "Redeem Points", + "redeemModal": { + "redeemButton": "Redeem", + "pointsAvailable": "{{count}} points available", + "pointsToRedeem": "Points to Redeem", + "placeholder": "Enter points...", + "cannotExceed": "Cannot exceed available points", + "quickAdd": "Quick Add:", + "aboutToRedeem": "You are about to redeem", + "amount": "{{count}} points", + "remaining": "Remaining: {{count}} points" + }, + "leaderboard": { + "titlePoints": "Points Leaderboard", + "titleTasks": "Tasks Leaderboard", + "subtitlePoints": "Rankings based on points earned during the selected time period", + "subtitleTasks": "Rankings based on tasks completed during the selected time period", + "modePoints": "Points", + "modeTasks": "Tasks", + "you": "You", + "tasksAndAvg": "{{tasks}} tasks • {{avg}} avg per task", + "available": "{{count}} available", + "points_one": "{{count}} point", + "points_other": "{{count}} points" + }, + "tabs": { + "short7d": "7D", + "short6m": "6M", + "shortAll": "All", + "days7": "7 Days", + "months6": "6 Months", + "allTime": "All Time" + }, + "filter": { + "analysisTitle": "Filter & Analysis", + "title": "Filter Points", + "showFor": "Show points for:", + "timePeriod": "Time period:" + }, + "cards": { + "available": { + "title": "Available", + "subtext": "Ready to redeem" + }, + "redeemed": { + "title": "Redeemed", + "subtext": "Previously used" + }, + "total": { + "title": "Total", + "subtext": "All time earned" + }, + "period": { + "title": "Period Points", + "allTime": "All time", + "last6Months": "Last 6 months", + "lastDays_one": "Last {{count}} day", + "lastDays_other": "Last {{count}} days" + } + }, + "summary": { + "showingFor": "Showing points for", + "unknownUser": "Unknown User", + "overThe": "over the", + "allTime": "All Time", + "last6Months": "Last 6 Months", + "lastDays_one": "Last {{count}} Day", + "lastDays_other": "Last {{count}} Days" + }, + "trend": { + "title": "Points Trend" + } +} diff --git a/public/locales/zh/projects.json b/public/locales/zh/projects.json new file mode 100644 index 0000000..0e7eed4 --- /dev/null +++ b/public/locales/zh/projects.json @@ -0,0 +1,24 @@ +{ + "iconPicker": { + "chooseIcon": "Choose Project Icon", + "availableIcons": "Available Icons" + }, + "defaultChip": "Default", + "tasks_one": "{{count}} task", + "tasks_other": "{{count}} tasks", + "shared": "Shared", + "delete": { + "title": "Delete Project", + "message": "Are you sure you want to delete \"{{name}}\"? This will remove the project but keep all tasks (they'll move to the Default Project)." + }, + "loadError": "Failed to load projects. Please try again.", + "blurb": "Organize your tasks into projects. Create custom workspaces to keep your tasks organized and easily accessible.", + "defaultDescription": "All tasks without a specific project", + "selector": { + "title": "Projects", + "createNew": "Create New Project", + "createNewDescription": "Add a custom project workspace", + "manage": "Manage Projects", + "manageDescription": "View, edit, and organize all projects" + } +} diff --git a/public/locales/zh/settings.json b/public/locales/zh/settings.json index c342420..8e9c3a9 100644 --- a/public/locales/zh/settings.json +++ b/public/locales/zh/settings.json @@ -490,5 +490,78 @@ "notConnected": "实时更新已开启,但当前未连接。", "basicPlanNotice": "基础套餐不支持实时更新。升级到 Plus,当你或其他圈子成员完成、跳过或修改任务时即可立即收到通知。" } + }, + "subscription": { + "sessionFailed": "Failed to create subscription session", + "errorTitle": "Subscription Error", + "errorMessage": "Failed to start subscription process. Please try again.", + "subscribe": "Subscribe", + "cancelAnytime": "Cancel anytime. No hidden fees. Secure payment powered by Stripe." + }, + "childUsers": { + "errNameRequired": "Sub account name is required", + "errNameMin": "Sub account name must be at least 2 characters", + "errNameMax": "Sub account name must be less than 20 characters", + "errNameChars": "Sub account name can only contain lowercase letters, dot and dash", + "errPasswordRequired": "Password is required", + "errPasswordLength": "Password must be between 8 and 64 characters", + "errPasswordMatch": "Passwords do not match", + "errDisplayNameMax": "Display name must be less than 50 characters", + "createTitle": "Create Sub Account", + "createButton": "Create Account", + "nameLabel": "Sub Account Name *", + "namePlaceholder": "Enter sub account name (e.g., sarah)", + "displayNameLabel": "Display Name", + "displayNamePlaceholder": "Display name (optional, defaults to sub account name)", + "passwordLabel": "Password *", + "passwordPlaceholder": "Enter password (8-64 characters)", + "confirmPasswordLabel": "Confirm Password *", + "confirmPasswordPlaceholder": "Confirm password" + }, + "passwordChange": { + "minLength": "Password must be at least 8 characters", + "maxLength": "Password must be less than 64 characters" + }, + "payment": { + "cancelledTitle": "Payment has been cancelled", + "cancelledRedirect": "You will be redirected to the main page shortly.", + "successTitle": "Payment Successful!", + "successRedirect": "You will be redirected to the settings page shortly." + }, + "developer": { + "tokenRefreshed": "Token refreshed successfully", + "endpointCalled": "Refresh token endpoint called successfully", + "clearDbCleared": "Local offline database cleared. Starting full sync...", + "clearDbDone": "Full sync completed from the beginning", + "intro": "View technical information about your authentication tokens and session", + "refreshCookieNote": "Refresh tokens are managed via HTTP-only cookies on web platform", + "noReconnectInfo": "No reconnection information available", + "noTimeoutInfo": "No timeout information available", + "noDebugInfo": "No debug information available" + }, + "backup": { + "keyRequired": "Encryption key is required", + "created": "Backup created and downloaded successfully", + "createFailed": "Failed to create backup", + "selectFile": "Please select a backup file", + "restored": "Backup restored successfully. Please refresh the page.", + "restoreFailed": "Failed to restore backup", + "readFailed": "Failed to read backup file", + "createIntro": "Create an encrypted backup of your data. This backup will include all your chores, history, settings, and optionally your uploaded files.", + "keyPlaceholder": "Enter a strong encryption key", + "includeAssets": "Include uploaded files and assets", + "warningLabel": "Warning:", + "restoreWarning": "Restoring a backup will replace all your current data. This action cannot be undone.", + "restoreKeyPlaceholder": "Enter the encryption key used for this backup" + }, + "deletion": { + "passwordRequired": "Please enter your password to continue", + "passwordAndDelete": "Please enter your password and type DELETE to confirm", + "failed": "Failed to delete account", + "passwordPlaceholder": "Enter your password", + "transferIntro": "You own circles that require ownership transfer before deletion. Please select new owners:", + "selectOwner": "Select new owner", + "confirmPrompt": "Please enter your password and type DELETE to confirm", + "typeDelete": "DELETE" } } diff --git a/public/locales/zh/things.json b/public/locales/zh/things.json new file mode 100644 index 0000000..1181eb5 --- /dev/null +++ b/public/locales/zh/things.json @@ -0,0 +1,18 @@ +{ + "errName": "Name is required", + "errStateNumber": "State must be a number", + "errStateBool": "State must be true or false", + "errStateRequired": "State is required", + "name": "Name", + "namePlaceholder": "Thing name", + "value": "Value", + "valuePlaceholder": "Thing value", + "updateState": "Update state", + "update": "Update", + "history": { + "overview": "Things Overview", + "visualization": "Data Visualization", + "changeHistory": "Change History", + "updated": "Updated" + } +} diff --git a/public/locales/zh/timer.json b/public/locales/zh/timer.json new file mode 100644 index 0000000..848fd53 --- /dev/null +++ b/public/locales/zh/timer.json @@ -0,0 +1,29 @@ +{ + "toast": { + "sessionUpdatedTitle": "Session updated", + "sessionUpdatedMessage": "Timer session has been updated successfully.", + "sessionUpdateFailTitle": "Failed to update session", + "tryAgain": "Please try again.", + "sessionUpdateErrorTitle": "Error updating session", + "sessionDeletedTitle": "Session deleted", + "sessionDeletedMessage": "Timer session has been deleted successfully.", + "sessionDeleteErrorTitle": "Error deleting session", + "deleteConfirmTitle": "Delete Timer Session", + "deleteConfirmMessage": "Are you sure you want to delete this timer session?" + }, + "loading": "Loading timer data...", + "noData": "No timer data found for this chore.", + "activeWork": "Active Work", + "breakTime": "Break Time", + "workSessions": "Work Sessions", + "totalTime": "Total Time", + "distribution": "Work vs Break Distribution", + "noActiveTime": "No active time yet", + "sessionBreakdown": "Session Breakdown", + "sessions": "Sessions", + "addSession": "Add Session", + "startTime": "Start Time", + "endTime": "End Time", + "leaveEmpty": "Leave empty if session is ongoing", + "noSessionForChore": "No timer session found for this chore." +} diff --git a/src/App.jsx b/src/App.jsx index b1a275e..43ec306 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -7,6 +7,11 @@ import { useRegisterSW } from 'virtual:pwa-register/react' import NavBar from '@/views/components/NavBar' +import { + initialize as initializeAnalytics, + installGlobalErrorHandlers, +} from './analytics' +import useAnalyticsIdentity from './analytics/useAnalyticsIdentity' import { registerCapacitorListeners } from './CapacitorListener' import PageTransition from './components/animations/PageTransition' import { ImpersonateUserProvider } from './contexts/ImpersonateUserContext' @@ -36,6 +41,7 @@ const AppContent = () => { const { showNotification } = useNotification() const location = useLocation() useSyncOnReconnect() + useAnalyticsIdentity() // Every route renders through this Outlet, so one listener here gives crash // reports the trail that led to the failure. @@ -142,6 +148,11 @@ function App() { registerCapacitorListeners(navigate) }, [navigate]) + useEffect(() => { + initializeAnalytics() + installGlobalErrorHandlers() + }, []) + return (
diff --git a/src/MarketingApp.jsx b/src/MarketingApp.jsx index 4f862fb..9f1d182 100644 --- a/src/MarketingApp.jsx +++ b/src/MarketingApp.jsx @@ -23,6 +23,9 @@ const AppRedirect = () => { const router = createBrowserRouter([ { path: '/', element: }, + // Mirrors the app router, where /welcome is the canonical Landing path — + // without it this falls through to AppRedirect and bounces to /login. + { path: '/welcome', element: }, { path: '/privacy', element: }, { path: '/terms', element: }, { path: '*', element: }, @@ -50,17 +53,20 @@ const ThemeClass = () => { return null } +// Same ordering constraint as contexts/Contexts.jsx: ThemeContext reads the +// active language via useLocalization() to pick the text direction, so +// LocalizationProvider has to sit above it. const MarketingApp = () => ( - - - - + + + + - - - + + + ) export default MarketingApp diff --git a/src/analytics/consent.js b/src/analytics/consent.js new file mode 100644 index 0000000..b9862f0 --- /dev/null +++ b/src/analytics/consent.js @@ -0,0 +1,107 @@ +import { Preferences } from '@capacitor/preferences' + +// Two independent consent axes, matching the existing onboarding UI +// (HeardAboutView's PrivacyPreferences): "analytics" gates track(), "crash" +// gates captureError(). A self-hosted user can opt into one without the other. +const CONSENT_KEYS = { + analytics: 'analytics_consent', + crash: 'analytics_crash_consent', +} + +const ANON_ID_KEY = 'analytics_anon_id' +const INSTALLATION_ID_KEY = 'analytics_installation_id' + +const generateUUID = () => { + if (typeof crypto !== 'undefined' && crypto.randomUUID) { + return crypto.randomUUID() + } + // Fallback for webviews without crypto.randomUUID — not cryptographically + // strong, but this identifier carries no user information either way. + return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => { + const r = (Math.random() * 16) | 0 + const v = c === 'x' ? r : (r & 0x3) | 0x8 + return v.toString(16) + }) +} + +const readPreference = async key => { + try { + const { value } = await Preferences.get({ key }) + return value ?? null + } catch { + return null + } +} + +const writePreference = async (key, value) => { + try { + await Preferences.set({ key, value }) + } catch { + // best-effort; consent falls back to 'unknown' on next read + } +} + +const removePreference = async key => { + try { + await Preferences.remove({ key }) + } catch { + // ignore + } +} + +export const getStoredConsent = async kind => { + const value = await readPreference(CONSENT_KEYS[kind]) + return value === 'enabled' || value === 'disabled' ? value : 'unknown' +} + +export const setStoredConsent = (kind, value) => + writePreference(CONSENT_KEYS[kind], value) + +/** + * Self-hosted `unknown` behaves as disabled (opt-in required); cloud + * `unknown` behaves as enabled (opt-out available). Nothing is persisted by + * this resolution alone — only an explicit setConsent() call writes a value. + */ +export const resolveEffectiveConsent = (stored, deploymentType) => { + if (stored === 'enabled' || stored === 'disabled') return stored + return deploymentType === 'cloud' ? 'enabled' : 'disabled' +} + +export const getOrCreateAnonId = async () => { + const existing = await readPreference(ANON_ID_KEY) + if (existing) return existing + const created = generateUUID() + await writePreference(ANON_ID_KEY, created) + return created +} + +export const getOrCreateInstallationId = async () => { + const existing = await readPreference(INSTALLATION_ID_KEY) + if (existing) return existing + const created = generateUUID() + await writePreference(INSTALLATION_ID_KEY, created) + return created +} + +/** + * Cloud + known user -> identify by the Donetick user id. Self-hosted (or + * cloud pre-login) -> a random id containing no user information, never + * derived from email/username/database id. + */ +export const resolveIdentity = async ({ deploymentType, userId }) => { + if (deploymentType === 'cloud' && userId) { + return { distinctId: String(userId), installationId: null } + } + const [anonId, installationId] = await Promise.all([ + getOrCreateAnonId(), + deploymentType === 'cloud' ? null : getOrCreateInstallationId(), + ]) + return { distinctId: anonId, installationId } +} + +export const clearAnonymousIdentity = async () => { + await Promise.all([ + removePreference(ANON_ID_KEY), + removePreference(INSTALLATION_ID_KEY), + ]) +} diff --git a/src/analytics/eventSchemas.js b/src/analytics/eventSchemas.js new file mode 100644 index 0000000..4d164aa --- /dev/null +++ b/src/analytics/eventSchemas.js @@ -0,0 +1,165 @@ +// Every event has an explicit property allowlist. Unknown events are +// dropped entirely; unknown or mistyped properties are dropped individually. +// This is the mechanism (not just a convention) that keeps user-generated +// content and PII out of PostHog — see spec.md sections 2, 14, 22. + +// Attached to every event so cohort analysis (e.g. "do Plus accounts behave +// differently") works without every call site having to pass them. +const COMMON_PROPS = { + is_plus_account: 'boolean', + circle_member_count: 'number', +} + +const withCommon = props => ({ ...props, ...COMMON_PROPS }) + +export const EVENT_SCHEMAS = { + onboarding_started: withCommon({}), + onboarding_completed: withCommon({}), + onboarding_skipped: withCommon({}), + onboarding_option_selected: withCommon({ + option: 'string', + step: 'string', + }), + + chore_created: withCommon({ + has_due_date: 'boolean', + has_assignee: 'boolean', + has_labels: 'boolean', + has_description: 'boolean', + has_recurrence: 'boolean', + recurrence_type: 'string', + priority: 'number', + // quick_add/voice/scan = the AddTaskModal popup; full_page/clone = the + // dedicated create page (ChoreEdit.jsx with no existing chore id). + source: 'enum:quick_add,voice,scan,full_page,clone', + }), + chore_updated: withCommon({ + has_due_date: 'boolean', + has_assignee: 'boolean', + has_labels: 'boolean', + has_description: 'boolean', + has_recurrence: 'boolean', + recurrence_type: 'string', + priority: 'number', + }), + + thing_created: withCommon({}), + project_created: withCommon({}), + filter_created: withCommon({}), + + localization_setting_changed: withCommon({ + setting: 'enum:language,date_format,time_format,first_day_of_week', + value: 'string', + }), + + analytics_enabled: withCommon({ + source: 'enum:onboarding,settings', + }), + + feedback_prompt_shown: withCommon({ + source: 'enum:auto,settings', + shown_count: 'number', + }), + feedback_prompt_dismissed: withCommon({ + source: 'enum:auto,settings', + shown_count: 'number', + }), + feedback_sentiment_selected: withCommon({ + sentiment: 'enum:love,okay,issues', + }), + feedback_review_action: withCommon({ + action: 'enum:github,appStore,playStore', + }), + feedback_submitted: withCommon({ + category: + 'enum:bugs,missingFeature,tooComplicated,slow,notifications,ai,other', + has_message: 'boolean', + result: 'enum:sent,failed,unconfigured,misconfigured,self-hosted', + }), +} + +export const ERROR_SCHEMAS = { + api_error: { + http_status: 'string', + method: 'string', + error_code: 'string', + operation: 'string', + }, + // No message/stack field here by design — those come from the real Error + // object passed to posthog.captureException() itself, not from this + // sanitized properties bag. This schema only classifies how it was caught. + frontend_error: { + source: 'enum:window_error,unhandled_rejection', + }, +} + +const MAX_STRING_LENGTH = 200 +// Defense in depth: operation/endpoint-like strings must never carry a query +// string even though callers are expected to have already stripped one. +const containsQueryOrDisallowedChars = value => /[?&=]/.test(value) + +const isValidValue = (value, type) => { + if (value === null || value === undefined) return false + + if (type === 'boolean') return typeof value === 'boolean' + if (type === 'number') return typeof value === 'number' && !isNaN(value) + + if (type.startsWith('enum:')) { + const allowed = type.slice('enum:'.length).split(',') + return typeof value === 'string' && allowed.includes(value) + } + + if (type === 'string') { + return ( + typeof value === 'string' && + value.length <= MAX_STRING_LENGTH && + !containsQueryOrDisallowedChars(value) + ) + } + + return false +} + +/** + * Drops the whole event if its name isn't recognized, then drops any + * property that isn't in the schema or fails its type/enum check. Never + * throws — a malformed call site loses data, it never crashes the app. + */ +export const sanitizeProperties = (schemas, eventName, properties = {}) => { + const schema = schemas[eventName] + if (!schema) { + if (import.meta.env.DEV) { + console.warn(`analytics: unknown event "${eventName}", dropping`) + } + return null + } + + const sanitized = {} + for (const [key, value] of Object.entries(properties || {})) { + const type = schema[key] + if (!type) { + if (import.meta.env.DEV) { + console.warn( + `analytics: dropping unknown property "${key}" on "${eventName}"`, + ) + } + continue + } + if (!isValidValue(value, type)) { + if (import.meta.env.DEV) { + console.warn( + `analytics: dropping invalid property "${key}" on "${eventName}"`, + ) + } + continue + } + sanitized[key] = value + } + return sanitized +} + +export const sanitizeEventProperties = (eventName, properties) => + sanitizeProperties(EVENT_SCHEMAS, eventName, properties) + +export const sanitizeErrorProperties = (errorType, properties) => + sanitizeProperties(ERROR_SCHEMAS, errorType, properties) diff --git a/src/analytics/index.js b/src/analytics/index.js new file mode 100644 index 0000000..b16d7e1 --- /dev/null +++ b/src/analytics/index.js @@ -0,0 +1,261 @@ +import { getAppVersion, getDeviceContext } from '../utils/DeviceInfo' +import { isOfficialDonetickInstance } from '../utils/FeatureToggle' +import { + clearAnonymousIdentity, + getStoredConsent, + resolveEffectiveConsent, + resolveIdentity, + setStoredConsent, +} from './consent' +import { + sanitizeErrorProperties, + sanitizeEventProperties, +} from './eventSchemas' +import { getClient, getClientSync, isConfigured } from './posthogClient' + +const state = { + initialized: false, + initializing: null, + deploymentType: null, // 'cloud' | 'self_hosted' + consent: { analytics: 'unknown', crash: 'unknown' }, + distinctId: null, + common: { is_plus_account: false, circle_member_count: 0 }, +} + +const resolveDeploymentType = async () => { + const isCloud = await isOfficialDonetickInstance().catch(() => false) + return isCloud ? 'cloud' : 'self_hosted' +} + +const attachBaseProperties = async posthog => { + const [appVersion, device] = await Promise.all([ + getAppVersion(), + getDeviceContext(), + ]) + posthog.register({ + deployment_type: state.deploymentType, + app_version: appVersion, + platform: + typeof window !== 'undefined' && window.Capacitor + ? window.Capacitor.getPlatform() + : 'web', + os: device.osVersion, + }) +} + +const startPosthog = async () => { + const posthog = await getClient() + if (!posthog) return null + + const { distinctId } = await resolveIdentity({ + deploymentType: state.deploymentType, + userId: null, + }) + state.distinctId = distinctId + posthog.identify(distinctId) + posthog.opt_in_capturing() + await attachBaseProperties(posthog) + return posthog +} + +/** + * Reads stored consent, resolves cloud/self-hosted, and starts PostHog only + * if the *effective* analytics consent allows it. Safe to call multiple + * times; only does real work once. + */ +export const initialize = async () => { + if (state.initializing) return state.initializing + state.initializing = (async () => { + state.deploymentType = await resolveDeploymentType() + + const [storedAnalytics, storedCrash] = await Promise.all([ + getStoredConsent('analytics'), + getStoredConsent('crash'), + ]) + state.consent.analytics = storedAnalytics + state.consent.crash = storedCrash + + const effectiveAnalytics = resolveEffectiveConsent( + storedAnalytics, + state.deploymentType, + ) + + if (isConfigured() && effectiveAnalytics === 'enabled') { + await startPosthog() + } + + state.initialized = true + })() + return state.initializing +} + +/** Cloud only meaningfully identifies with the real user id; self-hosted + * never sends anything derived from user identity. */ +export const identify = async userId => { + if (!state.initialized) await initialize() + if (state.deploymentType !== 'cloud' || !userId) return + + const posthog = getClientSync() + if (!posthog) return + + state.distinctId = String(userId) + posthog.identify(state.distinctId) +} + +/** Kept fresh from the app's own data layer (react-query), not re-fetched by + * this module — see useAnalyticsIdentity. Refreshed as super-properties so + * every subsequent event carries the latest cohort values without needing to + * be passed at every call site. */ +export const updateCommonProperties = ({ + circle_member_count, + is_plus_account, +} = {}) => { + if (typeof is_plus_account === 'boolean') { + state.common.is_plus_account = is_plus_account + } + if (typeof circle_member_count === 'number') { + state.common.circle_member_count = circle_member_count + } + + const posthog = getClientSync() + if (!posthog) return + posthog.register({ ...state.common }) +} + +const canSend = kind => + state.initialized && + isConfigured() && + resolveEffectiveConsent(state.consent[kind], state.deploymentType) === + 'enabled' + +export const track = (eventName, properties = {}) => { + if (!canSend('analytics')) return + const posthog = getClientSync() + if (!posthog) return + + const sanitized = sanitizeEventProperties(eventName, { + ...state.common, + ...properties, + }) + if (!sanitized) return + + posthog.capture(eventName, sanitized) +} + +/** Backend/API failures: a normal sanitized event, same as track() — not + * PostHog's Error Tracking product. There's no real Error object here (just + * an HTTP response), so there's no stack trace to gain from captureException. */ +export const captureError = (errorType, properties = {}) => { + if (!canSend('crash')) return + const posthog = getClientSync() + if (!posthog) return + + const sanitized = sanitizeErrorProperties(errorType, properties) + if (!sanitized) return + + posthog.capture(errorType, sanitized) +} + +/** + * Frontend crashes only. Uses captureException (not capture) so these land + * on PostHog's Error Tracking page with a genuine message + stack trace — + * that text is NOT filtered by the sanitized allowlist below, since it comes + * from the exception object itself, not from `properties`. + */ +export const captureException = (error, properties = {}) => { + if (!canSend('crash')) return + const posthog = getClientSync() + if (!posthog) return + + const sanitized = sanitizeErrorProperties('frontend_error', properties) + if (!sanitized) return + + posthog.captureException(error, sanitized) +} + +let globalHandlersInstalled = false + +/** Reports uncaught exceptions and unhandled promise rejections to + * PostHog's Error Tracking, gated by the same crash consent as api_error. + * Complements, doesn't overlap with, src/views/Error.jsx: that's a React + * Router error-boundary screen for render/loader errors, which React catches + * before they ever reach window.onerror — a different class of failure, with + * its own user-initiated "Report this problem" flow via ErrorReportService. + * These listeners only see what bypasses React's boundaries entirely (event + * handlers, timers, unhandled promise rejections). Safe to call multiple + * times; only installs once. */ +export const installGlobalErrorHandlers = () => { + if (globalHandlersInstalled || typeof window === 'undefined') return + globalHandlersInstalled = true + + window.addEventListener('error', event => { + const error = + event?.error instanceof Error + ? event.error + : new Error(event?.message || 'Unknown window error') + captureException(error, { source: 'window_error' }) + }) + + window.addEventListener('unhandledrejection', event => { + const reason = event?.reason + const error = reason instanceof Error ? reason : new Error(String(reason)) + captureException(error, { source: 'unhandled_rejection' }) + }) +} + +/** + * kind: 'analytics' | 'crash'. Enabling analytics (re-)initializes PostHog + * if needed and sends analytics_enabled; enabling crash-only never talks to + * PostHog by itself (it only unlocks captureError once something reports). + * Disabling never sends an event and clears identity/queued data. + */ +export const setConsent = async (kind, value, { source } = {}) => { + if (!state.initialized) await initialize() + + state.consent[kind] = value + await setStoredConsent(kind, value) + + if (value === 'disabled') { + const posthog = getClientSync() + if (posthog) { + posthog.opt_out_capturing() + posthog.reset() + } + if (kind === 'analytics' && state.consent.crash !== 'enabled') { + await clearAnonymousIdentity() + } + return + } + + // value === 'enabled' + if (kind === 'analytics') { + if (isConfigured()) { + await startPosthog() + track('analytics_enabled', { source: source || 'settings' }) + } + } else if (kind === 'crash') { + // Crash reporting alone doesn't need PostHog started with the analytics + // super-properties path, but it does need a live client + identity to + // send captureError() calls through. + if (isConfigured() && !getClientSync()) { + await startPosthog() + } + } +} + +export const getConsent = kind => + resolveEffectiveConsent(state.consent[kind], state.deploymentType) + +export const getRawConsent = kind => state.consent[kind] + +export const getDeploymentType = () => state.deploymentType + +export const shutdown = () => { + const posthog = getClientSync() + if (posthog) { + posthog.opt_out_capturing() + posthog.reset() + } + state.initialized = false + state.initializing = null +} diff --git a/src/analytics/posthogClient.js b/src/analytics/posthogClient.js new file mode 100644 index 0000000..38b265a --- /dev/null +++ b/src/analytics/posthogClient.js @@ -0,0 +1,35 @@ +// Isolates the posthog-js dependency so index.js never touches the SDK +// directly — keeps PostHog-specific config in one place and makes it +// possible to swap/mock the backend later without touching call sites. + +let posthog = null + +const KEY = import.meta.env.VITE_POSTHOG_KEY +const HOST = import.meta.env.VITE_POSTHOG_HOST + +/** No-ops entirely without a key — covers self-hosted builds from source + * that never configured one, and the current empty default. */ +export const isConfigured = () => Boolean(KEY) + +export const getClient = async () => { + if (!isConfigured()) return null + if (posthog) return posthog + + const module = await import('posthog-js') + posthog = module.default + + posthog.init(KEY, { + api_host: HOST, + autocapture: false, + capture_pageview: false, + capture_pageleave: false, + disable_session_recording: true, + session_recording: { recorder: undefined }, + persistence: 'localStorage', + opt_out_capturing_by_default: true, + }) + + return posthog +} + +export const getClientSync = () => posthog diff --git a/src/analytics/useAnalyticsIdentity.js b/src/analytics/useAnalyticsIdentity.js new file mode 100644 index 0000000..cceca0c --- /dev/null +++ b/src/analytics/useAnalyticsIdentity.js @@ -0,0 +1,28 @@ +import { useEffect } from 'react' + +import { useCircleMembers, useUserProfile } from '../queries/UserQueries' +import { isPlusAccount } from '../utils/Helpers' +import { identify, updateCommonProperties } from './index' + +/** + * Keeps the analytics module's identity and cohort super-properties in sync + * with the app's own data layer. Mounted once, high in the tree, alongside + * AuthProvider/QueryContext so both queries are already available. + */ +const useAnalyticsIdentity = () => { + const { data: userProfile } = useUserProfile() + const { data: circleMembers } = useCircleMembers() + + useEffect(() => { + if (userProfile?.id) identify(userProfile.id) + }, [userProfile?.id]) + + useEffect(() => { + updateCommonProperties({ + is_plus_account: Boolean(isPlusAccount(userProfile)), + circle_member_count: circleMembers?.res?.length ?? 0, + }) + }, [userProfile, circleMembers?.res?.length]) +} + +export default useAnalyticsIdentity diff --git a/src/constants/policyUpdates.js b/src/constants/policyUpdates.js new file mode 100644 index 0000000..53176a7 --- /dev/null +++ b/src/constants/policyUpdates.js @@ -0,0 +1,13 @@ +// The single source of truth for "have the legal documents changed since the +// user last saw them". Bump POLICY_VERSION whenever PrivacyPolicyView or +// TermsView change in a way users should be told about, and move +// POLICY_EFFECTIVE_DATE to the same date shown at the bottom of those pages. +// +// The notice always points at the documents, so a revision needs nothing here +// beyond these two values plus, optionally, a summary. + +export const POLICY_VERSION = 2 + +// ISO date. Accounts created on or after this date signed up under the current +// documents, so they are never shown the update notice. +export const POLICY_EFFECTIVE_DATE = '2026-08-12' diff --git a/src/constants/settingsSections.js b/src/constants/settingsSections.js index 3d64d8c..7e52e50 100644 --- a/src/constants/settingsSections.js +++ b/src/constants/settingsSections.js @@ -8,6 +8,7 @@ import { Notifications, Palette, Person, + PrivacyTip, Security, Settings, Storage, @@ -30,5 +31,6 @@ export const SETTINGS_SECTIONS = [ { id: 'theme', icon: Palette }, { id: 'localization', icon: Language, isBeta: true }, { id: 'advanced', icon: Settings }, + { id: 'privacy', icon: PrivacyTip }, { id: 'developer', icon: Code }, ] diff --git a/src/contexts/RouterContext.jsx b/src/contexts/RouterContext.jsx index 190e31e..6c5ef53 100644 --- a/src/contexts/RouterContext.jsx +++ b/src/contexts/RouterContext.jsx @@ -42,6 +42,7 @@ import APITokenSettings from '../views/Settings/APITokenSettings' import LocalizationSettings from '../views/Settings/LocalizationSettings' import MFASettings from '../views/Settings/MFASettings' import NotificationSetting from '../views/Settings/NotificationSetting' +import PrivacyAnalyticsSettings from '../views/Settings/PrivacyAnalyticsSettings' import ProfileSettings from '../views/Settings/ProfileSettings' import SidepanelSettings from '../views/Settings/SidepanelSettings' import StorageSettings from '../views/Settings/StorageSettings' @@ -122,6 +123,10 @@ const Router = createBrowserRouter([ path: 'advanced', element: , }, + { + path: 'privacy', + element: , + }, { path: 'developer', element: , diff --git a/src/contexts/ThemeContext.jsx b/src/contexts/ThemeContext.jsx index 955056f..cefd00e 100644 --- a/src/contexts/ThemeContext.jsx +++ b/src/contexts/ThemeContext.jsx @@ -31,6 +31,32 @@ const primaryPalette = getPalette(primaryColor) const CONTROL_RADIUS = '12px' const ICON_BUTTON_RADIUS = '10px' +// Select and Autocomplete both render their popup through @mui/base's Popper, +// which defaults to popper.js's `absolute` strategy — the popup is laid out in +// *document* coordinates. That is fine on desktop, but inside a mobile bottom +// sheet (viewport-pinned, body scroll locked by Modal) it puts the list below +// the fold or lets an overflow:hidden ancestor clip it, so it reads as trapped +// inside the modal. `fixed` positions it in viewport space instead, which no +// ancestor can clip. +// +// Note that slotProps coming from defaultProps are not deep merged: a call site +// passing its own slotProps.listbox replaces this wholesale. +const POPUP_LISTBOX = { + popperOptions: { strategy: 'fixed' }, + modifiers: [ + { name: 'flip', options: { padding: 8 } }, + // altAxis with tether off lets the popup shift fully back into view rather + // than staying glued to an anchor that has no room around it. + { + name: 'preventOverflow', + options: { padding: 8, altAxis: true, tether: false }, + }, + ], + // Joy hardcodes 44vh, and vh resolves to the *large* viewport on mobile — + // taller than what is actually on screen while the browser chrome is up. + sx: { maxHeight: 'min(44dvh, 320px)' }, +} + const themeConfig = { radius: { xs: '6px', @@ -163,6 +189,10 @@ const themeConfig = { theme.direction === 'rtl' ? buttonGroupRtlGeometry(ownerState) : {}, }, }, + JoySelect: { defaultProps: { slotProps: { listbox: POPUP_LISTBOX } } }, + JoyAutocomplete: { + defaultProps: { slotProps: { listbox: POPUP_LISTBOX } }, + }, }, } diff --git a/src/main.jsx b/src/main.jsx index 0aefb3d..e2ea75c 100644 --- a/src/main.jsx +++ b/src/main.jsx @@ -5,10 +5,13 @@ import React from 'react' import ReactDOM from 'react-dom/client' const marketingHosts = new Set(['donetick.com', 'www.donetick.com']) +// ?site=marketing works in every build, not just dev, so preview deploys on +// *.pages.dev can exercise the marketing bundle. Landing on the app host with +// the flag set just renders the marketing pages — nothing sensitive is gated +// on this. const isMarketingSite = marketingHosts.has(window.location.hostname) || - (import.meta.env.DEV && - new URLSearchParams(window.location.search).get('site') === 'marketing') + new URLSearchParams(window.location.search).get('site') === 'marketing' export const Site = React.lazy(() => isMarketingSite ? import('./MarketingApp.jsx') : import('./Application.jsx'), diff --git a/src/queries/ChoreQueries.jsx b/src/queries/ChoreQueries.jsx index 3ca3059..2fd41e2 100644 --- a/src/queries/ChoreQueries.jsx +++ b/src/queries/ChoreQueries.jsx @@ -1,5 +1,7 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' import { useState } from 'react' + +import { track } from '../analytics' import { networkManager } from '../hooks/NetworkManager' import { commandQueue, CommandType } from '../utils/CommandQueue' import { @@ -212,7 +214,10 @@ export const useCreateChore = () => { } return useMutation({ - mutationFn: async newTask => { + mutationFn: async rawTask => { + // `source` is analytics-only metadata (typed/voice/scan/clone) — never + // send it to the backend as part of the chore payload. + const { source, ...newTask } = rawTask if (isOfflineFeatureEnabled() && !networkManager.isOnline) { return queueOfflineCreate(newTask) } @@ -226,6 +231,16 @@ export const useCreateChore = () => { if (!createdChore) { throw new Error('Failed to get created chore data') } + track('chore_created', { + has_due_date: Boolean(newTask.dueDate), + has_assignee: Boolean(newTask.assignedTo), + has_labels: Boolean(newTask.labelsV2?.length), + has_description: Boolean(newTask.description?.trim()), + has_recurrence: newTask.frequencyType !== 'once', + recurrence_type: newTask.frequencyType || 'once', + priority: typeof newTask.priority === 'number' ? newTask.priority : 0, + source: source || 'quick_add', + }) return { ...newTask, id: createdChore.res } } catch (error) { if (isNetworkError(error)) { @@ -287,6 +302,18 @@ export const useUpdateChore = () => { ), } }) + track('chore_updated', { + has_due_date: Boolean(updatedChore.dueDate), + has_assignee: Boolean(updatedChore.assignedTo), + has_labels: Boolean(updatedChore.labelsV2?.length), + has_description: Boolean(updatedChore.description?.trim()), + has_recurrence: updatedChore.frequencyType !== 'once', + recurrence_type: updatedChore.frequencyType || 'once', + priority: + typeof updatedChore.priority === 'number' + ? updatedChore.priority + : 0, + }) return updatedChoreRes?.res || updatedChore } catch (error) { if (isNetworkError(error)) { @@ -458,7 +485,7 @@ export const useUpdateChoreHistory = () => { const queryClient = useQueryClient() return useMutation({ - mutationFn: async ({ choreId, historyId, historyData }) => { + mutationFn: async ({ choreId, historyData, historyId }) => { const applyOptimisticUpdate = async () => { queryClient.setQueryData(['choreHistory', choreId], oldData => { if (!oldData?.res) return oldData @@ -581,7 +608,7 @@ export const useMarkChoreComplete = () => { const queryClient = useQueryClient() return useMutation({ - mutationFn: async ({ choreId, body, completedDate, performer }) => { + mutationFn: async ({ body, choreId, completedDate, performer }) => { if (isOfflineFeatureEnabled() && !networkManager.isOnline) { await commandQueue.enqueue(CommandType.COMPLETE_CHORE, choreId, { id: choreId, diff --git a/src/service/DiagnosticsSession.js b/src/service/DiagnosticsSession.js index 1592f5b..7d2d3a4 100644 --- a/src/service/DiagnosticsSession.js +++ b/src/service/DiagnosticsSession.js @@ -94,7 +94,7 @@ export const getServerVersion = () => serverVersion // --------------------------------------------------------------------------- /** Strips ids and query strings so failures group by endpoint, not by row. */ -const normalizeEndpoint = endpoint => +export const normalizeEndpoint = endpoint => String(endpoint || '') .split('?')[0] .replace(/\/\d+/g, '/:id') diff --git a/src/service/FeedbackService.js b/src/service/FeedbackService.js index 70e1af7..c514ad2 100644 --- a/src/service/FeedbackService.js +++ b/src/service/FeedbackService.js @@ -1,7 +1,8 @@ -import { InAppReview } from '@capacitor-community/in-app-review' import { Capacitor } from '@capacitor/core' -import { Device } from '@capacitor/device' import { Preferences } from '@capacitor/preferences' +import { InAppReview } from '@capacitor-community/in-app-review' + +import { getAppVersion, getDeviceContext } from '../utils/DeviceInfo' import { isOfficialDonetickInstance } from '../utils/FeatureToggle' const STATE_KEY = 'feedbackState' @@ -26,6 +27,9 @@ const defaultState = { // null until the first prompt is shown/snoozed. lastPromptedAt: null, lastPromptedVersion: null, + // Cumulative across the device's lifetime, unlike lastPromptedAt/Version + // which only remember the most recent showing. + shownCount: 0, dismissCount: 0, reviewRequestedAt: null, lastSentiment: null, @@ -110,31 +114,6 @@ const hasRecentError = () => // Context collection // --------------------------------------------------------------------------- -const getAppVersion = async () => { - if (Capacitor.isNativePlatform()) { - try { - const { App } = await import('@capacitor/app') - const info = await App.getInfo() - return `${info.version} (${info.build})` - } catch { - // fall through to the web bundle version - } - } - return import.meta.env.VITE_APP_VERSION || 'web' -} - -const getDeviceContext = async () => { - try { - const info = await Device.getInfo() - return { - deviceModel: [info.manufacturer, info.model].filter(Boolean).join(' '), - osVersion: `${info.operatingSystem} ${info.osVersion}`, - } - } catch { - return { deviceModel: 'unknown', osVersion: 'unknown' } - } -} - /** * Everything we attach to a submission without asking the user for it. */ @@ -251,10 +230,11 @@ export const resetFeedbackState = async () => { } export const markPromptShown = async () => { - const version = await getAppVersion() + const [version, state] = await Promise.all([getAppVersion(), readState()]) return writeState({ lastPromptedAt: Date.now(), lastPromptedVersion: version, + shownCount: state.shownCount + 1, // A forced prompt is spent once shown, otherwise it would fire on every // visit to My Chores. devForced: false, @@ -348,10 +328,10 @@ export const SUBMIT_RESULT = { * see and edit it before anything is published. */ export const buildGithubIssueUrl = ({ - sentiment, category, - message, context, + message, + sentiment, }) => { const labelFor = { bugs: 'bug', @@ -402,10 +382,10 @@ export const buildGithubIssueUrl = ({ * pre-filled GitHub issue URL to send the user to instead. */ export const submitFeedback = async ({ - sentiment, category, - message, feature, + message, + sentiment, userProfile, }) => { const context = await collectFeedbackContext({ feature, userProfile }) diff --git a/src/service/PolicyUpdateService.js b/src/service/PolicyUpdateService.js new file mode 100644 index 0000000..0b18271 --- /dev/null +++ b/src/service/PolicyUpdateService.js @@ -0,0 +1,90 @@ +import { Preferences } from '@capacitor/preferences' + +import { + POLICY_EFFECTIVE_DATE, + POLICY_VERSION, +} from '../constants/policyUpdates' + +const STATE_KEY = 'policyUpdateState' + +const defaultState = { + // Highest POLICY_VERSION the user has dismissed. 0 = never acknowledged. + acknowledgedVersion: 0, + acknowledgedAt: null, + // Developer Settings escape hatch; never set in normal use. + devForced: false, +} + +let cachedState = null + +const readState = async () => { + if (cachedState) return cachedState + try { + const { value } = await Preferences.get({ key: STATE_KEY }) + cachedState = { ...defaultState, ...(value ? JSON.parse(value) : {}) } + } catch (error) { + console.warn('PolicyUpdateService: unable to read state', error) + cachedState = { ...defaultState } + } + return cachedState +} + +const writeState = async patch => { + const current = await readState() + cachedState = { ...current, ...patch } + try { + await Preferences.set({ + key: STATE_KEY, + value: JSON.stringify(cachedState), + }) + } catch (error) { + // Worst case the notice is shown once more on the next launch, which is + // strictly better than suppressing a legal notice we failed to record. + console.warn('PolicyUpdateService: unable to persist state', error) + } +} + +export const getPolicyUpdateState = readState + +// FeedbackService sees both spellings off the profile endpoint; match it. +const getSignupDate = userProfile => + userProfile?.createdAt || userProfile?.created_at || null + +/** + * The notice is for people who agreed to an *earlier* revision. Accounts + * created on or after the effective date already signed up under the current + * documents, so they are silently marked as acknowledged instead of being + * interrupted by a change they never experienced. + */ +export const shouldShowPolicyUpdate = async ({ userProfile } = {}) => { + const state = await readState() + if (state.devForced) return true + if (state.acknowledgedVersion >= POLICY_VERSION) return false + + // An unreadable signup date errs toward showing: a missed legal notice is + // worse than one extra dismissal. + const signupDate = getSignupDate(userProfile) + const signedUpAt = signupDate ? new Date(signupDate) : null + + if ( + signedUpAt && + !isNaN(signedUpAt.getTime()) && + signedUpAt >= new Date(`${POLICY_EFFECTIVE_DATE}T00:00:00Z`) + ) { + await acknowledgePolicyUpdate() + return false + } + + return true +} + +export const acknowledgePolicyUpdate = () => + writeState({ + acknowledgedVersion: POLICY_VERSION, + acknowledgedAt: new Date().toISOString(), + devForced: false, + }) + +/** Developer Settings only: replay the notice on the next eligible mount. */ +export const resetPolicyUpdate = () => + writeState({ acknowledgedVersion: 0, acknowledgedAt: null, devForced: true }) diff --git a/src/utils/ApiClient.js b/src/utils/ApiClient.js index 1d78e60..6560c5e 100644 --- a/src/utils/ApiClient.js +++ b/src/utils/ApiClient.js @@ -1,8 +1,10 @@ import { Preferences } from '@capacitor/preferences' +import { captureError } from '../analytics' import { API_URL } from '../Config' import { networkManager } from '../hooks/NetworkManager' import { + normalizeEndpoint, recordApiFailure, recordServerVersionFromResponse, } from '../service/DiagnosticsSession' @@ -228,6 +230,11 @@ class ApiClient { method: config.method, status: response.status, }) + captureError('api_error', { + http_status: String(response.status), + method: config.method || 'GET', + operation: normalizeEndpoint(endpoint), + }) } // 2. Check for 401 (Unauthorized) @@ -312,6 +319,11 @@ class ApiClient { if (!externalAbort) { networkManager.setServerUnreachable() recordApiFailure({ endpoint, method: config.method, status: 'network' }) + captureError('api_error', { + http_status: 'network', + method: config.method || 'GET', + operation: normalizeEndpoint(endpoint), + }) } console.error('Request failed', error) throw error diff --git a/src/utils/DeviceInfo.js b/src/utils/DeviceInfo.js new file mode 100644 index 0000000..2a1af26 --- /dev/null +++ b/src/utils/DeviceInfo.js @@ -0,0 +1,27 @@ +import { Capacitor } from '@capacitor/core' +import { Device } from '@capacitor/device' + +export const getAppVersion = async () => { + if (Capacitor.isNativePlatform()) { + try { + const { App } = await import('@capacitor/app') + const info = await App.getInfo() + return `${info.version} (${info.build})` + } catch { + // fall through to the web bundle version + } + } + return import.meta.env.VITE_APP_VERSION || 'web' +} + +export const getDeviceContext = async () => { + try { + const info = await Device.getInfo() + return { + deviceModel: [info.manufacturer, info.model].filter(Boolean).join(' '), + osVersion: `${info.operatingSystem} ${info.osVersion}`, + } + } catch { + return { deviceModel: 'unknown', osVersion: 'unknown' } + } +} diff --git a/src/utils/Onboarding.js b/src/utils/Onboarding.js index 254af11..57fc9ca 100644 --- a/src/utils/Onboarding.js +++ b/src/utils/Onboarding.js @@ -52,22 +52,21 @@ export const recordAcquisitionSource = source => { } } -const PRIVACY_PREFERENCES_KEY = 'privacyPreferences' - /** - * Stashes the self-hosted privacy opt-ins locally, same stub-for-now - * treatment as recordAcquisitionSource: no crash reporter or PostHog is wired - * up yet, so this is just the one place that'll change once there is one. + * Wires the self-hosted privacy opt-ins into the real analytics module. + * Analytics and crash reports are independent consent axes — a user can opt + * into one without the other, matching the two separate switches shown on + * this screen. Both default to disabled; this only ever runs once the user + * has made an explicit choice. */ -export const recordPrivacyPreferences = ({ crashReports, analytics }) => { - try { - localStorage.setItem( - PRIVACY_PREFERENCES_KEY, - JSON.stringify({ crashReports, analytics }), - ) - } catch { - // ignore, this is best-effort telemetry - } +export const recordPrivacyPreferences = async ({ analytics, crashReports }) => { + const { setConsent } = await import('../analytics') + await setConsent('analytics', analytics ? 'enabled' : 'disabled', { + source: 'onboarding', + }) + await setConsent('crash', crashReports ? 'enabled' : 'disabled', { + source: 'onboarding', + }) } /** @@ -81,9 +80,8 @@ export const recordPrivacyPreferences = ({ crashReports, analytics }) => { export const requestNotificationPermission = async () => { if (!isNativeApp()) return false try { - const { LocalNotifications } = await import( - '@capacitor/local-notifications' - ) + const { LocalNotifications } = + await import('@capacitor/local-notifications') const { Preferences } = await import('@capacitor/preferences') const result = await LocalNotifications.requestPermissions() diff --git a/src/views/Authorization/Signup.jsx b/src/views/Authorization/Signup.jsx index 698d28a..debe00f 100644 --- a/src/views/Authorization/Signup.jsx +++ b/src/views/Authorization/Signup.jsx @@ -58,11 +58,9 @@ const SignupView = () => { return } - // The "how did you hear about us" step (/heard-about) is - // temporarily skipped; new accounts go straight to circle setup. - // Re-enable by navigating to '/heard-about' again — that view - // already forwards to '/circle-setup' when done. - Navigate('/circle-setup', { replace: true }) + // "How did you hear about us" (cloud) / privacy preferences (self-hosted) + // that view forwards to '/circle-setup' once the user answers. + Navigate('/heard-about', { replace: true }) } const handleSignUpValidation = () => { // Reset errors before validation diff --git a/src/views/ChoreEdit/ChoreEdit.jsx b/src/views/ChoreEdit/ChoreEdit.jsx index f53b9c1..fbceee6 100644 --- a/src/views/ChoreEdit/ChoreEdit.jsx +++ b/src/views/ChoreEdit/ChoreEdit.jsx @@ -402,6 +402,11 @@ const ChoreEdit = () => { let SaveFunction = createChoreMutation.mutateAsync if (newChoreId > 0) { SaveFunction = updateChoreMutation.mutateAsync + } else { + // This is the dedicated create page, distinct from the AddTaskModal + // popup (which sets its own quick_add/voice/scan source). + chore.source = + searchParams.get('clone') === 'true' ? 'clone' : 'full_page' } SaveFunction(chore) diff --git a/src/views/ChoreEdit/ChoreView.jsx b/src/views/ChoreEdit/ChoreView.jsx index d9ba621..ba6f9b0 100644 --- a/src/views/ChoreEdit/ChoreView.jsx +++ b/src/views/ChoreEdit/ChoreView.jsx @@ -280,7 +280,7 @@ const ChoreView = () => { message: t('choreView.taskCompletionUndone'), }) } else { - throw new Error('Failed to undo') + throw new Error(t('choreView.unableUndo')) } } catch (error) { showError({ @@ -318,7 +318,7 @@ const ChoreView = () => { }) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) showSuccess({ - message: "You're offline — completion will sync when back online", + message: t('choreView.offlineComplete'), undoAction: async () => { await commandQueue.cancel(cmdId) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) @@ -327,7 +327,7 @@ const ChoreView = () => { } else { showError({ title: t('choreView.undoFailed'), - message: error?.message || 'Unable to complete task', + message: error?.message || t('choreView.unableComplete'), }) } } @@ -356,7 +356,7 @@ const ChoreView = () => { message: t('choreView.taskSkipUndone'), }) } else { - throw new Error('Failed to undo') + throw new Error(t('choreView.unableUndo')) } } catch (error) { showError({ @@ -376,7 +376,7 @@ const ChoreView = () => { ) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) showSuccess({ - message: "You're offline — skip will sync when back online", + message: t('choreView.offlineSkip'), undoAction: async () => { await commandQueue.cancel(cmdId) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) @@ -385,7 +385,7 @@ const ChoreView = () => { } else { showError({ title: t('choreView.undoFailed'), - message: error?.message || 'Unable to skip task', + message: error?.message || t('choreView.unableSkip'), }) } } @@ -411,7 +411,7 @@ const ChoreView = () => { setChore(startedChore) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) showSuccess({ - message: "You're offline — start will sync when back online", + message: t('choreView.offlineStart'), undoAction: async () => { await commandQueue.cancel(cmdId) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) @@ -423,7 +423,7 @@ const ChoreView = () => { showError({ title: t('choreView.undoFailed'), - message: error?.message || 'Unable to start task', + message: error?.message || t('choreView.unableStart'), }) }, }) @@ -450,7 +450,7 @@ const ChoreView = () => { setChore(pausedChore) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) showSuccess({ - message: "You're offline — pause will sync when back online", + message: t('choreView.offlinePause'), undoAction: async () => { await commandQueue.cancel(cmdId) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) @@ -462,7 +462,7 @@ const ChoreView = () => { showError({ title: t('choreView.undoFailed'), - message: error?.message || 'Unable to pause task', + message: error?.message || t('choreView.unablePause'), }) }, }) @@ -566,7 +566,7 @@ const ChoreView = () => { setChore({ ...chore, isActive: true }) queryClient.invalidateQueries({ queryKey: ['pendingCommands'] }) showSuccess({ - message: "You're offline — restore will sync when back online", + message: t('choreView.offlineRestore'), undoAction: async () => { await commandQueue.cancel(cmdId) await offlineDB.saveChores([{ ...chore, isActive: false }]) @@ -576,8 +576,8 @@ const ChoreView = () => { }) } else { showError({ - title: 'Failed to restore', - message: error.message || 'Unable to restore task', + title: t('choreView.restoreFailed'), + message: error.message || t('choreView.unableRestore'), }) } } diff --git a/src/views/Chores/MyChores.jsx b/src/views/Chores/MyChores.jsx index 7d893e8..bcd5d19 100644 --- a/src/views/Chores/MyChores.jsx +++ b/src/views/Chores/MyChores.jsx @@ -45,6 +45,7 @@ import CalendarDual from '../components/CalendarDual' import CalendarMonthly from '../components/CalendarMonthly.jsx' import FeedbackPrompt from '../components/FeedbackPrompt.jsx' import LoadingComponent from '../components/Loading' +import PolicyUpdatePrompt from '../components/PolicyUpdatePrompt.jsx' import { useLabels } from '../Labels/LabelQueries' import AdvancedFilterBuilder from '../Modals/Inputs/AdvancedFilterBuilder' import ConfirmationModal from '../Modals/Inputs/ConfirmationModal' @@ -353,6 +354,7 @@ const MyChores = () => { membersData?.res && choresData?.res ) { + // throw new Error('FAKE ERROR') // For testing Sentry error tracking const processEffectAsync = async () => { // Sync local state with query data to ensure updates are reflected setChores(processedChores) @@ -1513,6 +1515,7 @@ const MyChores = () => { /> + {addTaskModalOpen && ( { response.json().then(data => { const newChore = data.res const newChores = [...chores] - const index = newChores.findIndex(c => c.id === chore.id) + const index = newChores.findIndex(c => c.id === choreId) newChores[index] = newChore setChores(newChores) setFilteredChores(newChores) diff --git a/src/views/Filters/FilterQueries.js b/src/views/Filters/FilterQueries.js index 893078e..72e2f82 100644 --- a/src/views/Filters/FilterQueries.js +++ b/src/views/Filters/FilterQueries.js @@ -1,4 +1,6 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' + +import { track } from '../../analytics' import { CreateFilter, DeleteFilter, @@ -112,6 +114,7 @@ export const useCreateFilter = () => { const response = await CreateFilter(filterData) if (response.ok) { const data = await response.json() + track('filter_created', {}) return data.res || data } const errorData = await response.json() @@ -142,7 +145,7 @@ export const useUpdateFilter = () => { const queryClient = useQueryClient() return useMutation({ - mutationFn: async ({ filterId, filterData }) => { + mutationFn: async ({ filterData, filterId }) => { try { const response = await UpdateFilter(filterId, filterData) if (response.ok) { diff --git a/src/views/Modals/FeedbackModal.jsx b/src/views/Modals/FeedbackModal.jsx index 04612e2..56354e8 100644 --- a/src/views/Modals/FeedbackModal.jsx +++ b/src/views/Modals/FeedbackModal.jsx @@ -1,4 +1,5 @@ import { Browser } from '@capacitor/browser' +import { Capacitor } from '@capacitor/core' import { Android, Apple, Favorite, GitHub } from '@mui/icons-material' import { Box, @@ -15,19 +16,21 @@ import { import { useEffect, useState } from 'react' import { useTranslation } from 'react-i18next' import { useLocation } from 'react-router-dom' + +import { track } from '../../analytics' import { useResponsiveModal } from '../../hooks/useResponsiveModal.js' import { useUserProfile } from '../../queries/UserQueries' import { FEEDBACK_CATEGORIES, + getFeedbackState, isCloudInstance, markSentiment, requestStoreReview, SENTIMENTS, storeLinks, - submitFeedback, SUBMIT_RESULT, + submitFeedback, } from '../../service/FeedbackService' -import { Capacitor } from '@capacitor/core' const STEP = { SENTIMENT: 'sentiment', @@ -57,7 +60,7 @@ const SENTIMENT_OPTIONS = [ * dialog (or star links on web); anything else collects structured feedback * and never asks for a review. */ -const FeedbackModal = ({ open, onClose, onDismiss }) => { +const FeedbackModal = ({ onClose, onDismiss, open, source = 'settings' }) => { const { t } = useTranslation() const { ResponsiveModal } = useResponsiveModal() const { data: userProfile } = useUserProfile() @@ -70,6 +73,7 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { const [submitting, setSubmitting] = useState(false) const [isCloud, setIsCloud] = useState(true) const [githubUrl, setGithubUrl] = useState(null) + const [shownCount, setShownCount] = useState(0) useEffect(() => { if (open) { @@ -80,18 +84,28 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { setSubmitting(false) setGithubUrl(null) isCloudInstance().then(setIsCloud) + getFeedbackState().then(state => { + const count = state.shownCount || 0 + setShownCount(count) + track('feedback_prompt_shown', { source, shown_count: count }) + }) } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [open]) const handleClose = () => { // Backing out before answering counts as a dismissal for the cooldown. - if (step === STEP.SENTIMENT) onDismiss?.() + if (step === STEP.SENTIMENT) { + onDismiss?.() + track('feedback_prompt_dismissed', { source, shown_count: shownCount }) + } onClose() } const handleSentiment = async value => { setSentiment(value) await markSentiment(value) + track('feedback_sentiment_selected', { sentiment: value }) if (value !== SENTIMENTS.LOVE) { setStep(STEP.DETAILS) @@ -110,7 +124,7 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { const handleSubmit = async () => { setSubmitting(true) - const { result, githubUrl: url } = await submitFeedback({ + const { githubUrl: url, result } = await submitFeedback({ sentiment, category, message, @@ -118,6 +132,11 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { userProfile, }) setSubmitting(false) + track('feedback_submitted', { + category, + has_message: message.trim().length > 0, + result, + }) // Self-hosted feedback is never relayed; hand the user a pre-filled issue // instead so they choose what gets published. @@ -248,7 +267,10 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { variant='outlined' color='neutral' startDecorator={} - onClick={() => openUrl(storeLinks.github)} + onClick={() => { + track('feedback_review_action', { action: 'github' }) + openUrl(storeLinks.github) + }} sx={{ justifyContent: 'flex-start' }} > {t('feedback.review.github')} @@ -257,7 +279,10 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { variant='outlined' color='neutral' startDecorator={} - onClick={() => openUrl(storeLinks.appStore)} + onClick={() => { + track('feedback_review_action', { action: 'appStore' }) + openUrl(storeLinks.appStore) + }} sx={{ justifyContent: 'flex-start' }} > {t('feedback.review.appStore')} @@ -266,7 +291,10 @@ const FeedbackModal = ({ open, onClose, onDismiss }) => { variant='outlined' color='neutral' startDecorator={} - onClick={() => openUrl(storeLinks.playStore)} + onClick={() => { + track('feedback_review_action', { action: 'playStore' }) + openUrl(storeLinks.playStore) + }} sx={{ justifyContent: 'flex-start' }} > {t('feedback.review.playStore')} diff --git a/src/views/Modals/HistoryDetailModal.jsx b/src/views/Modals/HistoryDetailModal.jsx index 2744314..c1678d1 100644 --- a/src/views/Modals/HistoryDetailModal.jsx +++ b/src/views/Modals/HistoryDetailModal.jsx @@ -16,6 +16,7 @@ import { Avatar, Box, Button, Chip, Divider, Stack, Typography } from '@mui/joy' import moment from 'moment' import { useTranslation } from 'react-i18next' import { useNavigate } from 'react-router-dom' + import ModalActions from '../../components/common/ModalActions' import { useLocalization } from '../../contexts/LocalizationContext' import { useResponsiveModal } from '../../hooks/useResponsiveModal' @@ -23,16 +24,28 @@ import { TASK_COLOR } from '../../utils/Colors.jsx' import RichTextEditor from '../components/RichTextEditor.jsx' const STATUS_CONFIG = { - 0: { label: t('status.inProgress'), color: 'primary', icon: }, - 1: { label: t('status.completed'), color: 'success', icon: }, - 2: { label: t('status.skipped'), color: 'warning', icon: }, - 3: { label: t('status.pendingApproval'), color: 'neutral', icon: }, - 4: { label: t('status.rejected'), color: 'danger', icon: }, - 5: { label: t('status.missed'), color: 'danger', icon: }, - 6: { label: t('status.rescheduled'), color: 'warning', icon: }, + 0: { + labelKey: 'status.inProgress', + color: 'primary', + icon: , + }, + 1: { labelKey: 'status.completed', color: 'success', icon: }, + 2: { labelKey: 'status.skipped', color: 'warning', icon: }, + 3: { + labelKey: 'status.pendingApproval', + color: 'neutral', + icon: , + }, + 4: { labelKey: 'status.rejected', color: 'danger', icon: }, + 5: { + labelKey: 'status.missed', + color: 'danger', + icon: , + }, + 6: { labelKey: 'status.rescheduled', color: 'warning', icon: }, } -const DetailRow = ({ icon, label, value, children }) => ( +const DetailRow = ({ children, icon, label, value }) => ( setSelected(value)} > {options.map(item => ( - ))} diff --git a/src/views/Modals/PolicyUpdateModal.jsx b/src/views/Modals/PolicyUpdateModal.jsx new file mode 100644 index 0000000..6afdd9b --- /dev/null +++ b/src/views/Modals/PolicyUpdateModal.jsx @@ -0,0 +1,81 @@ +import { ChevronRight, Gavel, PrivacyTip } from '@mui/icons-material' +import { Button, Stack } from '@mui/joy' +import { useTranslation } from 'react-i18next' +import { useNavigate } from 'react-router-dom' + +import ModalActions from '../../components/common/ModalActions.jsx' +import { useResponsiveModal } from '../../hooks/useResponsiveModal.js' + +/** + * One-time notice that the Privacy Policy and Terms changed. The frame is + * generic and always points at the documents, so a future revision only needs + * POLICY_VERSION bumped. + */ +const PolicyUpdateModal = ({ onAcknowledge, onClose, open }) => { + const { t } = useTranslation() + const { ResponsiveModal } = useResponsiveModal() + const navigate = useNavigate() + + const handleClose = () => { + onAcknowledge?.() + onClose() + } + + const openDocument = path => { + handleClose() + navigate(path) + } + + const documentButtonSx = { + justifyContent: 'flex-start', + fontWeight: 500, + '--Button-gap': '12px', + '& .MuiButton-endDecorator': { ml: 'auto' }, + } + + return ( + + } + > + + + + + + ) +} + +export default PolicyUpdateModal diff --git a/src/views/Onboarding/HeardAboutView.jsx b/src/views/Onboarding/HeardAboutView.jsx index a1208b8..3d794db 100644 --- a/src/views/Onboarding/HeardAboutView.jsx +++ b/src/views/Onboarding/HeardAboutView.jsx @@ -2,6 +2,8 @@ import { CheckRounded } from '@mui/icons-material' import { Box, Button, Input, Link, Switch, Typography } from '@mui/joy' import { useEffect, useState } from 'react' import { useNavigate } from 'react-router-dom' + +import { track } from '../../analytics' import { isOfficialDonetickInstance } from '../../utils/FeatureToggle' import { haptic, @@ -61,7 +63,7 @@ const Shell = ({ children }) => ( /** * A one-question attribution survey dropped right after account creation, - * while the "why did I click install" is still fresh. Answering is optional + * while the "why did I click install" is still fresh. Answering is optional * blocking a brand-new user on a marketing question would cost more than the * data is worth so Continue is always enabled. Shown only on the official * donetick.com instance: a self-hosted server has no marketing funnel to @@ -78,7 +80,13 @@ const AcquisitionSurvey = ({ onDone }) => { const finish = () => { const answer = selected === OTHER ? detail.trim() || null : selected - if (answer) recordAcquisitionSource(answer) + if (answer) { + recordAcquisitionSource(answer) + track('onboarding_option_selected', { + step: 'heard_about', + option: answer, + }) + } onDone() } @@ -228,8 +236,8 @@ const PrivacyPreferences = ({ onDone }) => { const values = { crashReports, analytics } - const finish = () => { - recordPrivacyPreferences(values) + const finish = async () => { + await recordPrivacyPreferences(values) onDone() } @@ -264,7 +272,7 @@ const PrivacyPreferences = ({ onDone }) => { ...enter(60), }} > - {PRIVACY_TOGGLES.map(({ key, label, description }) => ( + {PRIVACY_TOGGLES.map(({ description, key, label }) => ( ( +const Dots = ({ activeIndex, count, onSelect }) => ( {Array.from({ length: count }, (_, index) => { const active = index === activeIndex @@ -108,6 +110,10 @@ const OnboardingView = () => { const isLast = activeIndex === SLIDES.length - 1 const asksPermission = Boolean(SLIDES[activeIndex].permission) + useEffect(() => { + track('onboarding_started') + }, []) + const finish = useCallback(() => { markOnboardingSeen() navigate('/get-started', { replace: true }) diff --git a/src/views/Onboarding/WorkspaceReadyView.jsx b/src/views/Onboarding/WorkspaceReadyView.jsx index 8533417..97fb4f0 100644 --- a/src/views/Onboarding/WorkspaceReadyView.jsx +++ b/src/views/Onboarding/WorkspaceReadyView.jsx @@ -4,10 +4,13 @@ import { Box, Button, Typography } from '@mui/joy' import { useQueryClient } from '@tanstack/react-query' import { useState } from 'react' import { useNavigate } from 'react-router-dom' + +import { track } from '../../analytics' import Logo from '../../Logo' import { useUserProfile } from '../../queries/UserQueries' import { haptic } from '../../utils/Onboarding' import { authButtonSx } from '../Authorization/authStyles' +import { isOfficialDonetickInstance } from '../../utils/FeatureToggle' const EASE = 'cubic-bezier(0.22, 1, 0.36, 1)' @@ -37,7 +40,8 @@ const WorkspaceReadyView = () => { * and a missing offering or a store hiccup must never trap a new user here. */ const showPaywall = async () => { - if (!Capacitor.isNativePlatform() || !userProfile?.id) return + const isDonetickDotCom = await isOfficialDonetickInstance() + if (!isDonetickDotCom || !Capacitor.isNativePlatform() || !userProfile?.id) return const { Purchases } = await import('@revenuecat/purchases-capacitor') const { RevenueCatUI } = await import('@revenuecat/purchases-capacitor-ui') @@ -70,6 +74,7 @@ const WorkspaceReadyView = () => { console.log('Paywall skipped:', error) } finally { setBusy(false) + track('onboarding_completed') enterApp() } } diff --git a/src/views/PrivacyPolicy/PrivacyPolicyView.jsx b/src/views/PrivacyPolicy/PrivacyPolicyView.jsx index b818ee7..1724f18 100644 --- a/src/views/PrivacyPolicy/PrivacyPolicyView.jsx +++ b/src/views/PrivacyPolicy/PrivacyPolicyView.jsx @@ -1,97 +1,144 @@ const PrivacyPolicyView = () => { return ( -
+

Privacy Policy

- Favoro LLC ("we," "us," or "our") operates the Donetick application and - website (collectively, the "Service"). This Privacy Policy informs you - of our policies regarding the collection, use, and disclosure of - personal data when you use our Service and the choices you have - associated with that data. -

-

Information We Collect

-

- Personal Data: When you register for an account or use - the Service, we may collect certain personally identifiable information, - such as your name and email address. + How Donetick handles your data

- Usage Data: We collect information on how you use the - Service, such as your IP address, browser type, pages visited, and the - time and date of your visit. + Last updated August 12, 2026 +

+ +

+ Donetick is made by Favoro LLC ("we", "us", "our"). This policy covers + the Donetick Cloud Service and our website. If you run Donetick + yourself, your data lives on your own server and you control it. Only + the analytics section below applies, and only if you opt in. +

+ +

1. What we collect

+

+ • Account info: your email, your name, and the circle + (household or group) you belong to.

- Task Data: We store the tasks and chores you create - within the app, including their details and any assigned users. -

-

How We Use Your Information

-

- Provide and Maintain the Service: We use your - information to operate, maintain, and improve the Service. + • Your content: the tasks, chores, labels, notes, and + schedules you create.

- Communicate with You: We may use your email address to - send you notifications, updates, and promotional materials related to - the Service. + • Usage data: basic, privacy-respecting information + about how the app is used so we can keep it working and improve it.

- Analyze Usage: We analyze usage data to understand how - the Service is used and to make improvements. + • Billing: if you upgrade, payment is handled by + Stripe. We never see or store your full card details.

-

How We Share Your Information

+ +

2. How we use it

- With Your Consent: We will not share your personal data - with third parties without your consent, except as described in this - Privacy Policy. + To run the core product: store and sync your tasks across your devices, + remind you when things are due, share chores with your circle, and + provide support. We use your content to operate the Service for you, not + to build advertising profiles, and never to train AI models. +

+ +

3. Analytics and error reports

+

+ We use{' '} + + PostHog + {' '} + to see which features are used and to catch crashes. Every event is + checked against a fixed list of allowed properties before it is sent, so + only this can leave your device: feature usage (for example, that a task + was created and whether it had a due date), technical details about your + installation (platform, OS version, app version, Cloud or self-hosted), + whether your account is on a paid plan and how many people are in your + circle, and, for errors, status codes and stack traces.

- Service Providers: We may engage third-party companies - or individuals to perform services on our behalf (e.g., hosting, - analytics). These third parties have access to your personal data only - to perform these tasks and are obligated not to disclose or use it for - any other purpose. + We never send the content of your tasks, chores, notes, search queries, + circle names, or label names. We don't use session recording or + automatic click capture.

- Compliance with Law: We may disclose your personal data - if required to do so by law or in response to valid requests by public - authorities (e.g., a court or government agency). + For our public website we also use{' '} + + Plausible + + , a privacy-friendly analytics tool that counts page views without + cookies, without cross-site tracking, and without building a profile of + you.

-

Security

+ +

4. Your analytics choices

- We value your privacy and have implemented reasonable security measures - to protect your personal data from unauthorized access, disclosure, - alteration, or destruction. However, no method of transmission over the - Internet or electronic storage is 100% secure, and we cannot guarantee - absolute security. + Product analytics and crash reporting are two separate switches under{' '} + Settings → Privacy & Analytics. On the Cloud + Service they're on by default and you can turn them off at any time. On + self-hosted installations they're off by default and require you to opt + in. Turning one off stops new data of that type immediately.

-

Your Choices

+ +

5. Where it lives

- Account Information: You can update or correct your - account information at any time. + Cloud Service data is stored on our hosted infrastructure, scoped so + that only you and the circle you share with can access it. Files you + upload, like task photos and attachments, are kept in secure cloud + object storage provided by Cloudflare, and are served over private, + expiring links rather than public URLs. We use reasonable safeguards to + protect all of it, though no system on the internet is perfectly secure.

+ +

6. Sharing

- Marketing Communications: You can opt out of receiving - promotional emails by following the unsubscribe instructions included in - those emails. + We don't sell your data. We share it only with the service providers + that make Donetick work (Cloudflare for hosting and file storage, + PostHog and Plausible for analytics, Stripe for payments), or when + required by law.

-

Children's Privacy

+ +

7. Your choices

- Our Service is not intended for children under 13 years of age. We do - not knowingly collect personal data from children under 13. If you are a - parent or guardian and you are aware that your child has provided us - with personal data, please contact us. + You can update your profile and permanently delete your account at any + time from Settings. Deleting your account removes your + content from our systems. You can also opt out of promotional emails + using the unsubscribe link in any of them.

-

Changes to This Privacy Policy

+ +

8. Retention

- We may update our Privacy Policy from time to time. We will notify you - of any changes by posting the new Privacy Policy on this page and - updating the "Effective Date" at the top of this Privacy Policy. + We keep your data while your account is active. When you delete your + account, we delete your content (backups age out on a rolling basis).

-

Contact Us

+ +

9. Children

- If you have any questions about this Privacy Policy, please contact us - at: + Donetick isn't directed to children under 13, and we don't knowingly + collect their data. Child accounts created by a parent inside a circle + are managed by that parent.

+ +

10. Changes

+

+ We'll post any updates here with a new date, and flag material changes + with a one-time notice inside the app. +

+ +

11. Contact

+

+ Privacy questions or requests? Email{' '} + support@donetick.com. +

+ +

Favoro LLC

) diff --git a/src/views/Projects/ProjectQueries.js b/src/views/Projects/ProjectQueries.js index 039d0b4..3fc6b32 100644 --- a/src/views/Projects/ProjectQueries.js +++ b/src/views/Projects/ProjectQueries.js @@ -1,4 +1,6 @@ import { useMutation, useQuery, useQueryClient } from '@tanstack/react-query' + +import { track } from '../../analytics' import { CreateProject, DeleteProject, @@ -43,6 +45,7 @@ export const useCreateProject = () => { const response = await CreateProject(projectData) if (response.ok) { const data = await response.json() + track('project_created', {}) return data.res || data } throw new Error('Failed to create project') @@ -79,7 +82,7 @@ export const useUpdateProject = () => { const queryClient = useQueryClient() return useMutation({ - mutationFn: async ({ projectId, projectData }) => { + mutationFn: async ({ projectData, projectId }) => { try { const response = await UpdateProject(projectId, projectData) if (response.ok) { diff --git a/src/views/Settings/DeveloperSettings.jsx b/src/views/Settings/DeveloperSettings.jsx index 31f41b7..2aeca48 100644 --- a/src/views/Settings/DeveloperSettings.jsx +++ b/src/views/Settings/DeveloperSettings.jsx @@ -3,6 +3,8 @@ import { Refresh, Star, Token } from '@mui/icons-material' import { Box, Button, Card, Chip, Divider, Typography } from '@mui/joy' import { useQueryClient } from '@tanstack/react-query' import { useCallback, useEffect, useState } from 'react' +import { useTranslation } from 'react-i18next' + import { networkManager } from '../../hooks/NetworkManager' import useConfirmationModal from '../../hooks/useConfirmationModal' import { useSSEContext } from '../../hooks/useSSEContext' @@ -16,6 +18,7 @@ import { setDevForcedPrompt, } from '../../service/FeedbackService' import { useNotification } from '../../service/NotificationProvider' +import { resetPolicyUpdate } from '../../service/PolicyUpdateService' import { apiClient } from '../../utils/ApiClient' import { commandQueue } from '../../utils/CommandQueue' import { RefreshToken } from '../../utils/Fetcher' @@ -24,7 +27,7 @@ import { syncEngine } from '../../utils/SyncEngine' import { getRefreshTokenExpiry, isNative } from '../../utils/TokenStorage' import FeedbackModal from '../Modals/FeedbackModal' import ConfirmationModal from '../Modals/Inputs/ConfirmationModal' -import { useTranslation } from 'react-i18next' +import PolicyUpdateModal from '../Modals/PolicyUpdateModal' const DeveloperSettings = () => { const { t } = useTranslation('settings') @@ -32,12 +35,12 @@ const DeveloperSettings = () => { const { confirmModalConfig, showConfirmation } = useConfirmationModal() const { data: userProfile } = useUserProfile() const { - isConnected, - isConnecting, - lastEvent, error: sseError, getConnectionStatus, getDebugInfo, + isConnected, + isConnecting, + lastEvent, } = useSSEContext() const [accessTokenExpiry, setAccessTokenExpiry] = useState(null) @@ -55,6 +58,7 @@ const DeveloperSettings = () => { const [isLoadingNotifications, setIsLoadingNotifications] = useState(false) const [isResettingSync, setIsResettingSync] = useState(false) const [feedbackModalOpen, setFeedbackModalOpen] = useState(false) + const [policyModalOpen, setPolicyModalOpen] = useState(false) const [feedbackEligibility, setFeedbackEligibility] = useState(null) const [syncDiagnostics, setSyncDiagnostics] = useState({ cursor: null, @@ -396,6 +400,15 @@ const DeveloperSettings = () => { }) } + const handleForcePolicyUpdate = async () => { + await resetPolicyUpdate() + showNotification({ + type: 'success', + message: + 'Next visit to My Chores will show the policy notice after ~1.5s', + }) + } + const handleResetFeedbackState = async () => { await resetFeedbackState() await refreshFeedbackEligibility() @@ -856,6 +869,35 @@ const DeveloperSettings = () => { + + + Policy Update Notice + + + Shown once per POLICY_VERSION to accounts created before the policy + effective date. "Force Next Prompt" clears the + acknowledgement, then open My Chores to see the automatic trigger. + + + + + + + + {isNativePlatform && ( @@ -1212,6 +1254,13 @@ const DeveloperSettings = () => { }} /> + {/* Preview only — deliberately does not acknowledge, so opening it here + never suppresses the real notice. */} + setPolicyModalOpen(false)} + /> +
) diff --git a/src/views/Settings/LocalizationSettings.jsx b/src/views/Settings/LocalizationSettings.jsx index c7ef4c5..5cc52ff 100644 --- a/src/views/Settings/LocalizationSettings.jsx +++ b/src/views/Settings/LocalizationSettings.jsx @@ -1,8 +1,3 @@ -import { - DATE_FORMATS, - TIME_FORMATS, - useLocalization, -} from '@/contexts/LocalizationContext' import { Box, Button, @@ -16,21 +11,29 @@ import { } from '@mui/joy' import moment from 'moment' import { useTranslation } from 'react-i18next' + +import { + DATE_FORMATS, + TIME_FORMATS, + useLocalization, +} from '@/contexts/LocalizationContext' + +import { track } from '../../analytics' import SettingsLayout from './SettingsLayout' const LocalizationSettings = () => { const { t } = useTranslation('settings') const { - language, - setLanguage, - dateFormat, - setDateFormat, - timeFormat, - setTimeFormat, - firstDayOfWeek, - setFirstDayOfWeek, availableLanguages, + dateFormat, + firstDayOfWeek, isRTL, + language, + setDateFormat, + setFirstDayOfWeek, + setLanguage, + setTimeFormat, + timeFormat, } = useLocalization() const sampleDate = moment('2024-01-15 14:30:00') @@ -56,7 +59,13 @@ const LocalizationSettings = () => { setDateFormat(value)} + onChange={(_, value) => { + setDateFormat(value) + track('localization_setting_changed', { + setting: 'date_format', + value, + }) + }} sx={{ maxWidth: '300px' }} > {dateFormatOptions.map(option => ( @@ -119,7 +134,13 @@ const LocalizationSettings = () => { -1 ? deadlineOffset : ''} - onChange={e => { - const v = parseInt(e.target.value) - onDeadlineOffsetChange(isNaN(v) ? -1 : Math.max(0, v)) - }} - endDecorator={ - - hrs - - } - sx={{ width: 96 }} - slotProps={{ input: { min: 0 } }} - /> - ) : ( { shouldShowSentimentPrompt({ userProfile }).then(eligible => { if (!eligible || cancelled) return - timer = setTimeout(() => { + timer = setTimeout(async () => { + if (cancelled) return + // Awaited so the persisted shownCount is settled before the modal + // reads it back for the feedback_prompt_shown event. + await markPromptShown() if (cancelled) return - markPromptShown() setOpen(true) }, OPEN_DELAY_MS) }) @@ -51,6 +55,7 @@ const FeedbackPrompt = () => { open={open} onClose={() => setOpen(false)} onDismiss={markPromptDismissed} + source='auto' /> ) } diff --git a/src/views/components/PolicyUpdatePrompt.jsx b/src/views/components/PolicyUpdatePrompt.jsx new file mode 100644 index 0000000..ff4787f --- /dev/null +++ b/src/views/components/PolicyUpdatePrompt.jsx @@ -0,0 +1,53 @@ +import { useEffect, useState } from 'react' + +import { useUserProfile } from '../../queries/UserQueries' +import { + acknowledgePolicyUpdate, + shouldShowPolicyUpdate, +} from '../../service/PolicyUpdateService' +import PolicyUpdateModal from '../Modals/PolicyUpdateModal' + +// Let the screen settle before interrupting, and stay out of the way of the +// feedback prompt, which uses a longer delay from the same screen. +const OPEN_DELAY_MS = 1500 + +/** + * Surfaces the policy-change notice once per revision. Mount once, near the + * main task list. + */ +const PolicyUpdatePrompt = () => { + const [open, setOpen] = useState(false) + const { data: userProfile } = useUserProfile() + + useEffect(() => { + if (!userProfile) return + + let timer = null + let cancelled = false + + shouldShowPolicyUpdate({ userProfile }).then(eligible => { + if (!eligible || cancelled) return + timer = setTimeout(() => { + if (cancelled) return + setOpen(true) + }, OPEN_DELAY_MS) + }) + + return () => { + cancelled = true + if (timer) clearTimeout(timer) + } + }, [userProfile]) + + if (!open) return null + + return ( + setOpen(false)} + onAcknowledge={acknowledgePolicyUpdate} + /> + ) +} + +export default PolicyUpdatePrompt