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

modify deny page #360

Merged
merged 11 commits into from
Mar 8, 2024
Merged

modify deny page #360

merged 11 commits into from
Mar 8, 2024

Conversation

senk8
Copy link
Contributor

@senk8 senk8 commented Feb 19, 2024

背景

403のエラーメッセージがわかりづらく、ユーザーが403画面の表示を見た時に何をすれば解決できるかわからない。そのため、管理者にリクエストを送るように促すようにしてUXを向上させる。

実装概要

バックエンドの改修はこちらのPRで行っています。
ca-risken/core#353
ca-risken/gateway#171

403エラー画面の改修

当該画面
https://github.com/ca-risken/web/blob/master/src/view/error/Deny.vue

ボタンを追加します。

  • このボタンはクリックすると、RISKEN APIにPostリクエストを行います。
  • Postリクエスト中、ボタンにロード中(スピナー)が表示されます。
  • リクエストの情報は以下です。
     - project_id
     - user_id
  • Postリクエストの完了後にスナックバーを表示します。

文言のアップデート

REQUEST PROJECT ROLE

  • 権限をリクエストするボタンに表示する文言

REQUEST PROJECT ROLE COMPLETED

  • 権限リクエストの通知に成功した場合にスナックバーに表示する文言

Sorry, access denied or time out your session... Please request access rights to the administrator if necessary.

  • 403の画面のエラーメッセージとして使用する文言

観点

  • message/ja.js、en.jsはそれぞれ相応しい文言になっているか
  • その他コメントに記載

動作確認

image image

Copy link

セキュリティレビューを実施しました。
特に問題は見つかりませんでした👏

By RISKEN review

<v-btn color="primary" @click="goHome">{{
$t(`btn['SIGNIN']`)
}}</v-btn>
<v-btn
Copy link
Contributor Author

@senk8 senk8 Mar 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

元々あったSigninボタンですが、削除してみました。

  • サインインと書いてあるが、ホーム画面に戻るだけのため
  • ボタンが複数あるとわかりづらいため

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

権限がないパターンとセッション切れのパターンがあるので、「ホームに戻る」ボタンも追加するのはどうでしょうか?

@senk8 senk8 marked this pull request as ready for review March 7, 2024 02:34
@senk8 senk8 changed the title fix deny page modify deny page Mar 7, 2024
@senk8 senk8 requested review from iiiidaaa and gassara-kys March 7, 2024 02:54
@senk8 senk8 requested a review from iiiidaaa March 8, 2024 02:42
@senk8
Copy link
Contributor Author

senk8 commented Mar 8, 2024

@iiiidaaa @gassara-kys
こちらで修正しました。
1812f51

image

@gassara-kys
Copy link
Collaborator

ボタン縦配置にできますか?(権限申請が必要な人を救いたいので少し差別化したい)
あと、改行入れてより読みやすくしたいんですが、「セッション期限切れです。」の後に改行さしこめますか?

Copy link
Contributor

@iiiidaaa iiiidaaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@senk8
Copy link
Contributor Author

senk8 commented Mar 8, 2024

@gassara-kys
修正いたしました。英語は1行で問題ないと感じたので改行していません。
35a8d08
image
image

Copy link
Collaborator

@gassara-kys gassara-kys left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ありがとうございます!LGTM

@senk8 senk8 merged commit ad07124 into master Mar 8, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants