Skip to content

Feat/bulk block nx2 migration#588

Open
hannessolo wants to merge 4 commits into
mainfrom
feat/bulk-block-nx2-migration
Open

Feat/bulk block nx2 migration#588
hannessolo wants to merge 4 commits into
mainfrom
feat/bulk-block-nx2-migration

Conversation

@hannessolo

Copy link
Copy Markdown
Contributor

hannessolo and others added 2 commits July 9, 2026 15:56
Add 'bulk' to NX_BLOCKS and update all imports in nx/blocks/bulk/
(bulk.js + index.js) to nx2 equivalents. Block stays in nx/ per
migration convention. nx2's daFetch takes destructured args, so
sendAction's call site is updated accordingly.

CSS variables in bulk.css get nx2 names with nx1 fallback so the
block renders correctly on both nx1 and nx2 pages.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Jul 9, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

Comment thread nx/blocks/bulk/bulk.css Outdated
Comment thread nx/blocks/bulk/bulk.css Outdated
Comment thread nx/blocks/bulk/bulk.js Outdated
Comment thread nx/blocks/bulk/bulk.css Outdated
Address PR review from @mhaack:
- Card/list backgrounds swapped from hardcoded rgb() to Spectrum tokens
  (--s2-green-200, --s2-cyan-200, --s2-cyan-300, --s2-red-300),
  which get automatic light/dark support via light-dark().
- .delete-toggle red pill uses --s2-red-700 and --s2-corner-radius-500.
- Removed the block-scoped 'button { font-family }' rule — sl-button
  handles its own font, and the two custom buttons (.cancel-button,
  .toggle-list-icon) inherit from the block just fine.
- Removed the input[name="label"] rule — dead code: the label field
  is rendered as <sl-input>, not <input>, so this selector never
  matched. sl-input styles itself.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@aem-code-sync aem-code-sync Bot temporarily deployed to feat/bulk-block-nx2-migration July 10, 2026 08:12 Inactive
Drop the loadIcons import and module-top-level SVG fetch. Reference
the CDN icon directly:

  <svg viewBox="0 0 20 20" aria-hidden="true">
    <use href="/img/icons/s2-icon-chevronright-20-n.svg#icon"/>
  </svg>

The s2-icon-*-20-n.svg files on da-live have id="icon" on the root
and use currentColor, matching the pattern used in nx2/blocks/chat.
Also drops the now-dead ':host > svg { display: none; }' rule that
was hiding the previously-prepended sprite.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
hannessolo added a commit that referenced this pull request Jul 10, 2026
…c load

Address PR review from @mhaack. Same treatment as PR #588:

- Drop the loadIcons import, the ICONS array, and the module-top-level
  fetch. Also drop the shadow-root prepend in connectedCallback.
- renderAlert now references the CDN icon directly:
    <svg viewBox="0 0 20 20" aria-hidden="true">
      <use href="/img/icons/s2-icon-${name}-20-n.svg#icon"/>
    </svg>
- type2icon values change from CamelCase sprite IDs to lowercase-kebab
  filenames: 'infocircle', 'alertdiamond', 'checkmarkcircle'.
- Drop the now-dead ':host > svg { display: none; }' rule that was
  hiding the previously-prepended sprites.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[nx2] bulk operations

3 participants