ToolJet/frontend/src/modules/common/components/UsersTable/UsersTable.jsx

376 lines
15 KiB
React
Raw Normal View History

import React, { useEffect, useRef, useState } from 'react';
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
import { CopyToClipboard } from 'react-copy-to-clipboard';
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
import Avatar from '@/_ui/Avatar';
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
import cx from 'classnames';
import { Pagination } from '@/_components';
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
import SolidIcon from '@/_ui/Icon/SolidIcons';
import { Tooltip } from 'react-tooltip';
2025-02-25 06:52:50 +00:00
import UsersActionMenu from './components/UsersActionMenu';
2024-05-16 10:19:58 +00:00
import { humanizeifDefaultGroupName, decodeEntities } from '@/_helpers/utils';
2025-02-25 06:52:50 +00:00
import { ResetPasswordModal } from '@/_components/ResetPasswordModal';
import OverflowTooltip from '@/_components/OverflowTooltip';
import { NoActiveWorkspaceModal } from './components/NoActiveWorkspaceModal';
import Spinner from 'react-bootstrap/Spinner';
2025-02-25 06:52:50 +00:00
import { ToolTip } from '@/_components/ToolTip';
Platform LTS Final fixes (#13221) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * reverted breadcrumb changes (#13194) * fixes for getting public sso configurations * fix for enable signup on cloud * Cloud Trial and Banners (#13182) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Cloud Trial and Banners * revert * initial commit * Added website onboarding APIs * moved ai onboarding controller to auth module * ee banners * fix --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Bugfixes/minor UI fixes-CLoud (#13203) * Bugfixes/UI bugs platform 1 (#13205) * cleanup * Audit logs fix * gitignore changes * postgrest configs removed * removed unused import * improvements * fix * improved startup logs * Platform cypress fix (#13192) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * Cypress fix * reverted breadcrumb changes (#13194) * cypress fix * title fix * fixes for getting public sso configurations --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * deployment fix * added interfaces and permissions * Bugfixes/lts 3.6 branch 1 platform (#13238) * fix * Licensing Banners Fixes Cloud and EE (#13241) * design: Adds license buttons to header * Refactor header actions * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * subscription page * fix banners --------- Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> * fix for public apps * fix * CE Instance Signup bug (#13254) * CE Instance Signup bug * improvement * fix * Add WEBSITE_SIGNUP_URL to deployment environment variables * Add WEBSITE_SIGNUP_URL to environment variables for deployment * Super admin banner fix (#13262) * Git Sync Fixes (#13249) * git-sync module changes * git sync fixes * added app resource guard * git-sync fixes * removed require feature * fix * review comment changes * ypress fix * App logo fix inside app builder * fix for subpath cache * fix (#13274) * platform-cypress-fix (#13271) * git sync fixes (#13277) * fix * Add data-cy for new components (#13289) --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: Rudhra Deep Biswas <98055396+rudeUltra@users.noreply.github.com> Co-authored-by: Ajith KV <ajith.jaban@gmail.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: rohanlahori <rohanlahori99@gmail.com> Co-authored-by: Adish M <adish.madhu@gmail.com> Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
2025-07-09 17:06:41 +00:00
import { fetchEdition } from '../../helpers/utils';
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
const UsersTable = ({
isLoading,
users,
archivingUser,
unarchivingUser,
generateInvitationURL,
invitationLinkCopyHandler,
unarchiveOrgUser,
archiveOrgUser,
meta,
pageChanged,
darkMode,
translator,
2025-02-25 06:52:50 +00:00
isLoadingAllUsers,
openOrganizationModal,
openEditModal,
customStyles,
toggleEditUserDrawer,
2025-02-25 06:52:50 +00:00
resetPassword = false,
wsSettings = false,
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
}) => {
2025-02-25 06:52:50 +00:00
const [isResetPasswordModalVisible, setIsResetPasswordModalVisible] = useState(false);
const [selectedUser, setSelectedUser] = useState(null);
const [showNoActiveWorkspaceModal, setShowNoActiveWorkspaceModal] = useState(false);
const hideAccountSetupLink = window.public_config?.HIDE_ACCOUNT_SETUP_LINK == 'true';
// Check if user has metadata
const shouldShowMetadataColumn = wsSettings && Array.isArray(users) && users.some((user) => user.user_metadata);
2025-02-25 06:52:50 +00:00
function showMetadataIcon(metadata) {
if (!metadata) return false;
2025-02-25 06:52:50 +00:00
for (const [key, value] of Object.entries(metadata)) {
// Check if both key and value are not empty
if (key.trim() !== '' && value.trim() !== '') {
return true;
}
}
return false;
2025-02-25 06:52:50 +00:00
}
const handleResetPasswordClick = (user) => {
setSelectedUser(user);
setIsResetPasswordModalVisible(true);
};
Platform LTS Final fixes (#13221) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * reverted breadcrumb changes (#13194) * fixes for getting public sso configurations * fix for enable signup on cloud * Cloud Trial and Banners (#13182) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Cloud Trial and Banners * revert * initial commit * Added website onboarding APIs * moved ai onboarding controller to auth module * ee banners * fix --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Bugfixes/minor UI fixes-CLoud (#13203) * Bugfixes/UI bugs platform 1 (#13205) * cleanup * Audit logs fix * gitignore changes * postgrest configs removed * removed unused import * improvements * fix * improved startup logs * Platform cypress fix (#13192) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * Cypress fix * reverted breadcrumb changes (#13194) * cypress fix * title fix * fixes for getting public sso configurations --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * deployment fix * added interfaces and permissions * Bugfixes/lts 3.6 branch 1 platform (#13238) * fix * Licensing Banners Fixes Cloud and EE (#13241) * design: Adds license buttons to header * Refactor header actions * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * subscription page * fix banners --------- Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> * fix for public apps * fix * CE Instance Signup bug (#13254) * CE Instance Signup bug * improvement * fix * Add WEBSITE_SIGNUP_URL to deployment environment variables * Add WEBSITE_SIGNUP_URL to environment variables for deployment * Super admin banner fix (#13262) * Git Sync Fixes (#13249) * git-sync module changes * git sync fixes * added app resource guard * git-sync fixes * removed require feature * fix * review comment changes * ypress fix * App logo fix inside app builder * fix for subpath cache * fix (#13274) * platform-cypress-fix (#13271) * git sync fixes (#13277) * fix * Add data-cy for new components (#13289) --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: Rudhra Deep Biswas <98055396+rudeUltra@users.noreply.github.com> Co-authored-by: Ajith KV <ajith.jaban@gmail.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: rohanlahori <rohanlahori99@gmail.com> Co-authored-by: Adish M <adish.madhu@gmail.com> Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
2025-07-09 17:06:41 +00:00
const edition = fetchEdition();
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
return (
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
<div className="workspace-settings-table-wrap mb-4">
2025-02-25 06:52:50 +00:00
<NoActiveWorkspaceModal
show={showNoActiveWorkspaceModal}
handleClose={() => {
setShowNoActiveWorkspaceModal(false);
}}
darkMode={darkMode}
/>
<div style={customStyles} className="tj-user-table-wrapper">
<div className="card-table fixedHeader table-responsive">
2025-06-10 20:36:39 +00:00
<table data-testid="usersTable" className="users-table table table-vcenter h-100 mx-0">
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
<thead>
<tr>
2025-02-25 06:52:50 +00:00
<th data-cy="users-table-name-column-header" data-name="name-header">
{translator('header.organization.menus.manageUsers.name', 'Name')}
</th>
{shouldShowMetadataColumn && (
2025-02-25 06:52:50 +00:00
<th data-cy="users-table-metadata-column-header" data-name="meta-header">
Metadata
</th>
)}
{!isLoadingAllUsers && (
<th data-cy="users-table-roles-column-header" data-name="role-header">
User role
</th>
)}
{isLoadingAllUsers && (
<th data-cy="users-table-type-column-header">
{translator('header.organization.menus.manageUsers.userType', 'Type')}
</th>
)}
{!isLoadingAllUsers && (
<th data-cy="users-table-groups-column-header" data-name="custom-header">
Custom groups
</th>
)}
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
{users && users[0]?.status ? (
2025-02-25 06:52:50 +00:00
<th data-cy="users-table-status-column-header" data-name={wsSettings ? 'status-header' : ''}>
{translator('header.organization.menus.manageUsers.status', 'Status')}
</th>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
) : (
<th className="w-1"></th>
)}
2025-02-25 06:52:50 +00:00
{isLoadingAllUsers && (
<th data-cy="users-table-workspaces-column-header">
{translator('header.organization.menus.manageUsers.workspaces', 'Workspaces')}
</th>
)}
2025-06-12 06:30:11 +00:00
<th className="w-1 !tw-w-16 !tw-max-w-16 !tw-min-w-16"></th>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
</tr>
</thead>
{isLoading ? (
2024-07-25 11:15:45 +00:00
<div
style={{
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
height: 'calc(100vh - 270px)',
}}
>
<Spinner variant="primary" />
</div>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
) : (
<tbody>
{Array.isArray(users) &&
users.length > 0 &&
users.map((user) => (
<tr key={user.id} data-cy={`${user.name.toLowerCase().replace(/\s+/g, '-')}-user-row`}>
2025-06-10 20:36:39 +00:00
<td data-name="name-header">
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
<Avatar
avatarId={user.avatar_id}
text={`${user.first_name ? user.first_name[0] : ''}${
user.last_name ? user.last_name[0] : ''
}`}
/>
2024-06-27 20:54:00 +00:00
<div className="user-detail">
<span
className="mx-3 tj-text tj-text-sm"
data-cy={`${user.name.toLowerCase().replace(/\s+/g, '-')}-user-name`}
>
2025-02-25 06:52:50 +00:00
<OverflowTooltip>{decodeEntities(user.name)}</OverflowTooltip>
2024-06-27 20:54:00 +00:00
</span>
<span
style={{ color: '#687076' }}
className="user-email mx-3 tj-text-xsm"
data-cy={`${user.name.toLowerCase().replace(/\s+/g, '-')}-user-email`}
>
2025-02-25 06:52:50 +00:00
<OverflowTooltip>{user.email}</OverflowTooltip>
2024-06-27 20:54:00 +00:00
</span>
2024-06-26 05:06:58 +00:00
</div>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
</td>
{shouldShowMetadataColumn && (
2025-02-25 06:52:50 +00:00
<td data-name="meta-header">
<span className="text-muted user-type">
<div className={`metadata ${showMetadataIcon(user?.user_metadata) ? '' : 'empty'}`}>
{showMetadataIcon(user?.user_metadata) ? '{..}' : '-'}
</div>
</span>
</td>
)}
{isLoadingAllUsers && (
2025-06-12 06:30:11 +00:00
<td className="text-muted !tw-w-[230px] tw-max-w-[230px]">
2025-02-25 06:52:50 +00:00
<span
className="text-muted user-type"
data-cy={`${user.name.toLowerCase().replace(/\s+/g, '-')}-user-type`}
>
{user.user_type}
</span>
</td>
)}
{!isLoadingAllUsers && (
<GroupChipTD groups={user.role_group.map((group) => group.name)} isRole={true} />
)}
{!isLoadingAllUsers && <GroupChipTD groups={user.groups.map((group) => group.name)} />}
{user.status && (
<td
2025-06-12 06:30:11 +00:00
className="text-muted !tw-w-[230px] tw-max-w-[230px]"
2025-02-25 06:52:50 +00:00
data-name={wsSettings ? 'status-header' : ''}
style={{ marginRight: wsSettings ? '6px' : '0px' }}
>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
<span
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
className={cx('badge', {
'tj-invited': user.status === 'invited',
'tj-archive': user.status === 'archived',
'tj-active': user.status === 'active',
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
})}
data-cy="status-badge"
></span>
<small
className="workspace-user-status tj-text-sm text-capitalize"
data-cy={`${user.name.toLowerCase().replace(/\s+/g, '-')}-user-status`}
>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
{user.status}
</small>
Platform LTS Final fixes (#13221) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * reverted breadcrumb changes (#13194) * fixes for getting public sso configurations * fix for enable signup on cloud * Cloud Trial and Banners (#13182) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Cloud Trial and Banners * revert * initial commit * Added website onboarding APIs * moved ai onboarding controller to auth module * ee banners * fix --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Bugfixes/minor UI fixes-CLoud (#13203) * Bugfixes/UI bugs platform 1 (#13205) * cleanup * Audit logs fix * gitignore changes * postgrest configs removed * removed unused import * improvements * fix * improved startup logs * Platform cypress fix (#13192) * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * Bugfixes/whitelabelling apis (#13180) * white-labelling apis * removed consoles logs * reverts * fixes for white-labelling * fixes * Cypress fix * reverted breadcrumb changes (#13194) * cypress fix * title fix * fixes for getting public sso configurations --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * deployment fix * added interfaces and permissions * Bugfixes/lts 3.6 branch 1 platform (#13238) * fix * Licensing Banners Fixes Cloud and EE (#13241) * design: Adds license buttons to header * Refactor header actions * Cloud Blocker bugfixes (#13160) * fix * minor email fixes * settings menu fix * fixes * subscription page * fix banners --------- Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> * fix for public apps * fix * CE Instance Signup bug (#13254) * CE Instance Signup bug * improvement * fix * Add WEBSITE_SIGNUP_URL to deployment environment variables * Add WEBSITE_SIGNUP_URL to environment variables for deployment * Super admin banner fix (#13262) * Git Sync Fixes (#13249) * git-sync module changes * git sync fixes * added app resource guard * git-sync fixes * removed require feature * fix * review comment changes * ypress fix * App logo fix inside app builder * fix for subpath cache * fix (#13274) * platform-cypress-fix (#13271) * git sync fixes (#13277) * fix * Add data-cy for new components (#13289) --------- Co-authored-by: Rohan Lahori <64496391+rohanlahori@users.noreply.github.com> Co-authored-by: Rudhra Deep Biswas <98055396+rudeUltra@users.noreply.github.com> Co-authored-by: Ajith KV <ajith.jaban@gmail.com> Co-authored-by: Nithin David Thomas <1277421+nithindavid@users.noreply.github.com> Co-authored-by: rohanlahori <rohanlahori99@gmail.com> Co-authored-by: Adish M <adish.madhu@gmail.com> Co-authored-by: Rudra deep Biswas <rudra21ultra@gmail.com>
2025-07-09 17:06:41 +00:00
{user.status === 'invited' &&
!hideAccountSetupLink &&
user?.invitation_token &&
edition != 'cloud' ? (
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
<div className="workspace-clipboard-wrap">
<CopyToClipboard text={generateInvitationURL(user)} onCopy={invitationLinkCopyHandler}>
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
<span>
<SolidIcon
data-tooltip-id="tooltip-for-copy-invitation-link"
data-tooltip-content="Copy invitation link"
2025-02-25 06:52:50 +00:00
width="10"
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
fill="#889096"
name="copy"
/>
<p
className="tj-text-xsm"
data-cy={`${user.name
.toLowerCase()
.replace(/\s+/g, '-')}-user-copy-invitation-link`}
>
Copy link
</p>
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
</span>
</CopyToClipboard>
<Tooltip id="tooltip-for-copy-invitation-link" className="tooltip" />
Feature Homepage and settings redesign (#5763) * adding colors * feat :: add button * feat :: added typography * feat: init storybook * removes browserlist * feat :: adding button styles and button component * feat :: added sass addon * stories update * feat :: replacing with radix colors * danger variants * updates buttin story * fix :: removing default items * cleanup * fix icons update * feat :: folder list component * fix :: naming * icon and split button :: init * intermediate save :: app card component * renaming * updates * update for module imports * updates icon * update :: homepage design updates * design changes dashboard * updates :: apps section * workspace stting new design upate * updates dasboard design * style :: fixes * feat :: added context for sidebar nav breadcrumb * added all solid icons * intermediate update * change: conditions for fetching users * sorybook updates * design updates :: workspace settings page * manage users page * lint fixes * fix :: styling * stle fixes :: workspace settings * homepage redesign * fix :: all drawer colors and position ,teplate page revamp , database page header fixes * imported all bulk icons * svg to jsx : bulk icons * minor :: cleanup * fix :: manage users drawer * fix :: searchboxes , userspage fixes * fix :: all inputs and minor ui fixes * database page ui fixes * fix :: database and folder search functionality and iconlist in homecard * fixed some db functionality and edge cases for longer texts * fix :: user addition manage user page * self review cleanup and change in bulk icon fill state * fix :: homepage seacbar * merging develop and resolving conflicts * remove unwanted stories * reverting merge with develop * Revert "reverting merge with develop" This reverts commit 2150c8ec0ce9cedda4f4676211faa3321d4af7f8. * clearing out warnings * lint fixes * feat :: added org modal in database page * fix :: sso loader theme * fix :: broken styles select * fixed icon warning and select ui * fix :: upload bulk and user select dark mode * merge styles with develop * feat :: integrated new ui for database * removing storybook files * fix :: all bugs related to users dropdown and cleanup * fix: user search api for organization page * cleanup and splitting dropzone component * fix :: overflow issue in app card time * fix for scrollbars in homepage * PR review fixes * updates :: fix d=global datasource design issues , homepage responsiveness * tj db operations * breadcrumb bug fixes * lint fixes * removing logs , removed fade in in datasource and database page * marketplace page ui fix * removing inital users table fetch * Pr :: review changes * remove logs * fix :: popover bug * minot style fix * fix :: remove arrow from all popovers * fix :: for loading states * ux :: sidebar items reorder * style :: fix * style fix :: templates * fix :: qa bugs * fix :: Qa reported bugs * removes :: folder fetch bug * share link and datsource bg color fix * fixes :: rename group , * removed logs * pages popover background fix * fix :: tj db table addition ui bug * fix :: ui bug confirm modal password disable * modal , revert name capitalize in lists, typos fix * typos , users page route bugfix * users page header bugfix * workspace archive btn , datasources form style for select * groups updated , delete, create flow updated * avatar bug in profile page fix * revert styles * fix :: for create new table nav breadcrumb not being updated * click state bug fix in avatar * fix bug with appcard popover * fix :: text capitalize issue * fix :: lints and updated icon for filter delete * fix warnings --------- Co-authored-by: gandharv <gandharvkumargarg@gmail.com> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com>
2023-04-21 06:15:48 +00:00
</div>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
) : (
''
)}
</td>
)}
2025-02-25 06:52:50 +00:00
{isLoadingAllUsers && (
2025-06-12 06:30:11 +00:00
<td className="text-muted !tw-w-[230px] tw-max-w-[230px]">
2025-02-25 06:52:50 +00:00
<a
className="px-2 text-muted workspaces"
onClick={
user.total_organizations > 0
? () => openOrganizationModal(user)
: () => {
setShowNoActiveWorkspaceModal(true);
}
}
data-cy={`${user.name.toLowerCase().replace(/\s+/g, '-')}-user-view-button`}
>
View ({user.total_organizations})
</a>
</td>
)}
2025-06-10 20:36:39 +00:00
<td className="user-actions-button tw-w-16 tw-max-w-16">
<UsersActionMenu
archivingUser={archivingUser}
user={user}
unarchivingUser={unarchivingUser}
unarchiveOrgUser={unarchiveOrgUser}
archiveOrgUser={archiveOrgUser}
toggleEditUserDrawer={() => toggleEditUserDrawer(user)}
2025-02-25 06:52:50 +00:00
onResetPasswordClick={() => handleResetPasswordClick(user)}
resetPassword={resetPassword}
/>
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
</td>
</tr>
))}
</tbody>
)}
</table>
</div>
2025-02-25 06:52:50 +00:00
{meta?.total_count > 10 && (
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
<Pagination
currentPage={meta.current_page}
count={meta.total_count}
pageChanged={pageChanged}
itemsPerPage={10}
darkMode={darkMode}
/>
)}
</div>
2025-02-25 06:52:50 +00:00
{isResetPasswordModalVisible && (
<ResetPasswordModal
show={isResetPasswordModalVisible}
closeModal={() => {
setIsResetPasswordModalVisible(false);
setSelectedUser(null);
}}
user={selectedUser}
/>
)}
Merge main to develop (#4049) * Fix: User group permissions error on Openshift platform (#4041) * update dockerfile for file permissions on root group * add permissions from the user group on dockerfile * bump to v1.24.4 * bump to v1.25.0 * [feature] Added pagination and filtering features to users page (#3921) * added pagination and filtering in backend * added pagination - created a seperate component for users table - added pagination * Added filter UI * temporary css fix for pagination footer * fixed pagination width issue * now result will also clear when user clicks on clear icon * Added seperate api for comment mentions * Now we can search mentions by email, first and last names * Fixed a bug - email didn't send for comment mentions * refactoring the code * resolved PR changes * Added isAdmin guard * adding some checks * fixed lint errors * added wild card search * Added no result found text * fixed failing test case * Working on PR changes * Now users table avatars will load image too * replaced skeleton classes with skeleton library component * Completed PR changes * added orderby * Fixed some issues * fixed failed test case * have fixed some css issues * replaced query with quersrting package * fixed minor width issue * Fixed some css issues * fixed darkMode issue * implemented on enter press search * Refactored the code * fixed white space issue * refactored the code * fixed overlapping issue * refactored the code * fixing some issues * fixes * removed guard * code cleanup * comments notification fix * fixed conflict issues * fixed css height issue Co-authored-by: gsmithun4 <gsmithun4@gmail.com> * Remove signup guard from set-password-from-token API (#4050) * Remove sign up guard set-password-from-token API * test cases fix * Bump to v1.25.1 * Feature: Add PG_DB_OWNER env var to disable db and extension creation (#4055) * add PG_DB_OWNER env var to disable db and extension creation * update docs * bump to v1.25.2 Co-authored-by: Akshay <akshaysasidharan93@gmail.com> Co-authored-by: Muhsin Shah C P <muhsinshah21@gmail.com>
2022-09-16 15:38:45 +00:00
</div>
);
};
export default UsersTable;
2024-07-05 04:26:32 +00:00
const GroupChipTD = ({ groups = [], isRole = false }) => {
const [showAllGroups, setShowAllGroups] = useState(false);
const groupsListRef = useRef();
useEffect(() => {
const onCloseHandler = (e) => {
if (groupsListRef.current && !groupsListRef.current.contains(e.target)) {
setShowAllGroups(false);
}
};
window.addEventListener('click', onCloseHandler);
return () => {
window.removeEventListener('click', onCloseHandler);
};
}, [showAllGroups]);
function moveValuesToLast(arr, valuesToMove) {
const validValuesToMove = valuesToMove.filter((value) => arr.includes(value));
validValuesToMove.forEach((value) => {
const index = arr.indexOf(value);
if (index !== -1) {
const removedItem = arr.splice(index, 1);
arr.push(removedItem[0]);
}
});
return arr;
}
const orderedArray = groups;
const toggleAllGroupsList = (e) => {
setShowAllGroups(!showAllGroups);
};
const renderGroupChip = (group, index) => (
2024-07-05 04:26:32 +00:00
<ToolTip message={group}>
<span className="group-chip" key={index} data-cy="group-chip">
{humanizeifDefaultGroupName(group)}
</span>
</ToolTip>
);
return (
<td
2024-07-05 04:26:32 +00:00
data-name={isRole ? 'role-header' : ''}
data-active={showAllGroups}
ref={groupsListRef}
onClick={(e) => {
orderedArray.length > 2 && toggleAllGroupsList(e);
}}
2025-06-10 20:36:39 +00:00
className={cx('text-muted groups-name-cell !tw-w-[230px] tw-max-w-[230px]', {
'groups-hover': orderedArray.length > 2,
})}
>
<div className="groups-name-container tj-text-sm font-weight-500">
2024-06-27 20:54:00 +00:00
{orderedArray.length === 0 ? (
<div className="empty-text">-</div>
) : (
orderedArray.slice(0, 2).map((group, index) => {
if (orderedArray.length <= 2) {
return renderGroupChip(group, index);
}
2024-06-27 20:54:00 +00:00
if (orderedArray.length > 2 && index === 1) {
return (
<React.Fragment key={index}>
{renderGroupChip(group, index)}
<span className="group-chip">+{orderedArray.length - 2} more</span>
{showAllGroups && (
<div className="all-groups-list">
{orderedArray.slice(2).map((group, index) => renderGroupChip(group, index))}
</div>
)}
</React.Fragment>
);
}
2024-06-27 20:54:00 +00:00
return renderGroupChip(group, index);
})
)}
</div>
</td>
);
};