Skip to content

[fork-CI] [20.0][MIG] web_toggle_chatter: Migration to 20.0 - #16

Open
dnplkndll wants to merge 7 commits into
20.0from
20.0-mig-web_toggle_chatter
Open

dnplkndll wants to merge 7 commits into
20.0from
20.0-mig-web_toggle_chatter

Conversation

@dnplkndll

@dnplkndll dnplkndll commented Oct 1, 2026 •

Copy link
Copy Markdown

Port of web_toggle_chatter from 19.0 (OCA/web#3582, unmerged) to 20.0. Follows the OCA migration guide.

Two things a reviewer would not get from the diff:

  • owl3-migration rewrote __comp__ to this.__comp__, which breaks the template. 20.0's compiler still emits it bare (views/view_compiler.js:189) and passes it through t-call-context, so it is a template variable, not a component member. Reverted.
  • The icon rewriter only sees XML and SCSS. This module also builds its toggle button in JS, so icon.className, querySelector(".fa") and the classList.toggle("fa-angle-*") calls were converted by hand; otherwise the runtime fallback button renders a blank box.

CI note: test with Odoo/test with OCB are red on a core issue, not this module — OCA CI runs --skip-auto-install, which on 20.0 leaves core's own web.assets_frontend SCSS unbuildable (rgba($color, $alpha) must be a color). Reproduces on bare core with zero addons.

AI-assisted (Claude Code); every change reviewed, tested, and owned by the author.

arch-fan and others added 6 commits October 1, 2026 16:05
The module shipped a JS unit test but no HttpCase runner, so it never ran
in CI. Add the runner, and adapt the test to the 19.0 form layout: core now
renders the form sheet + chatter side by side only at >= XXL (stacking them
as `flex-column` below that), and the toggle is intentionally hidden in the
stacked layout. The test now forces the wide/sided layout, mocks the chatter
the same way mail compiles it, and asserts on the chatter's own state so it
is deterministic regardless of test order or runner viewport.
@dnplkndll
dnplkndll force-pushed the 20.0-mig-web_toggle_chatter branch 2 times, most recently from 590a0e2 to 3fb25c1 Compare October 1, 2026 23:50
* useState -> proxy (Owl 3).
* fa- chevron -> oi + data-icon, in the template, the SCSS and the JS-built button.
* __comp__ stays bare: 20.0 still passes it via t-call-context.
* Tests: SIZES moved to @web/core/ui/ui_utils.

Assisted-by: Claude Opus 5
@dnplkndll
dnplkndll force-pushed the 20.0-mig-web_toggle_chatter branch from 3fb25c1 to d9ae65b Compare October 2, 2026 01:40
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.

3 participants