From 1b33336bbeaaf8f70830ce642763ef1296b6dc5a Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Fri, 29 May 2026 11:15:15 -0700 Subject: [PATCH 1/7] replaced bulk change buttons with radio inputs --- .../addon/components/publish-all-sessions.gjs | 62 ++++++++++++++----- 1 file changed, 46 insertions(+), 16 deletions(-) diff --git a/packages/ilios-common/addon/components/publish-all-sessions.gjs b/packages/ilios-common/addon/components/publish-all-sessions.gjs index 527b2ba344..f865337ce0 100644 --- a/packages/ilios-common/addon/components/publish-all-sessions.gjs +++ b/packages/ilios-common/addon/components/publish-all-sessions.gjs @@ -27,6 +27,7 @@ export default class PublishAllSessionsComponent extends Component { @tracked totalSessionsToSave; @tracked currentSessionsSaved; + @tracked userSelectedAction = 'scheduleAll'; @tracked userSelectedSessionsToPublish = []; @tracked userSelectedSessionsToSchedule = []; @@ -245,12 +246,14 @@ export default class PublishAllSessionsComponent extends Component { publishAllAsIs() { this.userSelectedSessionsToSchedule = []; this.userSelectedSessionsToPublish = [...this.overridableSessions]; + this.userSelectedAction = 'publishAllAsIs'; } @action scheduleAll() { this.userSelectedSessionsToPublish = []; this.userSelectedSessionsToSchedule = [...this.overridableSessions]; + this.userSelectedAction = 'scheduleAll'; } @action @@ -561,22 +564,49 @@ export default class PublishAllSessionsComponent extends Component {
{{#if this.overridableSessions.length}} - - + + {{#if (eq this.userSelectedAction "publishAllAsIs")}} + + {{else}} + + {{/if}} + + {{#if (eq this.userSelectedAction "scheduleAll")}} + + {{else}} + + {{/if}} + From 28e230190149cccde6c79a7088856bdce60c87b8 Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Fri, 29 May 2026 11:39:37 -0700 Subject: [PATCH 2/7] individual session row actions now use radio buttons instead of checkboxes; bulk radio selection also gets unchecked if non-default action is selected --- .../addon/components/publish-all-sessions.gjs | 79 +++++++------------ .../components/publish-all-sessions.scss | 19 +++-- 2 files changed, 44 insertions(+), 54 deletions(-) diff --git a/packages/ilios-common/addon/components/publish-all-sessions.gjs b/packages/ilios-common/addon/components/publish-all-sessions.gjs index f865337ce0..c8be32a813 100644 --- a/packages/ilios-common/addon/components/publish-all-sessions.gjs +++ b/packages/ilios-common/addon/components/publish-all-sessions.gjs @@ -240,6 +240,8 @@ export default class PublishAllSessionsComponent extends Component { ); this.userSelectedSessionsToPublish = [...this.userSelectedSessionsToPublish, session]; } + + this.userSelectedAction = ''; } @action @@ -565,47 +567,28 @@ export default class PublishAllSessionsComponent extends Component {
{{#if this.overridableSessions.length}} - {{#if (eq this.userSelectedAction "publishAllAsIs")}} - - {{else}} +
- {{/if}} - - {{#if (eq this.userSelectedAction "scheduleAll")}} - - {{else}} - {{/if}} +
@@ -663,30 +646,28 @@ export default class PublishAllSessionsComponent extends Component { {{#each this.orderedOverridableSessions as |session|}}