License per guide (#103) #115

Merged
miko merged 1 commit from feature/103-license into development 2026-11-05 15:00:01 +01:00
Owner

Closes #103.

What

  • Every guide has a license, chosen in its properties: Public Domain (Public Domain Mark 1.0), CC0 1.0, CC BY / BY-SA / BY-NC / BY-NC-SA / BY-ND / BY-NC-ND 4.0, or "All rights reserved". Each but the last links to its text.
  • New setting "Default license" ("All rights reserved" at first); new guides start with it, changing it leaves existing guides alone.
  • Migration gives existing guides "All rights reserved" (column default).
  • Shown in the guide's header and the attribution line of print and PDF.
  • Versioned content (ADR-0020): readers see the published license; discard and restore bring a version's license back. Versions published before this change read as "All rights reserved", so no spurious unpublished changes.
  • The properties form remounts when the guide's version changes, so after discard/restore it shows the working copy's properties (also fixes the same staleness for difficulty and protective equipment).
  • GLOSSARY: License; ADR-0020 and CHANGELOG updated.

Tests

  • Unit: license.test.ts, settings, version content, attribution, PDF, properties.
  • E2E: e2e/license.spec.ts (default, working copy, discard, publish with link).
  • tsc, eslint, 454 unit and 58 e2e tests pass.

🤖 Generated with Claude Code

Closes #103. ## What - Every guide has a **license**, chosen in its properties: Public Domain (Public Domain Mark 1.0), CC0 1.0, CC BY / BY-SA / BY-NC / BY-NC-SA / BY-ND / BY-NC-ND 4.0, or "All rights reserved". Each but the last links to its text. - New **setting** "Default license" ("All rights reserved" at first); new guides start with it, changing it leaves existing guides alone. - **Migration** gives existing guides "All rights reserved" (column default). - Shown in the guide's **header** and the **attribution line** of print and PDF. - **Versioned content** (ADR-0020): readers see the published license; discard and restore bring a version's license back. Versions published before this change read as "All rights reserved", so no spurious unpublished changes. - The properties form remounts when the guide's version changes, so after discard/restore it shows the working copy's properties (also fixes the same staleness for difficulty and protective equipment). - GLOSSARY: **License**; ADR-0020 and CHANGELOG updated. ## Tests - Unit: `license.test.ts`, settings, version content, attribution, PDF, properties. - E2E: `e2e/license.spec.ts` (default, working copy, discard, publish with link). - `tsc`, `eslint`, 454 unit and 58 e2e tests pass. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Every guide has a license, chosen in its properties: Public Domain (Public
Domain Mark 1.0), CC0 1.0, the six Creative Commons 4.0 licenses, or all
rights reserved. It shows, linked to its text, in the guide's header and in
the attribution line of print and PDF. New guides start with the default
license, a new setting ("all rights reserved" at first); changing it leaves
existing guides alone, and the migration gave them all rights reserved.

The license is versioned content (ADR-0020): readers see the published
one, and discard and restore bring a version's license back. A version
published before licenses existed reads as all rights reserved, so it
shows no unpublished changes. The properties form now remounts when the
guide's version changes, so after a discard or restore it shows the
working copy's properties, not the discarded ones. GLOSSARY gains License.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miko merged commit 61146ca420 into development 2026-11-05 15:00:01 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MassiveDynamic/kataba!115
No description provided.