Skip to content

Conversation

@SaintPatrck
Copy link
Contributor

@SaintPatrck SaintPatrck commented Oct 13, 2025

🎟️ Tracking

N/A

📔 Objective

This commit enhances the BitwardenEmptyContent composable to support optional primary and secondary action buttons.

A new data class, BitwardenButtonData, is introduced to encapsulate the data required for rendering a button, including its label, click action, and test tag.

The BitwardenEmptyContent composable has been updated to accept optional BitwardenButtonData for a primary (filled) and a secondary (outlined) button. When provided, these buttons are displayed below the main content text. The preview for this component has also been updated to demonstrate the new button functionality.

📸 Screenshots

Before After

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) 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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 13, 2025

Logo
Checkmarx One – Scan Summary & Details3246d16a-5e8c-4c25-9958-1d42747a1dd6

Great job! No new security vulnerabilities introduced in this pull request

@SaintPatrck SaintPatrck enabled auto-merge October 13, 2025 21:11
@codecov
Copy link

codecov bot commented Oct 13, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.59%. Comparing base (912eba1) to head (ce5fa9f).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6022   +/-   ##
=======================================
  Coverage   84.59%   84.59%           
=======================================
  Files         722      722           
  Lines       54897    54919   +22     
  Branches     7581     7583    +2     
=======================================
+ Hits        46440    46461   +21     
  Misses       5800     5800           
- Partials     2657     2658    +1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

* @param testTag The test tag for the button
* @param onClick The click listener for the button
*/
data class EmptyContentButton(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we make this more generic?

I could see this being used elsewhere.

*/
data class EmptyContentButton(
val label: Text,
val testTag: String,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could default null?

I can go either way.

This commit enhances the `BitwardenEmptyContent` composable to support optional primary and secondary action buttons.

A new data class, `BitwardenButtonData`, is introduced to encapsulate the data required for rendering a button, including its label, click action, and test tag.

The `BitwardenEmptyContent` composable has been updated to accept optional `BitwardenButtonData` for a primary (filled) and a secondary (outlined) button. When provided, these buttons are displayed below the main content text. The preview for this component has also been updated to demonstrate the new button functionality.
@SaintPatrck SaintPatrck force-pushed the bitwarden-empty-content_optional-buttons branch from a902621 to ce5fa9f Compare October 14, 2025 13:26
@SaintPatrck SaintPatrck added this pull request to the merge queue Oct 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 14, 2025
@david-livefront david-livefront added this pull request to the merge queue Oct 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 14, 2025
@david-livefront david-livefront added this pull request to the merge queue Oct 14, 2025
Merged via the queue into main with commit 433b3b6 Oct 14, 2025
9 checks passed
@david-livefront david-livefront deleted the bitwarden-empty-content_optional-buttons branch October 14, 2025 15:50
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