Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(content-sidebar): remove dependency on isSignRemoveInterstitialEnabled #3734

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

diogostavares
Copy link
Contributor

@diogostavares diogostavares commented Nov 4, 2024

The isSignRemoveInterstitialEnabled feature flag was recently cleaned up on the application side, causing a production defect due to a dependency in this components. This PR removes the dependency in BUIE components to align with the application.

Also uses sign config in the primary props instead of feature props

@diogostavares diogostavares requested a review from a team as a code owner November 4, 2024 15:18
@greg-in-a-box greg-in-a-box changed the title fix(preview): remove dependency on isSignRemoveInterstitialEnabled fix(content-sidbar): remove dependency on isSignRemoveInterstitialEnabled Nov 4, 2024
@greg-in-a-box greg-in-a-box changed the title fix(content-sidbar): remove dependency on isSignRemoveInterstitialEnabled fix(content-sidebar): remove dependency on isSignRemoveInterstitialEnabled Nov 4, 2024
JChan106
JChan106 previously approved these changes Nov 4, 2024
GonchuB
GonchuB previously approved these changes Nov 5, 2024
Copy link

@GonchuB GonchuB left a comment

Choose a reason for hiding this comment

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

One question and one small followup, if possible (can be another PR)

JChan106
JChan106 previously approved these changes Nov 5, 2024
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from 1020007 to bdba5eb Compare November 6, 2024 11:51
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from bdba5eb to 3b5d387 Compare November 6, 2024 12:08
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from 3b5d387 to a982541 Compare November 6, 2024 16:47
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch 2 times, most recently from f4855fe to 8fd8f2e Compare November 6, 2024 17:22
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from 8fd8f2e to ba55f34 Compare January 10, 2025 09:55
@diogostavares diogostavares requested a review from a team as a code owner January 10, 2025 09:55
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch 2 times, most recently from b0d2d93 to 8a40819 Compare January 14, 2025 10:48
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch 3 times, most recently from cbf2ac3 to f54b7ad Compare January 14, 2025 15:10
}: Props) => {
const { enabled: hasBoxSign } = useFeatureConfig('boxSign');
const { enabled: hasBoxSign } = signSideBarProps || {};
Copy link
Contributor

Choose a reason for hiding this comment

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

is there a permission via the user that enables this feature too ?

Copy link
Contributor Author

@diogostavares diogostavares Jan 17, 2025

Choose a reason for hiding this comment

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

Yes, there is a user permission controlled by the admin that enables/disables signing. This is reflected in the enabled property sent by EUA

@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from f54b7ad to 8aed68f Compare January 17, 2025 11:23
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch from 8aed68f to 60f54fc Compare January 30, 2025 14:08
greg-in-a-box
greg-in-a-box previously approved these changes Feb 3, 2025
Copy link
Contributor

@greg-in-a-box greg-in-a-box left a comment

Choose a reason for hiding this comment

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

approved but this feature has remain undocumented, normally all props at the root level is usable by 3rd customers sine this feature is only enabled by a flag and additional unknown permissions internally, we cant guarantee the 3rd party customers will be able to use it.

Copy link
Contributor

@tjuanitas tjuanitas left a comment

Choose a reason for hiding this comment

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

some minor things I think worth cleaning up

@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch 2 times, most recently from 6e7c952 to bf63860 Compare February 11, 2025 09:07
@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch 2 times, most recently from 7d214a8 to 6ba3efd Compare February 18, 2025 09:44
tjuanitas
tjuanitas previously approved these changes Feb 18, 2025
Copy link
Contributor

@tjuanitas tjuanitas left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -25,11 +25,11 @@ export type Props = PlainButtonProps & {

export const PlaceholderTooltip = ({ children }: { children: React.ReactNode }) => children;

export function SidebarNavSignButton({ blockedReason, intl, status, targetingApi, ...rest }: Props) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can status be removed from prop type?

Copy link
Contributor Author

@diogostavares diogostavares Feb 19, 2025

Choose a reason for hiding this comment

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

yes, is safe to remove it. Updated

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.

5 participants