From 1791bc13ee75f216089824767b7e0131ef90288e Mon Sep 17 00:00:00 2001 From: "Mykhailo (via MelvinBot)" Date: Wed, 1 Apr 2026 14:12:43 +0000 Subject: [PATCH 1/5] Sort join-workspaces by member count and add Show more button Sort available workspaces by employee count (descending) so the largest workspaces appear first. When more than 5 workspaces are available, show only the first 5 with a "Show more" button to reveal the rest. Co-authored-by: Mykhailo --- .../BaseOnboardingWorkspaces.tsx | 91 +++++++++++-------- 1 file changed, 54 insertions(+), 37 deletions(-) diff --git a/src/pages/OnboardingWorkspaces/BaseOnboardingWorkspaces.tsx b/src/pages/OnboardingWorkspaces/BaseOnboardingWorkspaces.tsx index bf17af8c8e8b..c1126f31dd43 100644 --- a/src/pages/OnboardingWorkspaces/BaseOnboardingWorkspaces.tsx +++ b/src/pages/OnboardingWorkspaces/BaseOnboardingWorkspaces.tsx @@ -1,6 +1,6 @@ import {useFocusEffect} from '@react-navigation/native'; import {hasSeenTourSelector} from '@selectors/Onboarding'; -import React from 'react'; +import React, {useState} from 'react'; import {View} from 'react-native'; import Button from '@components/Button'; import HeaderWithBackButton from '@components/HeaderWithBackButton'; @@ -99,33 +99,40 @@ function BaseOnboardingWorkspaces({route, shouldUseNativeStyles}: BaseOnboarding ); }; - const policyIDItems = Object.values(joinablePolicies ?? {}).map((policyInfo) => ({ - text: policyInfo.policyName, - alternateText: translate('onboarding.workspaceMemberList', {employeeCount: policyInfo.employeeCount, policyOwner: policyInfo.policyOwner}), - keyForList: policyInfo.policyID, - isDisabled: true, - rightElement: ( -