Skip to content

feat(mobile-exp): Add screenshot gallery tab#39910

Merged
shruthilayaj merged 16 commits into
masterfrom
shruthi/feat/add-screenshot-gallery
Oct 12, 2022
Merged

feat(mobile-exp): Add screenshot gallery tab#39910
shruthilayaj merged 16 commits into
masterfrom
shruthi/feat/add-screenshot-gallery

Conversation

@shruthilayaj

@shruthilayaj shruthilayaj commented Oct 12, 2022

Copy link
Copy Markdown
Member

This is behind the mobile-screenshot-gallery flag.

Adds a screenshot tab that displays a gallery of screenshots
Clicking on the cards currently doesn't do anything, it will
be added in a follow up.

Will also add an e2e integration/snapshot test in a follow up.

Note: had to update some components to accept event_id
instead of the entire Event type because the list/gallery
views don't have access the the event detail, only event_ids

Screen Shot 2022-10-12 at 7 37 42 AM

@edwardgou-sentry edwardgou-sentry left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just a couple of small things

import useOrganization from 'sentry/utils/useOrganization';

const crashReportTypes = ['event.minidump', 'event.applecrashreport'];
const screenshotType = 'event.screenshot';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

small nit but I think we could name this variable in CONSTANT_CASE since it's being used that way

</LazyLoad>
</StyledPanelBody>
</CardBody>
<CardFooter>{t('screenshot.png')}</CardFooter>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think we can get the file name from eventAttachment.name? just in case it's not screenshot.png for whatever reason

@shruthilayaj shruthilayaj merged commit 2ffba39 into master Oct 12, 2022
@shruthilayaj shruthilayaj deleted the shruthi/feat/add-screenshot-gallery branch October 12, 2022 18:17
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants