mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #3628] [MERGED] feat: introducing server configurations in admin dashboard #4459
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4459
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3628
Author: @joeljstephen
Created: 12/6/2023
Status: ✅ Merged
Merged: 12/13/2023
Merged by: @AndrewBastin
Base:
release/2023.12.0← Head:feat/dashboard-server-config📝 Commits (10+)
89e7430chore: new i18n stringsdd9b6cfrefactor: using query to show allowed providers in login paged398614feat: introducing settings page with config tabs and auth provider component79319befeat: new graphql queries for obtaining server config infod6c73e0feat: new composable for queries using useClientHandle30a0549feat: new component for mail configsecc14e9feat: new composables to handle all config related code9786579feat: new reset component for handling backend server restartee96fddfeat: new component to handle saving of updated configsd41d529feat: new auth provider composable📊 Changes
22 files changed (+1007 additions, -29 deletions)
View changed files
📝
packages/hoppscotch-sh-admin/locales/en.json(+37 -0)📝
packages/hoppscotch-sh-admin/package.json(+1 -0)📝
packages/hoppscotch-sh-admin/src/components.d.ts(+9 -1)📝
packages/hoppscotch-sh-admin/src/components/app/Login.vue(+32 -21)📝
packages/hoppscotch-sh-admin/src/components/app/Sidebar.vue(+7 -0)➕
packages/hoppscotch-sh-admin/src/components/settings/AuthProvider.vue(+132 -0)➕
packages/hoppscotch-sh-admin/src/components/settings/Configurations.vue(+22 -0)➕
packages/hoppscotch-sh-admin/src/components/settings/Reset.vue(+45 -0)➕
packages/hoppscotch-sh-admin/src/components/settings/ServerRestart.vue(+87 -0)➕
packages/hoppscotch-sh-admin/src/components/settings/SmtpConfiguration.vue(+110 -0)➕
packages/hoppscotch-sh-admin/src/composables/useClientHandler.ts(+49 -0)➕
packages/hoppscotch-sh-admin/src/composables/useConfigHandler.ts(+345 -0)📝
packages/hoppscotch-sh-admin/src/helpers/auth.ts(+5 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/EnableAndDisableSso.graphql(+3 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/ResetInfraConfigs.graphql(+3 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/UpdateInfraConfigs.graphql(+6 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/AllowedAuthProviders.graphql(+3 -0)➕
packages/hoppscotch-sh-admin/src/helpers/backend/gql/queries/InfraConfigs.graphql(+6 -0)📝
packages/hoppscotch-sh-admin/src/helpers/backend/rest/authQuery.ts(+1 -0)📝
packages/hoppscotch-sh-admin/src/pages/settings.vue(+79 -1)...and 2 more files
📄 Description
Ticket
Description
This PR introduces Server Configurations to the Admin Dashboard. Admins can now make changes to the server configurations directly from the Dashboard UI. A new settings page is added where admins can make changes to the configs. A backend server restart will be initiated in order to apply all the requested changes to the server configurations, which is facilitated by the Dashboard, by displaying a non dismissible modal with a timer of 30 seconds, on obtaining confirmation from the admin.
List of Server Configurations that can be updated:
Auth Providers
SMTP Configurations
Objectives
envvariable.Screenshot
Note:
Admin Dashboard will now display the auth providers on the login page based on the newly added REST route instead of directly reading from the
envvariable.Checks
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.