Commit 314201d
Fixing JS framework formatting for redirect pages (#14914)
## DESCRIBE YOUR PR
**Summary**
Enhanced the platform redirect system to show individual JavaScript
frameworks (React, Vue, Angular, etc.) as separate, nested options under
the main JavaScript platform. This provides users with a more customized
and framework-specific experience when selecting their platform. Also
added better logic to check for guide paths because Dart also wasn't
showing up due to being nested.
**Problem**
When users clicked platform-redirect links (like
/platform-redirect/?next=/session-replay/privacy/), they only saw
top-level platforms (JavaScript, Android, React Native). This didn't
reflect that many JavaScript frameworks have different support levels
for specific features, and users couldn't easily select their specific
framework for a more tailored experience. They also did not see Dart,
which was nested under a Dart/Flutter guide.
**Solution**
- Automatic Framework Detection: The system now reads the `notSupported`
frontmatter from JavaScript documentation pages to determine which
frameworks support each feature. Added more robust logic to search for
guides under each platform if main platform paths are empty.
- Visual Nesting: JavaScript frameworks are indented under the main
JavaScript platform for clear hierarchy
Smart Positioning: JavaScript and its frameworks appear at the end of
the platform list
Framework-Specific URLs: Each framework links to the main JavaScript
documentation for that feature
Example pages:
https://sentry-docs-git-platform-redirect-privacy-fix.sentry.dev/platform-redirect/?next=/session-replay/configuration/#network-details
https://sentry-docs-git-platform-redirect-privacy-fix.sentry.dev/platform-redirect/?next=/session-replay/privacy/
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+
## SLA
- Teamwork makes the dream work, so please add a reviewer to your PRs.
- Please give the docs team up to 1 week to review your PR unless you've
added an urgent due date to it.
Thanks in advance for your help!
## PRE-MERGE CHECKLIST
*Make sure you've checked the following before merging your changes:*
- [ ] Checked Vercel preview for correctness, including links
- [ ] PR was reviewed and approved by any necessary SMEs (subject matter
experts)
- [ ] PR was reviewed and approved by a member of the [Sentry docs
team](https://github.com/orgs/getsentry/teams/docs)
---------
Co-authored-by: Shannon Anahata <[email protected]>
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
Co-authored-by: Abdellah Hariti <[email protected]>1 parent 42a2ce5 commit 314201d
1 file changed
+87
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
42 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
43 | 55 | | |
44 | | - | |
| 56 | + | |
45 | 57 | | |
46 | 58 | | |
47 | 59 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
52 | 88 | | |
53 | 89 | | |
54 | | - | |
55 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
56 | 125 | | |
57 | | - | |
| 126 | + | |
58 | 127 | | |
59 | 128 | | |
60 | 129 | | |
61 | 130 | | |
62 | 131 | | |
63 | 132 | | |
64 | | - | |
| 133 | + | |
65 | 134 | | |
66 | 135 | | |
67 | | - | |
68 | | - | |
| 136 | + | |
| 137 | + | |
69 | 138 | | |
70 | 139 | | |
71 | 140 | | |
| |||
82 | 151 | | |
83 | 152 | | |
84 | 153 | | |
85 | | - | |
86 | | - | |
87 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
88 | 157 | | |
89 | 158 | | |
90 | | - | |
| 159 | + | |
91 | 160 | | |
92 | 161 | | |
93 | 162 | | |
| |||
0 commit comments