Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: tweak update user drawer (#11538)

boojack89a96b0a36a8
diff --git a/frontend/package.json b/frontend/package.json
index e0ec5bdfe4..527390ff34 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -46,12 +46,10 @@
"js-base64": "^3.7.7",
"js-yaml": "4.1.0",
"jszip": "^3.10.1",
- "libphonenumber-js": "^1.10.56",
"lodash-es": "4.17.21",
"lucide-vue-next": "^0.364.0",
"markdown-it": "^14.0.0",
"match-sorter": "6.3.4",
- "maz-ui": "^3.32.1",
"monaco-editor": "0.45.0",
"monaco-editor-workers": "0.45.0",
"monaco-languageclient": "7.3.0",
diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml
index 89f7e18f37..a80da311a8 100644
--- a/frontend/pnpm-lock.yaml
+++ b/frontend/pnpm-lock.yaml
@@ -83,9 +83,6 @@ dependencies:
jszip:
specifier: ^3.10.1
version: 3.10.1
- libphonenumber-js:
- specifier: ^1.10.56
- version: 1.10.59
lodash-es:
specifier: 4.17.21
version: 4.17.21
@@ -98,9 +95,6 @@ dependencies:
match-sorter:
specifier: 6.3.4
version: 6.3.4
- maz-ui:
- specifier: ^3.32.1
monaco-editor:
specifier: 0.45.0
version: 0.45.0
@@ -454,6 +448,7 @@ packages:
resolution: {integrity: sha512-gFPqTG7otEJ8uP6wrhDv6mqwGWYZKNvAcCq6u9hOj0c+IKCEsY4L1oC9trPq2SaWIzAfHvqfBDxF591JkMf+kg==}
+ dev: true
resolution: {integrity: sha512-CgH3s1a96LipHCmSUmYFPwY7MNx8C3avkq7i4Wl3cfa662ldtUe4VM1TPXX70pfmrlWTb6jLqTYrZyT2ZTJBgA==}
@@ -469,6 +464,7 @@ packages:
dependencies:
'@babel/highlight': 7.24.2
picocolors: 1.0.0
+ dev: true
resolution: {integrity: sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==}
@@ -678,6 +674,7 @@ packages:
chalk: 2.4.2
js-tokens: 4.0.0
picocolors: 1.0.0
+ dev: true
resolution: {integrity: sha512-Z2uID7YJ7oNvAI20O9X0bblw7Qqs8Q2hFy0R9tAfnfLkp5MW0UH9eUvnDSnFwKZ0AvgS1ucqR4KzvVHgnke1VQ==}
@@ -834,23 +831,6 @@ packages:
- '@vue/composition-api'
dev: false
- resolution: {integrity: sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==}
- dependencies:
- picocolors: 1.0.0
- sisteransi: 1.0.5
- dev: false
-
- resolution: {integrity: sha512-0MhX9/B4iL6Re04jPrttDm+BsP8y6mS7byuv0BvXgdXhbV5PdlsHt55dvNsuBCPZ7xq1oTAOOuotR9NFbQyMSA==}
- dependencies:
- '@clack/core': 0.3.4
- picocolors: 1.0.0
- sisteransi: 1.0.5
- dev: false
- bundledDependencies:
- - is-unicode-supported
-
/@codingame/[email protected]:
resolution: {integrity: sha512-alSSXhGODKDEtyLVcSuWUmJzacTeY48zrxMfyK1zsAZpuFX/JD6BKE/zcLcIH5DroXlaIwYVThim/OqqviPaoA==}
hasBin: true
@@ -1476,31 +1456,18 @@ packages:
'@types/markdown-it': 12.2.3
dev: false
- resolution: {integrity: sha512-bDgobniWE5pMxFQIHQ/VYCjoJNtkDave3GkBe8WZF9Lg1vDkUs+w427HLE37Hur2uHy9KuZVj36NIuvLvae7+g==}
- hasBin: true
- dependencies:
- '@clack/prompts': 0.7.0
- clear: 0.1.0
- colorette: 2.0.20
- commander: 12.0.0
- cosmiconfig: 9.0.0([email protected])
- figlet: 1.7.0
- tinycolor2: 1.6.0
- transitivePeerDependencies:
- - typescript
- dev: false
-
/@nodelib/[email protected]:
resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==}
engines: {node: '>= 8'}
dependencies:
'@nodelib/fs.stat': 2.0.5
run-parallel: 1.2.0
+ dev: true
/@nodelib/[email protected]:
resolution: {integrity: sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==}
engines: {node: '>= 8'}
+ dev: true
/@nodelib/[email protected]:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
@@ -1508,6 +1475,7 @@ packages:
dependencies:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.16.0
+ dev: true
/@one-ini/[email protected]:
resolution: {integrity: sha512-XuySG1E38YScSJoMlqovLru4KTUNSjgVTIjyh7qMX6aNN5HY5Ct5LhRJdxO79JtTzKfzV/bnWpz+zquYrISsvw==}
@@ -1590,12 +1558,14 @@ packages:
estree-walker: 2.0.2
picomatch: 2.3.1
rollup: 4.13.2
+ dev: true
resolution: {integrity: sha512-3XFIDKWMFZrMnao1mJhnOT1h2g0169Os848NhhmGweEcfJ4rCi+3yMCOLG4zA61rbJdkcrM/DjVZm9Hg5p5w7g==}
cpu: [arm]
os: [android]
requiresBuild: true
+ dev: true
optional: true
@@ -1603,6 +1573,7 @@ packages:
cpu: [arm64]
os: [android]
requiresBuild: true
+ dev: true
optional: true
@@ -1610,6 +1581,7 @@ packages:
cpu: [arm64]
os: [darwin]
requiresBuild: true
+ dev: true
optional: true
@@ -1617,6 +1589,7 @@ packages:
cpu: [x64]
os: [darwin]
requiresBuild: true
+ dev: true
optional: true
@@ -1624,6 +1597,7 @@ packages:
cpu: [arm]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1631,6 +1605,7 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1638,6 +1613,7 @@ packages:
cpu: [arm64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1645,6 +1621,7 @@ packages:
cpu: [ppc64le]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1652,6 +1629,7 @@ packages:
cpu: [riscv64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1659,6 +1637,7 @@ packages:
cpu: [s390x]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1666,6 +1645,7 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1673,6 +1653,7 @@ packages:
cpu: [x64]
os: [linux]
requiresBuild: true
+ dev: true
optional: true
@@ -1680,6 +1661,7 @@ packages:
cpu: [arm64]
os: [win32]
requiresBuild: true
+ dev: true
optional: true
@@ -1687,6 +1669,7 @@ packages:
cpu: [ia32]
os: [win32]
requiresBuild: true
+ dev: true
optional: true
@@ -1694,6 +1677,7 @@ packages:
cpu: [x64]
os: [win32]
requiresBuild: true
+ dev: true
optional: true
/@rushstack/[email protected]:
@@ -1819,6 +1803,7 @@ packages:
resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==}
+ dev: true
resolution: {integrity: sha512-dNKVfHd/jk0SkR/exKGj2ggkB45MAkzvWCaqLUUgkyjITkGNzH8H+yUwr+BLJUBjZOe9w8X3wgmXhZDRg1ED6A==}
@@ -2647,6 +2632,7 @@ packages:
resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==}
engines: {node: '>=0.4.0'}
hasBin: true
+ dev: true
resolution: {integrity: sha512-o/zjMZRhJxny7OyEF+Op8X+efiELC7k7yOjMzgfzVqOzXqkBkWI79YoTdOtsuWd5BWhAGAuOY/Xa6xpiaWXiNg==}
@@ -2680,6 +2666,7 @@ packages:
engines: {node: '>=4'}
dependencies:
color-convert: 1.9.3
+ dev: true
resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
@@ -2874,6 +2861,7 @@ packages:
resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
engines: {node: '>=6'}
+ dev: true
resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}
@@ -2927,6 +2915,7 @@ packages:
ansi-styles: 3.2.1
escape-string-regexp: 1.0.5
supports-color: 5.5.0
+ dev: true
resolution: {integrity: sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==}
@@ -2969,10 +2958,6 @@ packages:
engines: {chrome: '>=16.0.912', firefox: '>=0.8.0', node: '>=0.3.6'}
dev: false
- resolution: {integrity: sha512-qMjRnoL+JDPJHeLePZJuao6+8orzHMGP04A8CdwCNsKhRbOnKRjefxONR7bwILT3MHecxKBjHkKL/tkZ8r4Uzw==}
- dev: false
-
resolution: {integrity: sha512-C+0bbOqkezLIsmWSvlsXS0Q0bmkugu7jcfMIACB+RDEntIzQIkdr148we28AfSloQLRdZlYL/QYyrq05j/3Faw==}
dependencies:
@@ -3028,6 +3013,7 @@ packages:
resolution: {integrity: sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==}
dependencies:
color-name: 1.1.3
+ dev: true
resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
@@ -3037,14 +3023,11 @@ packages:
resolution: {integrity: sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==}
+ dev: true
resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
- resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}
- dev: false
-
resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}
engines: {node: '>= 0.8'}
@@ -3055,11 +3038,6 @@ packages:
resolution: {integrity: sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==}
engines: {node: '>=14'}
- resolution: {integrity: sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA==}
- engines: {node: '>=18'}
- dev: false
-
resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
dev: false
@@ -3101,22 +3079,6 @@ packages:
resolution: {integrity: sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==}
dev: false
- resolution: {integrity: sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg==}
- engines: {node: '>=14'}
- peerDependencies:
- typescript: '>=4.9.5'
- peerDependenciesMeta:
- typescript:
- optional: true
- dependencies:
- env-paths: 2.2.1
- import-fresh: 3.3.0
- js-yaml: 4.1.0
- parse-json: 5.2.0
- typescript: 5.4.3
- dev: false
-
resolution: {integrity: sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==}
dev: true
@@ -3478,6 +3440,7 @@ packages:
optional: true
dependencies:
ms: 2.1.2
+ dev: true
resolution: {integrity: sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA==}
@@ -3676,11 +3639,6 @@ packages:
resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
engines: {node: '>=0.12'}
- resolution: {integrity: sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==}
- engines: {node: '>=6'}
- dev: false
-
resolution: {integrity: sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A==}
hasBin: true
@@ -3688,12 +3646,6 @@ packages:
prr: 1.0.1
dev: false
- resolution: {integrity: sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==}
- dependencies:
- is-arrayish: 0.2.1
- dev: false
-
resolution: {integrity: sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==}
engines: {node: '>= 0.4'}
@@ -3745,6 +3697,7 @@ packages:
resolution: {integrity: sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==}
engines: {node: '>=0.8.0'}
+ dev: true
resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
@@ -3994,6 +3947,7 @@ packages:
glob-parent: 5.1.2
merge2: 1.4.1
micromatch: 4.0.5
+ dev: true
resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
@@ -4007,6 +3961,7 @@ packages:
resolution: {integrity: sha512-ifCoaXsDrsdkWTtiNJX5uzHDsrck5TzfKKDcuFFTIrrc/BS076qgEIfoIy1VeZqViznfKiysPYTh/QeHtnIsYA==}
dependencies:
reusify: 1.0.4
+ dev: true
resolution: {integrity: sha512-BQm7iZLFhMWFy5CZ/162sAGjBfdNWb7a8LEqqnzsHFhxT/X/SVj/z2t2nu3aJvjlbQkrAlTUApplPRjWyH4mhA==}
@@ -4015,12 +3970,6 @@ packages:
tough-cookie: 4.1.3
dev: false
- resolution: {integrity: sha512-gO8l3wvqo0V7wEFLXPbkX83b7MVjRrk1oRLfYlZXol8nEpb/ON9pcKLI4qpBv5YtOTfrINtqb7b40iYY2FTWFg==}
- engines: {node: '>= 0.4.0'}
- hasBin: true
- dev: false
-
resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==}
engines: {node: ^10.12.0 || >=12.0.0}
@@ -4244,6 +4193,7 @@ packages:
resolution: {integrity: sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==}
engines: {node: '>=4'}
+ dev: true
resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
@@ -4365,6 +4315,7 @@ packages:
dependencies:
parent-module: 1.0.1
resolve-from: 4.0.0
+ dev: true
resolution: {integrity: sha512-U3Qt/CyfFpTUv6LOP2jRTLYjphH6zg3okMfHbyqRa/W2w6hr8OsJWVggNlR4jxuojQy81TgTJTxgSkyoteRGMQ==}
@@ -4409,10 +4360,6 @@ packages:
engines: {node: '>=12'}
dev: false
- resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==}
- dev: false
-
resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
engines: {node: '>=8'}
@@ -4427,6 +4374,7 @@ packages:
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
dependencies:
hasown: 2.0.0
+ dev: true
resolution: {integrity: sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==}
@@ -4543,6 +4491,7 @@ packages:
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+ dev: true
resolution: {integrity: sha512-UfJMcSJc+SEXEl9lH/VLHSZbThQyLpw1vLO1Lb+j4RWDvG3N2f7yj3PVQA3cmkTBNldJ9eFnM+xEXxHIXrYiJw==}
@@ -4600,10 +4549,6 @@ packages:
resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
dev: true
- resolution: {integrity: sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==}
- dev: false
-
resolution: {integrity: sha512-aatBvbL26wVUCLmbWdCpeu9iF5wOyWpagiKkInA+kfws3sWdBrTnsvN2CKcyCYyUrc7rebNBlK6+kteg7ksecg==}
engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0}
@@ -4752,10 +4697,6 @@ packages:
type-check: 0.4.0
dev: true
- resolution: {integrity: sha512-HeTsOrDF/hWhEiKqZVwg9Cqlep5x2T+IYDENvT2VRj3iX8JQ7Y+omENv+AIn0vC8m6GYhivfCed5Cgfw27r5SA==}
- dev: false
-
resolution: {integrity: sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==}
dependencies:
@@ -4774,6 +4715,7 @@ packages:
resolution: {integrity: sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==}
+ dev: true
resolution: {integrity: sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==}
@@ -4784,6 +4726,7 @@ packages:
resolution: {integrity: sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==}
engines: {node: '>=14'}
+ dev: true
resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==}
@@ -4893,51 +4836,6 @@ packages:
remove-accents: 0.5.0
dev: false
- resolution: {integrity: sha512-Mpcx7tBaReO1qhlSYAJnSiriILqj+RItWMPB+LP6UUxKk3IXxfeQT6YOuJ64hYf0nvmXuV3lxftSbXhBcUnmcA==}
- engines: {node: '>= 6.0.0', npm: '>= 3.0.0'}
- hasBin: true
- peerDependencies:
- '@nuxt/kit': ^3.4.0
- chart.js: ^4.0.0
- dayjs: ^1.1.0
- defu: ^6.0.0
- dropzone: ^5.9.3
- libphonenumber-js: ^1.9.44
- nuxt: ^3.4.0
- unplugin-vue-components: ^0.26.0
- vue: ^3.0.0
- vue-router: ^4.0.0
- peerDependenciesMeta:
- '@nuxt/kit':
- optional: true
- chart.js:
- optional: true
- dayjs:
- optional: true
- defu:
- optional: true
- dropzone:
- optional: true
- libphonenumber-js:
- optional: true
- nuxt:
- optional: true
- unplugin-vue-components:
- optional: true
- vue-router:
- optional: true
- dependencies:
- '@mazui/cli': 3.37.3([email protected])
- dayjs: 1.11.10
- libphonenumber-js: 1.10.59
- unplugin-vue-components: 0.26.0([email protected])([email protected])
- vue: 3.4.21([email protected])
- vue-router: 4.3.0([email protected])
- transitivePeerDependencies:
- - typescript
- dev: false
-
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
dev: false
@@ -4954,6 +4852,7 @@ packages:
resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==}
engines: {node: '>= 8'}
+ dev: true
resolution: {integrity: sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==}
@@ -4961,6 +4860,7 @@ packages:
dependencies:
braces: 3.0.2
picomatch: 2.3.1
+ dev: true
resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}
@@ -5012,6 +4912,7 @@ packages:
engines: {node: '>=16 || 14 >=14.17'}
dependencies:
brace-expansion: 2.0.1
+ dev: true
resolution: {integrity: sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==}
@@ -5084,6 +4985,7 @@ packages:
resolution: {integrity: sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==}
+ dev: true
resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
@@ -5377,16 +5279,7 @@ packages:
engines: {node: '>=6'}
dependencies:
callsites: 3.1.0
-
- resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==}
- engines: {node: '>=8'}
- dependencies:
- '@babel/code-frame': 7.24.2
- error-ex: 1.3.2
- json-parse-even-better-errors: 2.3.1
- lines-and-columns: 1.2.4
- dev: false
+ dev: true
resolution: {integrity: sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==}
@@ -5419,6 +5312,7 @@ packages:
resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}
+ dev: true
resolution: {integrity: sha512-MkhCqzzBEpPvxxQ71Md0b1Kk51W01lrYvlMzSUaIzNsODdd7mqhiimSZlr+VegAz5Z6Vzt9Xg2ttE//XBhH3EQ==}
@@ -5842,6 +5736,7 @@ packages:
resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}
+ dev: true
resolution: {integrity: sha512-cz93DjNeLY0idrCNOH6PviZGRN9GJhsdm9hpn1YCS879fj4W+x5IFJhhkRZcwVgMmFF7R82UA/7Oh+R8lLZg6A==}
@@ -5935,6 +5830,7 @@ packages:
resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
engines: {node: '>=4'}
+ dev: true
resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==}
@@ -5943,6 +5839,7 @@ packages:
is-core-module: 2.13.1
path-parse: 1.0.7
supports-preserve-symlinks-flag: 1.0.0
+ dev: true
resolution: {integrity: sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==}
@@ -5952,6 +5849,7 @@ packages:
resolution: {integrity: sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==}
engines: {iojs: '>=1.0.0', node: '>=0.10.0'}
+ dev: true
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
@@ -6004,6 +5902,7 @@ packages:
'@rollup/rollup-win32-ia32-msvc': 4.13.2
'@rollup/rollup-win32-x64-msvc': 4.13.2
fsevents: 2.3.3
+ dev: true
resolution: {integrity: sha512-APM0Gt1KoXBz0iIkkdB/kfvGOwC4UuJFeG/c+yV7wSc7q96cG/kJ0HiYCnzivD9SB53cLV1MlHFNfOuPaadYSw==}
@@ -6013,6 +5912,7 @@ packages:
resolution: {integrity: sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==}
dependencies:
queue-microtask: 1.2.3
+ dev: true
resolution: {integrity: sha512-PdhdWy89SiZogBLaw42zdeqtRJ//zFd2PgQavcICDUgJT5oW10QCRKbJ6bg4r0/UY2M6BWd5tkxuGFRvCkgfHQ==}
@@ -6146,10 +6046,6 @@ packages:
engines: {node: '>=14'}
dev: true
- resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==}
- dev: false
-
resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==}
engines: {node: '>=8'}
@@ -6303,6 +6199,7 @@ packages:
engines: {node: '>=4'}
dependencies:
has-flag: 3.0.0
+ dev: true
resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
@@ -6314,6 +6211,7 @@ packages:
resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}
engines: {node: '>= 0.4'}
+ dev: true
resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==}
@@ -6398,10 +6296,6 @@ packages:
resolution: {integrity: sha512-N8hW3PG/3aOoZAN5V/NSAEDz0ZixDSSt5b/a05iqtpgfLWMSVuCo7w0k2vVvEjdrIoeGqZzweX2WlyioNIHchA==}
dev: true
- resolution: {integrity: sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==}
- dev: false
-
resolution: {integrity: sha512-SUszKYe5wgsxnNOVlBYO6IC+8VGWdVGZWAqUxp3UErNBtptZvWbwyUOyzNL59zigz2rCA92QiL3wvG+JDSdJdQ==}
engines: {node: '>=14.0.0'}
@@ -6632,6 +6526,7 @@ packages:
transitivePeerDependencies:
- rollup
- supports-color
+ dev: true
resolution: {integrity: sha512-0QkvG13z6RD+1L1FoibQqnvTwVBXvS4XSPwAyinVgoOCl2jAgwzdUKmEj05o4Lt8xwQI85Hb6mSyYkcAGwZPew==}
@@ -6649,6 +6544,7 @@ packages:
chokidar: 3.5.3
webpack-sources: 3.2.3
webpack-virtual-modules: 0.6.1
+ dev: true
resolution: {integrity: sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==}
@@ -6975,6 +6871,7 @@ packages:
dependencies:
'@vue/devtools-api': 6.5.1
vue: 3.4.21([email protected])
+ dev: true
resolution: {integrity: sha512-AYbUWAJHLGGQM7+cNTELw+KsOG9nl2CnSv467WobS5Cv9uk3wFcnr1Etsz2sEIHEZvw1U+o9mRlEO6QbZvUPGQ==}
@@ -7082,9 +6979,11 @@ packages:
resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
engines: {node: '>=10.13.0'}
+ dev: true
resolution: {integrity: sha512-poXpCylU7ExuvZK8z+On3kX+S8o/2dQ/SVYueKA0D4WEMXROXgY8Ez50/bQEUmvoSMMrWcrJqCHuhAbsiwg7Dg==}
+ dev: true
resolution: {integrity: sha512-6qN4hJdMwfYBtE3YBTTHhoeuUrDBPZmbQaxWAqSALV/MeEnR5z1xd8UKud2RAkFoPkmB+hli1TZSnyi84xz1vQ==}
diff --git a/frontend/src/components/User/Settings/CreateUserDrawer.vue b/frontend/src/components/User/Settings/CreateUserDrawer.vue
index 81ffa58487..1318e8af63 100644
--- a/frontend/src/components/User/Settings/CreateUserDrawer.vue
+++ b/frontend/src/components/User/Settings/CreateUserDrawer.vue
@@ -82,6 +82,39 @@
</p>
</div>
</NFormItem>
+ <template v-if="!isCreating && state.user.userType === UserType.USER">
+ <NFormItem :label="$t('settings.profile.phone')">
+ <NInput
+ v-model:value="state.user.phone"
+ :input-props="{ type: 'tel', autocomplete: 'off' }"
+ />
+ </NFormItem>
+ <NFormItem :label="$t('settings.profile.password')">
+ <NInput
+ v-model:value="state.user.password"
+ type="password"
+ :input-props="{ autocomplete: 'off' }"
+ :placeholder="$t('common.sensitive-placeholder')"
+ />
+ </NFormItem>
+ <NFormItem :label="$t('settings.profile.password-confirm')">
+ <div class="w-full flex flex-col justify-start items-start">
+ <NInput
+ v-model:value="state.passwordConfirm"
+ type="password"
+ :input-props="{ autocomplete: 'off' }"
+ :placeholder="
+ $t('settings.profile.password-confirm-placeholder')
+ "
+ />
+ <span
+ v-if="passwordMismatch"
+ class="text-error text-sm mt-1 pl-1"
+ >{{ $t("settings.profile.password-mismatch") }}</span
+ >
+ </div>
+ </NFormItem>
+ </template>
</NForm>
</template>
<template #footer>
@@ -136,7 +169,7 @@
</template>
<script lang="ts" setup>
-import { cloneDeep } from "lodash-es";
+import { cloneDeep, isEmpty } from "lodash-es";
import { ArchiveIcon } from "lucide-vue-next";
import type { SelectGroupOption, SelectOption } from "naive-ui";
import {
@@ -172,6 +205,7 @@ import { displayRoleTitle, randomString } from "@/utils";
interface LocalState {
isRequesting: boolean;
user: User;
+ passwordConfirm: string;
}
const serviceAccountEmailSuffix = "@service.bytebase.com";
@@ -189,6 +223,7 @@ const userStore = useUserStore();
const state = reactive<LocalState>({
isRequesting: false,
user: cloneDeep(props.user) || emptyUser(),
+ passwordConfirm: "",
});
const availableRoleOptions = computed(
@@ -241,6 +276,17 @@ const hasWorkspaceRole = computed(() => {
const isCreating = computed(() => !props.user);
+const passwordMismatch = computed(() => {
+ if (isCreating.value) {
+ return false;
+ }
+
+ return (
+ !isEmpty(state.user?.password) &&
+ state.user?.password !== state.passwordConfirm
+ );
+});
+
const allowConfirm = computed(() => {
if (
!state.user.email ||
@@ -251,7 +297,8 @@ const allowConfirm = computed(() => {
}
if (
!isCreating.value &&
- getUpdateMaskFromUsers(props.user!, state.user).length == 0
+ (passwordMismatch.value ||
+ getUpdateMaskFromUsers(props.user!, state.user).length == 0)
) {
return false;
}
diff --git a/frontend/src/components/v2/Form/PhoneNumberInput.vue b/frontend/src/components/v2/Form/PhoneNumberInput.vue
deleted file mode 100644
index 445e5c66fd..0000000000
--- a/frontend/src/components/v2/Form/PhoneNumberInput.vue
+++ /dev/null
@@ -1,78 +0,0 @@
-<template>
- <MazPhoneNumberInput
- v-model="state.phoneNumber"
- no-example
- :preferred-countries="['CN', 'US']"
- :default-country-code="defaultCountryCode"
- size="sm"
- :translations="translation"
- @update="handleUpdate"
- />
-</template>
-
-<script lang="ts" setup>
-import MazPhoneNumberInput from "maz-ui/components/MazPhoneNumberInput";
-import { computed, reactive, ref } from "vue";
-import { useI18n } from "vue-i18n";
-import { useLanguage } from "@/composables/useLanguage";
-
-const props = defineProps<{
- value: string;
-}>();
-
-const emit = defineEmits<{
- (event: "update", value: string): void;
-}>();
-
-interface LocalState {
- phoneNumber: string;
-}
-
-const { t } = useI18n();
-const { locale } = useLanguage();
-const state = reactive<LocalState>({
- phoneNumber: props.value,
-});
-const results = ref();
-
-const translation = computed(() => {
- return {
- countrySelector: {
- placeholder: t("settings.profile.country-code"),
- error: "",
- searchPlaceholder: "",
- },
- phoneInput: {
- placeholder: t("settings.profile.phone"),
- example: "",
- },
- };
-});
-
-const defaultCountryCode = computed(() => {
- return locale.value === "zh-CN" ? "CN" : "US";
-});
-
-const handleUpdate = (value: any) => {
- results.value = value;
- emit("update", value.e164);
-};
-</script>
-
-<style>
-.m-phone-number-input__input > .m-input-wrapper {
- @apply !-ml-px;
-}
-.m-input-wrapper {
- @apply !border rounded;
-}
-.m-select-list {
- @apply !bg-white !shadow;
-}
-.m-phone-number-input__select.m-input-input {
- @apply -mt-1;
-}
-.m-phone-number-input__country-flag {
- @apply !bottom-1.5;
-}
-</style>
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index d649b6f0a3..5b13d3dd26 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -478,9 +478,9 @@
"phone": "Phone",
"country-code": "Country Code",
"password": "Password",
- "password-confirm": "Confirm",
+ "password-confirm": "Password Confirm",
"password-confirm-placeholder": "Confirm new password",
- "password-mismatch": "mismatch",
+ "password-mismatch": "New password mismatch",
"subscription": "(Upgrade to enable role management)"
},
"members": {
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index de3b113180..fb3b646de3 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -478,9 +478,9 @@
"phone": "Número de móvil",
"country-code": "Códigos de país y de área",
"password": "Contraseña",
- "password-confirm": "Confirmar",
+ "password-confirm": "Confirmar contraseña",
"password-confirm-placeholder": "Confirmar nueva contraseña",
- "password-mismatch": "no coincide",
+ "password-mismatch": "Nueva contraseña no coincide",
"subscription": "(Actualice para habilitar la gestión de roles)"
},
"members": {
@@ -3390,4 +3390,4 @@
"head": "Cabeza",
"show-diff-with-branch-baseline": "Mostrar diferencia con la línea base de la rama"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 38324f1455..d2c27f279e 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -478,9 +478,9 @@
"phone": "電話",
"country-code": "国コード",
"password": "パスワード",
- "password-confirm": "確認",
+ "password-confirm": "パスワードの確認",
"password-confirm-placeholder": "新しいパスワードを確認",
- "password-mismatch": "不一致",
+ "password-mismatch": "新しいパスワードが一致しません",
"subscription": "(役割管理を有効にするにはアップグレードしてください)"
},
"members": {
@@ -3390,4 +3390,4 @@
"head": "頭",
"show-diff-with-branch-baseline": "ブランチベースラインとの差分を表示"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 3abf2adc37..cb87a1d244 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -478,9 +478,9 @@
"phone": "Điện thoại",
"country-code": "Mã quốc gia",
"password": "Mật khẩu",
- "password-confirm": "Xác nhận",
+ "password-confirm": "Xác nhận mật khẩu",
"password-confirm-placeholder": "Xác nhận mật khẩu mới",
- "password-mismatch": "không khớp",
+ "password-mismatch": "Mật khẩu mới không khớp",
"subscription": "(Nâng cấp để kích hoạt quản lý vai trò)"
},
"members": {
@@ -3390,4 +3390,4 @@
"head": "Cái đầu",
"show-diff-with-branch-baseline": "Hiển thị sự khác biệt với đường cơ sở của nhánh"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 189b85fa5a..868af53580 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -479,8 +479,8 @@
"country-code": "国家或地区代码",
"password": "密码",
"password-confirm": "确认密码",
- "password-confirm-placeholder": "再次输入以确认",
- "password-mismatch": "密码输入不一致",
+ "password-confirm-placeholder": "确认新密码",
+ "password-mismatch": "新密码不匹配",
"subscription": "(升级到付费方案来解锁角色管理)"
},
"members": {
@@ -3390,4 +3390,4 @@
"head": "当前",
"show-diff-with-branch-baseline": "显示与分支基线之间的差异"
}
-}
+}
\ No newline at end of file
diff --git a/frontend/src/store/modules/user.ts b/frontend/src/store/modules/user.ts
index e94e44be19..e31b8f3569 100644
--- a/frontend/src/store/modules/user.ts
+++ b/frontend/src/store/modules/user.ts
@@ -151,6 +151,9 @@ export const getUpdateMaskFromUsers = (
if (!isUndefined(update.roles) && !isEqual(origin.roles, update.roles)) {
updateMask.push("roles");
}
+ if (!isUndefined(update.phone) && !isEqual(origin.phone, update.phone)) {
+ updateMask.push("phone");
+ }
return updateMask;
};
diff --git a/frontend/src/views/ProfileDashboard.vue b/frontend/src/views/ProfileDashboard.vue
index ef35188696..c37fe839fa 100644
--- a/frontend/src/views/ProfileDashboard.vue
+++ b/frontend/src/views/ProfileDashboard.vue
@@ -110,10 +110,12 @@
{{ $t("settings.profile.phone") }}
</dt>
<dd class="mt-1 text-sm text-main">
- <PhoneNumberInput
+ <NInput
v-if="state.editing"
- :value="state.editingUser?.phone || ''"
- @update="(value: string) => updateUser('phone', value)"
+ size="large"
+ :value="state.editingUser?.phone"
+ :input-props="{ autocomplete: 'off', type: 'tel' }"
+ @update:value="updateUser('phone', $event)"
/>
<template v-else>
{{ user.phone }}
@@ -248,7 +250,6 @@ import { useRouter } from "vue-router";
import LearnMoreLink from "@/components/LearnMoreLink.vue";
import RegenerateRecoveryCodesView from "@/components/RegenerateRecoveryCodesView.vue";
import UserAvatar from "@/components/User/UserAvatar.vue";
-import PhoneNumberInput from "@/components/v2/Form/PhoneNumberInput.vue";
import { WORKSPACE_ROUTE_USER_PROFILE } from "@/router/dashboard/workspaceRoutes";
import { SETTING_ROUTE_PROFILE_TWO_FACTOR } from "@/router/dashboard/workspaceSetting";
import {