# refactor(accounts): fix add account button padding and show provider dropdown with dedicated login dialogs

**URL:** <https://forum.rodydavis.dev/t/refactor-accounts-fix-add-account-button-padding-and-show-provider-dropdown-with-dedicated-login-dialogs/337>\
**Category:** Issues & Bugs\
**Tags:** bug, enhancement, migrated\
**Created:** [September 5, 2026, 4:49am UTC](https://forum.rodydavis.dev/t/refactor-accounts-fix-add-account-button-padding-and-show-provider-dropdown-with-dedicated-login-dialogs/337 "2026-09-05T04:49:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.rodydavis.dev/images/discourse-logo-sketch-small.png) [@system](https://forum.rodydavis.dev/u/system)\
**Post date:** [September 5, 2026, 4:49am UTC](https://forum.rodydavis.dev/t/refactor-accounts-fix-add-account-button-padding-and-show-provider-dropdown-with-dedicated-login-dialogs/337/1 "2026-09-05T04:49:39Z")

</div>

### Problem / Current Behavior

1. **Button Padding / Sizing** : The **“Add Account”** button in `AccountsPane` and `AccountDialog` currently suffers from improper padding / density configuration (`OutlineButton` with `ButtonDensity.compact` and no explicit padding constraints), causing visual awkwardness or misalignment with adjacent section headers.
2. **Cluttered Provider Modal** : Currently, clicking “Add Account” directly opens `AddProviderAccountDialog`, which bundles provider selection toggle tiles alongside username/password inputs into a single modal dialog. This adds unnecessary visual weight and interaction steps within the dialog itself.

### Requirements & Proposed Changes

1. **Correct Button Padding & Alignment**

2. **Add Account Provider Dropdown Menu**

3. **Dedicated Per-Provider Login Dialog**

4. **Testing & Localization**

### Affected Files

- `packages/sfw_desktop/lib/widgets/accounts_pane.dart`
- `packages/sfw_desktop/lib/widgets/account_dialog.dart`
- `packages/sfw_desktop/lib/widgets/add_provider_account_dialog.dart`
- `packages/sfw_desktop/lib/l10n/app_en.arb`
- `packages/sfw_desktop/test/add_provider_account_dialog_test.dart`

---

<div class="post-metadata">

**Author:** ![rodydavis](https://forum.rodydavis.dev/user_avatar/forum.rodydavis.dev/rodydavis/32/8_2.png) [@rodydavis](https://forum.rodydavis.dev/u/rodydavis)\
**Post date:** [September 5, 2026, 4:58am UTC](https://forum.rodydavis.dev/t/refactor-accounts-fix-add-account-button-padding-and-show-provider-dropdown-with-dedicated-login-dialogs/337/2 "2026-09-05T04:58:53Z")

</div>

The added account list should be very compact, and only show the full details on click

---

<div class="post-metadata">

**Author:** ![rodydavis](https://forum.rodydavis.dev/user_avatar/forum.rodydavis.dev/rodydavis/32/8_2.png) [@rodydavis](https://forum.rodydavis.dev/u/rodydavis)\
**Post date:** [September 5, 2026, 5:28am UTC](https://forum.rodydavis.dev/t/refactor-accounts-fix-add-account-button-padding-and-show-provider-dropdown-with-dedicated-login-dialogs/337/3 "2026-09-05T05:28:18Z")

</div>

Fixed in latest implementation:

1. **Button Padding & Alignment** : Vertically aligned the “Add Account” outline button with section headers in `AccountsPane` and `AccountDialog`.
2. **Provider Dropdown Menu** : Clicking “Add Account” (or the empty accounts state button) now displays a contextual dropdown menu offering **Hymns for Worship** and **RJ Stevens Music** with branded icons and accents.
3. **Dedicated Login Dialogs** : Opening a provider launches a focused modal using `AppDialogShell` scoped to that provider, pre-filling the default account label, and eliminating multi-provider radio cards.
4. **Compact Account List Items** : Replaced the bulky connected account cards with `ConnectedAccountTile`. By default, it is a very compact tile (~44px) showing the provider icon, display name, purchased hymn count, and connected badge. Clicking the tile expands full account details (email, sync time, refresh action, and sign out).

Verified with automated widget tests (202/202 passing).

---

<div class="post-metadata">

**Author:** ![system](https://forum.rodydavis.dev/images/discourse-logo-sketch-small.png) [@system](https://forum.rodydavis.dev/u/system)\
**Post date:** [November 28, 2026, 12:59am UTC](https://forum.rodydavis.dev/t/refactor-accounts-fix-add-account-button-padding-and-show-provider-dropdown-with-dedicated-login-dialogs/337/4 "2026-11-28T00:59:11Z")

</div>

Closed on November 28, 2026, 12:59am UTC


