Skip to content

Commit 014ad52

Browse files
authored
chore(issue-views): Add PowerFeature hook for issue views (#92159)
Issue views will be restricted for team plans and above in the near future. This PR registers the frontend hook in gsapp so it can be used in sentry
1 parent 56084b5 commit 014ad52

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

static/app/types/hooks.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ export type FeatureDisabledHooks = {
239239
'feature-disabled:discover2-page': FeatureDisabledHook;
240240
'feature-disabled:discover2-sidebar-item': FeatureDisabledHook;
241241
'feature-disabled:grid-editable-actions': FeatureDisabledHook;
242+
'feature-disabled:issue-views': FeatureDisabledHook;
242243
'feature-disabled:open-discover': FeatureDisabledHook;
243244
'feature-disabled:open-in-discover': FeatureDisabledHook;
244245
'feature-disabled:performance-new-project': FeatureDisabledHook;

static/gsApp/registerHooks.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ const GETSENTRY_HOOKS: Partial<Hooks> = {
350350
</PowerFeatureHovercard>
351351
),
352352
'feature-disabled:open-in-discover': p => <OpenInDiscoverBtn {...p} />,
353+
'feature-disabled:issue-views': p => (
354+
<PowerFeatureHovercard features={['organizations:issue-views']} id="issue-views">
355+
{typeof p.children === 'function' ? p.children(p) : p.children}
356+
</PowerFeatureHovercard>
357+
),
353358

354359
/**
355360
* Augment integration installation modals with feature grouping based on

0 commit comments

Comments
 (0)