Skip to content

Commit 1d1cfc1

Browse files
committed
feat: enhance UI for shared bases and trash pages with improved layout and descriptions
1 parent b21f17c commit 1d1cfc1

File tree

13 files changed

+74
-28
lines changed

13 files changed

+74
-28
lines changed

apps/nextjs-app/src/features/app/blocks/space/SharedBasePage.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ export const SharedBasePage = () => {
1212
});
1313
const { t } = useTranslation(spaceConfig.i18nNamespaces);
1414
return (
15-
<div className="flex h-full min-w-0 flex-1 flex-col gap-6 px-12 py-8">
16-
<h2 className="shrink-0 text-2xl font-semibold">{t('space:sharedBase.title')}</h2>
15+
<div className="flex h-screen flex-1 flex-col space-y-4 overflow-hidden p-8">
16+
<div className="flex flex-col items-start justify-between gap-2">
17+
<h1 className="text-2xl font-semibold">{t('space:sharedBase.title')}</h1>
18+
<p className="shrink-0 grow-0 text-left text-sm text-zinc-500">
19+
{t('space:sharedBase.description')}
20+
</p>
21+
</div>
1722
<div className="min-h-0 flex-1">
1823
{sharedBases && sharedBases.length > 0 ? (
1924
<BaseList baseIds={sharedBases.map((base) => base.id)} />

apps/nextjs-app/src/features/app/blocks/trash/SpaceInnerTrashPage.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,14 @@ export const SpaceInnerTrashPage = () => {
186186
if (!isHydrated || isLoading) return null;
187187

188188
return (
189-
<div className="flex h-screen flex-1 flex-col space-y-4 overflow-hidden py-8">
190-
<div className="flex items-center justify-between px-8">
189+
<div className="flex h-screen flex-1 flex-col space-y-4 overflow-hidden p-8">
190+
<div className="flex flex-col items-start justify-between gap-2">
191191
<h1 className="text-2xl font-semibold">{t('noun.trash')}</h1>
192+
<p className="shrink-0 grow-0 text-left text-sm text-zinc-500">
193+
{t('space:trash.baseDescription')}
194+
</p>
192195
</div>
193-
<InfiniteTable
194-
rows={allRows}
195-
columns={columns}
196-
className="px-8"
197-
fetchNextPage={fetchNextPageInner}
198-
/>
196+
<InfiniteTable rows={allRows} columns={columns} fetchNextPage={fetchNextPageInner} />
199197
<ConfirmDialog
200198
open={isConfirmVisible}
201199
onOpenChange={setConfirmVisible}

apps/nextjs-app/src/features/app/blocks/trash/SpaceTrashPage.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,14 @@ export const SpaceTrashPage = () => {
185185
if (!isHydrated || isLoading) return null;
186186

187187
return (
188-
<div className="flex h-screen flex-1 flex-col space-y-4 overflow-hidden py-8">
189-
<div className="flex items-center justify-between px-8">
188+
<div className="flex h-screen flex-1 flex-col space-y-4 overflow-hidden p-8">
189+
<div className="flex flex-col items-start justify-between gap-2 ">
190190
<h1 className="text-2xl font-semibold">{t('noun.trash')}</h1>
191+
<p className="shrink-0 grow-0 text-left text-sm text-zinc-500">
192+
{t('space:trash.spaceDescription')}
193+
</p>
191194
</div>
192-
<InfiniteTable
193-
rows={allRows}
194-
columns={columns}
195-
className="px-8"
196-
fetchNextPage={fetchNextPageInner}
197-
/>
195+
<InfiniteTable rows={allRows} columns={columns} fetchNextPage={fetchNextPageInner} />
198196
<ConfirmDialog
199197
open={isConfirmVisible}
200198
onOpenChange={setConfirmVisible}

packages/common-i18n/src/locales/de/space.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@
6161
},
6262
"sharedBase": {
6363
"title": "Geteilte Bases",
64-
"description": "Die mit Ihnen geteilten Bases werden hier erscheinen",
64+
"description": "Alle Bases, zu denen ich eingeladen wurde",
6565
"empty": "Noch keine geteilten Bases"
6666
},
67+
"trash": {
68+
"spaceDescription": "Alle gelöschten Spaces in dieser Instanz",
69+
"baseDescription": "Alle gelöschten Bases in diesem Space"
70+
},
6771
"integration": {
6872
"title": "Integrationen",
6973
"description": "Verwalten Sie die Integrationen Ihres Spaces",

packages/common-i18n/src/locales/en/space.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@
6565
},
6666
"sharedBase": {
6767
"title": "Shared with me",
68-
"description": "Bases shared with me will appear here",
68+
"description": "All the bases that invited me to join",
6969
"empty": "No bases shared with me yet"
7070
},
71+
"trash": {
72+
"spaceDescription": "All deleted spaces under this instance",
73+
"baseDescription": "All deleted bases under this space"
74+
},
7175
"integration": {
7276
"title": "Integrations",
7377
"description": "Manage integrations of your space",

packages/common-i18n/src/locales/es/space.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@
6161
},
6262
"sharedBase": {
6363
"title": "Bases compartidas",
64-
"description": "Las bases compartidas contigo aparecerán aquí",
64+
"description": "Todas las bases a las que me invitaron a unirme",
6565
"empty": "Aún no hay bases compartidas"
6666
},
67+
"trash": {
68+
"spaceDescription": "Todos los espacios eliminados en esta instancia",
69+
"baseDescription": "Todas las bases eliminadas en este espacio"
70+
},
6771
"integration": {
6872
"title": "Integración",
6973
"description": "Administrar integraciones de su espacio",

packages/common-i18n/src/locales/fr/space.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@
5959
"permanentDeleteWarning": "Cette action supprimera définitivement toutes les ressources et données de l'espace actuel. Veuillez procéder avec prudence !",
6060
"confirmInputLabel": "Veuillez taper DELETE pour confirmer la suppression"
6161
},
62+
"sharedBase": {
63+
"title": "Partagé avec moi",
64+
"description": "Toutes les bases auxquelles j'ai été invité à rejoindre",
65+
"empty": "Aucune base partagée avec moi pour le moment"
66+
},
67+
"trash": {
68+
"spaceDescription": "Tous les espaces supprimés dans cette instance",
69+
"baseDescription": "Toutes les bases supprimées dans cet espace"
70+
},
6271
"integration": {
6372
"title": "Intégrations",
6473
"description": "Gérer les intégrations de votre espace",

packages/common-i18n/src/locales/it/space.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,11 @@
6161
},
6262
"sharedBase": {
6363
"title": "Basi condivise",
64-
"description": "Le basi condivise con te appariranno qui",
64+
"description": "Tutte le basi a cui sono stato invitato a partecipare",
6565
"empty": "Nessuna base condivisa ancora"
66+
},
67+
"trash": {
68+
"spaceDescription": "Tutti gli spazi eliminati in questa istanza",
69+
"baseDescription": "Tutte le basi eliminate in questo spazio"
6670
}
6771
}

packages/common-i18n/src/locales/ja/space.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@
6161
},
6262
"sharedBase": {
6363
"title": "共有ベース",
64-
"description": "共有されたベースはここに表示されます",
64+
"description": "参加を招待されたすべてのベース",
6565
"empty": "共有ベースはまだありません"
6666
},
67+
"trash": {
68+
"spaceDescription": "このインスタンス内のすべての削除されたスペース",
69+
"baseDescription": "このスペース内のすべての削除されたベース"
70+
},
6771
"integration": {
6872
"title": "インテグレーション",
6973
"description": "空間のインテグレーションを管理",

packages/common-i18n/src/locales/ru/space.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@
6161
},
6262
"sharedBase": {
6363
"title": "Общие базы",
64-
"description": "Базы, которыми с вами поделились, будут отображаться здесь",
64+
"description": "Все базы, в которые меня пригласили",
6565
"empty": "Общих баз пока нет"
6666
},
67+
"trash": {
68+
"spaceDescription": "Все удалённые пространства в этом экземпляре",
69+
"baseDescription": "Все удалённые базы в этом пространстве"
70+
},
6771
"integration": {
6872
"title": "Интеграции",
6973
"description": "Управление интеграциями вашего пространства",

0 commit comments

Comments
 (0)