oficina / mapa Public

Import page: the local actions row is mapa-action-row, since mapa-actions is the page header's

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by claude agent, operated by paul@keymail.dev 01b10f870aca5367b1ea7b0cb078103408a8ae47 parent 69c97c3
3 files changed, +7 −7
  • internal/mapa/static/mapa.css +4 −4
  • internal/mapa/templates/import.html +2 −2
  • internal/mapa/templates/import_confirm.html +1 −1

CI failed — run details

CI log
amadan: sync for CI failed: exit status 128: warning: Could not find remote branch fix/import-spacing to clone.
fatal: Remote branch fix/import-spacing not found in upstream origin
diff --git a/internal/mapa/static/mapa.css b/internal/mapa/static/mapa.css
index 7aefc8d..3f5b40f 100644
--- a/internal/mapa/static/mapa.css
+++ b/internal/mapa/static/mapa.css
@@ -27,7 +27,7 @@
/* ---- The page's vertical rhythm: Fiesta's rst-stack, rst-section and
rst-actions (rastrillo/fiesta feat/stack-rhythm), copied ahead of
their release. When Fiesta ships them, the swap is a rename:
- mapa-stack to rst-stack, mapa-section to rst-section, mapa-actions
+ mapa-stack to rst-stack, mapa-section to rst-section, mapa-action-row
to rst-actions, and this block goes.
A stack is a flex column, so no margin collapses; every child's own
@@ -111,8 +111,8 @@
[mapa-section] > h5 + :not([hidden]),
[mapa-stack] > h6 + :not([hidden]),
[mapa-section] > h6 + :not([hidden]) { --mapa-stack-heading: var(--rst-sp-2); }
-[mapa-stack] > :not([hidden]) + [mapa-actions],
-[mapa-section] > :not([hidden]) + [mapa-actions],
+[mapa-stack] > :not([hidden]) + [mapa-action-row],
+[mapa-section] > :not([hidden]) + [mapa-action-row],
[mapa-stack] > :not([hidden]) + [rst-form-foot],
[mapa-section] > :not([hidden]) + [rst-form-foot],
[mapa-stack] > :not([hidden]) + [rst-form-actions],
@@ -121,7 +121,7 @@
[mapa-section] > :not([hidden]) + button,
[mapa-stack] > :not([hidden]) + [rst-btn],
[mapa-section] > :not([hidden]) + [rst-btn] { --mapa-stack-actions: var(--rst-sp-4); }
-[mapa-actions] { align-items: center; display: flex; flex-wrap: wrap; gap: var(--rst-sp-2); }
+[mapa-action-row] { align-items: center; display: flex; flex-wrap: wrap; gap: var(--rst-sp-2); }
/* ---- A page: its title and actions on one row, the body on a card. */
[mapa-page-head] {
diff --git a/internal/mapa/templates/import.html b/internal/mapa/templates/import.html
index 82e805b..1f4f1cd 100644
--- a/internal/mapa/templates/import.html
+++ b/internal/mapa/templates/import.html
@@ -23,7 +23,7 @@
{{define "import-start"}}{{if and .NoImages .CanStart}}<p mapa-meta>Images aren't set up in Mapa yet, so each image from Notion comes in as a line saying it wasn't imported. Run the import again once images are set up, and the pages nobody has edited get their pictures.</p>{{end}}
{{with .Images}}{{if $.CanStart}}<p mapa-meta>Imported images count against the team's image allowance, now {{.Team}} used, and, until each page is written, against yours, now {{.Own}}. If either fills, the run stops fetching images and says so; raise it, or free some, and run again.</p>{{end}}{{end}}
-{{if or .CanStop .CanResume .CanStart .CanStartOver}}<div mapa-actions mapa-import-actions>
+{{if or .CanStop .CanResume .CanStart .CanStartOver}}<div mapa-action-row mapa-import-actions>
{{if .CanStop}}<form method="post" action="/import/notion/stop"><button rst-btn type="submit">Stop</button></form>{{end}}
{{if .CanResume}}<form method="post" action="/import/notion/resume"><button rst-btn="primary" type="submit">Resume</button></form>{{end}}
{{if .CanStartOver}}<form method="post" action="/import/notion/startover"><button rst-btn type="submit">Start over</button></form>{{end}}
@@ -33,7 +33,7 @@
{{define "import-connection"}}<section mapa-section mapa-import-connection aria-labelledby="import-connection">
<h2 id="import-connection">Connection</h2>
{{if .Connected}}<p>Connected to {{if .Workspace}}the Notion workspace “{{.Workspace}}”{{else}}a Notion workspace{{end}}. Mapa holds its secret, sealed, and never shows it.</p>
-<div mapa-actions><a rst-btn href="/import/notion/finish">Finish import…</a><a rst-btn href="/import/notion/disconnect">Disconnect…</a></div>
+<div mapa-action-row><a rst-btn href="/import/notion/finish">Finish import…</a><a rst-btn href="/import/notion/disconnect">Disconnect…</a></div>
<details><summary>Replace the secret</summary>{{template "import-token-form" .}}</details>
{{else}}{{if .Finished}}<p><strong>The previous import was ended.</strong> Connecting again starts a new import. It has no record of what the last one wrote, so it would create a second copy of every page it finds.</p>{{end}}
<p><strong>Everything you share with this integration becomes a team page that every member of this team can read.</strong> Share only what the whole team should have.</p>
diff --git a/internal/mapa/templates/import_confirm.html b/internal/mapa/templates/import_confirm.html
index 72efde0..1c12f26 100644
--- a/internal/mapa/templates/import_confirm.html
+++ b/internal/mapa/templates/import_confirm.html
@@ -11,7 +11,7 @@
{{end}}
<p>Then remove the integration from Notion's connection settings.</p>
{{if $d.Active}}{{template "form-error" "An import is running. Stop the run first."}}
-<div mapa-actions><a rst-btn href="/import/notion">Back</a></div>
+<div mapa-action-row><a rst-btn href="/import/notion">Back</a></div>
{{else}}{{template "confirm-form" dict "Action" $d.Action "Label" (index (dict "disconnect" "Disconnect" "finish" "Finish import" "forget" "Forget the import") $d.Act) "Danger" true "CancelHref" "/import/notion" "CancelLabel" "Cancel"}}{{end}}
</div>
{{end}}