9c9c34fccf
Migrates `twenty-front`, `twenty-sdk`, and `twenty-front-component-renderer` from `twenty-ui-deprecated` to `twenty-ui` (mechanical import swap — the packages have API parity) and deletes the deprecated package along with its workspace/CI/config wiring. Also adds `@linaria/react`/`@linaria/core` as direct deps of `twenty-front` (it used them transitively via the deprecated package). Note: move the required status check from `ci-ui-status-check` to `ci-new-ui-status-check`. Argos: the Storybook box-model/button-reset baseline shift (the bulk of the visual diffs) is isolated in #21665 — Storybook now loads twenty-ui's global `reset.scss`, which the production app already ships. Once #21665 merges and this branch is rebased, the remaining Argos diffs are component-level visual-parity items only.
32 lines
901 B
TypeScript
32 lines
901 B
TypeScript
import { AppErrorDisplay } from '@/error-handler/components/internal/AppErrorDisplay';
|
|
import { type AppErrorDisplayProps } from '@/error-handler/types/AppErrorDisplayProps';
|
|
import { styled } from '@linaria/react';
|
|
import { t } from '@lingui/core/macro';
|
|
import { themeCssVariables } from 'twenty-ui/theme-constants';
|
|
|
|
type AppFullScreenErrorFallbackProps = AppErrorDisplayProps;
|
|
|
|
const StyledContainer = styled.div`
|
|
background: ${themeCssVariables.background.primary};
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
height: 100dvh;
|
|
width: 100vw;
|
|
`;
|
|
|
|
export const AppFullScreenErrorFallback = ({
|
|
error,
|
|
resetErrorBoundary,
|
|
title = t`Sorry, something went wrong`,
|
|
}: AppFullScreenErrorFallbackProps) => {
|
|
return (
|
|
<StyledContainer>
|
|
<AppErrorDisplay
|
|
error={error}
|
|
resetErrorBoundary={resetErrorBoundary}
|
|
title={title}
|
|
/>
|
|
</StyledContainer>
|
|
);
|
|
};
|