-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
chore(seer): Setup new, blank, page for Seer settings to live #103990
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
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,18 @@ | ||
| import {Fragment} from 'react'; | ||
| import {Outlet} from 'react-router-dom'; | ||
|
|
||
| import {Stack} from '@sentry/scraps/layout/stack'; | ||
|
|
||
| import {LinkButton} from 'sentry/components/core/button/linkButton'; | ||
| import {useOrganizationSeerSetup} from 'sentry/components/events/autofix/useOrganizationSeerSetup'; | ||
| import ExternalLink from 'sentry/components/links/externalLink'; | ||
| import {NoAccess} from 'sentry/components/noAccess'; | ||
| import NoProjectMessage from 'sentry/components/noProjectMessage'; | ||
| import Placeholder from 'sentry/components/placeholder'; | ||
| import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; | ||
| import {t, tct} from 'sentry/locale'; | ||
| import {DataCategoryExact} from 'sentry/types/core'; | ||
| import {t} from 'sentry/locale'; | ||
| import useOrganization from 'sentry/utils/useOrganization'; | ||
| import {getPricingDocsLinkForEventType} from 'sentry/views/settings/account/notifications/utils'; | ||
| import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader'; | ||
|
|
||
| import AiSetupDataConsent from 'getsentry/components/ai/AiSetupDataConsent'; | ||
|
|
||
| import {SeerAutomationDefault} from './seerAutomationDefault'; | ||
| import {SeerAutomationProjectList} from './seerAutomationProjectList'; | ||
|
|
||
| function SeerAutomationRoot() { | ||
| export default function SeerAutomationRoot() { | ||
| const organization = useOrganization(); | ||
| const {isLoading, billing, setupAcknowledgement} = useOrganizationSeerSetup(); | ||
|
|
||
|
|
@@ -29,14 +23,12 @@ function SeerAutomationRoot() { | |
| // Show loading placeholders while checking setup | ||
| if (isLoading) { | ||
| return ( | ||
| <Fragment> | ||
| <Stack gap="lg"> | ||
| <SentryDocumentTitle title={t('Seer Automation')} orgSlug={organization.slug} /> | ||
| <Placeholder height="60px" /> | ||
| <br /> | ||
| <Placeholder height="200px" /> | ||
| <br /> | ||
| <Placeholder height="200px" /> | ||
| </Fragment> | ||
| </Stack> | ||
| ); | ||
| } | ||
|
|
||
|
|
@@ -57,40 +49,5 @@ function SeerAutomationRoot() { | |
| ); | ||
| } | ||
|
|
||
| // Show the regular settings page | ||
| return ( | ||
| <Fragment> | ||
| <SentryDocumentTitle title={t('Seer Automation')} orgSlug={organization.slug} /> | ||
| <SettingsPageHeader | ||
| title={t('Seer Automation')} | ||
| subtitle={tct( | ||
| "Choose how Seer automatically triages and diagnoses incoming issues, before you even notice them. This analysis is billed at the [link:standard rates] for Seer's Issue Scan and Issue Fix. See [spendlink:docs] on how to manage your Seer spend.", | ||
| { | ||
| link: <ExternalLink href="https://docs.sentry.io/pricing/#seer-pricing" />, | ||
| spendlink: ( | ||
| <ExternalLink | ||
| href={getPricingDocsLinkForEventType(DataCategoryExact.SEER_AUTOFIX)} | ||
| /> | ||
| ), | ||
| } | ||
| )} | ||
| action={ | ||
| <LinkButton | ||
| href="https://docs.sentry.io/product/ai-in-sentry/seer/#seer-capabilities" | ||
| external | ||
| > | ||
| {t('Read the docs')} | ||
| </LinkButton> | ||
| } | ||
| /> | ||
|
|
||
| <NoProjectMessage organization={organization}> | ||
| <SeerAutomationProjectList /> | ||
| <br /> | ||
| <SeerAutomationDefault /> | ||
| </NoProjectMessage> | ||
| </Fragment> | ||
| ); | ||
| return <Outlet />; | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All that stuff got moved into seerAutomation.tsx |
||
| } | ||
|
|
||
| export default SeerAutomationRoot; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import Feature from 'sentry/components/acl/feature'; | ||
| import {NoAccess} from 'sentry/components/noAccess'; | ||
| import useOrganization from 'sentry/utils/useOrganization'; | ||
|
|
||
| export default function SeerAutomationProjects() { | ||
| const organization = useOrganization(); | ||
|
|
||
| return ( | ||
| <Feature | ||
| features={['seer-settings-gtm']} | ||
| organization={organization} | ||
| renderDisabled={NoAccess} | ||
| > | ||
| <div>SeerAutomationProjects</div> | ||
| </Feature> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import Feature from 'sentry/components/acl/feature'; | ||
| import {NoAccess} from 'sentry/components/noAccess'; | ||
| import useOrganization from 'sentry/utils/useOrganization'; | ||
|
|
||
| export default function SeerAutomationRepositories() { | ||
| const organization = useOrganization(); | ||
|
|
||
| return ( | ||
| <Feature | ||
| features={['seer-settings-gtm']} | ||
| organization={organization} | ||
| renderDisabled={NoAccess} | ||
| > | ||
| <div>SeerAutomationRepositories</div> | ||
| </Feature> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| import {Fragment} from 'react'; | ||
|
|
||
| import {LinkButton} from 'sentry/components/core/button/linkButton'; | ||
| import ExternalLink from 'sentry/components/links/externalLink'; | ||
| import NoProjectMessage from 'sentry/components/noProjectMessage'; | ||
| import SentryDocumentTitle from 'sentry/components/sentryDocumentTitle'; | ||
| import {t, tct} from 'sentry/locale'; | ||
| import {DataCategoryExact} from 'sentry/types/core'; | ||
| import useOrganization from 'sentry/utils/useOrganization'; | ||
| import {getPricingDocsLinkForEventType} from 'sentry/views/settings/account/notifications/utils'; | ||
| import SettingsPageHeader from 'sentry/views/settings/components/settingsPageHeader'; | ||
|
|
||
| import {SeerAutomationDefault} from 'getsentry/views/seerAutomation/components/seerAutomationDefault'; | ||
| import {SeerAutomationProjectList} from 'getsentry/views/seerAutomation/components/seerAutomationProjectList'; | ||
| import Settings from 'getsentry/views/seerAutomation/settings'; | ||
|
|
||
| export default function SeerAutomation() { | ||
| const organization = useOrganization(); | ||
|
|
||
| if (organization.features.includes('seer-settings-gtm')) { | ||
| return <Settings />; | ||
| } | ||
|
|
||
| // Show the regular settings page | ||
| return ( | ||
| <Fragment> | ||
| <SentryDocumentTitle title={t('Seer Automation')} orgSlug={organization.slug} /> | ||
| <SettingsPageHeader | ||
| title={t('Seer Automation')} | ||
| subtitle={tct( | ||
| "Choose how Seer automatically triages and diagnoses incoming issues, before you even notice them. This analysis is billed at the [link:standard rates] for Seer's Issue Scan and Issue Fix. See [spendlink:docs] on how to manage your Seer spend.", | ||
| { | ||
| link: <ExternalLink href="https://docs.sentry.io/pricing/#seer-pricing" />, | ||
| spendlink: ( | ||
| <ExternalLink | ||
| href={getPricingDocsLinkForEventType(DataCategoryExact.SEER_AUTOFIX)} | ||
| /> | ||
| ), | ||
| } | ||
| )} | ||
| action={ | ||
| <LinkButton | ||
| href="https://docs.sentry.io/product/ai-in-sentry/seer/#seer-capabilities" | ||
| external | ||
| > | ||
| {t('Read the docs')} | ||
| </LinkButton> | ||
| } | ||
| /> | ||
|
|
||
| <NoProjectMessage organization={organization}> | ||
| <SeerAutomationProjectList /> | ||
| <br /> | ||
| <SeerAutomationDefault /> | ||
| </NoProjectMessage> | ||
| </Fragment> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| import Feature from 'sentry/components/acl/feature'; | ||
| import {NoAccess} from 'sentry/components/noAccess'; | ||
| import useOrganization from 'sentry/utils/useOrganization'; | ||
|
|
||
| export default function SeerAutomationSettings() { | ||
| const organization = useOrganization(); | ||
|
|
||
| return ( | ||
| <Feature | ||
| features={['seer-settings-gtm']} | ||
| organization={organization} | ||
| renderDisabled={NoAccess} | ||
| > | ||
| <div>SeerAutomationSettings</div> | ||
| </Feature> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.