Skip to content

Fix comment cell to not show reply button when passing MAX_DEPTH#14291

Merged
andreslucena merged 4 commits intodecidim:developfrom
i-need-another-coffee:fix/reply_on_max_depth_comment
Mar 18, 2025
Merged

Fix comment cell to not show reply button when passing MAX_DEPTH#14291
andreslucena merged 4 commits intodecidim:developfrom
i-need-another-coffee:fix/reply_on_max_depth_comment

Conversation

@robertluca-publicis
Copy link
Copy Markdown
Contributor

@robertluca-publicis robertluca-publicis commented Mar 13, 2025

🎩 What? Why?

Reply button is available on comments at MAX_DEPTH and the reply will fail because of the depth validation on the comment model.

📌 Related Issues

Testing

  1. Sign in as a admin
  2. Go to a proposal page
  3. Reply to a comments
  4. Reply to the previous reply
  5. Reply to the last reply
  6. Should not see reply button on the max depth comment

♥️ Thank you!

@github-actions github-actions bot added module: comments type: fix PRs that implement a fix for a bug labels Mar 13, 2025
@alecslupu alecslupu self-assigned this Mar 13, 2025
github-actions[bot]
github-actions bot previously approved these changes Mar 13, 2025
alecslupu
alecslupu previously approved these changes Mar 13, 2025
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu left a comment

Choose a reason for hiding this comment

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

👍

I could replicate the behavior on Nightly, but i could not replicate it on my local. Maybe @greenwoodt has more success.

@alecslupu alecslupu requested a review from greenwoodt March 13, 2025 11:49
@alecslupu alecslupu assigned greenwoodt and unassigned alecslupu Mar 13, 2025
@alecslupu alecslupu added release: v0.29 Issues or PRs that need to be tackled for v0.29 release: v0.30 Issues or PRs that need to be tackled for v0.30 labels Mar 13, 2025
@alecslupu alecslupu dismissed stale reviews from github-actions[bot] and themself via 679bd81 March 13, 2025 14:32
Copy link
Copy Markdown
Member

@greenwoodt greenwoodt left a comment

Choose a reason for hiding this comment

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

LGTM

@alecslupu alecslupu assigned andreslucena and unassigned greenwoodt Mar 18, 2025
@alecslupu alecslupu requested a review from andreslucena March 18, 2025 09:40
@andreslucena andreslucena changed the title Fix Comment cell to not show reply button when depth eq MAX_DEPTH Fix comment cell to not show reply button when passing MAX_DEPTH Mar 18, 2025
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

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

Great job here too @robertluca-publicis!!

very-good

@andreslucena andreslucena merged commit 9b43b35 into decidim:develop Mar 18, 2025
64 of 65 checks passed
@alecslupu alecslupu removed the release: v0.29 Issues or PRs that need to be tackled for v0.29 label Mar 18, 2025
@alecslupu alecslupu added the release: v0.29 Issues or PRs that need to be tackled for v0.29 label Mar 18, 2025
entantoencuanto added a commit that referenced this pull request Mar 20, 2025
* feature/signature_workflows:
  Add documentation for signature handler encryption secret and rename environment variable
  Rename method
  Fix title on spec for the 'Create new proposal' page (#14347)
  Fix WCAG search filters navigation (#14014)
  Fix comment cell to not show reply button when passing MAX_DEPTH (#14291)
  Fix editing comment with max length setting (#14275)
  Add title tag on pages for blogs, debates and meetings (#14110)
  Fix white bottom on proposal show with voting (#14285)
  New Crowdin updates (#14318)
  New Crowdin updates (#14217)
  Fix image missing error (#14175)
  Add delay of `spam_analysis` queue (#14304)
  Fix hide comment from interface (#14301)
  Change "Valuator" for "Evaluator" (#13684)
  Fix QR code generation (#14300)
  Patch backporter action (#14292)
  Change `hide_voting` argument on proposal cell to `show_voting` (#14267)
@alecslupu alecslupu deleted the fix/reply_on_max_depth_comment branch March 20, 2025 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: comments release: v0.29 Issues or PRs that need to be tackled for v0.29 release: v0.30 Issues or PRs that need to be tackled for v0.30 type: fix PRs that implement a fix for a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Comment creation error in 5th level

4 participants