Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions src/utils/plugins/buildPluginPageProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,20 @@ export function buildPluginPageProps(input: BuildPluginPagePropsInput) {
)
})()

// Title of the plugin/subgroup container this page belongs to, e.g.
// "AWS S3", "Google Cloud BigQuery", "PostgreSQL".
const containerTitle =
(rootPlugin
? getPluginTitle(currentSubgroupPlugin ?? rootPlugin, metadataMap)
: undefined) ?? pluginName

// Task pages prefix the bare class name with their container title (e.g.
// "AWS S3 Trigger") so <title> and <h1> are unique and descriptive. Without
// this, every plugin's "Trigger"/"Query"/"Create"/"Delete" task shared the
// same short, duplicated title across hundreds of pages.
const headingTitle = pluginType
? formatElementName(pluginType)
: ((rootPlugin
? getPluginTitle(currentSubgroupPlugin ?? rootPlugin, metadataMap)
: undefined) ?? pluginName)
? `${containerTitle} ${formatElementName(pluginType)}`
: containerTitle

const rootPluginTitle = rootPlugin
? getPluginTitle(rootPlugin, metadataMap)
Expand Down
Loading