SIGN IN SIGN UP

Partners app: list-form reads and shared-module dedup (#24784)

Part 2 of 5, stack root: `rashad/partners-website-brief-modal`. This
slice is the root of the four partners-app slices and targets `main`
directly.

Mechanical cleanup under
`packages/twenty-apps/internal/twenty-partners`, no behaviour change
beyond error handling.

**List-form reads.** The single-record GraphQL read (`partner { ... }`)
throws `Record not found` for an unknown id, which turned a missing row
into a failed trigger. Every such read now uses the list form
(`partners(filter, first: 1) { edges { node } }`) and returns `null`
instead. Callers, their tests and the new absent-row cases follow.

**Shared-module dedup.** `findPartnerByMember`, `getCompanyPartnerUser`
and the front-component `COLORS`/`FONT` palette each existed in two or
three copies. One copy each now lives under `src/modules/shared/`; the
duplicates are deleted and the importers repointed.

**Also here.** `buildApplicationName` extracted with its own test, the
`partner.role` / `configure-partner-rls.ts` cleanups, and the app-level
`.gitignore` entries.

Note: `src/constants/universal-identifiers.ts` arrives whole, including
the two logic-function UUIDs used by parts 3 and 5. They are inert data
lines until those slices land.

`yarn test:unit`: 245 passing, 35 files.


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/24784?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
R
Rashad Karanouh committed
692837235b0fc49acfce7728bd3a90220dd546d4
Parent: 315697a
Committed by GitHub <noreply@github.com> on 8/25/2026, 3:26:25 PM