hunk.code_window:     const { workspace_id } = useParams();
       const { user } = useUserAndSpaces();
       useEffect(() => {
           const navigate_to_user_initial_page = async () => {
               const recent_pages = await services.api.userConfig.getRecentPages(
                   workspace_id,
                   user.id
               );
               const user_initial_page_id =
                   await services.api.userConfig.getUserInitialPage(
                       workspace_id,
                       user.id
  
hunk.labels: keep keep keep keep keep replace replace replace replace replace replace replace keep keep
hunk.after_edit:             const [recent_pages, user_initial_page_id] = await Promise.all([
                   services.api.userConfig.getRecentPages(workspace_id, user.id),
                   services.api.userConfig.getUserInitialPage(
  
hunk.file_path: apps/ligo-virgo/src/pages/workspace/Home.tsx
hunk.type: replace
file: import { Utils, TLPointerEventHandler, TLBoundsCorner } from '@tldraw/core';
  import Vec from '@tldraw/vec';
  import { Pentagram } from '@toeverything/components/board-shapes';
  import { SessionType, TDShapeType } from '@toeverything/components/board-types';
  import { BaseTool, BaseToolStatus } from '@toeverything/components/board-state';
  
  export class PentagramTool extends BaseTool {
      override type = TDShapeType.Pentagram as const;
  
      /* ----------------- Event Handlers ----------------- */
  
      override onPointerDown: TLPointerEventHandler = () => {
          if (this.status !== BaseToolStatus.Idle) return;
  
          const {
              currentPoint,
              currentGrid,
              settings: { showGrid },
              appState: { currentPageId, currentStyle },
              document: { id: workspace },
          } = this.app;
  
          const childIndex = this.getNextChildIndex();
  
          const id = Utils.uniqueId();
  
          const newShape = Pentagram.create({
              id,
              parentId: currentPageId,
              childIndex,
              point: showGrid
                  ? Vec.snap(currentPoint, currentGrid)
                  : currentPoint,
              style: { ...currentStyle },
              workspace,
          });
  
          this.app.patchCreate([newShape]);
  
          this.app.startSession(
              SessionType.TransformSingle,
              newShape.id,
              TLBoundsCorner.BottomRight,
              true
          );
  
          this.set_status(BaseToolStatus.Creating);
      };
  }
  