rename: hubActivitiesUrl → hubEventsUrl

The activities module in webapp was renamed to events
(aiolabs/webapp#94). The corresponding hub-URL option here is the env
that drives src/pages/Hub.vue's "Events" chakra tile. Renames:

- Option: `hubActivitiesUrl` → `hubEventsUrl`
- Env passed to vite: `VITE_HUB_ACTIVITIES_URL` → `VITE_HUB_EVENTS_URL`
- Example URL: `/sortir/` → `/events/`

No backwards compatibility shim — hosts using `services.webapp
.hubActivitiesUrl = "…"` will need to switch to `hubEventsUrl` in the
same change as their flake-input bump.

Coordinated downstream:
- aiolabs/server-deploy: standalones.nix `hubUrlOption` maps
  `events → "hubEventsUrl"` (no more "historical naming" comment).
- aiolabs/webapp PR #94: `VITE_HUB_EVENTS_URL` consumed by
  `src/pages/Hub.vue` and documented in `.env.example`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Padreug 2026-06-09 20:05:15 +02:00
commit 9d82016399

View file

@ -67,7 +67,7 @@ let
# hubMarketUrl = "https://market.example.com"; # hubMarketUrl = "https://market.example.com";
# When unset (empty string), the corresponding chakra renders ghosted # When unset (empty string), the corresponding chakra renders ghosted
# (non-link) — useful for hosts that don't deploy a given module. # (non-link) — useful for hosts that don't deploy a given module.
VITE_HUB_ACTIVITIES_URL = cfg.hubActivitiesUrl; VITE_HUB_EVENTS_URL = cfg.hubEventsUrl;
VITE_HUB_LIBRA_URL = cfg.hubLibraUrl; VITE_HUB_LIBRA_URL = cfg.hubLibraUrl;
VITE_HUB_WALLET_URL = cfg.hubWalletUrl; VITE_HUB_WALLET_URL = cfg.hubWalletUrl;
VITE_HUB_CHAT_URL = cfg.hubChatUrl; VITE_HUB_CHAT_URL = cfg.hubChatUrl;
@ -245,11 +245,11 @@ in {
# Empty string = tile rendered ghosted (no link). Set per-host based on # Empty string = tile rendered ghosted (no link). Set per-host based on
# whether each standalone is deployed and on the deployment shape # whether each standalone is deployed and on the deployment shape
# (path-mode → trailing slash recommended; subdomain-mode → no path). # (path-mode → trailing slash recommended; subdomain-mode → no path).
hubActivitiesUrl = lib.mkOption { hubEventsUrl = lib.mkOption {
type = lib.types.str; type = lib.types.str;
default = ""; default = "";
example = "https://demo.example.com/sortir/"; example = "https://demo.example.com/events/";
description = "URL the chakra hub's Activities tile links to"; description = "URL the chakra hub's Events tile links to";
}; };
hubLibraUrl = lib.mkOption { hubLibraUrl = lib.mkOption {
type = lib.types.str; type = lib.types.str;