Skip to content
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

T#283/dark mode #284

Merged
merged 2 commits into from
Jul 30, 2024
Merged
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
23 changes: 23 additions & 0 deletions cypress/e2e/admin.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,29 @@ context('Admin: Generate Screenshots', () => {
cy.snap('modal-projects-new_project', '.p-dialog')
})

it('Gen Projects pages - dark mode', () => {
cy.request('POST', '/app/userInfo/settings', [{
'settingGroup': 'user.prefs',
'value': true,
'setting': 'enable_dark_mode',
'lastLoadedValue': 'true',
'dirty': true
}]);
// projects page
cy.visit('/administrator')
cy.get('[data-cy="projectCard_movies"]');
cy.get('[data-cy="projectCard_shows"]');
cy.snap('page-projects-dark-mode');

cy.request('POST', '/app/userInfo/settings', [{
'settingGroup': 'user.prefs',
'value': false,
'setting': 'enable_dark_mode',
'lastLoadedValue': 'true',
'dirty': true
}]);
})

it('Gen Subject page with custom viewport', () => {
// use custom ratio
cy.viewport(1350, 800);
Expand Down
16 changes: 15 additions & 1 deletion docs/dashboard/user-guide/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,26 @@ Administration settings can be accessed by users via the ```Settings``` menu ent
Please note that number of settings' section are only visible to users with the [Root](/dashboard/user-guide/users.html#root) role.

## Preferences
Ability to customize your personal user preference:
Ability to customize your personal user preference, including:
- Default Home/Landing Page
- Ability to opt-out from Ranking and Leaderboards
- Enabling and/or disabling UI Dark Mode

![User Preferences](../../screenshots/admin/page-settings-preference.png)

### Setting: Default Home Page

Users have a choice of a default landing page. If the majority of time is spent administrating SkillTree projects then it makes sense to change the default to the `Project Admin`.

### Setting: Rank and Leader Opt-Out

Change this setting to true and you will not be shown on the Leaderboard or assigned a rank for all projects.

### Setting: Dark Mode <since project="skills-service" version="3.0" />

Enabling Dark Mode will switch UI into light-on-dark color scheme. For example:

![page-projects-dark-mode.png](../../screenshots/admin/page-projects-dark-mode.png)

## Security Settings <requires-role role="Root" />

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading