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

feat: [M3-7683] - Disable Create Image button with tooltip text on empty state Landing Page for restricted users #10670

Conversation

harsh-akamai
Copy link
Contributor

@harsh-akamai harsh-akamai commented Jul 11, 2024

Description 📝

To prevent unauthorized access to specific flows and provide clearer guidance, we aim to restrict entry to users without the required permissions.

Here, we are restricting users from creating new Image from the Empty State Landing Page when they do not have access or have read only access.

Changes 🔄

List any change relevant to the reviewer.

  • For restricted users:
    • Disabled Create Image Button on the Empty Landing Page

Target release date 🗓️

Preview 📷

Before After
05_02_37 05_01_44
📷 📷

How to test 🧪

Prerequisites

(How to setup test environment)

  • Log into two accounts side by side:
    • An unrestricted admin user account: full access
    • A restricted user account (use Incognito for this)
      • Start with Read Only for everything

Reproduction steps

  • Landing:
    • Observe as restricted user, notice shows and you cannot create Images

Verification steps

  • After changes, observe tooltips are tailored to the action.

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@harsh-akamai harsh-akamai requested a review from a team as a code owner July 11, 2024 11:41
@harsh-akamai harsh-akamai requested review from mjac0bs and jaalah-akamai and removed request for a team July 11, 2024 11:41
@harsh-akamai harsh-akamai added Restricted User Access Improve UX surrounding restricted access to features Images Relating to Images labels Jul 11, 2024
@harsh-akamai harsh-akamai self-assigned this Jul 11, 2024
Copy link

github-actions bot commented Jul 11, 2024

Coverage Report:
Base Coverage: 82.48%
Current Coverage: 82.48%

@hkhalil-akamai hkhalil-akamai self-requested a review July 11, 2024 14:51
@jaalah-akamai jaalah-akamai added the Add'tl Approval Needed Waiting on another approval! label Jul 15, 2024
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Thanks @harsh-akamai - the disabled change for restricted users and the test coverage looks good.

We'll just want to delete the most recently added changeset.

@mjac0bs mjac0bs added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! labels Jul 15, 2024
Copy link
Contributor

@hkhalil-akamai hkhalil-akamai left a comment

Choose a reason for hiding this comment

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

Great work Harsh!

@harsh-akamai harsh-akamai force-pushed the feature/M3-7683-disable-empty-state-landing-page-create-image-btn-for-restricted-users branch from 53fbc6c to 298942b Compare July 16, 2024 07:08
@harsh-akamai harsh-akamai merged commit 8af8444 into linode:develop Jul 16, 2024
34 of 36 checks passed
@harsh-akamai harsh-akamai deleted the feature/M3-7683-disable-empty-state-landing-page-create-image-btn-for-restricted-users branch July 16, 2024 11:58
@harsh-akamai harsh-akamai added Approved Multiple approvals and ready to merge! and removed Approved Multiple approvals and ready to merge! labels Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge! Images Relating to Images Restricted User Access Improve UX surrounding restricted access to features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants