> ## 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.

# Keeping the Notifications manual current

> The mandatory rule that ties the manual to the code, what to do if you find a mismatch and how to request a new event or channel.

## What it is for

A manual that does not match the screen is worse than no manual. That is why this manual is tied to the code:
every change to the Notifications module must update the pages it affects in the same change. This page explains
that rule, how to spot a mismatch and how to ask for something new.

## The mandatory rule

> [!WARNING]
>
> Every code change that touches the Notifications module updates, in the same pull request, the affected manual
> pages in Spanish and English, with their screenshots and diagrams. If the change affects nobody who uses the
> manual, the pull request says so in one line: `Manual: sin impacto — <reason>`.

The module covers:

| Area | Examples |
| - | - |
| Horizon Enterprise screens | All of `app/[locale]/notification/**` and `profile/notifications`, the bell and the sidebar |
| Texts | `modules.notification` and `notificationsMenu` in the language files |
| Engine and API | `lib/notification/**`, `app/api/v3/notification/**`, the notification and email queues |
| Lanes and roles | The `notification*` lanes and the `notification*` roles and permissions |
| Database | The notification schemas |
| MaihueGO app | The notification screens of the app |
| Events | The event registry; their pages regenerate themselves |

## How it is checked

| Check | When | What it does |
| - | - | - |
| Pull request check | On every pull request | Compares the changed files with the manual map and lists the pages that should change. It blocks the merge until the pages change or the body explains why there is no impact |
| Page test | On every pull request | Checks that each page exists in both languages, is in the menu, uses standard screenshots and that the roles matrix matches the real roles |
| Event pages | On every pull request | Fails if an event in the code has no page or its page differs from what the code generates |
| Monthly audit | The 1st of every month | Compares screenshots and review dates and opens (or updates) a `manual-audit` issue with what is out of date |

Every page ends with a history table: the date and the change of each update.

## Step by step

### If you find a mismatch between the manual and the screen

**1. Write down what you see and where**

The manual page, the Horizon Enterprise screen, what the manual says and what the screen shows. A screenshot
helps.

**2. Report it**

Tell the technology team (backend or frontend). If you have GitHub access, open an issue with the `docs`
label.

**3. Meanwhile, trust the screen**

The screen wins. If an action does not behave as the manual says, do not repeat it until you get an answer.

### Request a new event or channel

Creating an event or connecting a new channel takes programming. Rule changes, active channels and texts you do
yourself from the module, the same day.

**1. Check it does not exist**

Search the [event catalog](https://docs.bbrands.io/enterprise/notifications/events/index.md). Maybe you only need to turn a channel on
or change a text.

**2. Describe the notification**

Which business fact fires it, who it is for, on which channels, which data it must show, in which languages,
the category (security, transactional, payment, system or marketing) and the business unit.

**3. Send it to the technology team**

Fill in the "New notification" form on GitHub; the backend team reviews it once a week. See
[Request a new notification](https://docs.bbrands.io/enterprise/notifications/request.md) for each field.

**4. Configure it when it arrives**

When the event reaches the catalog it brings the channels and rules the technology team defined. Review its
template and its rules, and adjust or turn it on from the catalog.

| Request | Indicative time |
| - | - |
| New event | 1 to 2 weeks |
| New channel for an existing event | 1 to 2 weeks if the channel already works; longer if the channel must be connected |
| Change rules, turn on or off, change texts | The same day, from the module |

## Rules

| Rule |
| - |
| Code and manual change in the same pull request, in Spanish and English |
| `Manual: sin impacto — <reason>` is only for changes nobody who uses the manual can notice |
| Screenshots use demo data only, on desktop at 1440 × 900 and light theme |
| Event pages are not edited by hand: they are regenerated from the code |

## FAQ and support cases

> [accordion] Who updates the manual?
>
> Whoever makes the code change, in the same pull request. The backend and frontend teams review the content.

> [accordion] Why does an event page say something different from the screen?
>
> Event pages describe the code's default configuration. What an admin changed in the catalog (for example,
> turning a channel off) shows on the screen, not on the page.

## Technical detail

| Aspect | Detail |
| - | - |
| Decision | ADR 0141, "Module manuals stay in sync with the code" (`docs/decisions/`) |
| Code → manual map | `scripts/manuals/maps/enterprise-notifications.json` and `maihuego-notifications.json` |
| Pull request check | `scripts/ci/check-manuals.mjs` |
| Tests | `scripts/ci/manuals-docs.test.mjs`; event pages with `pnpm manual:events --check` |
| Audit | `.github/workflows/manuals-audit.yml` |
| Guide for developers | Rule `.cursor/rules/module-manuals.mdc` and skill `update-module-manual` |

## Related and history

* [Introduction](https://docs.bbrands.io/enterprise/notifications/getting-started/introduction.md)
* [What's new](https://docs.bbrands.io/enterprise/notifications/reference/whats-new.md): the changes of the module and the manual, newest first

| Date | Change |
| - | - |
| 2026-11-10 | First version |
| 2026-11-11 | The "New notification" form and the request page |
| 2026-11-11 | Link to What's new |
| 2026-11-11 | The pull request check blocks the merge |


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