codeant-ai-for-open-source[bot] commented on code in PR #36817:
URL: https://github.com/apache/superset/pull/36817#discussion_r2643846920
##########
docs/sidebarTutorials.js:
##########
@@ -72,6 +72,7 @@ const sidebars = {
'extensions/overview',
'extensions/quick-start',
'extensions/architecture',
+ 'extensions/dependencies',
Review Comment:
**Suggestion:** Using a bare string relies on the doc's title/frontmatter
for the sidebar label and can lead to inconsistent labels or unexpected
ordering; use an explicit doc object with `type`, `id`, and `label` so the
sidebar shows the intended label regardless of the doc's frontmatter. [logic
error]
**Severity Level:** Minor ⚠️
```suggestion
{ type: 'doc', id: 'extensions/dependencies', label: 'Dependencies'
},
```
<details>
<summary><b>Why it matters? ⭐ </b></summary>
Replacing the bare string with an explicit { type: 'doc', id, label } is a
safe, clear change — it prevents accidental label changes if frontmatter/title
changes and documents the intended label in the sidebar. It's syntactically
correct and improves predictability without breaking existing structure.
</details>
<details>
<summary><b>Prompt for AI Agent 🤖 </b></summary>
```mdx
This is a comment left during a code review.
**Path:** docs/sidebarTutorials.js
**Line:** 75:75
**Comment:**
*Logic Error: Using a bare string relies on the doc's title/frontmatter
for the sidebar label and can lead to inconsistent labels or unexpected
ordering; use an explicit doc object with `type`, `id`, and `label` so the
sidebar shows the intended label regardless of the doc's frontmatter.
Validate the correctness of the flagged issue. If correct, How can I resolve
this? If you propose a fix, implement it and please make it concise.
```
</details>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]