Skip to content

fix(ui): hide empty scheduling list for read-only users#105

Merged
albanm merged 1 commit into
masterfrom
fix-hide-empty-scheduling-readonly
Jun 9, 2026
Merged

fix(ui): hide empty scheduling list for read-only users#105
albanm merged 1 commit into
masterfrom
fix-hide-empty-scheduling-readonly

Conversation

@BatLeDev

@BatLeDev BatLeDev commented Jun 9, 2026

Copy link
Copy Markdown
Member

For read-only users (no admin rights on the processing), the scheduling section showed an empty, useless list header when the processing had no scheduling configured.

Why: the empty scheduling list looked broken/awkward for users who can only read and have nothing scheduled.

What changed: in the non-admin schema branch, drop schema.properties.scheduling when processing.scheduling is empty, so the section is hidden entirely. Read-only users who do have scheduling still see it (read-only); admin users are unaffected.

Regression risks:

  • Only the read-only (!canAdminProcessing) branch is touched; the admin branch is unchanged.
  • processing.value is guaranteed defined here (the computed returns early at the top if it isn't), so the new ?.length access can't throw.

@github-actions github-actions Bot added the fix label Jun 9, 2026
@albanm albanm merged commit 3c6a592 into master Jun 9, 2026
4 checks passed
@albanm albanm deleted the fix-hide-empty-scheduling-readonly branch June 9, 2026 07:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants