Skip to content

KER-601 | show existing comments when commenting is not ongoing#1277

Merged
jorilindell merged 3 commits intomainfrom
KER-601-show-old-comments
Apr 13, 2026
Merged

KER-601 | show existing comments when commenting is not ongoing#1277
jorilindell merged 3 commits intomainfrom
KER-601-show-old-comments

Conversation

@jorilindell
Copy link
Copy Markdown
Contributor

Summary

This PR fixes comment visibility in closed/non-commenting sections.

If a section already has comments, the comment section is now rendered
even when commenting is set to none. This keeps previously added comments
visible instead of hiding them.

Main change

  • Render existing comments when comments exist, regardless of commenting
    mode being none.
  • Prevents old discussion context from disappearing in read-only state.

Extra changes in branch

  • Add packageManager field to package metadata.
  • Await userEvent.click in tests to reduce async test flakiness.

Refs: KER-601

userEvent.click is asynchronous in @testing-library/user-event v14+,
so it must be awaited to ensure interactions are fully processed before
assertions run.

Refs: KER-601
Render the comment section when comments already exist, even if
section.commenting is none. This keeps old comments visible.

Refs KER-601
@jorilindell jorilindell force-pushed the KER-601-show-old-comments branch from 9faf580 to 9c88eeb Compare April 13, 2026 09:59
@sonarqubecloud
Copy link
Copy Markdown

@azure-pipelines
Copy link
Copy Markdown

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1277-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link
Copy Markdown

e2e tests result is success for https://kerrokantasi-pr1277-ui.dev.hel.ninja 😆🎉🎉🎉

@jorilindell jorilindell marked this pull request as ready for review April 13, 2026 10:27
@jorilindell jorilindell requested a review from a team as a code owner April 13, 2026 10:27
@azure-pipelines
Copy link
Copy Markdown

KERROKANTASI-UI branch is deployed to platta: https://kerrokantasi-pr1277-ui.dev.hel.ninja 🚀🚀🚀

@azure-pipelines
Copy link
Copy Markdown

e2e tests result is success for https://kerrokantasi-pr1277-ui.dev.hel.ninja 😆🎉🎉🎉

@jorilindell jorilindell merged commit fbe31b3 into main Apr 13, 2026
30 checks passed
@jorilindell jorilindell deleted the KER-601-show-old-comments branch April 13, 2026 10:51
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