Repository navigation
feat(editor): make Portable Text tables complete and responsive - #2934
Conversation
🦋 Changeset detectedLatest commit: 79e6e76 The changes in this PR will be included in the next version bump. This PR includes changesets to release 17 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Scope checkThis PR changes 10,687 lines across 40 files. Large PRs are harder to review and more likely to be closed without review. If this scope is intentional, no action needed. A maintainer will review it. If not, please consider splitting this into smaller PRs. See CONTRIBUTING.md for contribution guidelines. |
@emdash-cms/admin
@emdash-cms/auth
@emdash-cms/auth-atproto
@emdash-cms/blocks
@emdash-cms/cloudflare
@emdash-cms/contentful-to-portable-text
emdash
create-emdash
@emdash-cms/gutenberg-to-portable-text
@emdash-cms/plugin-cli
@emdash-cms/plugin-types
@emdash-cms/registry-client
@emdash-cms/registry-lexicons
@emdash-cms/registry-moderation
@emdash-cms/registry-verification
@emdash-cms/sandbox-workerd
@emdash-cms/x402
@emdash-cms/plugin-ai-moderation
@emdash-cms/plugin-atproto
@emdash-cms/plugin-audit-log
@emdash-cms/plugin-color
@emdash-cms/plugin-embeds
@emdash-cms/plugin-field-kit
@emdash-cms/plugin-forms
@emdash-cms/plugin-webhook-notifier
commit: |
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
docs | 45b53bd | Sep 11 2026, 08:50 AM |
There was a problem hiding this comment.
This is a maintainer-authored feature PR that refines Portable Text tables across the admin editor, saved content, and published pages. The approach is sound: a shared @emdash-cms/admin/portable-text-table normalization module, real TipTap/ProseMirror table nodes in the admin editor, bounded clipboard parsing, responsive scroller + column resizing (with RTL handling), and comprehensive E2E/unit/render tests. It fits EmDash's architecture and preserves legacy string-cell tables.
I checked the core converters (portable-text-to-prosemirror.ts, prosemirror-to-portable-text.ts), the admin table extensions/actions/resize/clipboard/menu code, the Astro Table.astro renderer, the inline visual editor preservation path, the changeset, CI additions, and the test suite. The implementation is careful about key stability, ProseMirror identity repair, XSS-safe fallback rendering, and RTL-safe Tailwind/logical CSS. The query surface is unchanged.
The only clear finding is a new user-facing placeholder in the inline editor that is not wrapped for translation. The file already uses hardcoded English (and an Arabic hardcoded branch) for other placeholders/guidance, so this extends an existing gap rather than introducing a new class of problem, but the new table placeholder should still be addressed.
|
/accept-baselines |
|
The |
|
/accept-baselines |
|
✅ Baselines accepted by @ascorbic and committed to this PR. |
Picks up emdash-cms#2934, which fixed the publication-date label assertion in e2e/tests/content-actions.spec.ts that failed E2E shard 2/8 on the previous head.
Resolves the conflict in concepts/collections.mdx by taking main's page: emdash-cms#3045 rewrote it and removed the FieldValidation section our editor paragraph sat under. The per-type editor behaviour stays documented in reference/field-types.mdx. Also picks up emdash-cms#2934, which fixed the publication-date label assertion that failed E2E shard 2/8 on the previous head.
What does this PR do?
Refines Portable Text tables across the admin editor, saved content, and published pages.
Custom ProseMirror schemas consuming
portableTextToProsemirror()table output must register the TipTap table extensions. The changeset documents this requirement.Type of change
Checklist
pnpm typecheckpassespnpm lintpassespnpm testpasses (or targeted tests for my change)pnpm formathas been runmessages.pochanges are included.AI-generated code disclosure
Screenshots / test output
Product screenshots
Captured from the local product using illustrative draft content. These are product screenshots, not accepted Linux visual-regression baselines.
Table size picker
Compact table action menu
Header controls
Dark mode and row selection
Mobile layout
CI follow-ups restore wide D1 entry loading and stabilize save-conflict, Social Settings, and scheduling test synchronization. The Social Settings race was reproduced with controlled animation timing; the fix then passed 10 shuffled runs (70 cases). The clean-unschedule sequence passed 10 repetitions. No sleeps, extra retries, or animation changes are shipped.
Local verification:
Package-check caveat:
publintpassed. The standard ATTW CLI hit an existing gzip-ingestion failure before analysis; equivalent analysis through its public API passed before the final UI follow-up. No dependency or workaround configuration is included.