Listoca
Customization

Customization

Where the apps' navigation, onboarding, account requirement and screens are set, and how to add your own.

The native app

Navigation is one stack with Home at its root (apps/native/src/app/_layout.tsx): every other screen is pushed, a sheet (lists, tasks, sharing) or a modal (sign-in, the plan). A new screen is a route file in apps/native/src/app and, when it needs header or sheet options, a Stack.Screen entry in the layout.

An account is optional by default: the app works on the device alone, and signing in syncs it. sync.account: "required" in the same file shows the sign-in screen first.

Onboarding after the first sign-in is on with enableOnboarding in packages/auth/src/config.ts; the screen is apps/native/src/app/onboarding.tsx. With requireActiveSubscription, the paywall comes next.

Settings rows live in apps/native/src/app/(drawer)/settings.tsx; each opens a screen under app/settings/.

The look comes from heroui-native and the design's tokens (uniwind). Wrap a stack screen in Container, or give its ScrollView contentInsetAdjustmentBehavior="automatic": the header is translucent.

The web app

The web app is the admin area plus the companion. Its frame is apps/web/src/components/app-shell.tsx. The links there follow the permissions: admins see Admin. apps/web/src/config.ts turns the companion on or off (webCompanion) and sets where sign-in leads.

Pages are TanStack Start routes in apps/web/src/routes. Everything behind sign-in sits under _signed-in/, whose guard sends visitors to sign-in and back again (?redirect=).

The look

bun run design lists the designs and switches between them: one line in packages/ui/src/design.ts. The web app, the marketing site and the email templates follow it. Rebrand covers colors, fonts and the logo, and UI rules the conventions every component follows.

Adding a feature

The add-a-feature-module skill walks through all the layers:

  • the table, with its migration, stream and local table (add-a-synced-table);
  • the local queries;
  • the native screens;
  • the server side, if any (add-an-rpc-or-edge-function);
  • the translations, the docs page and the tests.

Lists and tasks are the reference for each step (Lists and tasks).

On this page