# A usage rights tracker for a creator

The screen answers one question for a creator: which brand may use which content, where and until when. Each brand deal is a group on a timeline with its windows of organic use, paid usage and exclusivity, from the first post to the last day, with today as a line. Above it a short list names what needs doing: a deal that collides with another brand's exclusivity, rights that end within 14 days and rights that ended without anybody checking.

Checked 2 December 2026. By Bohuslav Poláček. https://meadowstack.com/screens/usage-rights/

*Martin's rights on Wednesday 2 December 2026, rendered from the kit's components with the demo's data: the watch list over the GanttChart, or a list by deal in a narrow frame.*

A live screen, rendered from the kit's components on the page: https://meadowstack.com/screens/usage-rights/

Open it in the live demo: https://meadowstack.com/demo/?lang=en#/martin/spoluprace/prava

From the example app [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/).

## What the screen shows

- **To watch**: only what needs doing, one line each. A collision gets the warning icon in red, a right that ends within 14 days an amber dot, a right that ended in the last 14 days and nobody checked a grey dot and the button "The brand took it down". Everything else stays quiet.
- **The timeline**: the kit's [GanttChart](https://meadowstack.com/components/gantt-chart/) in months. One group per deal, one bar per window, today as an ink line with its date and the end of the exclusivity a deal collides with as a dashed marker. The darker fill runs up to today; amber means it ends soon, red means a collision.
- **Words on every bar**: "running, 80 days left", "from 6 Dec", "planned, to 3 Feb 2027", "ended 29 Nov". Colour never carries the state alone.
- **On a phone**: below 768px the chart becomes a list by deal, each window a row with its dates and the same words as its bar. Nothing scrolls sideways.

## How the windows are counted

Every post carries its own days, so a deal's window runs from its first post to the last day of its last post's days: 30 days from a post on the 1st hold through the 30th. A deal has up to three windows: organic use on the brand's own channels, paid usage when the brand runs ads through the creator's profile, and exclusivity in a category.

A deal that is not out yet, from the inquiry to the brand's approval, collides when its brand's category falls inside another brand's running exclusivity. The overlap counts from its first post to the exclusivity's last day, both included, so it tells how far the dates have to move: ProteoMax's first post on 22 December against PeakNutri's protein exclusivity to 26 January is 36 days. A release the holder grants ends the collision.

## What AI tools get wrong here

Asked for a rights tracker, a code generator draws a table of contracts with an end date column and a red badge on every row that ends this month. Three things go missing:

- **Exclusivity is a relation between deals**, not a field of one. The check needs every deal, including those the person may not open, and it must ignore deals that are already out.
- **The rule lives in the component**, so the timeline, the record and the api count days differently and disagree by one. In Meadowstack the windows, their states and the collision check are one domain file, called by the screen and by the api before it saves.
- **The chart reads the clock.** The kit's GanttChart takes `today` as a prop and never reads the time itself, so a test, a screenshot or this page shows the same day every time.

The screen follows the [planning editor pattern](https://meadowstack.com/patterns/planning-editor/): a bar opens the deal's rights, and a change runs the collision check again over every row before the server answers.

## Who sees it

Martin and his assistant read and change the rights. His accountant reads only the deals that were invoiced or paid, without the rights, and his coach, his partner and his videographer see nothing of the deals. The rules live in one table in the module, asked through `can()` by the screens and again by the api ([permissions](https://meadowstack.com/patterns/permissions/)). The posts these rights cover are planned in the [content calendar](https://meadowstack.com/screens/content-calendar/), which marks a post that would break an exclusivity.

## The collision check

*How the demo decides that a deal collides with a running exclusivity and by how many days. The timeline, the deal's record, the list and the api all call this one function.*

From `apps/demo/src/modules/brands/domain/rights.ts` in the Meadowstack repository:

```ts
/** Stages in which the dates of a deal can still be judged against an exclusivity: not out yet, not declined. */
const beforePublication = new Set(["inquiry", "brief", "offer", "contract", "production", "approval"]);

/**
 * The running exclusivities a deal collides with. `brandOf` gives each deal's brand (the category is the brand's), and
 * `all` are every deal of the store, so the check sees the holder even when the person may not.
 */
export function conflictsOf(
  deal: Deal,
  all: Deal[],
  brandOf: (id: string) => KovarBrand | undefined,
  today: Day,
): Conflict[] {
  if (!beforePublication.has(deal.stage)) return [];
  const category = brandOf(deal.brandId)?.category;
  if (!category) return [];
  const span = postSpan(deal);
  return all.flatMap((holder): Conflict[] => {
    if (holder.id === deal.id || holder.brandId === deal.brandId) return [];
    if (!isSigned(holder.stage) || holder.exclusivity?.category !== category) return [];
    const window = windowsOf(holder).find((item) => item.kind === "exclusivity");
    if (!window || window.end < today) return [];
    if (deal.release?.holderId === holder.id && deal.release.grantedOn) return [];
    if (span && (span.first > window.end || span.last < window.start)) return [];
    const from = span ? laterDay(span.first, window.start) : laterDay(today, window.start);
    const brand = brandOf(holder.brandId);
    return [
      {
        holderId: holder.id,
        holderNumber: holder.number,
        holderBrand: brand?.name ?? holder.brandId,
        holderContact: brand?.contact ?? "",
        category,
        end: window.end,
        firstPost: span?.first,
        overlapDays: daysBetween(from, window.end) + 1,
        requestedOn: deal.release?.holderId === holder.id ? deal.release.requestedOn : undefined,
      },
    ];
  });
```

## Where else the GanttChart runs

*The example apps whose code renders the kit's GanttChart, and in which modules, read from the demo's source.*

| Example app | Modules that render it |
| --- | --- |
| [An app for a construction company](https://meadowstack.com/examples/construction-site-management/) | Schedule |
| [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) | Brand deals |

Read from the demo's source when the site was built: 2 of 9 example apps render <GanttChart>, in the modules named here as each app's sidebar names them.

## Questions

### What counts as a collision between two brand deals?

A deal that is not out yet, from the inquiry to the brand's approval, whose brand's category falls inside another brand's running exclusivity. The overlap is counted from its first post to the exclusivity's last day, both days included, and a release from the holder ends it.

### When does a right turn amber?

When it ends within the next 14 days. A right that ended in the last 14 days stays on the watch list until somebody confirms the brand took the content down.

### How does the timeline work on a phone?

Below 768px it becomes a list by deal. Each window is a row with its dates and the same words as its bar, so nothing scrolls sideways.

### Who can change the rights of a deal?

The creator and his assistant. The accountant reads only invoiced and paid deals, and the coach and the partner see nothing of the deals. The same rules are asked again by the api before it saves.

### Is the timeline a screenshot?

No. It is the kit's GanttChart rendered when this site was built, with the demo's deals and the day fixed at 2 December 2026. The live demo opens the same screen with its own today.

## Related

- [An app for one person](https://meadowstack.com/examples/personal-app-for-a-creator/) (Example app)
- [A content calendar for a creator's posts and brand deals](https://meadowstack.com/screens/content-calendar/) (Screens)
- [A construction schedule that reads the weather](https://meadowstack.com/screens/construction-schedule/) (Screens)
- [A resource capacity plan for an agency](https://meadowstack.com/screens/capacity-planning/) (Screens)
- [A roast plan worked out from the orders](https://meadowstack.com/screens/roast-plan/) (Screens)
- [Court bookings on a timeline you drag](https://meadowstack.com/screens/court-bookings/) (Screens)
