LearnNewsExamplesServices
Frontmatter
id8461
titleFix Portal Release buttons missing text due to missing name field
stateClosed
labels
airefactoring
assigneestobiu
createdAtJan 9, 2026, 12:37 PM
updatedAtJan 9, 2026, 12:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/8461
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 9, 2026, 12:48 PM

Fix Portal Release buttons missing text due to missing name field

Closed v11.19.1 airefactoring
tobiu
tobiu commented on Jan 9, 2026, 12:37 PM

The Portal App's PageContainer (shared view) currently hardcodes the property name to populate the text of the 'Previous' and 'Next' navigation buttons. However, Portal.model.Release does not use name, but relies on id or title for identification, and we want to use id for the button text in this context.

Fix:

  1. Refactor PageContainer: Introduce a buttonTextField config (defaulting to 'name') to allow customizing which field is used for button text.
  2. Pass Config: Ensure this config is passed down from Portal.view.shared.content.Container.
  3. Configure Releases: In Portal.view.news.release.MainContainer, set buttonTextField to 'id'.
  4. Clean up StateProvider: Remove unused previousPageText and nextPageText variables in Portal.view.news.release.MainContainerStateProvider.
tobiu added the ai label on Jan 9, 2026, 12:37 PM
tobiu added the refactoring label on Jan 9, 2026, 12:37 PM
tobiu referenced in commit 8ff67ed - "fix: Restore Portal Release navigation button text (#8461)" on Jan 9, 2026, 12:47 PM
tobiu assigned to @tobiu on Jan 9, 2026, 12:48 PM
tobiu
tobiu Jan 9, 2026, 12:48 PM

Input from tobiu:

◆ Refactoring complete.

Changes Implemented:

  1. Portal.view.shared.content.PageContainer:
    • Added buttonTextField config (default: 'name').
    • Updated afterSetNextPageRecord and afterSetPreviousPageRecord to use dynamic field access.
  2. Portal.view.shared.content.Container:
    • Added buttonTextField config.
    • Passed it down to the PageContainer item in construct().
  3. Portal.view.news.release.MainContainer:
    • Set buttonTextField: 'id' to correctly display release versions (e.g., "11.19.0") instead of undefined.
  4. Portal.view.news.release.MainContainerStateProvider:
    • Cleaned up unused nextPageText and previousPageText variables.

This restores the navigation button text for Release Notes while maintaining the correct behavior for other content types (like Guides) that rely on the default name field.

tobiu closed this issue on Jan 9, 2026, 12:48 PM