GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — agent2learn/frontend at main · ManagementMO/agent2learn

Expand file tree

/

frontend

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

frontend

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
public
public
 
 
scripts
scripts
 
 
src
src
 
 
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
README.md
README.md
 
 
astro.config.mjs
astro.config.mjs
 
 
ec.config.mjs
ec.config.mjs
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vercel.json
vercel.json
 
 

README.md

Outline

Agent2Learn website

The standalone landing page and documentation site. Everything here builds to static files; it does not change, bundle, or replace the Python engine. Node.js is a website development dependency, not an Agent2Learn runtime requirement.

Work locally

Use Node.js 22.12 or newer.

cd frontend
npm ci
npm run dev

Open http://localhost:4321. For the complete production search experience, build and preview:

npm run build
npm run preview

Pagefind indexes the production HTML during the build. Search is entirely local to the generated site; there is no search service or API key. Check search against the production preview, because the development server does not include the generated index.

Where things live

Path Responsibility
src/pages/index.astro The concise landing page.
src/content/docs/docs/ Eleven user guides and reference pages, written in Markdown/MDX.
src/components/VaultDemo.astro The interactive, explicitly synthetic course example.
src/components/FeatureStory.astro Small product illustrations for original files, citations, and preserved revisions.
src/components/CitationExample.astro Annotated source excerpt in the study guide.
src/lib/demo.ts Synthetic files and cited lines shared by the homepage, guide, and Copy page.
src/components/FileIcon.astro Distinct icons for the index, Markdown, assignment instructions, and original PDF.
src/components/Mark.astro Shared, lightweight logo rendering at each display size.
src/components/MarkerStroke.astro The short, once-only marker draw beneath “your” in the hero.
src/assets/brand/a2l-waterloo-gold.svg Editable, outlined A2L master shared with the launch film.
public/brand/mark.svg Native vector wordmark; mark-dark.svg keeps the gold on dark backgrounds.
public/brand/icon.png A 512px logo export; the UI uses the SVG.
public/brand/social-card.png The 1200 by 630 sharing image, composed with the real synthetic vault.
scripts/render-social-card.js Reproduce the sharing image from the local production preview with Playwright CLI.
public/favicon.svg The A2L wordmark on a light tile, readable in light and dark browser chrome.
scripts/build-brand.mjs Reproducible wordmark, favicon and icon exports; the build checks for drift.
src/styles/shared.css Typography, common controls, and shared tokens.
src/styles/home.css Responsive landing-page composition and both themes.
src/styles/docs.css The Starlight documentation theme.
ec.config.mjs Shared code rendering, accessible labels, and neutral code-panel styling.
src/lib/site.ts Release status, install commands, repository URL, and the copied agent prompt.
src/lib/social.ts Shared Open Graph and large-image card metadata for the homepage and docs.
src/lib/accessibleTables.mjs Build-time keyboard focus and accessible names for documentation tables.
scripts/verify-build.mjs Internal link, anchor, asset, and agent-export checks over the built output.

The site uses Astro, Starlight, Tailwind's neutral zinc color tokens, DM Sans, and IBM Plex Mono. Dependencies are pinned in package-lock.json. Fonts are served locally; their license notices are included under public/licenses/. No analytics, remote font calls, or background network integrations are added.

