Skip to content

Redesign the app, make the backend work, add a live demo, and fix what a review found - #1

Merged
Hikki-dev merged 15 commits into
mainfrom
claude/serene-hypatia-bc4wfl
Oct 24, 2026
Merged

Hikki-dev merged 15 commits into
mainfrom
claude/serene-hypatia-bc4wfl

Conversation

@Hikki-dev

@Hikki-dev Hikki-dev commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

What this adds

A working demo of pull printing, and now a way to run it with real accounts:

  • Work-account sign-in. People sign in with Microsoft 365 or Google Workspace. The server does the sign-in, only lets in your organisation, adds people on first sign-in, and decides who is an administrator.
  • Printers and quotas managed on the server. Administrators add, switch off and remove printers, set pages a month for new people, for everyone, or for one person. Pages reset each month. A setup card names anything still to do and shows the address to register.
  • Printer picker on the phone and printer panels fixed to one printer by link (?printer=).
  • Earlier work in this PR: redesigned phone and panel screens, a .NET 8 backend with protected routes, a free live demo, a review of user mistakes with fixes, documents and CI.

Setup guide: docs/09-connecting-your-workspace.md.

Checked

  • 112 backend tests (including a simulated Microsoft/Google sign-in round trip) and 64 app tests pass.
  • Browser run against the real backend: demo flow, token hand-over after sign-in removed from the address bar, refused account shows its reason, Google sign-in redirects to Google.
  • CI includes the Docker image build and probe.

Not verified

Sign-in has not been run against a real Microsoft or Google tenant (#2). Data is still in memory (#3), nothing prints on a real printer (#5), and there is no way to send a file yet (#4).

Closes #10.

🤖 Generated with Claude Code

https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg

…d admin

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
…n mark and live selection

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
… tests

Phone and printer-panel layouts for sign-in, document selection, print
confirmation and admin, built from the approved mockups. Adds a repository
layer with an in-memory demo implementation so the whole flow runs without
the backend, and replaces the template test with 16 widget and unit tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
Backend: builds on .NET 8 and serves the routes the app uses. Endpoints need a
signed token; people only reach their own documents; quota is checked on the
server. Demo sign-in gives every visitor and administrator a private sandbox
with sample documents, cleaned up after 2 hours. Microsoft Entra ID validation
is written but untested against a real tenant. Rate limits and caps bound abuse.

App: talks to the API, explains the demo with a banner and About dialog, can
send itself more sample documents, and handles an ended session.

Hosting: Dockerfile (API plus web app in one image), render.yaml, CI workflow,
and a hosting guide. 35 backend tests and 29 app tests.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
scripts/vercel-build.sh builds the demo-mode web app (built-in sample data,
no server) and vercel.json points Vercel at it. The about text now mentions
reloading the page.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pull-print-demo Ready Ready Preview Oct 24, 2026 4:05pm UTC

Fixes found by reviewing the demo as a first-time visitor, a large-text user,
someone at the printer panel, someone out of pages, and an administrator:
branded web shell and loading screen, sign-in reachable at large text and on
short phones, overflows at 1.5x and 2x text, idle sign-out on the printer
panel, plain messages for a long document and for no pages left, select all,
start over, partial-print handling, stale-list refresh, rate-limit message,
and backend hardening (clean JSON errors, security headers, size and count
limits).

Docs and repository: architecture and API reference, review record,
CONTRIBUTING, SECURITY, CHANGELOG, issue and pull request templates, and a
CI job that builds and starts the Docker image.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
@Hikki-dev Hikki-dev changed the title Redesign the app, make the backend work, and add free demo hosting Redesign the app, make the backend work, add a live demo, and fix what a review found Oct 22, 2026
claude and others added 7 commits October 22, 2026 09:30
…ters and quotas

Server-side OpenID Connect for Microsoft Entra and Google Workspace,
just-in-time people, admin-managed printers, default and bulk quotas with a
monthly reset, setup check endpoint, and tests using a fake identity provider.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
…quota rules

Removes the MSAL wrapper. The sign-in screen asks the server which work account
to offer, finishes the redirect from the server (token in the URL fragment,
removed straight away), and shows the reason when an account is turned away.
Administrators get a setup check, printer management with panel links, a default
quota for new people and a quota for everyone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
…a demo GIF

README rewritten step by step with screenshots taken from the running app.
New guides: getting started (every screen) and fixing problems. Two SVG
diagrams, a short phone walk-through GIF, and tools/screenshots to take the
pictures again.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J4JJRYQtj9LYZhxYKGUZXg
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…ems), add FAQ, canonical demo link, legal section

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Docs: plain-named guides, FAQ, licence, social preview
@Hikki-dev
Hikki-dev merged commit b7b1566 into main Oct 24, 2026
8 checks passed
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.

Remove the duplicate Microsoft sign-in wrapper

2 participants