-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Localize expiration timestamps for device assurance grace period #3703
Changes from all commits
126e7de
fce3c3e
229a85e
18c0cf4
657adcb
a7848fe
ab0faef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,11 +31,11 @@ | |
"type": "array", | ||
"value": [ | ||
{ | ||
"message": "Your device doesn't meet the security requirements. Fix the issue within 7 days to prevent lockout.", | ||
"message": "Your device doesn't meet the security requirements. Fix the issue by 09/05/2024, 12:00 AM UTC to prevent lockout.", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update: we will send a localized string that specifies UTC as the timezone for this E.g. For this specific mock, the server will send an ISO8601 format string of "2024-09-05T00:00:00.000Z" as the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a good thought to have the fallback, although does the code currently handle if a call to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You're right, I just checked and it will still render Digging into this more, I don't think this fallback message with the server-side localized string will ever actually get rendered to the SIW because the generic transformer that localizes all IDX transaction |
||
"i18n": { | ||
"key": "idx.device_assurance.grace_period.warning.title.due_by_days", | ||
"key": "idx.device_assurance.grace_period.warning.title.due_by_date", | ||
"params": [ | ||
7 | ||
"2024-09-05T00:00:00.000Z" | ||
] | ||
}, | ||
"class": "WARNING" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -437,7 +437,7 @@ export const transformOktaVerifyEnrollPoll: IdxStepTransformer = ({ | |
|
||
const stepper: StepperLayout = { | ||
type: UISchemaLayoutType.STEPPER, | ||
key: 'stepper_' + channelType, | ||
key: `stepper_${channelType}`, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was pulled in as an automatic lint fix. I'll leave it here but it's unrelated to my actual code changes |
||
elements: [ | ||
// QR code | ||
{ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are consolidating to a single string for the expiration message. This can get deleted in the next translation run