Skip to content

Commit 2d9039e

Browse files
committed
Add tests for new components
1 parent 7a4563b commit 2d9039e

9 files changed

Lines changed: 821 additions & 6 deletions

File tree

i18n/locales/en.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,14 @@
383383
"cancel_add": "Cancel adding owner",
384384
"add_owner": "+ Add owner",
385385
"show_more": "(show {count} more)",
386-
"show_less": "(show fewer)"
386+
"show_less": "(show fewer)",
387+
"remove": {
388+
"title": "Remove Owner",
389+
"warning": "This action will revoke ownership.",
390+
"impact": "{user} will no longer be able to publish updates to {package}. This operation will be queued and executed when you approve the operation in the connector.",
391+
"removing": "Removing...",
392+
"confirm": "Remove owner"
393+
}
387394
},
388395
"trends": {
389396
"granularity": "Granularity",
@@ -505,7 +512,14 @@
505512
},
506513
"grant_button": "grant",
507514
"cancel_grant": "Cancel granting access",
508-
"grant_access": "+ Grant team access"
515+
"grant_access": "+ Grant team access",
516+
"revoke": {
517+
"title": "Revoke Team Access",
518+
"warning": "This action cannot be undone",
519+
"impact": "Team \"{team}\" will lose access to {package}. This operation will be queued and executed when you approve the operation in the connector.",
520+
"confirm": "Revoke Access",
521+
"revoking": "Revoking..."
522+
}
509523
},
510524
"list": {
511525
"filter_label": "Filter packages",

i18n/schema.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,6 +1155,27 @@
11551155
},
11561156
"show_less": {
11571157
"type": "string"
1158+
},
1159+
"remove": {
1160+
"type": "object",
1161+
"properties": {
1162+
"title": {
1163+
"type": "string"
1164+
},
1165+
"warning": {
1166+
"type": "string"
1167+
},
1168+
"impact": {
1169+
"type": "string"
1170+
},
1171+
"removing": {
1172+
"type": "string"
1173+
},
1174+
"confirm": {
1175+
"type": "string"
1176+
}
1177+
},
1178+
"additionalProperties": false
11581179
}
11591180
},
11601181
"additionalProperties": false
@@ -1521,6 +1542,27 @@
15211542
},
15221543
"grant_access": {
15231544
"type": "string"
1545+
},
1546+
"revoke": {
1547+
"type": "object",
1548+
"properties": {
1549+
"title": {
1550+
"type": "string"
1551+
},
1552+
"warning": {
1553+
"type": "string"
1554+
},
1555+
"impact": {
1556+
"type": "string"
1557+
},
1558+
"confirm": {
1559+
"type": "string"
1560+
},
1561+
"revoking": {
1562+
"type": "string"
1563+
}
1564+
},
1565+
"additionalProperties": false
15241566
}
15251567
},
15261568
"additionalProperties": false

lunaria/files/en-GB.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,14 @@
382382
"cancel_add": "Cancel adding owner",
383383
"add_owner": "+ Add owner",
384384
"show_more": "(show {count} more)",
385-
"show_less": "(show fewer)"
385+
"show_less": "(show fewer)",
386+
"remove": {
387+
"title": "Remove Owner",
388+
"warning": "This action will revoke ownership.",
389+
"impact": "{user} will no longer be able to publish updates to {package}. This operation will be queued and executed when you approve the operation in the connector.",
390+
"removing": "Removing...",
391+
"confirm": "Remove owner"
392+
}
386393
},
387394
"trends": {
388395
"granularity": "Granularity",
@@ -504,7 +511,14 @@
504511
},
505512
"grant_button": "grant",
506513
"cancel_grant": "Cancel granting access",
507-
"grant_access": "+ Grant team access"
514+
"grant_access": "+ Grant team access",
515+
"revoke": {
516+
"title": "Revoke Team Access",
517+
"warning": "This action cannot be undone",
518+
"impact": "Team \"{team}\" will lose access to {package}. This operation will be queued and executed when you approve the operation in the connector.",
519+
"confirm": "Revoke Access",
520+
"revoking": "Revoking..."
521+
}
508522
},
509523
"list": {
510524
"filter_label": "Filter packages",

lunaria/files/en-US.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,14 @@
382382
"cancel_add": "Cancel adding owner",
383383
"add_owner": "+ Add owner",
384384
"show_more": "(show {count} more)",
385-
"show_less": "(show fewer)"
385+
"show_less": "(show fewer)",
386+
"remove": {
387+
"title": "Remove Owner",
388+
"warning": "This action will revoke ownership.",
389+
"impact": "{user} will no longer be able to publish updates to {package}. This operation will be queued and executed when you approve the operation in the connector.",
390+
"removing": "Removing...",
391+
"confirm": "Remove owner"
392+
}
386393
},
387394
"trends": {
388395
"granularity": "Granularity",
@@ -504,7 +511,14 @@
504511
},
505512
"grant_button": "grant",
506513
"cancel_grant": "Cancel granting access",
507-
"grant_access": "+ Grant team access"
514+
"grant_access": "+ Grant team access",
515+
"revoke": {
516+
"title": "Revoke Team Access",
517+
"warning": "This action cannot be undone",
518+
"impact": "Team \"{team}\" will lose access to {package}. This operation will be queued and executed when you approve the operation in the connector.",
519+
"confirm": "Revoke Access",
520+
"revoking": "Revoking..."
521+
}
508522
},
509523
"list": {
510524
"filter_label": "Filter packages",

0 commit comments

Comments
 (0)