Third audit, UI half; side nav on top; request button colors

- Event cards: lazy -640 photo, only nearby slides drawn, a counter
  past 12 events, past grid paged with Show more
- Community map: search over list and grid, 12 per region then Show
  all, list no longer redrawn on hover
- People tiles: one clip check for the list, Show all past 30
- Person pages: 6 events and posts then Show all; excerpts load only
  the first paragraph
- Admin: filter box on long pickers and the QR select, options sent
  per form, Media thumbnails from the small copy, debounced searches
  that drop stale answers
- Pages show their last data while refreshing after the cache TTL
- Side nav stacks above page content (the carousel arrows)
- No event request button on National Retreats; request buttons take
  their section's accent
- Version v1.11.1-audit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Zaldimmar 2026-10-01 19:09:21 -05:00
parent 11a4555683
commit 222c9e69a2
22 changed files with 686 additions and 259 deletions

View file

@ -54,7 +54,7 @@ import { get, post, patch, del, ApiError } from "../../lib/api.ts";
import { isUnauthorized, useAuth } from "../../lib/auth.tsx";
import { useAdminDetail } from "../../lib/adminTitle.tsx";
import { useWideAdminPage } from "../../lib/adminWidth.tsx";
import { ADMIN_ENTITIES, slugify } from "../../lib/adminSchema.ts";
import { ADMIN_ENTITIES, optionsPath, slugify } from "../../lib/adminSchema.ts";
import { atLeast } from "../../lib/roles.ts";
import { Field, FieldGrid, Repeater, getPath, setPath } from "../../components/admin/fields.tsx";
import {
@ -164,7 +164,8 @@ export default function EntityEdit() {
setLoading(true);
setErrors({});
try {
const opts = await get("/admin/options", { ttl: 60_000 });
const path = optionsPath(manifest);
const opts = path ? await get(path, { ttl: 60_000 }) : { options: {} };
setOptions(opts.options);
if (isNew) {

View file

@ -17,7 +17,7 @@ import { Link, Navigate, useNavigate, useParams, useSearchParams } from "react-r
import { get, upload, ApiError } from "../../lib/api.ts";
import { isUnauthorized, useAuth } from "../../lib/auth.tsx";
import { ADMIN_ENTITIES } from "../../lib/adminSchema.ts";
import { ADMIN_ENTITIES, optionsPath } from "../../lib/adminSchema.ts";
import { atLeast } from "../../lib/roles.ts";
export default function EntityList() {
@ -50,9 +50,10 @@ export default function EntityList() {
setLoading(true);
setError(null);
try {
const optsPath = optionsPath(manifest.list.filters);
const [list, opts] = await Promise.all([
get(`/admin/${manifest.key}?${params}`, { ttl: 0 }),
get("/admin/options", { ttl: 60_000 }),
optsPath ? get(optsPath, { ttl: 60_000 }) : { options: {} },
]);
setRows(list.rows);
setTotal(list.total);