web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit 503c050534950bc7ea576d2b6ae45f8d11857be0
parent 0a429fe25fabb43e0b6316a0e9db775c39578076
Author: triesap <triesap@radroots.dev>
Date:   Tue, 13 Jan 2026 14:07:52 +0000

config: expand app roles and add business setup string

- Rename farmer role to farm in AppConfigRole union
- Add business role to AppConfigRole for new onboarding paths
- Introduce setup_for_business locale key in en/common.json
- Keep existing setup_for_farmer string for backward compatibility

Diffstat:
Mapps-lib-pwa/src/lib/types/app.ts | 2+-
Mlocales/src/messages/en/common.json | 1+
2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/apps-lib-pwa/src/lib/types/app.ts b/apps-lib-pwa/src/lib/types/app.ts @@ -1,7 +1,7 @@ import type { TangleDatabaseJsonExport } from "@radroots/client/tangle"; import type { IdbClientConfig } from "@radroots/utils"; -export type AppConfigRole = `farmer` | `individual` +export type AppConfigRole = `farm` | `business` | `individual` export type AppLayoutKeyIOS = `ios0` | `ios1`; export type AppLayoutKeyWeb = `webm0` | `webm1`; diff --git a/locales/src/messages/en/common.json b/locales/src/messages/en/common.json @@ -205,6 +205,7 @@ "secret_key": "Secret key", "settings": "Settings", "setup": "Setup", + "setup_for_business": "Setup for Business", "setup_for_farmer": "Setup for Farmer", "setup_your_account": "Setup your account", "sign_up": "Sign up",