[PR #3845] [MERGED] feat(sh-admin): introducing data analytics and newsletter configurations #4553

Closed
opened 2026-03-17 02:04:45 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3845
Author: @joeljstephen
Created: 2/20/2024
Status: Merged
Merged: 3/6/2024
Merged by: @AndrewBastin

Base: release/2024.3.0Head: feat/dashboard-data-usage


📝 Commits (10+)

  • 24e4351 feat: new data analytics page to show admins on first login
  • 15641b5 feat: new mutation to toggle analytics
  • 51a360c feat: code for implementing newsletter
  • f212d9a refactor: added data sharing configs to confighandler
  • 7886d9e feat: new data sharing component
  • b8e147e refactor: new link to show what data is being shared
  • 92382fe style: updated icons and styles
  • c38e92e refactor: new i18n string for data sharing component
  • 925f15b feat: added new configs and mutations for data sharing in config handler and server restart
  • 785c8c6 refactor: new i18n strings for data sharing and data component

📊 Changes

18 files changed (+573 additions, -154 deletions)

View changed files

packages/hoppscotch-sh-admin/assets/images/hoppscotch-title.svg (+16 -0)
📝 packages/hoppscotch-sh-admin/locales/en.json (+32 -2)
📝 packages/hoppscotch-sh-admin/src/components.d.ts (+38 -45)
📝 packages/hoppscotch-sh-admin/src/components/settings/Configurations.vue (+1 -0)
packages/hoppscotch-sh-admin/src/components/settings/DataSharing.vue (+66 -0)
📝 packages/hoppscotch-sh-admin/src/components/settings/ServerRestart.vue (+16 -2)
packages/hoppscotch-sh-admin/src/components/setup/DataSharingAndNewsletter.vue (+141 -0)
📝 packages/hoppscotch-sh-admin/src/composables/useClientHandler.ts (+17 -13)
📝 packages/hoppscotch-sh-admin/src/composables/useConfigHandler.ts (+88 -51)
📝 packages/hoppscotch-sh-admin/src/composables/usePagedQuery.ts (+25 -22)
📝 packages/hoppscotch-sh-admin/src/helpers/auth.ts (+23 -3)
📝 packages/hoppscotch-sh-admin/src/helpers/axiosConfig.ts (+7 -1)
packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/ToggleAnalyticsCollection.graphql (+3 -0)
📝 packages/hoppscotch-sh-admin/src/helpers/backend/rest/authQuery.ts (+2 -0)
📝 packages/hoppscotch-sh-admin/src/modules/admin.ts (+54 -13)
packages/hoppscotch-sh-admin/src/pages/setup.vue (+40 -0)
📝 packages/hoppscotch-sh-admin/src/pages/teams/_id.vue (+3 -1)
📝 packages/hoppscotch-sh-admin/src/pages/users/_id.vue (+1 -1)

📄 Description

Ticket

  • Closes HFE-408
  • Depends on #3838

Description

This PR introduces data analytics and newsletter support to the Admin Dashboard. When a new user instantiates the admin dashboard, a new data sharing page will be displayed on first initialisation which asks admins if they are interested in sharing data to make Hoppscotch better and are willing to signup to the newsletter. Admins can also modify these choices in under Configurations tab in the Settings Panel of the Dashboard

Screenshot

image

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3845 **Author:** [@joeljstephen](https://github.com/joeljstephen) **Created:** 2/20/2024 **Status:** ✅ Merged **Merged:** 3/6/2024 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2024.3.0` ← **Head:** `feat/dashboard-data-usage` --- ### 📝 Commits (10+) - [`24e4351`](https://github.com/hoppscotch/hoppscotch/commit/24e4351d21dc2a5bd06e79d06bea1be58a2eaaf1) feat: new data analytics page to show admins on first login - [`15641b5`](https://github.com/hoppscotch/hoppscotch/commit/15641b5fed51aad10ce47855b43799f3f874403f) feat: new mutation to toggle analytics - [`51a360c`](https://github.com/hoppscotch/hoppscotch/commit/51a360c96c19782da4df550f357cc258082a605c) feat: code for implementing newsletter - [`f212d9a`](https://github.com/hoppscotch/hoppscotch/commit/f212d9a869ec458eb54cc25642e60e595803664d) refactor: added data sharing configs to confighandler - [`7886d9e`](https://github.com/hoppscotch/hoppscotch/commit/7886d9e79d2a5dd47467f3ffa7872d674e1339ff) feat: new data sharing component - [`b8e147e`](https://github.com/hoppscotch/hoppscotch/commit/b8e147ef3f63ec56405bdba73643e20c50da2984) refactor: new link to show what data is being shared - [`92382fe`](https://github.com/hoppscotch/hoppscotch/commit/92382fea0c16d083257351796e8ccfa9d5b42120) style: updated icons and styles - [`c38e92e`](https://github.com/hoppscotch/hoppscotch/commit/c38e92e01e4199b32ecc5415121cf6c3689927dc) refactor: new i18n string for data sharing component - [`925f15b`](https://github.com/hoppscotch/hoppscotch/commit/925f15bf1e5955481cf82b6e96ad3f72a59794bd) feat: added new configs and mutations for data sharing in config handler and server restart - [`785c8c6`](https://github.com/hoppscotch/hoppscotch/commit/785c8c6ecbed9b8536a2c948665c706b65751009) refactor: new i18n strings for data sharing and data component ### 📊 Changes **18 files changed** (+573 additions, -154 deletions) <details> <summary>View changed files</summary> ➕ `packages/hoppscotch-sh-admin/assets/images/hoppscotch-title.svg` (+16 -0) 📝 `packages/hoppscotch-sh-admin/locales/en.json` (+32 -2) 📝 `packages/hoppscotch-sh-admin/src/components.d.ts` (+38 -45) 📝 `packages/hoppscotch-sh-admin/src/components/settings/Configurations.vue` (+1 -0) ➕ `packages/hoppscotch-sh-admin/src/components/settings/DataSharing.vue` (+66 -0) 📝 `packages/hoppscotch-sh-admin/src/components/settings/ServerRestart.vue` (+16 -2) ➕ `packages/hoppscotch-sh-admin/src/components/setup/DataSharingAndNewsletter.vue` (+141 -0) 📝 `packages/hoppscotch-sh-admin/src/composables/useClientHandler.ts` (+17 -13) 📝 `packages/hoppscotch-sh-admin/src/composables/useConfigHandler.ts` (+88 -51) 📝 `packages/hoppscotch-sh-admin/src/composables/usePagedQuery.ts` (+25 -22) 📝 `packages/hoppscotch-sh-admin/src/helpers/auth.ts` (+23 -3) 📝 `packages/hoppscotch-sh-admin/src/helpers/axiosConfig.ts` (+7 -1) ➕ `packages/hoppscotch-sh-admin/src/helpers/backend/gql/mutations/ToggleAnalyticsCollection.graphql` (+3 -0) 📝 `packages/hoppscotch-sh-admin/src/helpers/backend/rest/authQuery.ts` (+2 -0) 📝 `packages/hoppscotch-sh-admin/src/modules/admin.ts` (+54 -13) ➕ `packages/hoppscotch-sh-admin/src/pages/setup.vue` (+40 -0) 📝 `packages/hoppscotch-sh-admin/src/pages/teams/_id.vue` (+3 -1) 📝 `packages/hoppscotch-sh-admin/src/pages/users/_id.vue` (+1 -1) </details> ### 📄 Description ### Ticket - Closes HFE-408 - Depends on #3838 ### Description This PR introduces data analytics and newsletter support to the Admin Dashboard. When a new user instantiates the admin dashboard, a new data sharing page will be displayed on first initialisation which asks admins if they are interested in sharing data to make Hoppscotch better and are willing to signup to the newsletter. Admins can also modify these choices in under Configurations tab in the Settings Panel of the Dashboard ### Screenshot ![image](https://github.com/hoppscotch/hoppscotch/assets/70131076/98ac86dc-5498-4299-bbd8-fb006b5c96fd) ### Checks <!-- Make sure your pull request passes the CI checks and do check the following fields as needed - --> - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 02:04:45 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4553
No description provided.