Commit 6643c0b
import: ICS + JSON-LD importers and the editor import flow (M6b)
New connector packages (pure functions, no UI, never invent data —
absent field = absent + warning identifying it):
- @opentechevents/import-ics: icsToEvents(text). RFC 5545 parser
tolerant of real-world exports, DTEND exclusive→inclusive, DURATION,
RRULE not expanded (flagged), TENTATIVE/floating times/non-IANA TZIDs
left pending + warning, HTML descriptions converted to Markdown.
- @opentechevents/import-jsonld: htmlToEvents(html). schema.org Events
from ld+json blocks (subtypes, arrays, @graph, ItemList), offsets are
not IANA zones (local time kept, timezone pending), attendance/status
enums mapped, truncated descriptions and unmodeled properties flagged.
Editor (import screens per DESIGN.md "Importar desde fuentes
existentes"):
- "Import from event page" (URL fetch with always-available paste-HTML
fallback for CORS) and "Import .ics" (file/URL), newest first, future
events preselected, nothing imported silently.
- Import queue: prev/next navigation, per-event discard, edits and
position persisted in localStorage per repo, beforeunload warning
while unsubmitted, confirmation before replacing form content or a
pending queue.
- Prefill marks the fields the source did not carry; venue auto-geocoded
(Nominatim) into a proposed pin, flagged for review; source.name/url/
retrievedAt provenance (Meetup, Luma, Eventbrite… from the URL).
- After "Open GitHub issue": scroll to banner + "check the feed" button
(appears once maintainers merge the PR).
- Venue + map merged into one block; timezone and license comboboxes
(license suggests open, non-viral SPDX ids); feedback footer link
prefilled with the editor URL.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 77f4a52 commit 6643c0b
38 files changed
Lines changed: 4237 additions & 27 deletions
File tree
- apps/editor
- .claude/skills/verify
- src
- lib
- ui
- test
- packages
- import-ics
- fixtures
- src
- test
- import-jsonld
- fixtures
- src
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
63 | 107 | | |
64 | 108 | | |
65 | 109 | | |
| |||
91 | 135 | | |
92 | 136 | | |
93 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
94 | 233 | | |
95 | 234 | | |
96 | 235 | | |
| |||
109 | 248 | | |
110 | 249 | | |
111 | 250 | | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
112 | 255 | | |
113 | 256 | | |
114 | 257 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
16 | 18 | | |
17 | 19 | | |
18 | 20 | | |
| |||
0 commit comments