Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

💄 Reorganize General settings into Details, Branding, Collaboration and Danger zone (#3295)

Luke Vellacd91803958c8
diff --git a/apps/web/public/locales/en/app.json b/apps/web/public/locales/en/app.json
index 28eb04568..4edd669db 100644
--- a/apps/web/public/locales/en/app.json
+++ b/apps/web/public/locales/en/app.json
@@ -99,7 +99,7 @@
"billingSettingsDescription": "View and manage your space's subscription and billing information.",
"billingSubscriptionDescription": "Manage your current subscription plan.",
"branding": "Branding",
- "brandingCardDescription": "How your space appears to you and the people you invite",
+ "brandingCardDescription": "How this space looks to members and participants",
"brandingGeneralDescription": "Set the name of your instance",
"brandingPreviewEventTitle": "Team Offsite",
"brandingPreviewLocation": "The Old Fire Station",
@@ -142,7 +142,7 @@
"clockPreferencesDescription": "Set your preferred time zone and time format.",
"closePoll": "Close",
"collaboration": "Collaboration",
- "collaborationDescription": "How members work in this space",
+ "collaborationDescription": "How members work together in this space",
"colors": "Colors",
"colorsDescription": "Primary colors used for theming",
"commandMenu": "Command menu",
@@ -259,6 +259,7 @@
"description": "Description",
"descriptionPlaceholder": "Hey everyone, please choose the dates that work for you!",
"descriptionTooLong": "Description must be at most {count} characters",
+ "details": "Details",
"developer": "Developer",
"disabled": "Disabled",
"disconnectCalendar": "Disconnect calendar",
@@ -812,9 +813,10 @@
"signOut": "Sign out",
"skipToContent": "Skip to main content",
"space": "Space",
- "spaceDangerZoneDescription": "These actions cannot be undone",
+ "spaceDangerZoneDescription": "Actions that cannot be undone",
+ "spaceDetailsCardDescription": "Basic information about this space",
"spaceInviteMember": "Invite member",
- "spaceLogoSettingHint": "Your space's logo.",
+ "spaceLogoSettingHint": "The logo shown for this space.",
"spaceNameMismatch": "Space name does not match",
"spaceNamePlaceholder": "My Team",
"spaceNameSettingLabel": "What this space is called.",
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/components/collaboration-section.tsx b/apps/web/src/app/[locale]/(space)/settings/general/components/collaboration-section.tsx
index 33ebd5562..bb19926a5 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/components/collaboration-section.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/components/collaboration-section.tsx
@@ -91,7 +91,7 @@ export function CollaborationSection({
<PageSectionDescription>
<Trans
i18nKey="collaborationDescription"
- defaults="How members work in this space"
+ defaults="How members work together in this space"
/>
</PageSectionDescription>
</PageSectionHeader>
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/components/custom-branding-section.tsx b/apps/web/src/app/[locale]/(space)/settings/general/components/custom-branding-section.tsx
index 59b47522b..fdb692c8c 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/components/custom-branding-section.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/components/custom-branding-section.tsx
@@ -36,7 +36,6 @@ import { Trans, useTranslation } from "@/i18n/client";
import { useSafeAction } from "@/lib/safe-action/client";
import { BrandingPreview } from "./branding-preview";
import { RemoveAttributionSetting } from "./remove-attribution-setting";
-import { SpaceSettingsForm } from "./space-settings-form";
export function CustomBrandingSection({
disabled = false,
@@ -116,13 +115,12 @@ export function CustomBrandingSection({
<PageSectionDescription>
<Trans
i18nKey="brandingCardDescription"
- defaults="How your space appears to you and the people you invite"
+ defaults="How this space looks to members and participants"
/>
</PageSectionDescription>
</PageSectionHeader>
<PageSectionContent>
<FieldGroup variant="divided">
- <SpaceSettingsForm space={space} disabled={disabled} />
{!spaceBrandingAllowed ? (
// The divided field group pads its children directly, which would
// land inside the alert's border — the wrapper takes it instead
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/components/details-section.tsx b/apps/web/src/app/[locale]/(space)/settings/general/components/details-section.tsx
new file mode 100644
index 000000000..8b22fbe97
--- /dev/null
+++ b/apps/web/src/app/[locale]/(space)/settings/general/components/details-section.tsx
@@ -0,0 +1,38 @@
+"use client";
+
+import { FieldGroup } from "@rallly/ui/field";
+import {
+ PageSection,
+ PageSectionContent,
+ PageSectionDescription,
+ PageSectionHeader,
+ PageSectionTitle,
+} from "@/components/page-layout";
+import { useSpace } from "@/features/space/client";
+import { Trans } from "@/i18n/client";
+import { SpaceSettingsForm } from "./space-settings-form";
+
+export function DetailsSection({ disabled = false }: { disabled?: boolean }) {
+ const { data: space } = useSpace();
+
+ return (
+ <PageSection variant="card">
+ <PageSectionHeader>
+ <PageSectionTitle>
+ <Trans i18nKey="details" defaults="Details" />
+ </PageSectionTitle>
+ <PageSectionDescription>
+ <Trans
+ i18nKey="spaceDetailsCardDescription"
+ defaults="Basic information about this space"
+ />
+ </PageSectionDescription>
+ </PageSectionHeader>
+ <PageSectionContent>
+ <FieldGroup variant="divided">
+ <SpaceSettingsForm space={space} disabled={disabled} />
+ </FieldGroup>
+ </PageSectionContent>
+ </PageSection>
+ );
+}
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/components/space-settings-form.tsx b/apps/web/src/app/[locale]/(space)/settings/general/components/space-settings-form.tsx
index 922114c81..aa90d592e 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/components/space-settings-form.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/components/space-settings-form.tsx
@@ -74,7 +74,7 @@ export function SpaceSettingsForm({
<FieldDescription>
<Trans
i18nKey="spaceLogoSettingHint"
- defaults="Your space's logo."
+ defaults="The logo shown for this space."
/>
</FieldDescription>
</FieldContent>
diff --git a/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx b/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx
index 6016520a2..721a4dfab 100644
--- a/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx
+++ b/apps/web/src/app/[locale]/(space)/settings/general/page-client.tsx
@@ -33,6 +33,7 @@ import { Trans } from "@/i18n/client";
import { CollaborationSection } from "./components/collaboration-section";
import { CustomBrandingSection } from "./components/custom-branding-section";
import { DeleteSpaceButton } from "./components/delete-space-button";
+import { DetailsSection } from "./components/details-section";
import { LeaveSpaceButton } from "./components/leave-space-button";
export function GeneralSettingsPageClient() {
@@ -70,6 +71,7 @@ export function GeneralSettingsPageClient() {
</AlertDescription>
</Alert>
) : null}
+ <DetailsSection disabled={!isAdmin} />
<CustomBrandingSection disabled={!isAdmin} />
{!spacesAlwaysShared ? (
<CollaborationSection disabled={!isAdmin} />
@@ -83,7 +85,7 @@ export function GeneralSettingsPageClient() {
<PageSectionDescription>
<Trans
i18nKey="spaceDangerZoneDescription"
- defaults="These actions cannot be undone"
+ defaults="Actions that cannot be undone"
/>
</PageSectionDescription>
</PageSectionHeader>