Skip to content

Merging develop into version-3#633

Merged
NagariaHussain merged 15 commits into
version-3from
develop
May 25, 2026
Merged

Merging develop into version-3#633
NagariaHussain merged 15 commits into
version-3from
develop

Conversation

@NagariaHussain
Copy link
Copy Markdown
Collaborator

No description provided.

NagariaHussain and others added 15 commits May 13, 2026 23:27
- Drop get_download_pdf_url helper; build the URL in JS from doc.route.
- Slim download_pdf: remove unused print_format/language params and the
  defensive save/restore around ignore_print_permissions.
- Reduce before_print to one line; have the print template read
  doc.get_wiki_space() and doc.get_formatted("modified") directly.
- Extract download_action_item macro and replace two ~20-line copies in
  document.html's mobile and desktop dropdowns.
- Drop the Content-Disposition regex; derive filename from doc.route.
- Print format: "Downloaded At" -> "Last Updated"; clear forced "en".
- Revert unrelated drive-by changes to wiki_settings.js/json.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Keep the actions dropdown open while the PDF is being prepared so the
  loading spinner stays visible; close it after the download settles.
- Read the route from window.location.pathname on every click instead of
  caching doc.route at Alpine init — SPA navigation updates the URL via
  history.pushState, so this stays in sync with the visible page.
- Print format: show the full breadcrumb (space › group › subgroup) in
  the header eyebrow, not just the space name.
- Style blockquotes in the PDF to match the public-facing prose: italic,
  thicker left rule, and open/close quote marks on the first/last
  paragraph.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Frappe's print CSS pulls in Bootstrap, which sets `blockquote { padding:
10px 20px; font-size: 17.5px }` and `@media print { blockquote { border:
1px solid #999 } }`. Our `border-left` shorthand only overrode the left
side, so the top/right/bottom borders and extra padding leaked through —
the PDF showed a fully-boxed quote with vertical air around the text
instead of the public site's simple left-rule treatment.

Explicitly zero the border and padding before re-applying the left rule.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Mirror the public-page callout treatment in the print format so
note/tip/caution/danger callouts render with their colored backgrounds
and tinted icons instead of plain icon + text.

While doing this, inline every `var(--...)` reference as a hex value:
wkhtmltopdf's QtWebKit predates CSS Custom Properties, so all our
existing `var(--gray-*)` declarations were silently dropping too — the
header divider, table borders, blockquote rule, and eyebrow colors
weren't rendering either, not just the new callout colors.

Layout note: the public CSS uses `display: grid` with
`grid-template-columns: auto 1fr`; QtWebKit doesn't support Grid, so
the print format floats the icon left and gives `.callout-body` its
own block formatting context via `overflow: hidden`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
fix(wiki): order feedback reactions bad -> good
@NagariaHussain NagariaHussain merged commit 6420bd3 into version-3 May 25, 2026
7 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.

2 participants