Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd32a5e1

Browse files
authored
fix: fix UI bugs for orgs (#16302)
resolvescoder/internal#288resolvescoder/internal#287Fixes alignment issue on create organizations page when license banneris visible.before<img width="1178" alt="Screenshot 2025-01-27 at 18 36 35"src="https://github.com/user-attachments/assets/b845f1df-adb3-4876-aba5-8fa9d56eb22b"/>after<img width="961" alt="Screenshot 2025-01-27 at 18 47 06"src="https://github.com/user-attachments/assets/4a6374f9-9571-453c-9258-9cc4631afb77"/>
1 parent1336925 commitd32a5e1

File tree

4 files changed

+15
-6
lines changed

4 files changed

+15
-6
lines changed

‎site/src/modules/management/OrganizationSidebarView.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,12 @@ const OrganizationsSettingsNavigation: FC<
8686
return<Loader/>;
8787
}
8888

89+
// Sort organizations to put active organization first
90+
constsortedOrganizations=[
91+
activeOrganization,
92+
...organizations.filter((org)=>org.id!==activeOrganization.id),
93+
];
94+
8995
const[isPopoverOpen,setIsPopoverOpen]=useState(false);
9096
constnavigate=useNavigate();
9197

@@ -117,9 +123,9 @@ const OrganizationsSettingsNavigation: FC<
117123
<Commandloop>
118124
<CommandList>
119125
<CommandGroupclassName="pb-2">
120-
{organizations.length>1&&(
126+
{sortedOrganizations.length>1&&(
121127
<divclassName="flex flex-col max-h-[260px] overflow-y-auto">
122-
{organizations.map((organization)=>(
128+
{sortedOrganizations.map((organization)=>(
123129
<CommandItem
124130
key={organization.id}
125131
value={organization.name}

‎site/src/pages/ManagementSettingsPage/CreateOrganizationPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const CreateOrganizationPage: FC = () => {
1818
consterror=createOrganizationMutation.error;
1919

2020
return(
21-
<mainclassName="py-20 sm:py-7">
21+
<mainclassName="py-7">
2222
<CreateOrganizationPageView
2323
error={error}
2424
isEntitled={feats.multiple_organizations}

‎site/src/pages/ManagementSettingsPage/CreateOrganizationPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export const CreateOrganizationPageView: FC<
6464

6565
return(
6666
<divclassName="flex flex-row font-medium">
67-
<divclassName="absolutetop-40left-12">
67+
<divclassName="absolute left-12">
6868
<Link
6969
to="/organizations"
7070
className="flex flex-row items-center gap-2 no-underline text-content-secondary hover:text-content-primary"
@@ -73,7 +73,7 @@ export const CreateOrganizationPageView: FC<
7373
Go Back
7474
</Link>
7575
</div>
76-
<divclassName="flex flex-col gap-4 w-full min-w-72 mx-auto">
76+
<divclassName="flex flex-col gap-4 w-full min-w-96 mx-auto">
7777
<divclassName="flex flex-col items-center">
7878
{Boolean(error)&&!isApiValidationError(error)&&(
7979
<divcss={{marginBottom:32}}>

‎site/src/pages/ManagementSettingsPage/OrganizationProvisionersPage.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ const OrganizationProvisionersPage: FC = () => {
2929
<>
3030
<Helmet>
3131
<title>
32-
{pageTitle("Members",organization.display_name||organization.name)}
32+
{pageTitle(
33+
"Provisioners",
34+
organization.display_name||organization.name,
35+
)}
3336
</title>
3437
</Helmet>
3538
<OrganizationProvisionersPageView

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp