Skip to content

Commit 9323504

Browse files
committed
refactor(devtools): remove unused SEO overview footnote and clean up README
This commit removes the unused 'seoOverviewFootnote' style and its corresponding JSX element from the SEO overview section. Additionally, it updates the README to streamline the description of checks included in the SEO tab, enhancing clarity and conciseness. These changes improve code maintainability and documentation accuracy.
1 parent 566271b commit 9323504

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

packages/devtools/src/styles/use-styles.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -771,11 +771,6 @@ const stylesFactory = (theme: DevtoolsStore['settings']['theme']) => {
771771
background: ${t(colors.gray[100], colors.gray[800] + '40')};
772772
color: ${t(colors.gray[600], '#9ca3af')};
773773
`,
774-
seoOverviewFootnote: css`
775-
margin-top: 8px;
776-
font-size: 11px;
777-
color: ${t(colors.gray[500], colors.gray[400])};
778-
`,
779774
seoOverviewCheckListCaption: css`
780775
margin: 0 0 8px 0;
781776
font-size: 11px;

packages/devtools/src/tabs/seo-tab/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,7 @@ Checks included:
163163
- Invalid URL format (`error`)
164164
- External `_blank` link without `noopener` (`warning`)
165165
- Unexpected protocol (`warning`)
166-
- External link without `nofollow` (`info`)
167-
- Hash, mailto, tel, and other non-web links (`info`)
166+
- mailto, tel, and other non-web links (`info`)
168167

169168
## Canonical, URL, Indexability & Follow
170169

@@ -188,8 +187,4 @@ Checks included:
188187
- Page marked as `noindex` (`error`)
189188
- Page marked as `nofollow` (`warning`)
190189
- Missing robots directives (`info`)
191-
- URL query parameters present (`info`)
192-
193-
Note:
194-
195-
- `X-Robots-Tag` response headers are not reliably available from this in-page view.
190+
- URL query parameters present (`info`)

packages/devtools/src/tabs/seo-tab/seo-overview.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -280,9 +280,6 @@ export function SeoOverviewSection(props: { goTo: (view: SeoDetailView) => void
280280
label="Robots directives"
281281
value={bundle().canonical.robots.join(', ') || 'None'}
282282
/>
283-
<div class={styles().seoOverviewFootnote}>
284-
X-Robots-Tag response headers are not available in this in-page view.
285-
</div>
286283
</div>
287284

288285
<Show when={bundle().canonical.issues.length > 0}>

0 commit comments

Comments
 (0)