remove most subtitles
This commit is contained in:
parent
d8f2e03d36
commit
947ef8e833
7 changed files with 13 additions and 46 deletions
|
|
@ -92,7 +92,6 @@ def sources_table(
|
|||
return table_section(
|
||||
eyebrow="Inventory",
|
||||
title="Sources",
|
||||
subtitle="Configured feed and Pangea sources live here as tables, with clear schedule and job state visibility instead of card-based CRUD.",
|
||||
headers=("Source", "Type", "Upstream", "Schedule", "Job state", "Actions"),
|
||||
rows=rows,
|
||||
actions=header_action_link(href="/sources/create", label="Create source"),
|
||||
|
|
@ -106,7 +105,6 @@ def sources_page(
|
|||
current_path="/sources",
|
||||
eyebrow="Source management",
|
||||
title="Sources",
|
||||
description="Configured feed and Pangea sources live here as tables, with clear schedule and job state visibility instead of card-based CRUD.",
|
||||
actions=header_action_link(href="/sources/create", label="Create source"),
|
||||
content=sources_table(sources=sources),
|
||||
)
|
||||
|
|
@ -122,11 +120,6 @@ def source_form(
|
|||
slug = _value(source, "slug")
|
||||
title = "Source and job setup" if mode == "create" else "Edit source"
|
||||
eyebrow = "Create" if mode == "create" else "Edit"
|
||||
description = (
|
||||
"Create the source and its paired job record."
|
||||
if mode == "create"
|
||||
else "Update the existing source and its paired job record."
|
||||
)
|
||||
status_label = "New source" if mode == "create" else "Existing source"
|
||||
submit_label = "Create source" if mode == "create" else "Save changes"
|
||||
initial_signals = "{sourceType: 'pangea'}"
|
||||
|
|
@ -143,7 +136,6 @@ def source_form(
|
|||
class_="text-xs font-semibold uppercase tracking-[0.22em] text-amber-600"
|
||||
)[eyebrow],
|
||||
h.h2(class_="mt-2 text-xl font-semibold text-slate-950")[title],
|
||||
h.p(class_="mt-2 max-w-3xl text-sm text-slate-600")[description],
|
||||
],
|
||||
status_badge(label=status_label, tone="scheduled"),
|
||||
],
|
||||
|
|
@ -215,9 +207,6 @@ def source_form(
|
|||
h.h3(class_="mt-2 text-lg font-semibold text-slate-950")[
|
||||
"Feed settings"
|
||||
],
|
||||
h.p(class_="mt-2 text-sm text-slate-600")[
|
||||
"Shown only when the source type is set to feed."
|
||||
],
|
||||
],
|
||||
h.div(class_="grid gap-4 md:grid-cols-2")[
|
||||
input_field(
|
||||
|
|
@ -240,9 +229,6 @@ def source_form(
|
|||
h.h3(class_="mt-2 text-lg font-semibold text-slate-950")[
|
||||
"Pangea settings"
|
||||
],
|
||||
h.p(class_="mt-2 text-sm text-slate-600")[
|
||||
"Shown only when the source type is set to pangea."
|
||||
],
|
||||
],
|
||||
h.div(class_="grid gap-4 lg:grid-cols-3")[
|
||||
input_field(
|
||||
|
|
@ -414,7 +400,6 @@ def create_source_page(*, action_path: str = "/actions/sources/create") -> Rende
|
|||
current_path="/sources/create",
|
||||
eyebrow="Source creation",
|
||||
title="Create source",
|
||||
description="Create a new source and its paired job configuration.",
|
||||
actions=actions,
|
||||
content=source_form(mode="create", action_path=action_path),
|
||||
)
|
||||
|
|
@ -434,7 +419,6 @@ def edit_source_page(
|
|||
current_path=f"/sources/{slug}/edit",
|
||||
eyebrow="Source editing",
|
||||
title="Edit source",
|
||||
description="Update an existing source and its paired job configuration.",
|
||||
actions=actions,
|
||||
content=source_form(mode="edit", action_path=action_path, source=source),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue