Skip to content

Render a river landscape while the world map loads - #722

Closed
athNdev wants to merge 1 commit into
mainfrom
codex/world-loading-atlas
Closed

athNdev wants to merge 1 commit into
mainfrom
codex/world-loading-atlas

Conversation

@athNdev

@athNdev athNdev commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Replace the shared tile loader with a small isometric landscape. A highlight follows the river during initial map loading. The compact card and expanded workspace keep their actual renderer phase labels and use the same illustration. Browser and panel reduced-motion preferences each select a still landscape.

Head d80a871. Local frontend suite passed 495 with 6 Chromium-only skips. Knowledge retrieval passed 40/40. Browser and local review staging receipts follow.

View guided diff Turn on auto-fix

Summary by CodeRabbit

  • New Features
    • Updated the world map loading screen with a landscape illustration featuring terrain, trees, and water.
    • The landscape scales for compact layouts, and water animations respect reduced-motion settings.
  • Documentation
    • Clarified that the server preview and World tab share a map dialog and how the active map is selected when no level is specified.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: World map loading

Layer / File(s) Summary
Landscape rendering and documentation
web/carbon-panel/src/lib/components/worldview/WorldMapLoading.svelte, knowledge/architecture/world-viewing-rule.md
WorldMapLoading derives landscape cells from a fixed height matrix and renders terrain, water, trees, and ripples in SVG. It reduces the grid gap and runs ripple animation only when browser and panel motion preferences allow it. The architecture rule documents the reduced-motion behavior and updates map dialog and GetWorldViewStatus descriptions.

Possibly related PRs

  • athNdev/carbonpanel#720: Changes the map loading treatment and reduced-motion behavior, which overlap with this PR’s loader changes.

Change: Feature

Merge Risk: Minimal · up to d80a8

This swaps the map loading animation for a decorative landscape that respects both browser and panel reduced-motion settings. No concrete merge risk was found.

Architecture risk: Low · up to d80a8

The change affects 2 systems.

Changed systems: knowledge, web

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — knowledge (service) was modified; 1 changed file maps to changed impact.
  • observed — web (ui) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in knowledge/architecture/world-viewing-rule.md: The documentation changes “open the same map dialog” to “share a map dialog,” adds that the decorative landscape respects browser and panel reduced-motion preferences, and identifies scoped GetWorldViewStatus as resolving the active map when no level is specified.
  • observed — Modified behavior in web/carbon-panel/src/lib/components/worldview/WorldMapLoading.svelte: Adds a fixed height matrix and derives landscape cell positions, depths, tree placement, and ripple delays from each cell’s coordinates and height.
  • observed — Modified behavior in web/carbon-panel/src/lib/components/worldview/WorldMapLoading.svelte: Replaces the decorative tile grid with SVG terrain cells, adding water and upland styling, ripples for zero-height cells, and trees at selected cells.
  • observed — Modified behavior in web/carbon-panel/src/lib/components/worldview/WorldMapLoading.svelte: Reduces the loader’s grid gap from 1rem to 0.5rem.
Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e8d0852c-2346-4ffa-ba92-4a1005fbd24c
Commits

Reviewing files that changed from the base of the PR and between 29c54c9 and d80a871.

Files selected for processing: 2

  • knowledge/architecture/world-viewing-rule.md
  • web/carbon-panel/src/lib/components/worldview/WorldMapLoading.svelte

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.

@athNdev

athNdev commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Reviewed head d80a871 against base 29c54c9. The diff changes the shared illustration and its governing concept. Authentication, map data, renderer selection and the loading state machine are unchanged.

  • bun run check passed for the app and demo. bun run test passed 495, with 6 environment-specific skips.
  • go run ./cmd/knowledge-lint -root . -fix followed by lint passed all 40 retrieval checks.
  • Chromium ran the server overview and standalone World View against a delayed fixture GetWorldViewSession response. The SVG rendered at 120px in the card and 192px in the full workspace, and the loader was replaced by the map iframe on response in all four cases. Mobile dark at 360px had no horizontal overflow. OS reduced motion and the panel preference were exercised independently. Both produced zero active ripple animations. The light and dark stills and captured animation were visually reviewed. These tests cover the map-session transition using fixture data.

@athNdev

athNdev commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Local WSL review staged d80a871. Version endpoint reports 2.1.0-review.d80a871a274f and the served WorldViewWorkspace stylesheet contains the river animation. Health and readiness passed. SQLite integrity check passed, with both existing server records retained. Browser refusal fixture also passed: on a scoped 403 the pending illustration disappears, the refusal heading appears, and no renderer frame is mounted. Public Stable publication remains on hold for manual review.

@athNdev

athNdev commented Nov 21, 2026

Copy link
Copy Markdown
Owner Author

Superseded by the combined staging review in #723, which includes this branch and the revised loading design.

@athNdev athNdev closed this Nov 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant