> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Schedule maintenance

> Schedule maintenance: what this section will be and its status (coming soon).

## At a glance

| Field | Value |
| - | - |
| Status | **Coming soon** |
| Route | `/{locale}/scheduling` |
| Menu | My service › **Schedule maintenance** |
| Feature flag | `portal-customer-scheduling` (default: off) |
| Who sees it | Every signed-in customer |
| Last verified | 2026-11-23 against `feature/horizon/contactability-scheduling-link` |

## What it is for

It will be where the customer sees their service visits and, if decided, books a maintenance visit. Today it shows a notice that it is coming soon.

## How to get there

Sidebar: **My service › Schedule maintenance** (only with its flag on), or the Home shortcut.

From a maintenance scheduling email, push or inbox entry: when the contactability team sends no scheduling link of its own and the flag `notification-contactability-scheduling-link` is on, the button opens `/{locale}/m/{token}`. That page shows "Opening your Maihue portal…", signs the account owner in with a fresh single-use magic link and lands here (`notification/contactability-events` REQ-09).

| What happens to the link | Where the customer lands |
| - | - |
| Valid (within 14 days, not revoked) | Signed in, on Schedule maintenance (after the 2FA step when the login has it) |
| Clicked again within 14 days | Same: each click signs in again |
| Expired, revoked, or the flag switched off | Schedule maintenance; signed out, the login first, then this page |

![Sections in preview or coming soon.](https://mintcdn.com/bbrands/w6DX1nTsRjzB7VQp/images/portal-customer-manual/preview-sections-navigation.svg?fit=max\&auto=format\&n=w6DX1nTsRjzB7VQp\&q=85\&s=052723ae1631cf742035c577aefc13db)

Sections in preview or coming soon

## What the customer sees

> [tab] Desktop
>
> ![Schedule maintenance with the notice that the section is under development.](https://mintcdn.com/bbrands/Gtthq4FwpUS-9kET/images/portal-customer-screens/scheduling/overview.en.desktop.webp?fit=max\&auto=format\&n=Gtthq4FwpUS-9kET\&q=85\&s=8b565cdc737f6538f68bf90b04b5a416)

> [tab] Mobile
>
> ![Schedule maintenance with the notice that the section is under development.](https://mintcdn.com/bbrands/RmQmo8S4AibSINhm/images/portal-customer-screens/scheduling/overview.en.mobile.webp?fit=max\&auto=format\&n=RmQmo8S4AibSINhm\&q=85\&s=e32cbf5ebfc8b5fc07d340d3c0c9b357)

| Element | What it does |
| - | - |
| Notice | "We are building this section to further improve your experience. It will be ready soon!" |

## Step by step

**1. Open Schedule maintenance**

Sees the notice; no actions are available.

> [!NOTE]
>
> **Planned behaviour.** List the customer's service visits and, if in scope, allow booking, from the source that is decided. (`portal-customer/self-service-sections`, REQ-03).

## Business rules

| ID | Rule |
| - | - |
| R-01 | The section stays off in production until it has real data (`portal-customer/mock-exposure-cleanup`) |
| R-02 | Its scope, data source and owner are to be decided (product workshop T-01) |
| R-03 | The scheduling link of the maintenance emails lasts 14 days, can be clicked more than once and is revoked by operations; it always signs in the account owner (`notification/contactability-events` BR-13) |

## States and messages

| State | What the customer sees | Why | What to do |
| - | - | - | - |
| Coming soon | "We are building this section to further improve your experience. It will be ready soon!" | Not built | — |
| Opening the portal | "Opening your Maihue portal…" | The scheduling link of an email is being exchanged for a sign-in | Wait a second |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| Login opens from the email link | The link expired (14 days), was revoked, or the flag is off | `410 link-expired` (`POST /api/v3/auth/portal-link`) | Ask the customer to sign in; the login returns here |
| Login opens from a valid link | The magic link could not be minted | `503 magic-link-unavailable` | Retry later; check the GoTrue status |

## Why it works this way

Its place in the menu is kept so the portal design is complete, but it is hidden until it has real data.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `components/screens/portal/scheduling-screen.tsx` (`ComingSoonScreen`) |
| Texts | `messages` › `scheduling` |
| Initiative | `portal-customer/self-service-sections` |
| Email link landing | `app/[locale]/(public)/m/[token]/` (posts the token from the browser, ADR 0095), `app/api/auth/portal-link/route.ts` → horizon-api `POST /api/v3/auth/portal-link` |
| Link storage | `portal_customer_link` (SHA-256 of the token, 14-day expiry, `revoked_at`) |

## FAQ and support cases

> [accordion] What do I do meanwhile?
>
> Serve through Maihue's current support channels or the MaihueGO app.

> [accordion] The email link asks me to sign in
>
> The link lasts 14 days. After that, or if it was revoked, the portal asks for the login and then opens Schedule maintenance.

> [accordion] A customer forwarded the email
>
> Whoever opens the link signs in as the account owner. Revoke it: operations sets `revoked_at` on the link (or on every open link of the account) in `portal_customer_link`.

## Related and history

* [Feature flags](https://docs.bbrands.io/portal-customer/reference/feature-flags.md)

| Date | Change |
| - | - |
| 2026-11-10 | First version |
| 2026-11-23 | Scheduling link of the maintenance emails (`notification/contactability-events` T-15) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.