Skip to content

fix: show the content of the dashboard widget again - #243

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

The GitHub dashboard widget shows only its Connect to GitHub button to users who did not connect a GitHub account, and greets them with a Failed to get GitHub notifications error.

The empty content message is shown

The message was passed to NcEmptyContent in a title prop, which the component no longer has, so it only ended up as the tooltip of the element. It now uses the name prop.

Users without a GitHub account are asked to connect one

GET /notifications requested the GitHub API without a token for these users and answered 401 with the error it got back, so the widget showed an error toast and its error state. When the user has no token, it now answers 400 without calling GitHub, which the widget already treats as not connected. darkThemeColor, which read the long gone OCA.Accessibility, was not used and is removed.

馃 AI (if applicable)

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

The widget showed only its connect button to users without a GitHub
account:

- NcEmptyContent no longer has the title prop the message was passed in,
  so the message was never shown. It now uses the name prop.
- /notifications requested the GitHub API without a token for such users
  and answered 401, so the widget reported an error. It now answers 400,
  which the widget already treats as not connected, without calling
  GitHub.

darkThemeColor was not used anywhere and read OCA.Accessibility, which
Nextcloud no longer provides, so it is removed.

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