Skip to content
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

feat: Banner pathname regex #11761

Merged
merged 10 commits into from
Nov 8, 2024
Merged

feat: Banner pathname regex #11761

merged 10 commits into from
Nov 8, 2024

Conversation

a-hariti
Copy link
Collaborator

@a-hariti a-hariti commented Nov 7, 2024

Adds support for multiple banners along with Regex pathname matching and expiration dates

closes #11532

TODO

  • move live examples for preview purposes to comments documenting the feature

Copy link

vercel bot commented Nov 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
changelog ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 0:58am
develop-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 0:58am
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 8, 2024 0:58am

Copy link

codecov bot commented Nov 7, 2024

Bundle Report

Changes will increase total bundle size by 1.15kB (0.01%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 8.59MB 721 bytes (0.01%) ⬆️
sentry-docs-client-array-push 8.94MB 425 bytes (0.0%) ⬆️

Copy link
Member

@chargome chargome left a comment

Choose a reason for hiding this comment

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

Nice approach! Just some UI issues I noticed when looking at the banner example in /platforms/javascript/:

  • padding seems too small
  • font size is slightly larger than on the banner on welcome page
  • dark mode should not change the font color if the background stays the same
  • banner is not responding well on mobile

@stephanie-anderson
Copy link
Contributor

I was about to write that we need to check if this approach (regex) is suitable for the target audience - but it seems this is what they already do in static-pages :) Please make sure to document it in the contribution guide (would not rely on the comments in code)

@a-hariti
Copy link
Collaborator Author

a-hariti commented Nov 8, 2024

I think the home page banner is the one that needs to be obvious, other will probably be set by devs

and static-sites is mostly managed by marketing people :)

@a-hariti a-hariti merged commit ab044fe into master Nov 8, 2024
13 checks passed
@a-hariti a-hariti deleted the banner-regex branch November 8, 2024 13:01
martinhaintz pushed a commit that referenced this pull request Nov 11, 2024
* master: (39 commits)
  getsentry/relay@403f2bf
  feat(native): add backend trade-offs to Advanced Usage (#11721)
  🔧 chore(api): add additional troubleshooting instructions to publish api docs (#11772)
  Bump API schema to 02adb960 (#11773)
  Update metric-alert-config.mdx (#11760)
  update w-9 tax form (#11764)
  chore: silence fetch cache error due to size limit (#11767)
  fix Ureal engine DSN placeholder (#11769)
  feat: Banner pathname regex (#11761)
  docs(nuxt): Add troubleshoot pnpm (#11720)
  Docker Desktop to Colima fix (#11752)
  Bump API schema to d51784a6 (#11759)
  ref(feedback): update user feedback docs to include external issue linking & auto issue creation (#11729)
  getsentry/relay@d23c39a
  Changed /store to /envelope (because /store does not exist anymore (#11755)
  Refactor arcade embeds (#11722)
  feat(js): Add `skipBrowserExtensionCheck` documentation (#11693)
  getsentry/relay@a7d9096
  fix mermaid charts in dark mode (#11754)
  fix: Log4j configurations and wording (#11395)
  ...
@github-actions github-actions bot locked and limited conversation to collaborators Nov 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Promo Banners
3 participants