Skip to content

Adding Code of Conduct file - #1

Merged
cixzhang merged 1 commit into
mainfrom
automated_fixup_code_of_conduct_file_exists
Jan 10, 2026
Merged

cixzhang merged 1 commit into
mainfrom
automated_fixup_code_of_conduct_file_exists

Conversation

@facebook-github-bot

Copy link
Copy Markdown
Contributor

This is pull request was created automatically because we noticed your project was missing a Code of Conduct file.

CODE_OF_CONDUCT files facilitate respectful and constructive communities by establishing expected behaviors for project contributors.

This PR was crafted with love by Meta's Open Source Team.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 9, 2026
@cixzhang
cixzhang merged commit 914360c into main Jan 10, 2026
1 check passed
@cixzhang
cixzhang deleted the automated_fixup_code_of_conduct_file_exists branch February 20, 2026 14:41
@rubyycheung rubyycheung mentioned this pull request Mar 20, 2026
cixzhang added a commit that referenced this pull request Apr 26, 2026
…of_conduct_file_exists

Adding Code of Conduct file
josephfarina added a commit that referenced this pull request Jun 1, 2026
The global --lang flag is advertised on every subcommand's help (declared
on the root program), but only component/hook/discover/docs translate.
Write/action commands (init, template, theme, upgrade, swizzle, build,
gap-report) silently ignored it and produced English.

Add a global preAction hook that validates --lang / --zh / --dense before
any side effects:
  - unsupported locale -> exit 1 (or structured { error } under --json)
  - partially-translated locale (zh) -> exit 0 + one-time stderr warning
  - --lang combined with legacy --zh/--dense -> exit 1 (ambiguous)

init --all --lang xx now exits 1 with zero files written (no half-writes).

Adds 9 subprocess/e2e tests proving the behavior across read and write
commands, the --json contract, side-effect-free rejection, and i18n honesty.

Closes checklist items #1 (flag validation) and #10 (i18n honesty) for the
write/action commands not covered by #2407.
cixzhang pushed a commit that referenced this pull request Jun 29, 2026
* fix(core): add role=tooltip to the Tooltip layer

Addresses #3240. The Tooltip floating layer had no role, so it didn't
complete the ARIA tooltip pattern (trigger already sets aria-describedby
to the layer id) and test tooling had no stable selector for it. Add an
optional role on the layer render props and pass role='tooltip' from
useTooltip. +test asserting role + the aria-describedby link.

Scoped to the Tooltip role (issue's #1 priority). HoverCard role,
data-state, and data-testid forwarding are noted as follow-ups.

* fix(core): add role=dialog to HoverCard layer + trim changeset

Addresses review feedback on #3243 (@Daniel15):
- Add role='dialog' to the HoverCard floating layer (Popover already
  exposes role='dialog' via usePopover).
- Trim the changeset's 'stable selector' clause (role stability can be
  assumed).
+test asserting HoverCard layer role='dialog'.

---------

Co-authored-by: Durvesh Pilankar <[email protected]>
humbertovirtudes added a commit to humbertovirtudes/astryx that referenced this pull request Jul 12, 2026
Address review feedback (cixzhang, ernestt) and self-review findings:

- Rename result field getRowKey -> idKey for parallelism with the Table prop
  (cixzhang): <Table idKey={grouped.idKey} />. Config input stays `getRowKey`.
- Fix O(n^2) row keying (self-review): the positional fallback used
  flattened.indexOf(item) per row. Prebuild an item->index Map once per
  flattened array so key lookup is O(1) — O(n^2) -> O(n) for the whole table.
