Skip to content

Add Geografi › Pladetektonik category/topic with interactive tectonics learning module - #53

Closed
rastermanden with Copilot wants to merge 3 commits into
mainfrom
copilot/add-interactive-tectonic-map
Closed

rastermanden with Copilot wants to merge 3 commits into
mainfrom
copilot/add-interactive-tectonic-map

Conversation

Copilot AI commented May 13, 2026

Copy link
Copy Markdown
Contributor

This PR implements the Geografi umbrella issue for Pladetektonik by adding curriculum-aligned Danish content (folkeskole → gymnasium) and surfacing it on canonical category/topic routes. It also adds interactive visuals for plates, boundary behavior, and external live-data entry points.

  • Content model and routing

    • Added new Geografi category: pladetektonik
    • Added new topic: pladetektonik
    • Topic is available on canonical route:
      • /<subject>/<category>/<topic>geografi/pladetektonik/pladetektonik
      • quiz route preserved via existing route conventions
  • Subject content (Danish, source-backed)

    • New topic file: content/geografi/pladetektonik.ts
    • Covers:
      • Jordens opbygning (kerne/kappe/skorpe)
      • Lithosfære/asthenosfære
      • Pladeteorien og pladebevægelser
      • Pladegrænser (konstruktiv/destruktiv/konservativ)
      • Vulkaner, jordskælv, tsunamier, orogenese
      • Wegeners kontinentaldriftteori
    • Includes source references and quiz set
  • Interactive learning module

    • Added components/PlateTectonicsDemo.tsx
    • Features:
      • Clickable simplified world plate map
      • Boundary-type selector (konstruktiv/destruktiv/konservativ)
      • Animated cross-section visuals per boundary type
      • Links to current external datasets (USGS earthquakes, Smithsonian volcanism)
  • Topic page integration

    • Registered demoKey: "pladetektonik" in topic-demo mapping:
      const TOPIC_DEMO_COMPONENTS: Record<string, ComponentType> = {
        // ...
        pladetektonik: PlateTectonicsDemo,
      };
  • Documentation touchpoint

    • Updated README subject overview to include the new Geografi category/topic and align existing listings.

Pladetektonik UI

Copilot AI linked an issue May 13, 2026 that may be closed by this pull request
13 tasks
Copilot AI and others added 2 commits May 13, 2026 14:12
Copilot AI changed the title [WIP] Add interactive world map for tectonic plates Add Geografi › Pladetektonik category/topic with interactive tectonics learning module May 13, 2026
Copilot AI requested a review from rastermanden May 13, 2026 14:16
@rastermanden
rastermanden marked this pull request as ready for review May 13, 2026 14:20
rastermanden added a commit that referenced this pull request May 13, 2026
* Split content registries to eliminate merge-conflict hot spots

Topic PRs all converged on the same three central files
(content/<subject>/index.ts, app/[subject]/[category]/[topic]/page.tsx,
README.md), so any two open topic PRs were guaranteed to conflict.
This refactor splits the registries so each PR only touches files it
owns.

Per-category content modules
- Add content/<subject>/categories/<category>.ts files that import
  their own topics and export the Category object.
- Slim content/matematik/index.ts and content/geografi/index.ts to
  just compose the category list. They only change when a brand-new
  category is added.
- Adding a topic to an existing category now touches a single shared
  file (its category file) instead of the subject index.

Per-topic demo components
- Replace the string-keyed demoKey field on Topic with an optional
  demoComponent: ComponentType reference.
- Each topic file imports its own demo component and sets it on the
  Topic object.
- Remove the central TOPIC_DEMO_COMPONENTS record in
  app/[subject]/[category]/[topic]/page.tsx; the page reads
  topic.demoComponent directly. Topic PRs no longer touch the page
  file at all.

Docs
- Document the new "adding a topic" workflow in AGENTS.md so future
  topic PRs land in the per-category file and the per-topic demo
  field, keeping the shared surface minimal.

Build still produces 131/131 static routes.

* Add Pladetektonik category to geografi

Re-roll of #53 onto the per-category content structure from #61:
- New topic file content/geografi/pladetektonik.ts (Copilot content
  preserved; demoKey converted to demoComponent referencing
  PlateTectonicsDemo).
- New category content/geografi/categories/pladetektonik.ts.
- Registered in content/geografi/index.ts before regioner.
- New components/PlateTectonicsDemo.tsx (copied verbatim).

---------

Co-authored-by: Claude <noreply@anthropic.com>
@rastermanden

Copy link
Copy Markdown
Owner

Superseded by #65, which has been merged into main. The topic file and PlateTectonicsDemo component were preserved verbatim; demoKey was converted to demoComponent against the new per-category structure from #61. Closing.


Generated by Claude Code

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.

Geografi › Pladetektonik (umbrella)

2 participants