Skip to content

Fixes duplicate form while replying to Comment#267

Open
rohnsha0 wants to merge 3 commits intomainfrom
rohnsha0/issue#88
Open

Fixes duplicate form while replying to Comment#267
rohnsha0 wants to merge 3 commits intomainfrom
rohnsha0/issue#88

Conversation

@rohnsha0
Copy link
Member

@rohnsha0 rohnsha0 commented Jun 1, 2025

fixes #88
image

@rohnsha0 rohnsha0 requested review from jensens and tkimnguyen June 1, 2025 02:46
@mister-roboto
Copy link

@rohnsha0 thanks for creating this Pull Request and helping to improve Plone!

TL;DR: Finish pushing changes, pass all other checks, then paste a comment:

@jenkins-plone-org please run jobs

To ensure that these changes do not break other parts of Plone, the Plone test suite matrix needs to pass, but it takes 30-60 min. Other CI checks are usually much faster and the Plone Jenkins resources are limited, so when done pushing changes and all other checks pass either start all Jenkins PR jobs yourself, or simply add the comment above in this PR to start all the jobs automatically.

Happy hacking!

@rohnsha0 rohnsha0 changed the title Fixes duplicate form while replying to msg Fixes duplicate form while replying to Comment Jun 1, 2025
@rohnsha0 rohnsha0 requested a review from davisagli June 3, 2025 00:47
</div>

<!-- JavaScript to handle dynamic form label updates -->
<script type="text/javascript">
Copy link
Member

Choose a reason for hiding this comment

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

We should update the code in https://github.com/plone/mockup/blob/master/src/pat/controlpanels/discussion-comments--implementation.js (then release it in plone.staticresources), not add a script to every page that uses comments.

Copy link
Member Author

Choose a reason for hiding this comment

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

@davisagli I am unable to test out changes made in mockup repo locally using buildout.coredev... I have already implemented some fix but unable to test it out

Is there some other docs to test the changes?!

Copy link
Member

Choose a reason for hiding this comment

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

@rohnsha0 I am not up to date on the current processes for developing javascript for Classic UI, since I'm only working on Volto sites these days.

There is some information in https://github.com/plone/plone.staticresources?tab=readme-ov-file#how-to-upgrade-the-resources-in-this-package (which is where the mockup scripts are built and released to be used in Plone) and in https://github.com/plone/mockup?tab=readme-ov-file#development

If you have questions maybe @thet or @petschki can help, or ask in the Classic UI channel on Discord.

Copy link
Member

Choose a reason for hiding this comment

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

@davisagli I am unable to test out changes made in mockup repo locally using buildout.coredev... I have already implemented some fix but unable to test it out

Is there some other docs to test the changes?!

@rohnsha0 to test local mockup changes please check out the Development section of the readme: https://github.com/plone/mockup?tab=readme-ov-file#development ... feel free to contact me on discord if you need help.

init();
}
})();
</script>
Copy link
Member

Choose a reason for hiding this comment

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

This sounds like a perfect task for pat-inject which is shipped with Classic-UI ... see its documentation here: https://patternslib.com/demos/inject

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.

Сlick Reply -> duplicate fields

4 participants