Skip to content

#158 - Style updates to website images and removal of news - #158

Merged
awthomp merged 3 commits into
mainfrom
website-style-update
Jun 12, 2026
Merged

awthomp merged 3 commits into
mainfrom
website-style-update

Conversation

@awthomp

@awthomp awthomp commented Jun 11, 2026

Copy link
Copy Markdown
Collaborator

Update DAQ and benchmark images to be of the same style, enlargeable, and with the same green border as other images. This also works well with light/dark themes. Removed news section from website; we can add it back in after release.

Update DAQ and benchmark images to be of the same style, enlargeable, and with the same green border as other images. This also works well with light/dark themes. Removed news section from website; we can add it back in after release.
@awthomp
awthomp requested a review from dleshchev June 11, 2026 21:53
@greptile-apps

greptile-apps Bot commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR is a docs/UI-only change: it updates the architecture and benchmark decision-tree images to share a consistent green-bordered, enlargeable style, adds zoom overlays for both images, and removes the news section from the landing page until after release.

  • New image overlays: image-overlay.js drives a zoom overlay for the benchmark decision-tree SVG; landing.js gains initArchitectureGraphic for the architecture SVG overlay, with Escape-key handling correctly prioritised over the existing landing overlay.
  • Style consistency: .img-visual-frame in extra.css provides a reusable green-gradient frame class; the architecture SVG gains a matching dark background, grid, and glow effect.
  • Close-button fix: overlayState.closeButton is now queried within graphicOverlay rather than the broader root, avoiding a selector collision now that two .graphic-overlay-close buttons exist in the DOM.

Confidence Score: 4/5

Safe to merge once the two commits without DCO sign-offs are rebased to add the required trailers and their titles are corrected to the #<N> - <Title> format; no functional code is affected.

Two of the three commits are missing the mandatory Signed-off-by trailers and do not follow the required commit-title format. These are administrative blockers that will be rejected by the project's contribution gate, but they do not affect any runtime behaviour.

No source files need attention — the only items to resolve are the commit metadata on ab162fed and 1ca0c065.

Important Files Changed

Filename Overview
docs/javascripts/landing.js Adds initArchitectureGraphic for the new architecture overlay, fixes close-button querySelector scope, and routes Escape key to the arch overlay when it is open.
docs/javascripts/image-overlay.js New file providing zoom overlay for the benchmark decision-tree image; uses a module-scoped keydownBound guard to prevent listener accumulation across MkDocs instant navigations.
docs/landing/overlay.html Adds architecture-graphic-overlay dialog alongside the existing daqiri-graphic-overlay; both follow the same accessible pattern (role=dialog, aria-modal, aria-labelledby, close button).
docs/landing/features.html Wraps the architecture SVG in a hero-visual-link button that triggers the new overlay; adds data-arch-open and ARIA attributes correctly.
docs/benchmarks/benchmarks.md Wraps the backend decision-tree SVG in the new .img-visual-frame div with an inline zoom overlay; delegates open/close logic to image-overlay.js.
docs/stylesheets/extra.css Adds .img-visual-frame utility class for the green-bordered, hover-animated image frame used on the benchmarks page.
docs/index.md Removes the landing/news.html snippet include; the news section will be restored after release.
mkdocs.yml Adds javascripts/image-overlay.js to extra_javascript so the benchmark zoom overlay loads site-wide.
.gitignore Adds Python bytecode patterns (__pycache__/, *.pyc, *.pyo) to .gitignore.

Reviews (4): Last reviewed commit: "#158 - fix DAQIRI overlay close button f..." | Re-trigger Greptile

Comment on lines +105 to +132
function initArchitectureGraphic() {
var root = document.querySelector(".daqiri-landing");
if (!root) return;
var openBtn = root.querySelector("[data-arch-open]");
var overlay = document.getElementById("architecture-graphic-overlay");
if (!openBtn || !overlay) return;
var closeBtn = overlay.querySelector(".graphic-overlay-close");
var prevFocus = null;

function open() {
prevFocus = document.activeElement;
overlay.classList.add("is-open");
overlay.setAttribute("aria-hidden", "false");
document.body.classList.add("graphic-overlay-open");
if (closeBtn) closeBtn.focus();
}
function close() {
overlay.classList.remove("is-open");
overlay.setAttribute("aria-hidden", "true");
document.body.classList.remove("graphic-overlay-open");
if (prevFocus && typeof prevFocus.focus === "function") prevFocus.focus();
}

bindOnce(openBtn, "click", open);
overlay.querySelectorAll("[data-arch-close]").forEach(function (el) {
bindOnce(el, "click", close);
});
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Missing Escape-key handler for architecture overlay

initArchitectureGraphic wires click handlers for open/close but never registers a keydown listener for Escape. The module-level handler added by initLandingGraphic (lines 92–99) only operates on overlayState.overlay (the daqiri-graphic-overlay) and calls closeGraphicOverlay(), so pressing Escape while the architecture overlay is open does nothing. Users who open the architecture graphic and reach for Escape — the standard modal-close affordance — will find it silently ignored.

Comment thread docs/javascripts/image-overlay.js Outdated
Comment on lines +25 to +30
document.addEventListener("keydown", function (e) {
if (e.key === "Escape" && overlay.style.display === "flex") {
overlay.style.display = "none";
document.body.style.overflow = "";
}
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Keydown listener accumulates on repeated page visits

The document.addEventListener("keydown", …) call on line 25 is not guarded against re-registration. With MkDocs Material instant navigation, document$.subscribe(initImageOverlays) triggers initImageOverlays on every navigation. Because the benchmarks page replaces the DOM entirely, dt-thumb is a fresh element each visit and the overlayBound guard at line 10 does not prevent a new keydown listener from being appended to document. The existing landing.js avoids this with a module-level keydownBound flag — applying the same pattern here would prevent the accumulation.

@awthomp
awthomp requested a review from chloecrozier June 11, 2026 21:58
awthomp and others added 2 commits June 11, 2026 19:56
Fix greptile complaints
Signed-off-by: Chloe Crozier <chloecrozier@gmail.com>

@chloecrozier chloecrozier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor bug fix I put in, was adding the second overlay broke focus on the hero graphic since querySelector was grabbing the overlay’s close button instead of the DAQIRI one

The docs and diagrams look good to me after locally checking!

@chloecrozier

Copy link
Copy Markdown
Member

@greptileai review

@awthomp
awthomp merged commit c9382c0 into main Jun 12, 2026
3 checks passed
@cliffburdick
cliffburdick deleted the website-style-update branch June 16, 2026 17:12
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.

2 participants