Skip to content
Snippets Groups Projects

FE: Don't show Design Management elements when user can't edit

All threads resolved!

What does this MR do and why?

This MR implements logic to hide Design Management toolbar and dropzone when user can't edit

Screenshots or screen recordings

With no designs

Screenshot_2023-03-29_at_17.14.21

With designs

Screenshot_2023-03-29_at_17.13.49

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #373295 (closed)

Edited by Ihor Chernobai

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ihor Chernobai added 285 commits

    added 285 commits

    • 2debd8c1...12df8024 - 282 commits from branch master
    • b1861a0d - Hide design management dropzone when user can't edit
    • 2cac2246 - Hide design management toolbar when user can't edit
    • fa52f63f - Add tests with mocked Apollo for the design permisions

    Compare with previous version

  • Janis Altherr approved this merge request

    approved this merge request

  • Janis Altherr requested review from @ohoral

    requested review from @ohoral

  • Janis Altherr removed review request for @janis

    removed review request for @janis

  • Olena Horal-Koretska approved this merge request

    approved this merge request

  • Olena Horal-Koretska
  • Olena Horal-Koretska resolved all threads

    resolved all threads

  • @ohoral, did you forget to run a pipeline before you merged this work? Based on our code review process, if the latest pipeline was created more than 6 hours ago OR finished more than 2 hours ago, you should:

    1. Ensure the merge request is not in Draft status.
    2. Start a pipeline (especially important for Community contribution merge requests).
    3. Set the merge request to merge when pipeline succeeds.

    This is a guideline, not a rule. Please consider replying to this comment for transparency.

    This message was generated automatically. You're welcome to improve it.

  • mentioned in commit 42c4e109

  • Author Contributor

    @janis @ohoral thanks to you both for so quick review! I appreciate it.

  • added workflowstaging label and removed workflowcanary label

  • mentioned in issue #373295 (closed)

  • Please register or sign in to reply
    Loading