From b3e42bf7c30df31895d6c327fe8d7eb8bbcf4559 Mon Sep 17 00:00:00 2001 From: Joel Jacob Stephen <70131076+JoelJacobStephen@users.noreply.github.com> Date: Wed, 26 Jun 2024 12:30:40 +0530 Subject: [PATCH] feat(sh-admin): introducing last active status to users table and individual user's page in dashboard (#4077) Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com> --- packages/hoppscotch-sh-admin/locales/en.json | 2 ++ .../hoppscotch-sh-admin/src/components.d.ts | 10 ---------- .../src/components/users/Details.vue | 10 +++++++++- .../backend/gql/queries/UserInfo.graphql | 1 + .../backend/gql/queries/UsersListV2.graphql | 1 + .../src/pages/users/index.vue | 18 ++++++++++-------- 6 files changed, 23 insertions(+), 19 deletions(-) diff --git a/packages/hoppscotch-sh-admin/locales/en.json b/packages/hoppscotch-sh-admin/locales/en.json index 951899690..d338e30b3 100644 --- a/packages/hoppscotch-sh-admin/locales/en.json +++ b/packages/hoppscotch-sh-admin/locales/en.json @@ -279,6 +279,7 @@ "invited_on": "Invited On", "invited_users": "Invited Users", "invitee_email": "Invitee Email", + "last_active_on": "Last Active", "load_info_error": "Unable to load user info", "load_list_error": "Unable to Load Users List", "make_admin": "Make Admin", @@ -286,6 +287,7 @@ "no_invite": "No pending invites found", "no_shared_requests": "No shared requests created by the user", "no_users": "No users found", + "not_available": "Not Available", "not_found": "User not found", "pending_invites": "Pending Invites", "remove_admin_privilege": "Remove Admin Privilege", diff --git a/packages/hoppscotch-sh-admin/src/components.d.ts b/packages/hoppscotch-sh-admin/src/components.d.ts index eaaf88bfe..6cc64dfd3 100644 --- a/packages/hoppscotch-sh-admin/src/components.d.ts +++ b/packages/hoppscotch-sh-admin/src/components.d.ts @@ -17,23 +17,13 @@ declare module '@vue/runtime-core' { HoppButtonPrimary: typeof import('@hoppscotch/ui')['HoppButtonPrimary'] HoppButtonSecondary: typeof import('@hoppscotch/ui')['HoppButtonSecondary'] HoppSmartAnchor: typeof import('@hoppscotch/ui')['HoppSmartAnchor'] - HoppSmartAutoComplete: typeof import('@hoppscotch/ui')['HoppSmartAutoComplete'] HoppSmartConfirmModal: typeof import('@hoppscotch/ui')['HoppSmartConfirmModal'] HoppSmartInput: typeof import('@hoppscotch/ui')['HoppSmartInput'] HoppSmartItem: typeof import('@hoppscotch/ui')['HoppSmartItem'] HoppSmartLink: typeof import('@hoppscotch/ui')['HoppSmartLink'] - HoppSmartModal: typeof import('@hoppscotch/ui')['HoppSmartModal'] HoppSmartPicture: typeof import('@hoppscotch/ui')['HoppSmartPicture'] HoppSmartSpinner: typeof import('@hoppscotch/ui')['HoppSmartSpinner'] - HoppSmartTab: typeof import('@hoppscotch/ui')['HoppSmartTab'] - HoppSmartTable: typeof import('@hoppscotch/ui')['HoppSmartTable'] - HoppSmartTabs: typeof import('@hoppscotch/ui')['HoppSmartTabs'] - HoppSmartToggle: typeof import('@hoppscotch/ui')['HoppSmartToggle'] - IconLucideArrowLeft: typeof import('~icons/lucide/arrow-left')['default'] - IconLucideChevronDown: typeof import('~icons/lucide/chevron-down')['default'] IconLucideInbox: typeof import('~icons/lucide/inbox')['default'] - IconLucideSearch: typeof import('~icons/lucide/search')['default'] - IconLucideUser: typeof import('~icons/lucide/user')['default'] SettingsAuthProvider: typeof import('./components/settings/AuthProvider.vue')['default'] SettingsConfigurations: typeof import('./components/settings/Configurations.vue')['default'] SettingsDataSharing: typeof import('./components/settings/DataSharing.vue')['default'] diff --git a/packages/hoppscotch-sh-admin/src/components/users/Details.vue b/packages/hoppscotch-sh-admin/src/components/users/Details.vue index fe1ffbd01..c85399b17 100644 --- a/packages/hoppscotch-sh-admin/src/components/users/Details.vue +++ b/packages/hoppscotch-sh-admin/src/components/users/Details.vue @@ -100,6 +100,7 @@