Skip to content

Commit 2db4222

Browse files
authored
feat: add shortcuts for command palette (#1447)
* feat: add shortcuts to command palette - update cli-app-scripts dependency - add shortcuts and names to d2 config file - update translations * fix: spelling error * chore: update translations * feat: add shortcut for notification settings
1 parent bd82376 commit 2db4222

File tree

4 files changed

+1634
-2908
lines changed

4 files changed

+1634
-2908
lines changed

d2.config.js

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/**@type {import('@dhis2/cli-app-scripts').D2Config} */
12
const config = {
23
id: '4f6eab1a-29ac-4f7a-b74c-8ba95ea7df49',
34
type: 'app',
@@ -9,6 +10,56 @@ const config = {
910
entryPoints: {
1011
app: './src/App.jsx',
1112
},
13+
shortcuts: [
14+
{
15+
name: 'General',
16+
url: '#/general',
17+
},
18+
{
19+
name: 'Analytics',
20+
url: '#/analytics',
21+
},
22+
{
23+
name: 'Server',
24+
url: '#/server',
25+
},
26+
{
27+
name: 'Appearance',
28+
url: '#/appearance',
29+
},
30+
{
31+
name: 'Email',
32+
url: '#/email',
33+
},
34+
{
35+
name: 'Access',
36+
url: '#/access',
37+
},
38+
{
39+
name: 'Calendar',
40+
url: '#/calendar',
41+
},
42+
{
43+
name: 'Data import settings',
44+
url: '#/import',
45+
},
46+
{
47+
name: 'Synchronization',
48+
url: '#/sync',
49+
},
50+
{
51+
name: 'Scheduled job settings',
52+
url: '#/scheduledJobs',
53+
},
54+
{
55+
name: 'Notification settings',
56+
url: '#/notification',
57+
},
58+
{
59+
name: 'OAuth2 clients',
60+
url: '#/oauth2',
61+
},
62+
],
1263
}
1364

1465
module.exports = config

i18n/en.pot

Lines changed: 50 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ msgstr ""
55
"Content-Type: text/plain; charset=utf-8\n"
66
"Content-Transfer-Encoding: 8bit\n"
77
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
8-
"POT-Creation-Date: 2025-08-08T07:56:02.943Z\n"
9-
"PO-Revision-Date: 2025-08-08T07:56:02.944Z\n"
8+
"POT-Creation-Date: 2025-09-24T08:44:28.347Z\n"
9+
"PO-Revision-Date: 2025-09-24T08:44:28.348Z\n"
1010

1111
msgid "Failed to load: {{error}}"
1212
msgstr "Failed to load: {{error}}"
@@ -916,3 +916,51 @@ msgstr "System Settings"
916916
msgctxt "Application description"
917917
msgid "__MANIFEST_APP_DESCRIPTION"
918918
msgstr ""
919+
920+
msgctxt "Title for shortcut used by command palette"
921+
msgid "__MANIFEST_SHORTCUT_General"
922+
msgstr "General"
923+
924+
msgctxt "Title for shortcut used by command palette"
925+
msgid "__MANIFEST_SHORTCUT_Analytics"
926+
msgstr "Analytics"
927+
928+
msgctxt "Title for shortcut used by command palette"
929+
msgid "__MANIFEST_SHORTCUT_Server"
930+
msgstr "Server"
931+
932+
msgctxt "Title for shortcut used by command palette"
933+
msgid "__MANIFEST_SHORTCUT_Appearance"
934+
msgstr "Appearance"
935+
936+
msgctxt "Title for shortcut used by command palette"
937+
msgid "__MANIFEST_SHORTCUT_Email"
938+
msgstr "Email"
939+
940+
msgctxt "Title for shortcut used by command palette"
941+
msgid "__MANIFEST_SHORTCUT_Access"
942+
msgstr "Access"
943+
944+
msgctxt "Title for shortcut used by command palette"
945+
msgid "__MANIFEST_SHORTCUT_Calendar"
946+
msgstr "Calendar"
947+
948+
msgctxt "Title for shortcut used by command palette"
949+
msgid "__MANIFEST_SHORTCUT_Data import settings"
950+
msgstr "Data import settings"
951+
952+
msgctxt "Title for shortcut used by command palette"
953+
msgid "__MANIFEST_SHORTCUT_Synchronization"
954+
msgstr "Synchronization"
955+
956+
msgctxt "Title for shortcut used by command palette"
957+
msgid "__MANIFEST_SHORTCUT_Scheduled job settings"
958+
msgstr "Scheduled job settings"
959+
960+
msgctxt "Title for shortcut used by command palette"
961+
msgid "__MANIFEST_SHORTCUT_Notification settings"
962+
msgstr "Notification settings"
963+
964+
msgctxt "Title for shortcut used by command palette"
965+
msgid "__MANIFEST_SHORTCUT_OAuth2 clients"
966+
msgstr "OAuth2 clients"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"format": "yarn format:js && yarn format:text"
1919
},
2020
"devDependencies": {
21-
"@dhis2/cli-app-scripts": "^12.3.0",
21+
"@dhis2/cli-app-scripts": "^12.8.0",
2222
"@dhis2/cli-style": "^10.7.6"
2323
},
2424
"dependencies": {

0 commit comments

Comments
 (0)