Precens 9.1 - #43
Draft
pixelcmtd wants to merge 8 commits into
Draft
Conversation
item 4 of #39: formats check.created_at in the check page header via Intl.DateTimeFormat (en-CA, UTC, comma stripped) — e.g. 'kcc v0.8 check test · 2026-08-03 12:34:05 UTC'.
CI ran `astro sync` (build mode) in a separate step, writing the content store to node_modules/.astro, while vitest (dev mode) reads root/.astro — so the template tests were validating against an empty store. Pin `cacheDir` to `.astro` and fold `astro sync` into the test script so both read the same store, then assert the collection actually loads every template in tMeta.
Add the versioned template route and dropdown from the first item in #39. `/internal/templates/[id]/` shows the latest revision, while `/internal/templates/[id]/[rev]/` selects a specific revision. The dropdown follows procens with a latest option and a Versions group. `getTemplateVersion` now treats omitted, null, and empty revisions as latest, replacing `getCurrentTemplate`. `check.save` rejects empty revisions so saved Checks remain pinned to a revision. Validation: all 22 tests and the build pass. Checked latest and explicit revision routes, dropdown selection, unknown-revision 404, and empty-revision save rejection.
Replaces the raw console.log calls in src/middleware.ts with Astro context.logger (AstroRuntimeLogger, on the middleware context since Astro 7), so these lines go through Astro logging instead of the raw console. logFirstBlock now takes the logger as a parameter; the call site passes context.logger.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.