Skip to content

fix: make summit names link to edit page - #1148

Draft
ako3131 wants to merge 1 commit into
masterfrom
feat/add-linkable-cells
Draft

ako3131 wants to merge 1 commit into
masterfrom
feat/add-linkable-cells

Conversation

@ako3131

@ako3131 ako3131 commented Nov 3, 2026

Copy link
Copy Markdown

ref: https://app.clickup.com/t/9014802374/86bcxpx52

Summary

Summit names on the summit directory page are now links to the summit's edit page. They use the new linkable cells from uicore (OpenStackweb/openstack-uicore-foundation#381).

  • The name column sets getHref, but only when the user can edit summits. Otherwise it stays plain text.
  • onNavigate sends plain clicks through history.push, so there's no page reload. Ctrl/Cmd-click and middle-click still open a new tab.
  • The edit and dashboard URLs now live in summitEditUrl / summitDashboardUrl, so the link and the existing handlers share them.

Depends on

uicore#381 merged and published, plus an openstack-uicore-foundation version bump in this PR.

@ako3131
ako3131 requested a balanced review from Copilot November 3, 2026 23:02
@ako3131 ako3131 self-assigned this Nov 3, 2026
@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The pinned dependency lacks the required link support, and the proposed links would also lack a persistent visual indicator.

2 open issues
What changed in this PR

Adds permission-aware summit-name links to the directory, using uicore’s linked-cell API to navigate to summit editing.

Changes:

  • Configures name links only for users who can edit summits.
  • Routes plain clicks through history.push, delegating modified-click behavior to uicore.
  • Shares edit and dashboard URL helpers with existing navigation handlers.
File Description
src/​pages/​summits/​summit-directory-page.js Adds conditional name links, navigation handling, and shared URL helpers.

Review effort: Balanced

{
columnKey: "name",
header: T.translate("directory.summit_name"),
getHref: canEditSummit ? summitEditUrl : undefined,
getHref: canEditSummit ? summitEditUrl : undefined,
render: (row) => (
<>
<div>{row.name}</div>
@ako3131
ako3131 force-pushed the feat/add-linkable-cells branch from f3bedc9 to ac812f7 Compare November 13, 2026 22:34
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.

2 participants