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 2 commits 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, as follow up of this PR in EUA: https://git.dev.box.net/Box/EndUserApp/pull/12002. Slack discussion here: https://box.slack.com/archives/C6A28LPU6/p1730797218546929.

@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
const FtuxTooltip = !isSignDisabled && isTargeted ? TargetedClickThroughGuideTooltip : PlaceholderTooltip;
const label = intl.formatMessage(status === 'active' ? messages.boxSignSignature : messages.boxSignRequest);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

removed this check because status property is not being passed anymore from EUA

@diogostavares diogostavares force-pushed the remove-removeInterstitial-ff-dependency branch 3 times, most recently from cbf2ac3 to f54b7ad Compare January 14, 2025 15:10
@@ -66,6 +67,7 @@ type Props = {
onVersionChange?: Function,
onVersionHistoryClick?: Function,
versionsSidebarProps: VersionsSidebarProps,
signSidebarProps: SignSideBarProps,
Copy link
Contributor

Choose a reason for hiding this comment

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

looks like this is alphabetize, can we alphabetize this prop too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

}: 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
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.

4 participants