onlook icon indicating copy to clipboard operation
onlook copied to clipboard

feat: Implement pages functionality

Open iNerdStack opened this issue 7 months ago • 1 comments

Description

Related Issues

Type of Change

  • Added page scanning and page tree functionalities
  • Create page
  • Delete page
  • Rename page
  • Duplicate page
  • [ ] Bug fix
  • [x] New feature
  • [ ] Documentation update
  • [ ] Release
  • [ ] Refactor
  • [ ] Other (please describe):

Testing

Screenshots (if applicable)

Additional Notes


[!IMPORTANT] Implements page management functionality using sandbox sessions and updates dependencies for code parsing.

  • Behavior:
    • Enables Pages tab in index.tsx by removing disabled: true.
    • Implements scanPagesFromSandbox, createPageInSandbox, deletePageInSandbox, renamePageInSandbox, duplicatePageInSandbox in helper.ts for page management.
    • Replaces fake data with real page scanning in PagesManager in index.ts.
  • Dependencies:
    • Adds @babel/parser, @babel/traverse, @babel/types to package.json for parsing and traversing code.
    • Updates bun.lock to reflect new dependencies.
  • Misc:
    • Adds useEffect in page-tab/index.tsx to call scanPages on component mount.

This description was created by Ellipsis for 805fe07892db78e0ea4ea316a78c9c6d302409b5. You can customize this summary. It will automatically update as commits are pushed.

iNerdStack avatar May 31 '25 08:05 iNerdStack

@iNerdStack is attempting to deploy a commit to the Onlook Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 31 '25 08:05 vercel[bot]