Skip to content

fix: show the content of the dashboard widgets again - #212

Merged
oleksandr-nc merged 1 commit into
mainfrom
fix/dashboard-widget-content
Sep 18, 2026
Merged

oleksandr-nc merged 1 commit into
mainfrom
fix/dashboard-widget-content

Conversation

@oleksandr-nc

Copy link
Copy Markdown
Contributor

Both Jira dashboard widgets stay empty on every supported Nextcloud version, for three reasons that only show up one after the other.

The widgets no longer crash when loading

data() read OCA.Theming.color, which Nextcloud no longer provides (OCA.Theming is now the theming app's initial state, with primaryColor instead of color), so .replace() threw a TypeError and nothing rendered under the widget title. themingColor and darkThemeColor, which read the long gone OCA.Accessibility, were not used anywhere, so both are removed.

The empty content message and the connect button are shown

The message and the Connect to Jira button were in a #desc slot, which NcEmptyContent no longer has, so they were never rendered. They now use the description prop and the action slot, the same way the Reddit widget does.

Users without a Jira account are asked to connect one

GET /notifications answered 200 with an empty list when no Jira account is connected, so the widget said No Jira notifications! and hid the connect button. It now answers 400, which the widget already treats as not connected, when the user has neither an OAuth token for Jira Cloud nor basic auth credentials for a self-hosted Jira, the same check the search provider does.

馃 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

The widgets rendered nothing, for three reasons that only show up one
after the other:

- data() read OCA.Theming.color, which Nextcloud no longer provides, and
  the resulting TypeError stopped the component from rendering. The value
  was not used anywhere, and neither was darkThemeColor, so both are
  removed.
- The empty content message and the connect button were in the #desc
  slot, which NcEmptyContent no longer has. They now use the description
  prop and the action slot.
- /notifications answered 200 with an empty list for users without a Jira
  account, so the widget reported no notifications instead of asking to
  connect one. It now answers 400 in that case, which the widget already
  treats as not connected.

Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com>
@oleksandr-nc
oleksandr-nc merged commit d9d90bb into main Sep 18, 2026
20 checks passed
@oleksandr-nc
oleksandr-nc deleted the fix/dashboard-widget-content branch September 18, 2026 10:30
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.

1 participant