"The standard UI and runtime for YA Holdings web apps."
📋 Basic Information
- Package:
@ya-accelerators/nextjs-framework (npm)
- License: MIT
- Consumers: every Next.js app of
web-development-base and its forks, delivered by the Sync workflow
- Component catalogue: Storybook
🎯 What it provides
A consumer app gets the following without writing it itself:
- App shell: the root layout and providers, an application frame with header, side menu and global menu, tabs, drawers and a status strip.
- UI components, in four tiers a screen is composed from:
- Layout — page structure.
- Component — primitives: buttons, cards, icons, typography, progress and loading indicators.
- Composite — ready-made patterns: forms (single, paged and Server-Action), inputs (text, select, date / time and their ranges, file upload, attachments and more), data tables and object views, modals, toasts, dropdowns, tooltips, steppers, Markdown rendering.
- Functional — sign-in forms (credentials and social providers) and sign-out.
- Standard pages: not-found and error pages.
- Design tokens: colour, size, rounding and border tokens shared with Tailwind, with light and dark themes.
- Authentication: NextAuth sign-in with session refresh; the signed-in user's token is attached to server-side calls to the BFF.
- BFF communication: the headers and token handling the app's generated tRPC client uses to call its BFF.
- Server Actions: helpers that run an action and report its outcome to the form that submitted it.
- File uploads: the upload route an app mounts and the file inputs that use it.
- Error reporting: browser errors reported to the BFF's error log.
- Internationalisation: next-intl with en-GB as the default locale and en-US / ja-JP selectable by cookie; components translate the English text they are given.
- Dates: date formatting in the viewer's locale and time zone.
- Logging: levelled logging with personal and secret values masked.