[PR #3929] [MERGED] feat: added mutation and function to platform for updating user profile name #4599

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

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3929
Author: @nivedin
Created: 3/22/2024
Status: Merged
Merged: 3/25/2024
Merged by: @jamesgeorge007

Base: release/2024.3.0Head: feat/update-user-display-name


📝 Commits (9)

  • c10d9a1 feat: add platform api to update user profile name
  • 95102b3 refactor: toast for empty display name
  • 395ca9b chore: fix typo in updateUserDisplayName filename
  • 368343e refactor: return Either
  • e149d55 chore: cleanup
  • 9db17e6 chore: truncate team name
  • 7a787f1 chore: check if current and updated name is same
  • 0d32f10 fix: use setUser instead of updating probableUser directly
  • d65b2de chore: check for current user rather probable

📊 Changes

7 files changed (+68 additions, -18 deletions)

View changed files

📝 packages/hoppscotch-common/locales/en.json (+2 -0)
📝 packages/hoppscotch-common/src/components/teams/Team.vue (+1 -1)
📝 packages/hoppscotch-common/src/pages/profile.vue (+23 -12)
📝 packages/hoppscotch-common/src/platform/auth.ts (+5 -2)
packages/hoppscotch-selfhost-web/src/api/mutations/UpdateUserDisplayName.graphql (+5 -0)
📝 packages/hoppscotch-selfhost-web/src/platform/auth/auth.api.ts (+15 -0)
📝 packages/hoppscotch-selfhost-web/src/platform/auth/auth.platform.ts (+17 -3)

📄 Description

Closes HFE-455

Description

This PR adds the mutation and function to the platform to update user profile name from the profile section.

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/3929 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 3/22/2024 **Status:** ✅ Merged **Merged:** 3/25/2024 **Merged by:** [@jamesgeorge007](https://github.com/jamesgeorge007) **Base:** `release/2024.3.0` ← **Head:** `feat/update-user-display-name` --- ### 📝 Commits (9) - [`c10d9a1`](https://github.com/hoppscotch/hoppscotch/commit/c10d9a1b9331c962f09ac7231cababe55eb0173e) feat: add platform api to update user profile name - [`95102b3`](https://github.com/hoppscotch/hoppscotch/commit/95102b34d5d456307c13fd68f0daa6ccca8c37c3) refactor: toast for empty display name - [`395ca9b`](https://github.com/hoppscotch/hoppscotch/commit/395ca9be19c9b743bd08bac23ccdd1fc370e1477) chore: fix typo in updateUserDisplayName filename - [`368343e`](https://github.com/hoppscotch/hoppscotch/commit/368343eef2424df92fc4dbb7942fbf0f4027c650) refactor: return Either - [`e149d55`](https://github.com/hoppscotch/hoppscotch/commit/e149d554f3efec05bfd5a8057e0ae89937c23074) chore: cleanup - [`9db17e6`](https://github.com/hoppscotch/hoppscotch/commit/9db17e615386e680dfe48735e764d35c5867cf3c) chore: truncate team name - [`7a787f1`](https://github.com/hoppscotch/hoppscotch/commit/7a787f1c62175ba83b0af468d99b4cc560ee6d58) chore: check if current and updated name is same - [`0d32f10`](https://github.com/hoppscotch/hoppscotch/commit/0d32f1009cf2aedd44d2dad0c60ae15862220c86) fix: use setUser instead of updating probableUser directly - [`d65b2de`](https://github.com/hoppscotch/hoppscotch/commit/d65b2de845ceb8e07d44d7919a4be6b4942b0c49) chore: check for current user rather probable ### 📊 Changes **7 files changed** (+68 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/locales/en.json` (+2 -0) 📝 `packages/hoppscotch-common/src/components/teams/Team.vue` (+1 -1) 📝 `packages/hoppscotch-common/src/pages/profile.vue` (+23 -12) 📝 `packages/hoppscotch-common/src/platform/auth.ts` (+5 -2) ➕ `packages/hoppscotch-selfhost-web/src/api/mutations/UpdateUserDisplayName.graphql` (+5 -0) 📝 `packages/hoppscotch-selfhost-web/src/platform/auth/auth.api.ts` (+15 -0) 📝 `packages/hoppscotch-selfhost-web/src/platform/auth/auth.platform.ts` (+17 -3) </details> ### 📄 Description Closes HFE-455 ### Description This PR adds the mutation and function to the platform to update user profile name from the profile section. ### Checks - [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:07:12 +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#4599
No description provided.