sentry-docs icon indicating copy to clipboard operation
sentry-docs copied to clipboard

The Next.js site can save the users's desired SDK in state as they navigate back and forth between SDK-specific docs and generic product docs

Open stephanie-anderson opened this issue 2 years ago • 5 comments

stephanie-anderson avatar Feb 23 '24 12:02 stephanie-anderson

hi @stephanie-anderson

how about this approach

When the user clicks any platform from the navbar -> we will check for any last visited URL -> if yes, then redirect to it otherwise redirect to the main path

we can store the last visited URL in react context or we can also store it in session storage.

Shubhdeep12 avatar Feb 24 '24 13:02 Shubhdeep12

Let me know if this sounds good. I'll be happy to put a PR for this.

Shubhdeep12 avatar Feb 24 '24 14:02 Shubhdeep12

Hey @Shubhdeep12, thanks for the suggestion - I think storing it in session storage would be great. But before we tackle this issue, we will need to talk about the bigger UX changes when switching between product and platform docs. But I'll respond here once we have more details on it 🙏

If you're looking for ways to contribute to the docs platform, feel free to have a look at this board: https://github.com/orgs/getsentry/projects/207

What would be most impactful is working on fixing some bugs: https://github.com/orgs/getsentry/projects/207/views/8

And especially bugs that sneaked in through the Gatsby to Next.js migration: https://github.com/orgs/getsentry/projects/207/views/2

Let me know if you need any more details

stephanie-anderson avatar Feb 28 '24 12:02 stephanie-anderson

Great! Thanks for the info. I'll check these issues there. 👍🏻

Shubhdeep12 avatar Feb 28 '24 12:02 Shubhdeep12

How would this look in light of the Platforms + Product sidebar merge @stephanie-anderson ?

we should always think about this int he confines of a statically generated site

a-hariti avatar Mar 21 '24 15:03 a-hariti