feat(gui): inline Help popover next to every tool's title
Adds a contextual Help button on each detail page, right of the title. Clicking it opens a Streamlit popover with a one-shot how-to: when to use, numbered steps, before→after examples, and an optional one-line tip. Designed to be scannable — no paragraph prose. Implementation: - New ``render_tool_header(tool_id)`` helper in components replaces the bare ``st.title(...) + st.caption(...)`` block on each of the 11 tool pages. Title in the wide column, popover in a narrow right column; caption sits on its own line beneath. - Help content is one markdown blob per tool stored in i18n under ``tools.<id>.help_md`` (en + es). Editors can tweak copy without touching Python. - ``help.button_label`` and ``help.missing_body`` keys added to both packs for the popover trigger and the empty-tool fallback. All 11 tool pages now use the same header pattern — including the PDF Extractor and Reconciler which previously had hardcoded title/ caption pairs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -17,6 +17,7 @@ if str(_project_root) not in sys.path:
|
||||
from src.gui.components import (
|
||||
back_to_home_link,
|
||||
render_sticky_footer,
|
||||
render_tool_header,
|
||||
hide_streamlit_chrome,
|
||||
html_download_button,
|
||||
pickup_or_upload,
|
||||
@@ -43,8 +44,7 @@ require_feature_or_render_upgrade(FeatureFlag.FORMAT_STANDARDIZER)
|
||||
# Header
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
st.title(t("tools.03_format_standardizer.page_title"))
|
||||
st.caption(t("tools.03_format_standardizer.page_caption"))
|
||||
render_tool_header("03_format_standardizer")
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user