Add a Listed flag: published records reachable only by their link
is_listed (migration 027) sits beside is_published on organizations, events, people, teams and awards. Unticked, the record's own page still works, but the site's lists leave it out: the list routes, a region's chapters, an organization's events, teams and awards, the QR page's directory, and the front page's counts and countdown. Places where someone attached it by hand (rosters, hosts, billed people, recipients, timeline, a pinned countdown) still show it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
3c02eb8971
commit
cd393e4ab2
7 changed files with 120 additions and 38 deletions
|
|
@ -217,10 +217,11 @@ const organizations = {
|
|||
"locality",
|
||||
"state_code",
|
||||
"is_published",
|
||||
"is_listed",
|
||||
"sort_order",
|
||||
"updated_at",
|
||||
],
|
||||
filters: ["kind", "is_published"],
|
||||
filters: ["kind", "is_published", "is_listed"],
|
||||
search: ["name", "id", "locality"],
|
||||
order: "kind, sort_order, name",
|
||||
},
|
||||
|
|
@ -236,6 +237,7 @@ const organizations = {
|
|||
text("logo"),
|
||||
...placeColumns,
|
||||
bool("is_published"),
|
||||
bool("is_listed"),
|
||||
int("sort_order"),
|
||||
bool("in_timeline"),
|
||||
],
|
||||
|
|
@ -305,12 +307,13 @@ const events = {
|
|||
"starts_on",
|
||||
"status",
|
||||
"is_published",
|
||||
"is_listed",
|
||||
"updated_at",
|
||||
],
|
||||
// No host filter: hosts are rows in another table now, and the
|
||||
// engine's filters are columns on this one. The events a host
|
||||
// owns are on that host's own page.
|
||||
filters: ["scope_id", "event_type", "status", "is_published"],
|
||||
filters: ["scope_id", "event_type", "status", "is_published", "is_listed"],
|
||||
search: ["title", "id", "theme"],
|
||||
order: "starts_on IS NULL, starts_on DESC, title",
|
||||
},
|
||||
|
|
@ -343,6 +346,7 @@ const events = {
|
|||
text("color"),
|
||||
text("gradient"),
|
||||
bool("is_published"),
|
||||
bool("is_listed"),
|
||||
bool("in_timeline"),
|
||||
|
||||
// A repeating schedule. Columns rather than a side table: the
|
||||
|
|
@ -409,9 +413,10 @@ const people = {
|
|||
"tagline",
|
||||
"locality",
|
||||
"is_published",
|
||||
"is_listed",
|
||||
"updated_at",
|
||||
],
|
||||
filters: ["is_published"],
|
||||
filters: ["is_published", "is_listed"],
|
||||
search: ["display_name", "sort_name", "id"],
|
||||
order: "sort_name, display_name",
|
||||
},
|
||||
|
|
@ -431,6 +436,7 @@ const people = {
|
|||
text("country"),
|
||||
text("location_label"),
|
||||
bool("is_published"),
|
||||
bool("is_listed"),
|
||||
],
|
||||
|
||||
extensions: [
|
||||
|
|
@ -510,8 +516,8 @@ const teams = {
|
|||
concurrency: "updated_at",
|
||||
|
||||
list: {
|
||||
columns: ["id", "org_id", "name", "tagline", "is_published", "sort_order", "updated_at"],
|
||||
filters: ["org_id", "is_published"],
|
||||
columns: ["id", "org_id", "name", "tagline", "is_published", "is_listed", "sort_order", "updated_at"],
|
||||
filters: ["org_id", "is_published", "is_listed"],
|
||||
search: ["name", "id", "tagline"],
|
||||
order: "org_id, sort_order, name",
|
||||
},
|
||||
|
|
@ -523,6 +529,7 @@ const teams = {
|
|||
text("color"),
|
||||
text("logo"),
|
||||
bool("is_published"),
|
||||
bool("is_listed"),
|
||||
int("sort_order"),
|
||||
],
|
||||
|
||||
|
|
@ -569,8 +576,8 @@ const awards = {
|
|||
idKind: "slug",
|
||||
|
||||
list: {
|
||||
columns: ["id", "org_id", "name", "description", "is_published", "sort_order"],
|
||||
filters: ["org_id", "is_published"],
|
||||
columns: ["id", "org_id", "name", "description", "is_published", "is_listed", "sort_order"],
|
||||
filters: ["org_id", "is_published", "is_listed"],
|
||||
search: ["name", "id", "description"],
|
||||
order: "org_id, sort_order, name",
|
||||
},
|
||||
|
|
@ -581,6 +588,7 @@ const awards = {
|
|||
text("description"),
|
||||
text("logo"),
|
||||
bool("is_published"),
|
||||
bool("is_listed"),
|
||||
int("sort_order"),
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue