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

Adding Code of Conduct file#1
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 <durveshpilankar@meta.com>
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 facebook#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 facebook#2): add a bottom border beneath each group header row.
- Typography (ernestt facebook#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.
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