The logo is an outlined serif A2L wordmark with a raised 2 and a Waterloo-gold underline (#FFD54F). It is native vector artwork, with no font or raster dependency. The same master generates the film assets, light/dark SVG and PNG exports, favicon and app icon. See brand source and provenance. Interface and feature icons remain separate from the brand mark.

Mark.astro supplies the homepage header/footer, setup prompt, citation demo, and all documentation headers (including the 404 page). It reserves the wordmark's 2.5:1 proportions and changes only the lettering to white in dark mode and on the charcoal setup section. The underline stays gold: do not use CSS inversion. Mobile headers use a smaller optical size to preserve navigation space. The browser favicon and 512px icon use a light tile for a consistent silhouette in either browser theme.

After an approved master change, run npm run brand:build, review the film asset hashes in videos/a2l-cinematic/src/brand-variant.json, then rebuild the film and site and regenerate the sharing image below. npm run brand:check verifies that all exports, including the film assets, still match the master. The normal website build passes --site-only to verify its own exports without requiring the separate video folder, so frontend/ can build on its own. Do not edit generated SVGs or PNGs independently.

Light and dark themes

The landing page starts with the system preference and has an explicit light/dark button. Its preference shares Starlight's starlight-theme local-storage key, so navigation between the landing page and docs preserves the selection. The docs also offer an Auto setting. Early theme initialization avoids a light flash on dark pages.

ThemeColor.astro keeps the browser's toolbar colour aligned with each page's header. It follows the resolved theme on both the homepage and documentation, including saved choices and automatic system changes. DocsHead.astro adds it alongside Starlight's default head metadata.

The layout uses black, white, and layered zinc grays, with the logo's #FFD54F gold reserved for primary actions, the hero marker, and source indicators. Neutral text stays readable over faint gold citation backgrounds. Links use a quiet gold underline; small gold text and focus rings use darker --gold-ink in the light theme for contrast. Documentation navigation uses the same neutral selection in both sidebars and the mobile section menu: a soft gray fill, a fine outline, and stronger text. Navigation focus rings are neutral and distinct from selection. The shared tokens live in shared.css, with light and dark variants. The charcoal agent section keeps a consistent treatment in both themes.

The hero's marker is a small native SVG with solid ink, ragged edges, a frayed chisel-tip finish, and fine tapered gaps from a dry nib. Its uneven leading edge reveals the stroke left to right once, in 480ms after a brief pause and font readiness. A quick touch-down leads into one uninterrupted sweep and clean lift-off. The artwork stays the same size throughout, so drawing neither stretches its texture nor shifts the headline. A hidden tab pauses the draw; returning resumes it. Once complete, it stays still, including after scrolling, hovering, or changing the theme. Reduced motion and JavaScript-disabled pages show the complete stroke immediately. Documentation uses simple gold rules and source highlights, without replaying the decorative marker.

File selection uses native radio inputs, prompt and mobile vault expansion use native disclosure controls, and the documentation uses Starlight's accessible search, tabs, navigation, and theme selector. Installation commands and fenced examples share Expressive Code's neutral panels and always-visible copy controls. Scrollable examples have distinct accessible names. Documentation tables receive keyboard focus and a name from their section heading during the Markdown build, so wide tables can be scrolled with arrow keys even without JavaScript. Page and agent-prompt copy failures show a local recovery message. Reduced-motion preferences are respected.

The documentation's section tracker selects the final section at the bottom of a page, even when that section is too short to reach the top of the viewport. A small correction in src/scripts/docs-toc.ts uses the pinned Starlight component's selection setter to keep the desktop outline and mobile summary synchronized. Starlight continues to handle normal scrolling. Re-run the TOC browser regression when upgrading Starlight.

Documentation titles and Copy page share a compact row on wider screens and stack on phones. The study guide explains a citation with the exact synthetic source lines used in the homepage vault. Copy page expands that component into readable text from the same data; there is no second guide to maintain. Agent-prompt copying displays a next step in a reserved feedback area.

The three homepage principle headings link to the relevant guide sections. Their file, citation, and revision illustrations are static and require no JavaScript.

The desktop vault starts on the assignment instructions. Following its citation selects the lecture, focuses line 4, and highlights the source lines and corresponding file over 180ms. Choosing another file clears the citation state. Reduced-motion mode shows the result immediately.

On phones, the question, answer, and a source excerpt come first. The excerpt is generated from the same source lines as the full viewer and hides while that viewer is open. Following the citation expands the vault and focuses the source; Back to answer collapses the viewer, restores the excerpt, and returns keyboard focus to the citation. The reader can also expand the vault independently. That disclosure choice survives viewport changes, and all three files remain available with compact mobile labels. Without JavaScript, the full vault stays expanded and native file selection remains usable.

Sharing image

public/brand/social-card.png is a static, 1200 by 630 PNG. The homepage and documentation include its absolute Open Graph and large-image card URLs when SITE_URL is configured. It shows only the synthetic example and contains no release-availability claim.

To regenerate it, keep the production preview running at http://127.0.0.1:4321 and run these commands in a second terminal from frontend/:

npx @playwright/cli -s=a2l-art open http://127.0.0.1:4321/
npx @playwright/cli -s=a2l-art run-code --filename scripts/render-social-card.js
npx @playwright/cli -s=a2l-art close

The renderer reuses the built vault markup and bundled fonts. It changes only its isolated browser page while composing the image, then writes the PNG to public/brand/. Run npm run build afterward to copy the refreshed image into dist/.

Publishing the website

The site uses release.published: true and advertises the verified PyPI version in src/lib/site.ts. The platform installer URLs and the agent's installation guide use the corresponding Git tag, so an unpublished version on main cannot break the live site's setup instructions. The uv command installs the latest published package.

Before deploying:

  1. Confirm that the published package and the repository's installer pins are the versions you intend to advertise.
  2. Keep release.version in src/lib/site.ts aligned with that package version.
  3. Run npm run build and inspect installation, the copied agent prompt, and /llms.txt in the preview.
  4. Set SITE_URL in the hosting build environment to the real HTTPS origin you choose. This enables canonical URLs, the sitemap, and the landing page's social image metadata. A local build without a domain intentionally skips the sitemap.

The shared release switch concerns package availability only. It cannot enable the engine's submission capability. Upload-related documentation must continue to match src/agent2learn/_release.py and the authoritative release gates.

The Vercel project is agent2learn under managementmos-projects, with production origin https://agent2learn.vercel.app. It is connected to ManagementMO/agent2learn on GitHub, with frontend as its Root Directory and files outside that directory excluded from the build. vercel.json selects Astro, installs with npm ci, builds with npm run build, and publishes only dist/. The project and package target Node.js 22.

Push a branch and open a pull request to get a Vercel preview and build status. Merging into main, the configured production branch, automatically builds and updates the production site. A failed build keeps the previous successful deployment live. The repository's existing required CI checks still govern merges.

SITE_URL=https://agent2learn.vercel.app is configured in Vercel for production and preview builds. The native GitHub integration handles deployments without adding a Vercel token to GitHub Actions. .vercel/ and downloaded local environment files are ignored by Git. The repository-root .vercelignore allows only the frontend source, public assets, build scripts, and required configuration in both Git and CLI deployments; local environment files, browser reports, build output, and dependencies are excluded.

For optional CLI access, run vercel link --repo --yes --scope managementmos-projects from the repository root. This maps the frontend directory to the existing project. Run manual vercel deploy --prod commands from that repository root so the upload paths match the project's configured Root Directory.

For another static host, deploy dist/ using this folder as the project root. The site expects deployment at an origin's root, not under a repository-name subpath. Serve 404.html for unknown paths; do not rewrite every route to the landing page.

Documentation for agents

  • Each guide has a Copy page button. It copies the title and full guide as Markdown, including all installation methods or the full setup prompt where applicable. The clipboard text comes from the existing guide and shared component data; there is no separate Markdown view or downloadable copy to maintain.
  • /llms.txt: a lightweight index linking to the regular documentation pages.
  • /agent-prompt.txt: the same setup prompt copied by the UI.

The website prompt is a handoff, not another canonical skill set. Keep the engine's four skills/ directories as the source of installed skill instructions.

Keep the copy grounded

The site's claims were traced through the authoritative release design and plan, docs/LAUNCH.md, the existing user documentation, the actual CLI, pipeline.py, source validation in ground.py, the four canonical skills, and the production-pipeline CLI regression.

When changing user-facing behavior, review the corresponding website page:

Engine or source documentation Website guide
docs/install.md, install.sh, install.ps1, cli.py:init Installation; for agents; shared install commands.
pipeline.py, ingest.py, audit.py Your first sync; the vault; troubleshooting.
ground.py, skills/a2l-study, skills/a2l-coursework Study with sources; the copied prompt.
check.py Scan a draft; command reference.
docs/AUTHENTICATION.md, auth/ Authentication; troubleshooting.
docs/PRIVACY.md, privacy.py Privacy; collection defaults in landing-page copy.
cli.py, _release.py Commands; installation and upload status.

All courses, file contents, and citations in the interactive example are synthetic. It illustrates a workflow rather than presenting a recorded CLI or model result. Hash validation proves source identity and integrity; lexical matches never establish correctness or academic-policy compliance.

Verify a change

npm run format:check
npm run build
npm run check:release

For the logo-specific browser regression, open the production preview with Playwright CLI, then run run-code --filename scripts/verify-brand-browser.js in that session. It checks the homepage and documentation at 320, 375, 768 and 1440px in both themes, including image decoding, aspect ratio, theme treatment and mobile header spacing. Screenshots are saved under output/playwright/.

In the same session, run run-code --filename scripts/verify-site-browser.js for the interaction and accessibility checks. It exercises citation focus, native keyboard file selection, mobile return and viewport changes, install/prompt/page copying, clipboard refusal, installation tabs, keyboard table scrolling, production search, and footer navigation. Its 58 scenarios include axe WCAG 2.2 AA checks over the homepage at five widths in both themes and all eleven guides at phone and desktop widths in both themes. Run in Chromium, Firefox, and WebKit. Both scripts use the origin of the open preview, so independent worktrees can use different ports.

Run run-code --filename scripts/verify-marker-browser.js to inspect the actual opening draw in both themes. It captures intermediate frames, checks left-to-right ink progression and stable headline geometry, exercises hidden-tab pause/resume, and confirms that the marker finishes without replay and the feature illustrations remain static. It also checks the reduced-motion and JavaScript-disabled fallbacks. Frames are saved under output/playwright/.

Run run-code --filename scripts/verify-toc-browser.js in Chromium and WebKit to check all 11 guides in both themes at desktop and phone widths. It checks scrolling to the bottom, clicking the final section, opening its direct fragment URL, returning to earlier sections, synchronized mobile labels, viewport changes, and pages that fit without scrolling.

The build runs Astro/TypeScript checks, freshly renders all static pages, creates the search index, verifies internal navigation and anchors, and checks the agent index, setup prompt, and code-example labels. astro build --force clears the content cache so changes to rendering hooks cannot leave stale documentation HTML. Browser checks should cover both themes, phone and desktop widths, file selection, citation focus, copy success/failure, docs search, tabs, and the mobile menu. Keep temporary screenshots and browser reports under the ignored output/playwright/ folder.

check:release builds a disposable copy with package availability switched on and a reserved test origin. It checks the published installation copy, agent prompt, documentation release notice, agent index, social image metadata, canonical URL, and sitemap, then removes the copy. On macOS/Linux it also executes the rendered installation command with a harmless download stub, proving that stdin reaches the installer and a failed download cannot execute partial output. It never runs the actual installer or onboarding. It leaves the real release setting and any running preview unchanged.

For a short student walkthrough, ask a few Waterloo students to describe what Agent2Learn does, follow a source citation in the demo, and find the installation or agent setup path. Let them explore without coaching and record where they hesitate. This checks comprehension and discoverability beyond the automated browser checks.

The frontend has its own package lock and ignored build/dependency folders. The root Python package, canonical skills, existing documentation, and release automation remain outside this website's build boundary.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.