Skip to content

Replace draft watermark with document status strip - #137

Merged
AdamGohs merged 1 commit into
mainfrom
feature/draft-status-strip
Sep 1, 2026
Merged

Replace draft watermark with document status strip#137
AdamGohs merged 1 commit into
mainfrom
feature/draft-status-strip

Conversation

@AdamGohs

@AdamGohs AdamGohs commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Replaces the fixed diagonal DRAFT watermark on draft documents with a status strip in the content column on screen, and a band repeated at the top and bottom of every printed page.

  • DraftNotice renders both surfaces from a single status string: "This document is pending final approval by the RMC Director."
  • The strip sticks below the site header at a constant offset so it does not shift position on first scroll. Amber palette defined per theme, so it stays legible in dark mode — the old watermark was nearly invisible there, and overflowed the viewport on mobile.
  • The print band repeats via thead/tfoot, the only cross-browser way to get a running header (@page margin boxes are unsupported in Chrome and Firefox). It also overrides the * { color: #000 !important } reset in print.css, which previously flattened the watermark to solid black when printed.
  • Removes the DocItem swizzle, which existed only to render the watermark.
  • Adds the missing doc_location to the RMC TotalRisk Verification Report entry. getDraftDocLocations() filters on that field, so the only active draft doc with built pages was being dropped from the list — meaning no draft marking has been reaching a production build.

Swaps the fixed diagonal DRAFT watermark for a status strip in the content
column on screen and a band repeated on every printed page.

- DraftNotice renders both surfaces from a single status string
- Strip sticks below the site header at a constant offset so it does not
  shift on first scroll; amber palette defined per theme
- Print band repeats via thead/tfoot, the only cross-browser running
  header (@page margin boxes are unsupported in Chrome and Firefox), and
  overrides the color reset in print.css
- Drops the DocItem swizzle, which existed only for the watermark
- Adds the missing doc_location to the TotalRisk Verification Report entry;
  getDraftDocLocations() filters on that field, so no active draft doc was
  being marked in a production build
@AdamGohs
AdamGohs requested a review from a team as a code owner September 1, 2026 20:44
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

CI build passed for commit 940a8f8

This PR changes no files under docs/, so it carries no review lane. CI Build is the only gate - there are no review stages to clear.

@usace-rmc/docs-admin may merge.

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown

📄 Preview deployed for commit 940a8f8

https://usace-rmc.github.io/RMC-Software-Documentation-Previews/pr-137/

This preview updates automatically when new commits are pushed. Deleted when the PR closes.

@AdamGohs
AdamGohs merged commit c616129 into main Sep 1, 2026
5 checks passed
@AdamGohs
AdamGohs deleted the feature/draft-status-strip branch September 1, 2026 20:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant