Warn when creating account without a role assignment

Table of Contents

This page is a capture in the inbox bucket of the product backlog — a pre-sprint idea, not yet pulled into a sprint as a story.

What

When saving a new account in AccountDetailDialog (create mode), if no role has been assigned via the Roles tab, show a MessageBoxHelper::question warning — offering Yes/No to proceed anyway — mirroring the existing check for missing party assignments (AccountDetailDialog::onSaveClicked, ~line 423). The implementation is symmetric: check rolesWidget_->hasPendingChanges() and rolesWidget_->hasAvailableRoles() (or equivalent) before dispatching the async create request, and block or warn accordingly.

Why

An account without a role cannot do anything useful in the system. The pattern already exists for parties: if no party is assigned, a question dialog is shown ("No Party Assigned — create the account without a party?"). The same reasoning applies to roles — an account with no role has no permissions and the omission is almost certainly a mistake. Consistent validation makes the two checks parallel and makes the create flow self-documenting.

References

Emacs 29.1 (Org mode 9.6.6)