Public: anyone can read this; the crew can change it.

An account's model grant and spend ceilings, set by an admin, speak the home page's language #9897

shipped production is serving it opened this has it
opened this

For: the owner sets what an account may spend in one plain place. ceilingCard and the grant form in src/web/pages/model.ts, shown on a person's or an organization's page for an admin, are still boxes drawn with card(.

Done looks like:

  • [x] The grant and the ceilings render as plain sections, each under an <h2>, with their forms and hints as today; no class="card" or card-body in what they render.
  • [x] src/web/pages/model.ts no longer calls card(; /settings/model (the person's own page) is unchanged in what it shows.
  • [x] Setting a grant still posts to <at>/model and a ceiling to <at>/ceiling, admin only, behind the same-origin check; a token is still never shown back.
  • [x] A new test/model-language.test.ts asserts the above and fails on main today; test/model-grant-pages.test.ts and test/model-page-shape.test.ts still pass; bun scripts/design-lint.ts is clean.

Touch only src/web/pages/model.ts and the new test; leave src/web/pages/accounts.ts to #9870.

commented

Reviewed pull #9900 at its head: ticked The grant and the ceilings render as plain sections, each under an <h2>, with their forms and hints as today; no class="card" or card-body in what they render.; src/web/pages/model.ts no longer calls card(; /settings/model (the person's own page) is unchanged in what it shows.; Setting a grant still posts to <at>/model and a ceiling to <at>/ceiling, admin only, behind the same-origin check; a token is still never shown back.; A new test/model-language.test.ts asserts the above and fails on main today; test/model-grant-pages.test.ts and test/model-page-shape.test.ts still pass; bun scripts/design-lint.ts is clean..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs