Skip to content

Associations · Modules

1 module · 4 exports · 1 repository · 4 e2e tests · 2 routes

Who imports who · hover a node
Depends onAssociations modulesUsed byAssociation4 exportsLoaders1 fileActions2 filesRoutes1 file

Association

app/features/associations/core/Association.ts

No overview comment at the top of the file.

Imports
no other modules
Used by
1 loader2 actions1 route

Functions & values

function

mentionsAssociation

:57

Whether the association is in the visibility at any point of its schedule, not only right now.

export function mentionsAssociation({
	visibility,
	associationId,
}: {
	visibility: AssociationVisibility | null;
	associationId: number;
})
Unit tests (1)
Loaders/scrims
function

isPublic

no JSDoc:74
export function isPublic(args: Omit<IsVisibleArgs, "associations">)
Loaders/scrims
function

resolveNewAdmin

:87

Who becomes the admin after the current one leaves. null if no manager can take over, in which case the admin can't leave. Of several managers the one with the lowest user id (the oldest account) is picked, same as team ownership passing on.

export function resolveNewAdmin<T extends { id: number; role: string }>(
	members: Array<T>,
)

Not shown, only used by tests: IsVisibleArgs