Skip to content

Expand FAQ and improve localized navigation and car help - #373

Open
biodranik wants to merge 6 commits into
masterfrom
ab/updated-faq
Open

biodranik wants to merge 6 commits into
masterfrom
ab/updated-faq

Conversation

@biodranik

@biodranik biodranik commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

Expand the Organic Maps FAQ to 47 answers in English, Russian and Ukrainian. Cover the November release, offline setup, routes, location, saved data, map editing, troubleshooting and integrations.

  • Give Android Auto and Apple CarPlay dedicated topics. All 34 Android Auto guides specify Android 11 or later for wired connections. All 34 route guides distinguish public transport itinerary previews from turn-by-turn navigation in driving, walking and cycling modes.
  • Add localized Start here links, topic shortcuts and subquestion discovery. Shared IDs keep topic and heading jumps on the same section when readers switch between the complete English, Russian and Ukrainian FAQ inventories. Category names are shared by listings, breadcrumbs and structured data. Each article exposes one FAQPage question for its complete answer.
  • Preserve published answer paths and heading targets. Both published spellings of the Ukrainian bookmarks category redirect directly to the renamed topic, with or without a trailing slash.
  • Resolve localized Markdown links to bundled answers and headings in the offline app FAQ. Legacy fragments resolve in the displayed language, and malformed language parameters fall back to the browser preference.

The six signed-off commits cover translation corrections, FAQ content, trip planning and car help, web navigation, offline help, and validation. The checks below apply to the complete branch.

Validation

  • Built with Zola 0.23.4 and 0.23.6. Ran 13 template tests, 16 browser tests, 31 Python 3.12 tooling tests and 185 round-trip checks covering 3,330 corpus files.
  • The 94 Russian and Ukrainian answers pass translation checks. The rendered comparison preserves heading fragments across 1,322 shared FAQ paths. The deployed Pages preview returns a direct 301 for all four Ukrainian legacy URLs.
  • The offline browser tests cover local fragments, legacy targets, and malformed language parameters. The Android Auto link works from a local file in all 26 bundled languages.

The advisory corpus report has 1,435 of 1,931 pages clean and flags 495 FAQ translations for alignment. Missing-language fallback is tracked in #260. The localized Android Auto links also cover the offline case in #374.

Checks and preview for 5748ef46. GitHub Actions · Cloudflare Pages preview

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Deploying organicmaps with  Cloudflare Pages  Cloudflare Pages

Latest commit: 5748ef4
Status: ✅  Deploy successful!
Preview URL: https://67ef5971.organicmaps.pages.dev
Branch Preview URL: https://ab-updated-faq.organicmaps.pages.dev

View logs

@vng vng 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.

