Feat/add missing translations - #1046
Conversation
Coverage Report
File CoverageNo changed files found. |
scheidtdav
left a comment
There was a problem hiding this comment.
Looking good. Lets just figure out what we do with date-fns :-) I saw that even functions like formatDistanceToNow can be achieved using Intl.RelativeTimeFormat.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe PR adds English and German translations across device details, device logs, navigation, exposure values, and array-field controls. It also formats device and sensor timestamps with the active language. ChangesDevice interface localization
Estimated code review effort: 3 (Moderate) | ~20 minutes Mergeability Score: 🟠 High · up to The current PR head still permits log mutations without visible authentication or ownership checks, which could allow unauthorized changes, and may render locale-dependent timestamps inconsistently between server and browser. These issues make the PR unsafe to merge without security review and remediation. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
I am on the same page on the issue of reducing dependencies, i removed the |
|
Created a new issue, merging this one :-) |
There was a problem hiding this comment.
Actionable comments posted: 2
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/routes/device.$deviceId.edit.logs.tsx (1)
59-89: 🔒 Security & Privacy | 🔴 Critical | 🏗️ Heavy liftAuthorize and scope every log mutation in
action.The root middleware does not require authentication, and
actiondoes not callgetUserId. An unauthenticated request can create a log for any known device ID. A request with a known log entry ID can delete the entry or change its visibility because both model queries filter only bylogEntry.id.Require an authenticated user. Verify device ownership before creating a log. Scope delete and visibility updates by
deviceIDand the owner's user ID.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 8fd17e32-87ee-472b-b978-035d193448cd
📒 Files selected for processing (17)
app/components/device-detail/device-detail-box.tsxapp/components/device-detail/entry-logs.tsxapp/components/device-detail/share-link.tsxapp/components/mydevices/dt/columns.tsxapp/components/rjsf/arrayFieldTemplate.tsxapp/routes/device.$deviceId.edit.logs.tsxapp/routes/device.$deviceId.edit.tsxpublic/locales/de/data-table.jsonpublic/locales/de/device-detail-box.jsonpublic/locales/de/device-overview.jsonpublic/locales/de/edit-device-logs.jsonpublic/locales/de/ui-components.jsonpublic/locales/en/data-table.jsonpublic/locales/en/device-detail-box.jsonpublic/locales/en/device-overview.jsonpublic/locales/en/edit-device-logs.jsonpublic/locales/en/ui-components.json
Type of Change
Implementation
Checklist
devbranchAdditional Information