Revert "Demo floating window"#692
Conversation
This reverts commit 4205c11.
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
|
||
| const insertOpen = "<StackProvider app={stackServerApp}><StackTheme><DemoFloatingWindow />"; | ||
| const lines = layout.split("\n"); | ||
| const [bodyOpenEndLine, bodyOpenEndIndexInLine] = getLineIndex( |
There was a problem hiding this comment.
The code could crash when calculating line indices if the body tag's position (bodyOpenEndIndex) extends beyond the total length of concatenated lines. The getLineIndex function throws an error in this case, which isn't caught by the caller. This can happen with malformed HTML or when body tags span multiple lines. The function should handle this edge case gracefully instead of throwing an error.
React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)
| export { UserButton } from "./components/user-button"; | ||
|
|
||
| export { DemoFloatingWindow } from "./components/demo-floating-window"; | ||
| export { CliAuthConfirmation } from "./components-page/cli-auth-confirm"; |
There was a problem hiding this comment.
This export statement references a non-existent module. The component 'CliAuthConfirmation' and its containing module './components-page/cli-auth-confirm' appear to be missing from the codebase. This will cause a module resolution error when any consumer tries to import this component. The bug was introduced by keeping an export for a module that doesn't exist in the project structure.
React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)
|
😱 Found 2 issues. Time to roll up your sleeves! 😱 🗒️ View all ignored comments in this repo
|
There was a problem hiding this comment.
PR Summary
This PR reverts the addition of the DemoFloatingWindow component, a development-only feature that provided quick access to authentication actions.
- Removes
packages/template/src/components/demo-floating-window.tsxcomponent and its export frompackages/template/src/index.ts - Removes DemoFloatingWindow integration from
examples/demo/src/app/layout.tsx - Updates
packages/init-stack/src/index.tsto remove DemoFloatingWindow from generated layout templates - Relocates
CliAuthConfirmationexport inpackages/template/src/index.tsto maintain organization
4 file(s) reviewed, no comment(s)
Edit PR Review Bot Settings | Greptile
Reverts #678
Important
Reverts the addition of the
DemoFloatingWindowcomponent by removing its references and deleting its file.DemoFloatingWindowcomponent fromlayout.tsx.demo-floating-window.tsxcomponent file.DemoFloatingWindowimport and usage ininit-stack/src/index.ts.DemoFloatingWindowexport fromtemplate/src/index.ts.layout.tsxandinit-stack/src/index.tsto excludeDemoFloatingWindow.This description was created by
for 4c1f6d0. You can customize this summary. It will automatically update as commits are pushed.