Review of the English FAQ expansion. I could not run zola build here (Zola isn't installed), so the build and CI results are not re-verified. The review is based on the diff and translate_check.py.

Fix here

  1. Translation drift. translate_check.py --all reports 1833/1836 pages clean on master and 1308/1836 on this branch. About 525 translated pages are now flagged for structure mismatch against the new English sources. This is expected, since the PR says translations are a follow-up, and it is only a report in CI. Still, either land the retranslation soon (translate_md.py … --all) or note that the report stays red until then. Also check that @/… links and anchors in translated pages that point at removed English headings still resolve.
  2. TTS page regression (inline comment).
  3. Breadcrumb duplication and hard-coded Help (inline comment).
  4. DCO check is action_required. Add Signed-off-by, or follow the DCO app's instructions.
  5. Check Zola build was still queued at review time. Confirm it goes green before merging.

Simplifications

  • Share the question-list and breadcrumb markup between English and the other languages (inline comments).
  • Derive "Start here" from frontmatter instead of hard-coded titles.

Alternatives

  • Gate the English-only discovery UI on the presence of data (faq_page.toc, extra.start_here) rather than lang == config.default_language. Translations then get the same navigation automatically once they are updated, and the template has no per-language branches.

Notes

  • faq/_index.md title and description changed. The embedded FAQ heading uses faq_section.title, so it now reads "Organic Maps FAQ" in English. That looks intended.
  • No slug: or aliases: lines changed in the diff, which is good.
  • All of the above is specific to this PR. I found nothing pre-existing worth a separate PR.

Generated by Claude Code

Comment thread templates/faq/faq-breadcrumbs.html Resolved
Comment thread templates/faq/list.html Resolved
Comment thread templates/base.html Resolved

Copy link
Copy Markdown
Member Author

Review follow-up for ffdb25f: the fixes are squashed into the single signed-off PR commit, and all four inline threads have been answered and resolved.

Translation drift remains a separate follow-up because this change is explicitly English-only. The PR description now says that the report will continue to flag structural differences until the translations are updated. All 561 translated FAQ files are unchanged. I checked all 99 FAQ links from translated content, including 33 fragment links; every destination resolves, and none points to a removed heading in a rewritten English answer.

For the suggested data-only discovery gate: existing translations already have TOCs, so TOC presence does not establish that their content has been updated. I retained the English guard for the new discovery controls. The Start here destinations are now content data, and the shared breadcrumb markup gives every language localized navigation semantics without changing its existing category inventory.

DCO is successful on ffdb25f, and the Signed-off-by trailer is preserved. The previous head's Zola/Markdown checks passed. On the new head, the local Zola build, five navigation tests, targeted template fixtures, 418 internal link/anchor checks and mobile/desktop browser checks all pass, including expanded TTS comparisons and all three screenshots. The new GitHub Actions run is currently queued: https://github.com/organicmaps/website/actions/runs/42309408660 . Its results still need to be green before merging.

@vng vng 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.

Review of d65762e (rebased on master 2cd1007; CI, DCO and the Cloudflare preview are green).

Previous threads: all four earlier threads were fixed and are already resolved. I found no outdated comments or commit text. The docs in .github/copilot-instructions.md and README.md match the code, and CLAUDE.md/AGENTS.md are symlinks to that file.

Fix here

  • The fixtures described in the PR text (Start here rename, brand handling, breadcrumbs) are not committed; see the inline comment on tools/test_navigation.py.

Optional / non-blocking

  • Long question titles lose the brand to SERP truncation (base.html).
  • The subquestion lists are duplicated on /faq/ and the term pages (_questions.html).
  • The English-only strings could become trans() keys when #260 starts (list.html).
  • The unquoted glob in test:browser is a portability nit (package.json).

Pre-existing, can go to separate PRs: none found in the touched code.

Not verified: zola is not installed in this sandbox, so I did not build the site or run the tests locally. I reviewed the diff and relied on the green CI. The FAQ content was only spot-checked, by frontmatter (taxonomies, order, preserved slug/aliases); I did not read every answer for accuracy.


Generated by Claude Code

Comment thread tools/test_navigation.py Resolved
Comment thread templates/faq/list.html Resolved
Comment thread templates/base.html Resolved
Comment thread package.json Resolved
Comment thread templates/faq/_questions.html Resolved
@biodranik
biodranik requested a review from vng November 8, 2026 22:03

@vng vng 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.

Review of c0a1cb2. CI is green (Zola build, markdown/translations, DCO); Cloudflare Pages was still running. I could not build Zola locally, so these findings come from reading the diff.

The 5 earlier open threads still apply: the test gap for titles and breadcrumbs, trans() keys for the English-only labels, <title> length, the unquoted test:browser glob, and the duplicate _questions.html on /faq/. This review adds:

Fix here

  • extra.order is duplicated within map (10 ×3, 20 ×2) and app (30 ×2), so listing order is not deterministic.
  • Embedded-FAQ ID rewriting is unguarded. Add a duplicate-ID assertion to the browser test.

Simplify (optional)

  • Extract the 9× repeated lang | replace(-Hans) | replace(-IR) in embedded-faq.html into one variable.
  • Share the offline-server helper between faq_browser.test.cjs and donate_browser.test.cjs.

Notes

  • The hash-skips-redirect rule in language_redirect.html is intentionally coarse and should say so.
  • faq/_index.md body mixes template notes into a non-rendered page.

The Russian and Ukrainian slugs, aliases and anchors are untouched, and I found nothing pre-existing worth splitting out.


Generated by Claude Code

Comment thread templates/faq/embedded-faq.html Resolved
Comment thread templates/faq/embedded-faq.html Resolved
Comment thread templates/language_redirect.html Resolved
Comment thread tools/faq_browser.test.cjs Resolved
Comment thread content/faq/_index.md Resolved
@biodranik
biodranik requested a review from vng November 8, 2026 22:52

@vng vng 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.

Review of 7084dd7. CI is green and all earlier threads are resolved. I found no blocking bugs. I could not run Zola or the tests here, so this is a read-through of the diff, the templates and a sample of the English answers.

Fix here

  • Roadmap and 3D-terrain answers hard-code release status ("merge expected soon", "Almost ready"). They go stale on the next merge and are duplicated across EN, RU and UK (see inline).

Optional / follow-up

  • Embedded FAQ: prefix all translated heading IDs, not only the self-linked ones.
  • Browser test mock: add missing MIME types and a path-containment assert, ideally in a shared helper with donate_browser.test.cjs.
  • Clarify that the FAQ hash guard in language_redirect.html is deliberately coarse.

Pre-existing, can go in separate PRs

  • Duplicate heading IDs in the combined embedded document.
  • content/faq/linux/how-to-use-flatpak has no updated: field.
  • Long question titles (about 80 characters; three over 75) are truncated in search results. This was discussed in an earlier thread and left as is.

Alternatives considered

  • Moving the discovery strings to trans() keys: deferred to #260, which is fine while the English-only guard stays.
  • Dropping _questions.html from /faq/: the author kept it deliberately, for browser Find.

Generated by Claude Code

Comment thread templates/faq/_embedded_content.html Resolved
Comment thread tools/faq_browser.test.cjs Resolved
Comment thread templates/language_redirect.html Resolved
@biodranik
biodranik requested a review from vng November 9, 2026 10:15

@vng vng 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.

Review of d78e450: all 19 earlier threads are addressed and resolved, and Zola build, markdown/translation checks, DCO and Cloudflare Pages are green. I could not run Zola locally (not installed), so this review is based on reading the diff and the thread history.

Fix here (minor)

  • templates/faq/_embedded_content.html: the heading-prefix loop only visits top-level toc entries (see inline comment). It is latent today.

Optional / can be separate PRs

  • Pre-existing: the 8 duplicate heading IDs in the combined embedded document remain. A recursive per-language prefix would make the document unique by construction, but it changes published embedded fragment URLs, so it needs its own migration.
  • Already deferred by the author (tracked under #260 or as test cleanup): translation keys for "Browse topics" and the "FAQ topics" aria-label, and a shared helper for the browser-test mock server.

No correctness regressions found in the templates, redirect guard, title branding, or breadcrumbs. Commit messages and code comments describe the current behavior.


Generated by Claude Code

Comment thread templates/faq/_embedded_content.html Resolved

@yanatalia yanatalia left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Reviewed the first part and left suggestions. I’ll go through the remaining files in a follow-up review.

@vng vng 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.

Review of c0fb588. I built the site with Zola 0.23.4 and ran everything locally: the build, 10 template tests, 13 browser tests, 26 tooling tests and 185 round-trip checks all pass. CI is green, and all 40 earlier threads were already resolved, so there was nothing to resolve.

Fix here

  1. RU/UK can-not-find-position has a bumped updated date but the old body, so the translation-status table shows it as current (inline).
  2. The app-bundled embedded FAQ went from 3 to 43 website links in its English content; 9 of the targets are answers bundled in the same document. A validated template fix is inline.

Simplify / alternatives (optional)

  • Linux-last ordering: a config list replaces the Flatpak-article lookup and the second hard-coded rule in translation_status.html, with identical built output (inline, with pros and cons).
  • One is_faq flag in base.html instead of the condition repeated four times (same inline comment).

Nits (inline)

  • The compass answer links to itself.
  • Hard-coded /news/ links.
  • CarPlay and Android Auto sit under "Voice directions".
  • Repeated sentences in the hiking answer.

Pre-existing, can go in separate PRs

  • _jsonld_faq.html emits one Question (the page title) with the whole page as its answer. Answers now group several H2 questions, so those subquestions are not exposed as structured data. Tera cannot split page.content cleanly, so this needs its own design.
  • The Ukrainian category мітки-та-маршрути ("bookmarks and routes") now sits next to the new маршрути-та-навігація, while the new Ukrainian titles say "треки". Renaming it changes a published URL and needs a redirect.
  • 11 RU/UK answers (the list is in the first inline comment) still translate the previous English text. They are dated correctly, apart from item 1.

Not verified

  • Factual accuracy of app behaviour in the answers (menu names, release features). I read all 47 English answers for consistency and links only.
  • The new RU/UK translations were scanned mechanically (terminology, register, quotes, ё, localized links) and came out clean; they were not proofread line by line.
  • My local translation report shows 1380/1898 clean pages; the description says 1381. I ran it on Python 3.11 and did not chase the one-page difference.

Generated by Claude Code

Comment thread templates/faq/_embedded_content.html Resolved
Comment thread templates/base.html Resolved
Comment thread content/faq/voice/carplay/index.md Resolved
@biodranik biodranik changed the title Expand English FAQ and improve answer discovery Expand FAQ and improve localized navigation and car help Nov 15, 2026
State the wired Android Auto requirement and point readers to Google’s
compatibility details. Describe transit itinerary previews and the
modes that support Start. Link to the localized Android Auto answer
from the device requirements FAQ.

Signed-off-by: Alexander Borsuk <me@alex.bio>
Cover offline maps, location, saved data, map editing, troubleshooting
and integrations. Document the November release and use shared section
IDs and aliases for linked headings.

Signed-off-by: Alexander Borsuk <me@alex.bio>
Explain route planning, stop order, route alternatives and public
transport itinerary previews. Give Android Auto and Apple CarPlay
dedicated topics and describe the supported setup for each.

Signed-off-by: Alexander Borsuk <me@alex.bio>
Add Start here, topic shortcuts and subquestion links. Keep language
switches on shared fragments, use compact breadcrumbs for complete
inventories, and redirect both URL forms of the Ukrainian bookmarks
category to its canonical destination.

Signed-off-by: Alexander Borsuk <me@alex.bio>
Resolve localized FAQ links to bundled answers and shared headings.
Handle legacy fragments and malformed language parameters in the
visible locale. Trim template whitespace from the app asset.

Signed-off-by: Alexander Borsuk <me@alex.bio>
Validate FAQ metadata, translations, topic IDs and published paths.
Exercise language changes, local-file navigation and checkout in the
browser suite. Document the FAQ publishing workflow.

Signed-off-by: Alexander Borsuk <me@alex.bio>

This branch was successfully deployed

1 active deployment
production — 5748ef46 Deployed Nov 18, 2026 by biodranik via Check Zola build #1289
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.

3 participants