Skip to content

added special page_title display handling for incubator pages so visi…#112

Merged
zache-fi merged 1 commit intomainfrom
111-fix-incubator-display-title
Apr 21, 2026
Merged

added special page_title display handling for incubator pages so visi…#112
zache-fi merged 1 commit intomainfrom
111-fix-incubator-display-title

Conversation

@zache-fi
Copy link
Copy Markdown
Collaborator

…ble labels of "Wp/sms/Some name" will convert to "Some name".

Description

Change will render incubator page titles as "Maija Meikäläinen" instead of "Wp/sms/Maija Meikäläinen".

#111

What type of PR is this? (check all applicable)

  • 🍕 Feature

Related Tickets & Documents

Tested?

  • 👍 yes

Added to documentation?

  • 🙅 no documentation needed

…ble labels of "Wp/sms/Some name" will convert to "Some name".
@zache-fi zache-fi linked an issue Apr 19, 2026 that may be closed by this pull request
@DiFronzo DiFronzo requested a review from Copilot April 21, 2026 12:49
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves how article titles are displayed in contribution summaries by hiding the Incubator prefix (e.g. rendering Wp/sms/Maija Meikäläinen as Maija Meikäläinen) while keeping the underlying links intact.

Changes:

  • Added Article.display_name to derive a human-friendly title for Incubator pages.
  • Updated contribution summary formatting to use display_name as the visible link label (with a guard to preserve the existing non-piped link formatting when appropriate).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
ukbot/contributions.py Uses article.display_name for the displayed label in contribution summaries.
ukbot/article.py Introduces display_name property with Incubator-specific prefix trimming logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread ukbot/article.py
Comment thread ukbot/contributions.py
Copy link
Copy Markdown
Member

@DiFronzo DiFronzo left a comment

Choose a reason for hiding this comment

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

LGTM

@zache-fi zache-fi merged commit d20cf80 into main Apr 21, 2026
4 checks passed
@zache-fi zache-fi deleted the 111-fix-incubator-display-title branch April 21, 2026 16:08
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.

Fix incubator display title

3 participants