# Task 00028: Fix White Screen on Daily Note Creation

> **Date**: 2026-02-19 01:00
> **Status**: **In Progress**
> **Related**: `task.md`, `DocumentClient.tsx`

## 1. Issue Description
- **Report**: User reported a white screen when clicking "Write Today's Daily Note" on mobile.
- **Analysis**: `DocumentClient.tsx` returned `null` while `loadingDoc` was true, causing a blank render until the document was fetched or created. For new Daily Notes ("phantom docs"), this loading state could be perceptible.

## 2. Fix Implementation
- **Component**: `nextapp/src/app/docs/[id]/DocumentClient.tsx`
- **Change**: Replaced `if (!document) return null;` with a proper **Loading Spinner** UI.
  ```tsx
  if (loadingDoc) {
      return (
          <div className="h-screen flex items-center justify-center bg-white">
              {/* Spinner UI */}
          </div>
      );
  }
  ```

## 3. Verification
- [ ] `npm run build` passes.
- [ ] User confirms white screen is gone.
