Preparing your design workspace

Loading the problem and your latest saved attempt…

Design a Collaborative Document Workspace Frontend

Design a Confluence-like frontend for navigating, viewing, editing, and safely synchronizing documents in a shared workspace.

Problem statement

Design the frontend architecture for a Confluence-like collaborative document workspace.

For this exercise, assume users browse a hierarchical page tree, open stable page routes, edit a page draft, save with optimistic version checks, recover an unsaved local draft after navigation or refresh, and resolve a conflict when the server has a newer page version.

Real-time character-by-character co-editing is out of scope unless proposed as a later extension.

What to build

  1. Browse and lazily expand a hierarchical page tree with stable routes.
  2. View a page, enter edit mode, and save a versioned draft.
  3. Recover unsaved local work across navigation, refresh, and transient failures.
  4. Detect a newer server version and let the user reload, compare, or merge before retrying.

At scale

  • For this exercise, assume a workspace may contain 100,000 pages and the navigation tree is loaded lazily.
  • For this exercise, assume page bodies may reach 2 MB and autosaved local drafts are bounded to 20 recent pages.
  • For this exercise, assume server writes use expected page versions and idempotent operation IDs.
  • For this exercise, assume the editor should become interactive within two seconds on a typical broadband connection.