Skip to content

Add Admin Panel Documentation and Configure AI Provider #10

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions dev-docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aiProvider": "google"
}
25 changes: 25 additions & 0 deletions docusaurus/docs/cms/features/admin-panel.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@
title: Admin panel
description: Learn to use the admin panel.
toc_max_heading_level: 5
tags:
- admin panel
- profile
- light mode
- dark mode
---
```markdown
---
title: Admin panel
description: Learn to use the admin panel.
toc_max_heading_level: 5
tags:
- admin panel
- profile
Expand Down Expand Up @@ -153,3 +164,17 @@ sources={{
dark: '/img/assets/getting-started/login-page_DARK.png',
}}
/>

## Admin Panel Widgets

The admin panel's homepage includes widgets that display information such as recently edited and published entries. These widgets may display different states based on the data available and the user's permissions.

* **Loading State:** A loader is displayed while the widget fetches data.

* **Error State:** An error message is shown if the widget fails to load data.

* **No Data State:** A message indicates that no data is available if the widget has no content to display.

* **No Permissions State:** A message indicates that the user does not have the necessary permissions to view the widget. This state ensures that sensitive information is not exposed to unauthorized users.

These states are handled using the `Widget` component, which provides a consistent way to display these different states in the admin panel. Ensure your user roles and permissions are appropriately configured to allow users to see the data they need. If a user is seeing a "No Permissions" message, verify their role has the correct permissions set in the RBAC settings.