Skip to content

Write the expected time of an AI call as the runtime does - #3631

Merged
pournasserian merged 1 commit into
feature/a6from
3630-ai-usage-time-text
Nov 24, 2026
Merged

pournasserian merged 1 commit into
feature/a6from
3630-ai-usage-time-text

Conversation

@pournasserian

Copy link
Copy Markdown
Member

Closes #3630

AiUsagePageTests.TheUsageIsListedWithTheNamesOfItsPrincipalsAndTheTotalsOfTheFilter expected the time of a call with a plain space before AM. The page writes it with ToString("g", CultureInfo.CurrentCulture), and for en the runtime on Linux puts a narrow no-break space (U+202F) there, so the test failed in Tests (admin) of the manual CI on feature/a6 (run 45322028174) and passed on Windows.

The test now builds the expected text with the same format, so it holds on either platform. The page is unchanged.

Checked locally on Windows: the test project builds in Release with warnings as errors and its 16 tests pass. The fast checks of this pull request do not run the halves' component tests; the next manual CI on feature/a6 shows the test on Linux.

@pournasserian pournasserian added type:bug Defect area:admin The Blazor WebAssembly admin and the admin halves of plugins labels Nov 24, 2026
@pournasserian
pournasserian merged commit 7dd0d7c into feature/a6 Nov 24, 2026
4 checks passed
@pournasserian
pournasserian deleted the 3630-ai-usage-time-text branch November 24, 2026 04:11
pournasserian added a commit that referenced this pull request Nov 24, 2026
Milestone A6 of the admin: nothing a Must row needs takes the CLI or a
direct API call. An administrator manages users, roles, keys, members,
settings, locales, sites and host names, webhooks, MCP clients, plugins
and jobs, and reads the startup report, from the admin alone; an editor
runs AI actions on the opted-in fields.

Closes #3419
Closes #3420
Closes #3421
Closes #3422
Closes #3423
Closes #3424
Closes #3425
Closes #3426
Closes #3427
Closes #3428
Closes #3429
Closes #3430
Closes #3431
Closes #3354
Closes #3446
Closes #3488
Closes #3504
Closes #3514
Closes #3630

## What is in it

- **A-51 (#3438): the administration area.** A lazy assembly of its own,
access for the instance, core's menu entries and the stubs of five
plugin halves.
- **A-31 (#3493): users and invitations.**
- **A-34 (#3498): the settings menu and the generated settings pages**,
with secrets and reset.
- **A-32 (#3503): roles**, with grants from the permission catalogue and
the site's Public role; **A-52 (#3532): the constraints of a grant**:
sites, locales, fields, resources and a row rule.
- **A-40 (#3508): members and member groups.**
- **A-33 (#3496): API keys**, with the secret shown once by one
component, which the webhooks and MCP halves use too.
- **A-35 (#3515): sites and locales, and the multi-site half.**
- **A-38 (#3509): field actions in the form and the AI assist half**,
with the usage page.
- **A-39 (#3541): plugins, jobs, event dead letters and diagnostics**,
and the search rebuild as a page of the search half.
- **A-36 (#3628): the webhooks half.** The list and one form, the secret
shown once on create and on rotation, header values asked again when the
address moves, the delivery log with send again, and ping.
- **A-37 (#3629): the MCP half.** The clients of the instance with
approve, role, reject, revoke and register; the guidelines and
instructions and the stored prompts of a site; the agent writes.

Fixed on the way:

- #3507: a sign-in completes only at the callback's own address (#3504).
- #3518: the not-found and no-access states follow the address (#3488).
- #3516: a page follows its query only at its own route while the router
waits (#3514).
- #3539: a loading state shows while a navigation waits for an assembly
or a locale's access (#3446).
- #3519: the component gallery and the JSON fast paths leave the first
download (#3354).
- #3510 and #3612: the tests of a half's first use count its configure
per admin and show that first uses in any order load it once (#3505).
- #3631: the test of the AI usage page writes the time as the runtime
does, so it passes on Linux (#3630).

## Decisions

The decisions of the milestone are in #3431 and in section 11 of
`docs/planning/admin-technical-spec.md`; each issue has its own in a
comment. The ones a reader meets first:

- Core's pages of administration load lazily, in an assembly of their
own, and so do the halves: the first download grows only by the gate of
A-51, the field actions of A-38 and the manifests.
- A page of an instance-only group (users, members, jobs, diagnostics,
the MCP clients, the multi-site pages) is gated by the grant for the
instance; roles, keys, settings and sites show what the caller may
manage in the site.
- The MCP half leaves out the bulk removal of #3397, which section 5.4
does not describe, and shows the agent writes on a page of its own.

## Dependencies

None: no NuGet package, npm package or GitHub Action, no migration and
no backend model change. Outside `admin/` the milestone changes
`FluentCMS.slnx` (the new projects), one `COPY` line of the host's
`Dockerfile`, `tests/FluentCMS.Architecture.Tests/AdminRulesTests.cs`, a
comment in `ci.yml` and the admin specification.

## Size

First download 3,594,429 B with every half, 5,571 B under the budget of
3,600,000 B.

## Verification

- `main` is merged in at c13af58 (#3627). The one conflict, a paragraph
of section 5.5 of the admin specification, kept the as-built text of
A-38.
- The manual CI on `feature/a6` at 7dd0d7c, the tree of this pull
request, passed: the quick run 45324672156 and the full run 45390713433.
- This pull request ran the full checks and the dry run of `Publish`,
and both passed.
- What the reviews of the last two halves left is on #3610 and #3611.
#3502 and #3511 of the milestone stay open.

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:admin The Blazor WebAssembly admin and the admin halves of plugins type:bug Defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant