diff --git a/apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.detail copy.tsx b/apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.detail copy.tsx
deleted file mode 100644
index c29969d..0000000
--- a/apps/web/src/apps/modules/example/full-page/presentation/pages/full-page.page.detail copy.tsx
+++ /dev/null
@@ -1,131 +0,0 @@
-import { Paper, SimpleGrid, Box, Text, Group, Badge, Divider, Breadcrumbs, Anchor, Flex, Title, ActionIcon, Button } from '@repo/ui/components';
-import { useEnterpriseModuleTranslationContext } from '@repo/ui/foundations';
-import { ChevronRight, CheckCircle2, Trash2, Edit2, Play } from 'lucide-react';
-
-export default function FullPagePageDetail() {
- const { t } = useEnterpriseModuleTranslationContext();
-
- return (
-
- {/* --- INLINED PAGE HEADER --- */}
-
- }
- >
-
- Acme Corp
-
-
- Infrastructure
-
-
- Database Clusters
-
-
- prod-db-01
-
-
-
-
-
-
-
-
- prod-db-01
-
- }
- style={{ textTransform: 'capitalize' }}
- >
- Running
-
-
-
-
- PostgreSQL v15.4 · us-east-1 · Created Oct 12, 2023
-
-
-
-
-
-
-
-
- }
- >
- Edit
-
- }
- style={{ boxShadow: '0 4px 14px 0 rgba(76, 110, 245, 0.39)' }}
- >
- Restart
-
-
-
-
-
-
- {/* --- END INLINED PAGE HEADER --- */}
-
-
-
- General Information
-
-
- View the complete details and configuration for this entity.
-
-
-
-
-
-
-
- {t('fields.code')}
-
- WID-001
-
-
-
- {t('fields.name')}
-
- Dashboard Widget
-
-
-
- {t('fields.status')}
-
-
- ACTIVE
-
-
-
-
- {t('fields.description')}
-
- Main dashboard widget
-
-
-
-
- );
-}
diff --git a/packages/ui/src/components/actions-tools/row-actions.tsx b/packages/ui/src/components/actions-tools/row-actions.tsx
index 62a3c3f..1978dbe 100644
--- a/packages/ui/src/components/actions-tools/row-actions.tsx
+++ b/packages/ui/src/components/actions-tools/row-actions.tsx
@@ -1,5 +1,5 @@
import { Fragment, memo } from 'react';
-import { Group, ActionIcon, Tooltip, Menu, Divider, Box, Button } from '@mantine/core';
+import { Group, ActionIcon, Tooltip, Menu, Divider, Box, Button, MantineSpacing } from '@mantine/core';
import { RowActionProps } from './types';
import { getIntentColor } from './utils';
import { MoreVertical } from 'lucide-react';
@@ -9,6 +9,8 @@ export interface RowActionsProps {
actions: RowActionProps[];
showLabels?: boolean;
responsiveView?: boolean;
+ gapActionDesktop?: MantineSpacing;
+ gapActionMobile?: MantineSpacing;
}
/**
@@ -17,11 +19,9 @@ export interface RowActionsProps {
*
* @performance Wrapped in React.memo to guarantee zero overhead inside large lists/grids.
*/
-export const RowActions = memo(function RowActions({
- actions = [],
- showLabels = false,
- responsiveView = true,
-}: RowActionsProps) {
+export const RowActions = memo(function RowActions(props: RowActionsProps) {
+ const { actions = [], showLabels = false, responsiveView = true, gapActionDesktop = 0, gapActionMobile = 0 } = props;
+
/**
* Helper function to render a standalone item.
*/
@@ -114,14 +114,14 @@ export const RowActions = memo(function RowActions({
return (
{/* --- DESKTOP VIEW (hidden on mobile devices) --- */}
-
+
{renderFlatActions()}
{/* --- MOBILE VIEW (hidden on desktop devices) --- */}
{responsiveView && (
-
+
diff --git a/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx b/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx
index 84d91a2..3aee758 100644
--- a/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx
+++ b/packages/ui/src/foundations/enterprise-module/providers/detail-page.provider.tsx
@@ -1,7 +1,7 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import { useParams } from 'react-router-dom';
import { BaseEntity } from '@repo/core-api/data-services';
-import { Check, CheckCircle, Copy, Edit2, PauseCircle, Plus, RotateCcw, Trash2, X, XCircle } from 'lucide-react';
+import { Check, Unlock, Copy, SquarePen, PauseCircle, Plus, RotateCcw, Trash, X, Lock } from 'lucide-react';
import { DetailPageContext } from '../hooks/use-detail-page.context';
import { EnterpriseDetailPageConfig, ModuleAction, ModuleActionType, ActionModalState } from '../entities/entity';
@@ -421,7 +421,7 @@ export function EnterpriseDetailPageProvider(
ALLOW_DELETE && {
key: ModuleAction.DELETE,
label: t('common:actions.delete'),
- icon: ,
+ icon: ,
intent: 'destructive',
variant: 'subtle',
onClick: (key: ModuleActionType) => handleActionClick(key),
@@ -432,7 +432,7 @@ export function EnterpriseDetailPageProvider(
isDataActive && {
key: ModuleAction.DEACTIVATE,
label: t('common:actions.deactivate'),
- icon: ,
+ icon: ,
intent: 'default',
variant: 'subtle',
onClick: (key: ModuleActionType) => handleActionClick(key),
@@ -443,7 +443,7 @@ export function EnterpriseDetailPageProvider(
key: ModuleAction.ACTIVATE,
label: t('common:actions.activate'),
tooltipLabel: t('common:actions.activate'),
- icon: ,
+ icon: ,
intent: 'default',
variant: 'subtle',
onClick: (key: ModuleActionType) => handleActionClick(key),
@@ -460,7 +460,7 @@ export function EnterpriseDetailPageProvider(
ALLOW_EDIT && {
key: ModuleAction.EDIT,
label: t('common:actions.edit'),
- icon: ,
+ icon: ,
intent: 'default',
variant: 'subtle',
onClick: (key: ModuleActionType) => handleActionClick(key),