- Chevron alignment (ernestt meta#1): the chevron is a standalone, chrome-less
  button flush with the table's leading edge (no heavy button background),
  still keyboard-operable; the whole header row remains a click convenience.
- Divider (ernestt meta#2): add a bottom border beneath each group header row.
- Typography (ernestt meta#3): the group label uses emphasized body (semibold at
  body size), not a larger text size; count is regular weight.
- Tests (10, all green): add renderGroupHeader coverage, empty-data,
  collapse-persistence-across-data-change (count updates, stays collapsed),
  toggle-and-back, aria-expanded on the header row, and a named keyboard-
  operable toggle button.

Tags: ai-generated

This diff was generated with AI assistance (Navi). The implementation and
tests were produced by an AI agent; the human author reviewed and approved
the changes.
humbertovirtudes added a commit that referenced this pull request Jul 14, 2026
* feat(core): add useTableGroupedRows plugin

Groups a flat data array into collapsible section rows. Each distinct
groupBy value becomes a full-width section-header row with a chevron
toggle, group label, and member count; collapsing hides that group's rows
while keeping the header visible.

- Mirrors useTableRowExpansionState: consumer owns the collapsedGroups set;
  the hook returns {data, plugin, getRowKey} — pass to Table data/plugins/idKey.
- Supports renderGroupHeader (custom header content) and groupOrder.
- Synthetic header rows are Proxy-wrapped so user cell renderers can't throw
  on them before transformBodyRow replaces the row with a full-width cell.
- Storybook stories (default, initially-collapsed, custom order/header),
  docsite hook doc + example block, unit tests, and a Table Lab toggle.

* feat(core): idKey output, O(n) keying, UI polish for useTableGroupedRows

Address review feedback (cixzhang, ernestt) and self-review findings:

- Rename result field getRowKey -> idKey for parallelism with the Table prop
  (cixzhang): <Table idKey={grouped.idKey} />. Config input stays `getRowKey`.
- Fix O(n^2) row keying (self-review): the positional fallback used
  flattened.indexOf(item) per row. Prebuild an item->index Map once per
  flattened array so key lookup is O(1) — O(n^2) -> O(n) for the whole table.
- Chevron alignment (ernestt #1): the chevron is a standalone, chrome-less
  button flush with the table's leading edge (no heavy button background),
  still keyboard-operable; the whole header row remains a click convenience.
- Divider (ernestt #2): add a bottom border beneath each group header row.
- Typography (ernestt #3): the group label uses emphasized body (semibold at
  body size), not a larger text size; count is regular weight.
- Tests (10, all green): add renderGroupHeader coverage, empty-data,
  collapse-persistence-across-data-change (count updates, stays collapsed),
  toggle-and-back, aria-expanded on the header row, and a named keyboard-
  operable toggle button.

Tags: ai-generated

This diff was generated with AI assistance (Navi). The implementation and
tests were produced by an AI agent; the human author reviewed and approved
the changes.
imdreamrunner added a commit that referenced this pull request Aug 18, 2026
… iOS (#5178)

Below the tallest detent, a pull up inside the sheet's content did nothing on a
real device while the grab handle worked fine.

iOS Safari raises PointerEvents for a finger under the SAME numeric id it puts
in `Touch.identifier`. The touch path builds its pointer-shaped event out of
that identifier, so the drag it starts is keyed to a live pointer: `beginDrag`
captures it, WebKit takes the capture straight back for its own gesture
handling, and the `lostpointercapture` that follows a millisecond later cancels
the drag one event after it began. Measured on iOS 26.5, one gesture:

  touchmove #1 -> promote, beginDrag
    gotpointercapture   pointerId=-1239851261   (= the Touch.identifier)
    lostpointercapture  pointerId=-1239851261   willCancel=true
    cancelDrag
  touchmove #2..#50     drag gone; the sheet ignores the rest of the pull

Chromium keeps the two id spaces apart, so emulated touch never reproduces it;
the unit tests stub `setPointerCapture`, so jsdom never fires the cancelling
event. The handle keeps working because it runs on real pointer events, which
legitimately hold the capture. The mid-gesture content-end handoff (#5172)
usually survives only by timing: it promotes after WebKit has already given up
that pointer at scroll commit.

Touch-driven drags are now marked as such. They take no pointer capture, and
`lostpointercapture`, `pointercancel` and `pointermove` for the same finger no
longer cancel, end, or double-drive them.

Test Plan:
- Two new cases in useSheetGestures.test.ts dispatch onLostPointerCapture and
  onPointerCancel with a pointerId equal to the touch identifier. Both fail on
  main ("expected false to be true") and pass here.
- packages/core/src/BottomSheet suite: 163/163.
- On an iPhone 17 Simulator (iOS 26.5), one continuous touch per case, sheet
  at the 0.5 detent; numbers are the scrolling body's height, 309 = mid detent,
  395 = fully open:

  | case                                     | before      | after     |
  |------------------------------------------|-------------|-----------|
  | fresh touch at the content end, pull up  | 309 (inert) | 309 -> 395|
  | scroll to the end mid-gesture, keep pull | 309 -> 395  | unchanged |
  | top-edge pull-down in the body           | 395 -> 309  | unchanged |
  | ordinary mid-content scroll              | scroll only | unchanged |
  | grab-handle drag                         | works       | works     |

- tsc --noEmit clean; lint:strict 0 errors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants