Skip to content
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

enhance(frontend): サインイン画面の改善 #14658

Merged
merged 43 commits into from
Oct 4, 2024

Conversation

kakkokari-gtyih
Copy link
Contributor

@kakkokari-gtyih kakkokari-gtyih commented Sep 30, 2024

What

  • enhance: require captcha for signin #14655 を取り込み
  • MkSignin周りを全面的に改修
  • 一部足りてなさそうなエラーメッセージを追加
  • 二要素認証系のプロパティを外部に露出しないように

Why

Close #14655

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added packages/frontend Client side specific issue/PR packages/backend Server side specific issue/PR packages/misskey-js packages/frontend:test labels Sep 30, 2024
Copy link
Contributor

github-actions bot commented Sep 30, 2024

このPRによるapi.jsonの差分

差分はこちら
--- base
+++ head
@@ -77005,18 +77005,6 @@
               "private"
             ]
           },
-          "twoFactorEnabled": {
-            "type": "boolean",
-            "default": false
-          },
-          "usePasswordLessLogin": {
-            "type": "boolean",
-            "default": false
-          },
-          "securityKeys": {
-            "type": "boolean",
-            "default": false
-          },
           "roles": {
             "type": "array",
             "items": {
@@ -77039,6 +77027,15 @@
           "moderationNote": {
             "type": "string"
           },
+          "twoFactorEnabled": {
+            "type": "boolean"
+          },
+          "usePasswordLessLogin": {
+            "type": "boolean"
+          },
+          "securityKeys": {
+            "type": "boolean"
+          },
           "isFollowing": {
             "type": "boolean"
           },
@@ -77103,9 +77100,6 @@
           "publicReactions",
           "followingVisibility",
           "followersVisibility",
-          "twoFactorEnabled",
-          "usePasswordLessLogin",
-          "securityKeys",
           "roles",
           "memo"
         ]
@@ -77882,6 +77876,18 @@
             "type": "object",
             "$ref": "#/components/schemas/RolePolicies"
           },
+          "twoFactorEnabled": {
+            "type": "boolean",
+            "default": false
+          },
+          "usePasswordLessLogin": {
+            "type": "boolean",
+            "default": false
+          },
+          "securityKeys": {
+            "type": "boolean",
+            "default": false
+          },
           "email": {
             "type": [
               "string",
@@ -77954,7 +77960,10 @@
           "emailNotificationTypes",
           "achievements",
           "loggedInDays",
-          "policies"
+          "policies",
+          "twoFactorEnabled",
+          "usePasswordLessLogin",
+          "securityKeys"
         ]
       },
       "UserDetailedNotMe": {

Get diff files from Workflow Page

Copy link

codecov bot commented Sep 30, 2024

Codecov Report

Attention: Patch coverage is 5.11364% with 1002 lines in your changes missing coverage. Please review.

Project coverage is 41.29%. Comparing base (e344650) to head (e962140).
Report is 1 commits behind head on develop.

Files with missing lines Patch % Lines
packages/frontend/src/components/MkSignin.vue 0.00% 329 Missing ⚠️
...ackages/frontend/src/components/MkSignin.input.vue 0.00% 205 Missing and 1 partial ⚠️
...ages/frontend/src/components/MkSignin.password.vue 0.00% 180 Missing and 1 partial ⚠️
...kages/frontend/src/components/MkSignin.passkey.vue 0.00% 91 Missing and 1 partial ⚠️
packages/frontend/src/components/MkSignin.totp.vue 0.00% 73 Missing and 1 partial ⚠️
...ackages/frontend/src/components/MkSigninDialog.vue 0.00% 65 Missing ⚠️
...ackages/backend/src/server/api/SigninApiService.ts 27.02% 54 Missing ⚠️
...ges/backend/src/core/entities/UserEntityService.ts 87.50% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #14658      +/-   ##
===========================================
+ Coverage    39.69%   41.29%   +1.59%     
===========================================
  Files         1544     1552       +8     
  Lines       193859   200240    +6381     
  Branches      3592     3615      +23     
===========================================
+ Hits         76950    82682    +5732     
- Misses      116313   116957     +644     
- Partials       596      601       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kakkokari-gtyih kakkokari-gtyih marked this pull request as ready for review September 30, 2024 14:32
@syuilo
Copy link
Member

syuilo commented Oct 1, 2024

パスワード入力しても「続ける」が活性化しないかも

@syuilo
Copy link
Member

syuilo commented Oct 1, 2024

2faのトークン入力とパスワード入力は一緒の画面で良い気もした

@syuilo
Copy link
Member

syuilo commented Oct 1, 2024

🎨
image

@kakkokari-gtyih
Copy link
Contributor Author

パスワード入力しても「続ける」が活性化しないかも

Captcha周りのチェックがなにかおかしいかも

@syuilo
Copy link
Member

syuilo commented Oct 1, 2024

2faのトークン入力とパスワード入力は一緒の画面で良い気もした

YOSASOUであれば実装お願いしたい

@kakkokari-gtyih
Copy link
Contributor Author

#14655 のすべてが取り込まれているわけではないっぽい?

develop取り込んだので実質全部取り込んでるはず

@syuilo
Copy link
Member

syuilo commented Oct 4, 2024

ヘッダーの区切り要るかしら

@kakkokari-gtyih
Copy link
Contributor Author

スクロールが発生するときにちょっと境界線が見えにくい気はする(ただし好みの問題なので全然消しても問題ない)

@syuilo
Copy link
Member

syuilo commented Oct 4, 2024

スクロールした時だけ表示されるのが理想ではあるわね

@kakkokari-gtyih
Copy link
Contributor Author

(Off-topic) Chromaticが落ちているのはMkAbuseReportのStoryを確認するなどの対応が必要そう

@kakkokari-gtyih
Copy link
Contributor Author

ボーダー消した

@syuilo
Copy link
Member

syuilo commented Oct 4, 2024

headerはbodyと一体化させたいわね

@syuilo
Copy link
Member

syuilo commented Oct 4, 2024

見た目上

@kakkokari-gtyih
Copy link
Contributor Author

細かい調整はお願いしてもいいかしら

@syuilo syuilo merged commit 975c2e7 into misskey-dev:develop Oct 4, 2024
34 of 35 checks passed
@syuilo
Copy link
Member

syuilo commented Oct 4, 2024

👍🏿

@kakkokari-gtyih kakkokari-gtyih deleted the enh-tweak-signin-dialog branch October 4, 2024 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants