Skip to content

docs: Create some stories for PageBanner #56519

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 2 commits into from
Sep 20, 2023
Merged

Conversation

ryan953
Copy link
Member

@ryan953 ryan953 commented Sep 19, 2023

We've got stories with with content, dismissable & resizable banners, and a story to explain adding color to the text.

SCR-20230919-ogaw

I updated the styles inside the banner itself, so that inline content, like the "See Stories" link render inline:
SCR-20230919-ofxu

@ryan953 ryan953 requested a review from a team as a code owner September 19, 2023 23:04
@ryan953 ryan953 requested a review from a team September 19, 2023 23:04
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Sep 19, 2023
import {Fragment, useState} from 'react';
import styled from '@emotion/styled';

import replaysDeadRageBackground from 'sentry-images/spot/replay-dead-rage-changelog.svg';
Copy link
Member

Choose a reason for hiding this comment

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

How does this affect bundling (if at all)?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't know specifically, didn't look at webpack output. But I don't think it's something we should worry about, webpack as an abstraction should be doing the right thing. Over time as more stories appear there will be lots of story files (async loaded btw) which will import random things.

In the case of import Button, it's used in basically every file, and webpack should be noticing that and splitting it out. With this I would think that webpack will notice the image is used with PageBanner and Button and t() and a few things, and then put it into a nice spot.

Related: There is a PR to split the /stories route into it's own build: #56511. There's some inartistic "oh the bundles" justification there, but I'm a bit worried we're cargo-culting something here.

@ryan953 ryan953 merged commit 7eec15c into master Sep 20, 2023
@ryan953 ryan953 deleted the ryan953/pageBanner-stories branch September 20, 2023 17:29
@github-actions github-actions bot locked and limited conversation to collaborators Oct 6, 2023
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