Skip to content

[PM-13349] Hide Edit option in cipher list item overflow when editing not permitted #4539

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

Merged
merged 3 commits into from
Jan 9, 2025

Conversation

mpbw2
Copy link
Contributor

@mpbw2 mpbw2 commented Jan 9, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-13349

📔 Objective

Hide Edit option in cipher list item overflow when editing not permitted (accompanies #4430)

📸 Screenshots

Screenshot 2025-01-09 at 12 48 02 PM

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed
    issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

Copy link
Contributor

github-actions bot commented Jan 9, 2025

Logo
Checkmarx One – Scan Summary & Detailsb5e158be-9e21-4710-b845-77e8cb2e5603

No New Or Fixed Issues Found

@mpbw2 mpbw2 marked this pull request as ready for review January 9, 2025 18:20
@@ -22,7 +22,7 @@ fun CipherView.toOverflowActions(
cipherId = cipherId,
requiresPasswordReprompt = hasMasterPassword,
)
.takeUnless { this.deletedDate != null },
.takeUnless { this.deletedDate != null || !this.edit },
Copy link
Collaborator

Choose a reason for hiding this comment

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

Wanna add a test for this in CipherViewExtensionsTest

@mpbw2 mpbw2 requested a review from david-livefront January 9, 2025 19:53
@mpbw2 mpbw2 added this pull request to the merge queue Jan 9, 2025
Merged via the queue into main with commit 2f2db1a Jan 9, 2025
6 checks passed
@mpbw2 mpbw2 deleted the pm-13349/hide-edit-overflow-readonly branch January 9, 2025 20:50
Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.87%. Comparing base (b5d73c9) to head (394087b).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4539   +/-   ##
=======================================
  Coverage   88.87%   88.87%           
=======================================
  Files         460      460           
  Lines       39940    39940           
  Branches     5691     5691           
=======================================
  Hits        35497    35497           
  Misses       2459     2459           
  Partials     1984     1984           

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

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.

2 participants