Skip to content

[code-infra] Publish from CI - #2607

Merged
Janpot merged 8 commits into
mui:masterfrom
Janpot:pub-workflow
Sep 30, 2025
Merged

Janpot merged 8 commits into
mui:masterfrom
Janpot:pub-workflow

Conversation

@Janpot

@Janpot Janpot commented Sep 2, 2025 •

Copy link
Copy Markdown
Member

Initiate publishing from CI using the trusted publishers flow. This brings provenance to the published packages. Also, Automatically create github (draft) release from the last changelog entry.

@mui/base-ui Ping me when you know next release happens, so I can make sure I'm around to assist in case there are still misconfigurations.

TODO:

  • configure npm-publish environment on github
  • configure @base-ui-componnets/* access on npm

@pkg-pr-new

pkg-pr-new Bot commented Sep 2, 2025 •

Copy link
Copy Markdown

vite-css-base-ui-example

pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/react@2607
pnpm add https://pkg.pr.new/mui/base-ui/@base-ui-components/utils@2607

commit: d6d571c

@mui-bot

mui-bot commented Sep 2, 2025 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 0b758f7

@netlify

netlify Bot commented Sep 2, 2025 •

Copy link
Copy Markdown

✅ Deploy Preview for base-ui ready!

Name Link
🔨 Latest commit d6d571c
🔍 Latest deploy log https://app.netlify.com/projects/base-ui/deploys/68dbad3cc80fc500086c76d3
😎 Deploy Preview https://deploy-preview-2607--base-ui.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Janpot Janpot added the scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). label Sep 4, 2025
@mui-bot

mui-bot commented Sep 16, 2025 •

Copy link
Copy Markdown

Bundle size report

Bundle Parsed size Gzip size
@base-ui-components/react 0B(0.00%) 0B(0.00%)

Details of bundle changes

@Janpot
Janpot marked this pull request as ready for review September 16, 2025 12:00
@oliviertassinari oliviertassinari added security Pull requests that address a security vulnerability. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. labels Sep 17, 2025
@Janpot
Janpot requested review from a team September 17, 2025 14:04

@LukasTy LukasTy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice. 👍
Releases are done monthly, so, next release might happen on October 1st or 8th.

Comment thread .github/workflows/publish.yml Resolved
Co-authored-by: Lukas Tyla <llukas.tyla@gmail.com>
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
@Janpot
Janpot enabled auto-merge (squash) September 19, 2025 14:21
workflow_dispatch:
inputs:
sha:
description: 'Commit SHA to release from'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no need for quotes here, no?

Suggested change
description: 'Commit SHA to release from'
description: Commit SHA to release from

But it's probably a bigger problem, why is prettier not covering the yml files.

@Janpot Janpot Sep 22, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is covering the yml files. try eg.

description      : 'Commit SHA to release from'

It just doesn't support the quoteProps option yet prettier/prettier#16037

Comment thread scripts/README.md Resolved
Janpot and others added 2 commits September 22, 2025 13:04
Co-authored-by: Olivier Tassinari <oliviertassinari@users.noreply.github.com>
Signed-off-by: Jan Potoms <2109932+Janpot@users.noreply.github.com>
@Janpot
Janpot merged commit 05040cb into mui:master Sep 30, 2025
michaldudak added a commit to michaldudak/base-ui that referenced this pull request Oct 5, 2026
The whole return policy lived in a closure inside FloatingFocusManager's
return-focus layout effect, so each of its rules (the mui#5733 guard handoff,
the mui#2607 "focus moved elsewhere" rule, explicit return focus, the
aria-hidden skip, the passive session, the inert-aware target chain) could
only be tested by rendering a real popup in Chromium and waiting.

`floating-ui-react/utils/returnFocus.ts` now holds that policy as plain
functions over sampled facts:

- `getCloseIntent(request, interactionType, pressed, preventScroll)`: what
  the close meant, including how an outside press settles;
- `getDefaultReturnTarget(session)` / `getReturnTarget(...)`: the usable
  target chain, the parent link and the focused-before history;
- `getReturnFocusAction(session, intent, ...facts)`: focus with options,
  blur, or nothing.

The focus manager keeps the scheduling and the side effects: the cleanup
snapshot, the microtask, the release wait and settle timer, focus()/blur(),
and the closed-return-target context. The module header records the React
orderings the facts depend on. Platform facts are inputs; the preventScroll
probe stays uncached and lazy because tests stub `focus`.

A jsdom table test covers plan-c's per-close-path rows, including the
negatives that the Chromium suite could only check with `wait(50)`. The
Chromium tests stay as integration tests of the timing the table can't see.

No behaviour change.
michaldudak added a commit to michaldudak/base-ui that referenced this pull request Oct 7, 2026
The whole return policy lived in a closure inside FloatingFocusManager's
return-focus layout effect, so each of its rules (the mui#5733 guard handoff,
the mui#2607 "focus moved elsewhere" rule, explicit return focus, the
aria-hidden skip, the passive session, the inert-aware target chain) could
only be tested by rendering a real popup in Chromium and waiting.

`floating-ui-react/utils/returnFocus.ts` now holds that policy as plain
functions over sampled facts:

- `getCloseIntent(request, interactionType, pressed, preventScroll)`: what
  the close meant, including how an outside press settles;
- `getDefaultReturnTarget(session)` / `getReturnTarget(...)`: the usable
  target chain, the parent link and the focused-before history;
- `getReturnFocusAction(session, intent, ...facts)`: focus with options,
  blur, or nothing.

The focus manager keeps the scheduling and the side effects: the cleanup
snapshot, the microtask, the release wait and settle timer, focus()/blur(),
and the closed-return-target context. The module header records the React
orderings the facts depend on. Platform facts are inputs; the preventScroll
probe stays uncached and lazy because tests stub `focus`.

A jsdom table test covers plan-c's per-close-path rows, including the
negatives that the Chromium suite could only check with `wait(50)`. The
Chromium tests stay as integration tests of the timing the table can't see.

No behaviour change.
michaldudak added a commit to michaldudak/base-ui that referenced this pull request Oct 12, 2026
The whole return policy lived in a closure inside FloatingFocusManager's
return-focus layout effect, so each of its rules (the mui#5733 guard handoff,
the mui#2607 "focus moved elsewhere" rule, explicit return focus, the
aria-hidden skip, the passive session, the inert-aware target chain) could
only be tested by rendering a real popup in Chromium and waiting.

`floating-ui-react/utils/returnFocus.ts` now holds that policy as plain
functions over sampled facts:

- `getCloseIntent(request, interactionType, pressed, preventScroll)`: what
  the close meant, including how an outside press settles;
- `getDefaultReturnTarget(session)` / `getReturnTarget(...)`: the usable
  target chain, the parent link and the focused-before history;
- `getReturnFocusAction(session, intent, ...facts)`: focus with options,
  blur, or nothing.

The focus manager keeps the scheduling and the side effects: the cleanup
snapshot, the microtask, the release wait and settle timer, focus()/blur(),
and the closed-return-target context. The module header records the React
orderings the facts depend on. Platform facts are inputs; the preventScroll
probe stays uncached and lazy because tests stub `focus`.

A jsdom table test covers plan-c's per-close-path rows, including the
negatives that the Chromium suite could only check with `wait(50)`. The
Chromium tests stay as integration tests of the timing the table can't see.

No behaviour change.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). security Pull requests that address a security vulnerability. type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants