|
@@ -16,15 +16,17 @@ import TextCopyInput from 'sentry/components/textCopyInput';
|
|
import {IconChevron, IconEllipsis, IconJson, IconLink} from 'sentry/icons';
|
|
import {IconChevron, IconEllipsis, IconJson, IconLink} from 'sentry/icons';
|
|
import {t} from 'sentry/locale';
|
|
import {t} from 'sentry/locale';
|
|
import {space} from 'sentry/styles/space';
|
|
import {space} from 'sentry/styles/space';
|
|
|
|
+import {Event} from 'sentry/types';
|
|
import {getShortEventId} from 'sentry/utils/events';
|
|
import {getShortEventId} from 'sentry/utils/events';
|
|
import type {HydratedFeedbackItem} from 'sentry/utils/feedback/item/types';
|
|
import type {HydratedFeedbackItem} from 'sentry/utils/feedback/item/types';
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
import useOrganization from 'sentry/utils/useOrganization';
|
|
|
|
|
|
interface Props {
|
|
interface Props {
|
|
|
|
+ eventData: Event | undefined;
|
|
feedbackItem: HydratedFeedbackItem;
|
|
feedbackItem: HydratedFeedbackItem;
|
|
}
|
|
}
|
|
|
|
|
|
-export default function FeedbackItem({feedbackItem}: Props) {
|
|
|
|
|
|
+export default function FeedbackItem({feedbackItem, eventData}: Props) {
|
|
const organization = useOrganization();
|
|
const organization = useOrganization();
|
|
|
|
|
|
return (
|
|
return (
|
|
@@ -129,7 +131,7 @@ export default function FeedbackItem({feedbackItem}: Props) {
|
|
|
|
|
|
{/* <TagsSection tags={feedbackItem.tags} /> */}
|
|
{/* <TagsSection tags={feedbackItem.tags} /> */}
|
|
|
|
|
|
- <Section icon={<IconJson size="xs" />} title={t('Raw')}>
|
|
|
|
|
|
+ <Section icon={<IconJson size="xs" />} title={t('Raw Issue Data')}>
|
|
<ObjectInspector
|
|
<ObjectInspector
|
|
data={feedbackItem}
|
|
data={feedbackItem}
|
|
expandLevel={3}
|
|
expandLevel={3}
|
|
@@ -139,6 +141,16 @@ export default function FeedbackItem({feedbackItem}: Props) {
|
|
}}
|
|
}}
|
|
/>
|
|
/>
|
|
</Section>
|
|
</Section>
|
|
|
|
+ <Section icon={<IconJson size="xs" />} title={t('Raw Event Data')}>
|
|
|
|
+ <ObjectInspector
|
|
|
|
+ data={eventData}
|
|
|
|
+ expandLevel={3}
|
|
|
|
+ theme={{
|
|
|
|
+ TREENODE_FONT_SIZE: '0.7rem',
|
|
|
|
+ ARROW_FONT_SIZE: '0.5rem',
|
|
|
|
+ }}
|
|
|
|
+ />
|
|
|
|
+ </Section>
|
|
</OverflowPanelItem>
|
|
</OverflowPanelItem>
|
|
</Fragment>
|
|
</Fragment>
|
|
);
|
|
);
|