bito-code-review[bot] commented on code in PR #36933:
URL: https://github.com/apache/superset/pull/36933#discussion_r2666512910


##########
superset-frontend/webpack.config.js:
##########
@@ -300,6 +300,7 @@ const config = {
     menu: addPreamble('src/views/menu.tsx'),
     spa: addPreamble('/src/views/index.tsx'),
     embedded: addPreamble('/src/embedded/index.tsx'),
+    embeddedChart: addPreamble('/src/embeddedChart/index.tsx'),
   },

Review Comment:
   <div>
   
   
   <div id="suggestion">
   <div id="issue"><b>Path format inconsistency</b></div>
   <div id="fix">
   
   The new embeddedChart entry uses a leading slash in the path, which differs 
from the 'menu' entry and causes path.join(APP_DIR, '/src/...') to return an 
absolute path '/src/...' instead of the intended APP_DIR-relative path. This 
inconsistency could lead to webpack failing to resolve the file correctly. 
Change to 'src/embeddedChart/index.tsx' for consistency.
   </div>
   
   
   <details>
   <summary>
   <b>Code suggestion</b>
   </summary>
   <blockquote>Check the AI-generated fix before applying</blockquote>
   <div id="code">
   
   
   ````suggestion
       menu: addPreamble('src/views/menu.tsx'),
       spa: addPreamble('/src/views/index.tsx'),
       embedded: addPreamble('/src/embedded/index.tsx'),
       embeddedChart: addPreamble('src/embeddedChart/index.tsx'),
     },
   ````
   
   </div>
   </details>
   
   
   
   </div>
   
   
   
   
   <small><i>Code Review Run #e877b0</i></small>
   </div>
   
   ---
   Should Bito avoid suggestions like this for future reviews? (<a 
href=https://alpha.bito.ai/home/ai-agents/review-rules>Manage Rules</a>)
   - [ ] Yes, avoid them



-- 
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]

Reply via email to