Rebrand project from web4beginners to ikfreunde
This commit is contained in:
@@ -14,7 +14,7 @@ Create a first-stage extraction workflow that converts the existing HTML snapsho
|
||||
Content updates are currently tied to manual HTML edits. A JSON representation is needed so text and selected image properties can be adapted more easily and later edited through an interface.
|
||||
|
||||
## Proposed Solution
|
||||
Build a deterministic DOM-to-JSON extraction flow for `web4beginners.com.html` that captures visible text, selected metadata, and image fields (`src`, `alt`).
|
||||
Build a deterministic DOM-to-JSON extraction flow for `ikfreunde.com.html` that captures visible text, selected metadata, and image fields (`src`, `alt`).
|
||||
|
||||
The JSON structure should be DOM-first with section-based top-level subtopics, matching the brainstorm decisions and keeping context for editors. Duplicate text handling should follow the agreed hybrid policy: keep section-local duplicates; dedupe only clearly global/common items.
|
||||
|
||||
@@ -54,7 +54,7 @@ Edge cases to cover:
|
||||
- Cookie/modal/footer content that may be conditionally visible
|
||||
|
||||
## Acceptance Criteria
|
||||
- [x] A single extraction run generates one nested JSON file from `web4beginners.com.html`.
|
||||
- [x] A single extraction run generates one nested JSON file from `ikfreunde.com.html`.
|
||||
- [x] JSON includes visible page text grouped by section subtopics.
|
||||
- [x] JSON includes `title`, `description`, Open Graph, and Twitter metadata values.
|
||||
- [x] JSON includes `img src` and `img alt` values where present.
|
||||
@@ -84,5 +84,5 @@ Mitigations:
|
||||
|
||||
## References & Research
|
||||
- Brainstorm: `docs/brainstorms/2026-03-03-dom-json-wysiwyg-sync-brainstorm.md`
|
||||
- Source snapshot: `web4beginners.com.html`
|
||||
- Existing site bundle references: `web4beginners.com_files/*`
|
||||
- Source snapshot: `ikfreunde.com.html`
|
||||
- Existing site bundle references: `ikfreunde.com_files/*`
|
||||
|
||||
@@ -16,7 +16,7 @@ This plan is limited to content editing and synchronization behavior. It explici
|
||||
The repository now has extractable structured content (`content/site-content.de.json`) but no practical editing surface for creators. Editors need direct, low-friction page editing (double-click text, click image) while keeping HTML and JSON in sync.
|
||||
|
||||
## Proposed Solution
|
||||
Add an in-page edit mode with inline `contenteditable` text editing and an image overlay editor for `src` and `alt`. Implement autosave (blur/enter) plus manual save/undo controls. Persist edits via a local helper service that writes both `web4beginners.com.html` and `content/site-content.de.json`.
|
||||
Add an in-page edit mode with inline `contenteditable` text editing and an image overlay editor for `src` and `alt`. Implement autosave (blur/enter) plus manual save/undo controls. Persist edits via a local helper service that writes both `ikfreunde.com.html` and `content/site-content.de.json`.
|
||||
|
||||
Synchronization is bidirectional in model intent, with conflict default set to HTML wins when the same mapped key diverges.
|
||||
|
||||
@@ -68,7 +68,7 @@ Conflict flow:
|
||||
- [x] Text autosaves on blur/enter and also supports explicit save/undo controls.
|
||||
- [x] Clicking editable images opens an overlay with `src` and `alt` fields.
|
||||
- [x] Image ratio check warns (non-blocking) when replacement differs by >15% aspect ratio.
|
||||
- [x] Save operation persists both `web4beginners.com.html` and `content/site-content.de.json`.
|
||||
- [x] Save operation persists both `ikfreunde.com.html` and `content/site-content.de.json`.
|
||||
- [x] Sync mapping updates the correct JSON key for edited text/image values.
|
||||
- [x] Conflict resolution follows HTML-wins default.
|
||||
- [x] No CSS/layout properties are modified by editor actions.
|
||||
@@ -100,4 +100,4 @@ Mitigations:
|
||||
- Brainstorm input: `docs/brainstorms/2026-03-04-wysiwyg-inline-editor-sync-brainstorm.md`
|
||||
- Prior extraction plan: `docs/plans/2026-03-04-feat-dom-to-json-content-extraction-plan.md`
|
||||
- Extractor/source contract: `scripts/extract_dom_content.php`, `content/site-content.de.json`
|
||||
- Target HTML: `web4beginners.com.html`
|
||||
- Target HTML: `ikfreunde.com.html`
|
||||
|
||||
Reference in New Issue
Block a user