Skip to content

[pull] main from adobe:main#393

Merged
pull[bot] merged 4 commits into
code:mainfrom
adobe:main
May 16, 2026
Merged

[pull] main from adobe:main#393
pull[bot] merged 4 commits into
code:mainfrom
adobe:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 16, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

LFDanLu and others added 4 commits May 15, 2026 20:01
…10076)

* fix: normalize API diff so we dont pick up new formatting changes

* forgot to run against test channel

* debugging 401

* need to add models: read if we are setting contents: read?

* Revert "forgot to run against test channel"

This reverts commit b7fab94.

* Revert "debugging 401"

This reverts commit e691567.
Pins the default GITHUB_TOKEN to contents: read on the workflows in
.github/workflows/ that don't call a GitHub API beyond the initial
checkout. The other workflows in this directory are left implicit
because they need write scopes that a maintainer is better placed
to declare.

Motivation: CVE-2025-30066 (March 2025 tj-actions/changed-files
compromise) exfiltrated GITHUB_TOKEN from workflow logs. Per-workflow
caps bound runtime authority irrespective of repo or org default,
give drift protection if the default ever widens, and are credited
per-file by the OpenSSF Scorecard Token-Permissions check.

YAML validated locally with yaml.safe_load.

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
* fix headings levels in component decision tree

* better illustration examples in SKILL.md

* skip redirects in markdown output

* fix stripped inline code from page descriptions in markdown output

* fix S2 Routers rendering in markdown output

* add dnd tag for RAC dnd docs page

* improve Style Macro docs page markdown output

* remove error pages from output

* better JSDoc for focusRing (mention passing isFocusVisible)

* improve skill with guidance on Buttons with icons and text

* improve skill with guidance to avoid concatenating class names from the style macro

* testing skill differ (#9947)

* add skill differ

* improve comment

* deploy full diff + link to new/changed files

* fix path

* remove full diff output

* comment with install links

* format

* fix formatting

* skill improvements

* more skill improvements

* add figma-to-s2 resource

* add creating-custom-components.md reference

* reference new creating-custom-components.md elsewhere
…9848)

* fix(GridLayout): support RTL direction for drop target positioning

GridLayout.getDropTargetFromPoint() computes 'before'/'after' drop positions
using x-coordinates, but has no awareness of layout direction. In RTL locales,
the Virtualizer positions items using CSS 'right' with the layout rect's x
value as the right-offset, while pointer coordinates remain in visual
(left-origin) space. This mismatch causes drop targets to be inverted —
dragging an item to the right of another shows a 'before' indicator instead
of 'after'.

This commit adds an optional 'direction' property to GridLayoutOptions.
When set to 'rtl', getDropTargetFromPoint flips the x-coordinate to match
the layout coordinate system before computing drop positions.

Consumers can pass direction via useLayoutOptions() in a GridLayout subclass:

  class LocaleAwareGridLayout extends GridLayout {
    useLayoutOptions() {
      const { direction } = useLocale();
      return { direction };
    }
  }

* test(GridLayout): add unit tests for RTL drop target positioning

Tests getDropTargetFromPoint with both LTR and RTL directions to verify
that drop targets (before/after) are computed correctly in multi-column
grids. Also tests that single-column layouts are unaffected by direction
and that empty layouts return a root drop target.

* fix(GridLayout): auto-determine direction via useLocale() in RAC wrapper

Instead of requiring consumers to subclass GridLayout and pass direction
manually, create a RAC wrapper (like TableLayout) that calls useLocale()
internally via useLayoutOptions(). The base layout in react-stately still
accepts direction as an explicit option for non-RAC consumers.

* fix: use public GridLayout import

* add test story

* fix tests, missing size mock

* chore: apply oxfmt formatting

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix formatting

---------

Co-authored-by: Daniel Lu <dl1644@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@pull pull Bot locked and limited conversation to collaborators May 16, 2026
@pull pull Bot added the ⤵️ pull label May 16, 2026
@pull pull Bot merged commit 092229c into code:main May 16, 2026
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants