Skip to content

[Tan-8101] hide like/dislike btns in idea if reacting to inputs disabled#14251

Open
Stef-Rousset wants to merge 6 commits into
masterfrom
TAN-8101-hide-like-btns-if-reacting-to-inputs-disabled
Open

[Tan-8101] hide like/dislike btns in idea if reacting to inputs disabled#14251
Stef-Rousset wants to merge 6 commits into
masterfrom
TAN-8101-hide-like-btns-if-reacting-to-inputs-disabled

Conversation

@Stef-Rousset

Copy link
Copy Markdown
Contributor

Changelog

Fixed

  • if idea is active and reacting to inputs is disabled, always hide like/dislike btns.

For translators

@notion-workspace

Copy link
Copy Markdown

@Stef-Rousset Stef-Rousset force-pushed the TAN-8101-hide-like-btns-if-reacting-to-inputs-disabled branch from 7a4aa2d to 9a71222 Compare July 9, 2026 15:10
@cl-dev-bot

cl-dev-bot commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator
Warnings
⚠️ The PR title contains no Jira issue key (case-sensitive)
Messages
📖 Changelog provided 🎉
📖 Notion issue: TAN-8101
📖

Run the e2e tests

📖 Check translation progress

Generated by 🚫 dangerJS against 2ab1f72

@Stef-Rousset Stef-Rousset requested a review from IvaKop July 10, 2026 10:06
@Stef-Rousset Stef-Rousset marked this pull request as ready for review July 10, 2026 10:06

cy.apiSignup(firstName, lastName, email, password);
cy.setLoginCookie(email, password);
cy.apiUpdatePhase({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would suggest creating a new phase rather than updating an existing one. You would also not have to hard reload in this case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hello Iva, thx for your review, I have applied your suggestion !

@IvaKop IvaKop left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good job! Some small comments to address.

Comment thread front/cypress/e2e/idea_card.cy.ts Outdated

describe('Reaction to input disabled', () => {
before(() => {
cy.apiUpdatePhase({

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I would suggest creating a new phase rather than updating an existing one. You would also not have to hard reload in this case.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done !

const cancellingEnabled = reactingActionDescriptor.cancelling_enabled;
// hide like/dislike buttons if Reacting to inputs is disabled
// and idea is in active phase (disabled_reason equals reacting_disabled)
if (!reactingActionDescriptor.enabled && reactingActionDescriptor .disabled_reason === 'reacting_disabled') {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In the context of a react component, if you want to return early and not render it, it is better to return null.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done !

@Stef-Rousset Stef-Rousset force-pushed the TAN-8101-hide-like-btns-if-reacting-to-inputs-disabled branch from 9a71222 to 23a952e Compare July 13, 2026 10:02
@Stef-Rousset Stef-Rousset requested a review from IvaKop July 15, 2026 06:49
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.

3 participants