Skip to content

feat: Upgrade packages#2358

Merged
zatteo merged 2 commits intomasterfrom
feat/packages
Mar 25, 2026
Merged

feat: Upgrade packages#2358
zatteo merged 2 commits intomasterfrom
feat/packages

Conversation

@JF-Cozy
Copy link
Copy Markdown
Contributor

@JF-Cozy JF-Cozy commented Mar 25, 2026

Summary by CodeRabbit

  • Chores

    • Updated runtime dependencies for core UI and related libraries.
  • Style

    • Simplified theme handling across multiple components for more consistent visuals.
    • Removed variant-specific styling branches in headers and dialogs.
    • Updated various theme wrappers to use default theming.
  • New Features

    • Added a new workplace text icon and updated the app bar icon/text presentation.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 25, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 822cc4ef-700c-4fa2-9171-c6fe2317cf8f

📥 Commits

Reviewing files that changed from the base of the PR and between dd34d8c and 1af65cc.

⛔ Files ignored due to path filters (2)
  • src/components/Shortcuts/__snapshots__/ShortcutsView.spec.jsx.snap is excluded by !**/*.snap
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (19)
  • package.json
  • src/components/Announcements/AnnouncementsDialog.tsx
  • src/components/Assistant/AssistantDesktopWrapper.jsx
  • src/components/Assistant/AssistantMobileWrapper.jsx
  • src/components/BackupNotification/BackupNotification.jsx
  • src/components/HeroHeader/CornerButton.jsx
  • src/components/HeroHeader/LogoutModal.tsx
  • src/components/HeroHeader/index.jsx
  • src/components/Icons/WorkplaceText.jsx
  • src/components/Konnector.jsx
  • src/components/Personalization/WallpaperItem.jsx
  • src/components/Sections/SectionDialog.tsx
  • src/components/Shortcuts/ShortcutActionsMenu.jsx
  • src/components/Shortcuts/ShortcutCreateModal.jsx
  • src/components/Shortcuts/ShortcutEditModal.jsx
  • src/containers/App.jsx
  • src/containers/IntentHandler.jsx
  • src/cozy-ui.d.ts
  • src/targets/intents/KonnectorRoutes.jsx
💤 Files with no reviewable changes (1)
  • src/cozy-ui.d.ts
✅ Files skipped from review due to trivial changes (6)
  • src/targets/intents/KonnectorRoutes.jsx
  • src/containers/IntentHandler.jsx
  • src/components/HeroHeader/LogoutModal.tsx
  • src/components/Shortcuts/ShortcutEditModal.jsx
  • src/components/Icons/WorkplaceText.jsx
  • src/components/Assistant/AssistantDesktopWrapper.jsx
🚧 Files skipped from review as they are similar to previous changes (5)
  • src/components/HeroHeader/CornerButton.jsx
  • src/components/HeroHeader/index.jsx
  • src/components/Personalization/WallpaperItem.jsx
  • package.json
  • src/containers/App.jsx

Walkthrough

Updated several runtime dependency version ranges in package.json (cozy-bar, cozy-harvest-lib, cozy-search, cozy-sharing, cozy-ui, cozy-ui-plus, cozy-viewer). Removed useCozyTheme usage and theme.variant-driven conditional styling across multiple components, simplified related className logic, and removed variant from CozyTheme typings. Swapped cozy-ui Circle → Avatar in WallpaperItem. Added a new SvgWorkplaceText icon and adjusted BarComponent props in App to use appIcon/appTextIcon variants. Several CozyTheme usages no longer pass variant="normal".

Possibly related PRs

Suggested reviewers

  • rezk2ll
  • lethemanh
  • doubleface
🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'feat: Upgrade packages' is vague and generic, failing to specify which packages were upgraded or what the main objective of the changes is. Consider a more specific title like 'feat: Upgrade cozy-ui and related dependencies' to clearly indicate the primary change and affected packages.
✅ Passed checks (1 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/packages

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/components/Personalization/WallpaperItem.jsx (1)

65-87: ⚠️ Potential issue | 🔴 Critical

Replace color prop with sx={{ bgcolor: 'var(--primaryColor)' }} or style={{ backgroundColor: 'var(--primaryColor)' }}.

The color prop on the Avatar component does not control background color. In Material-UI (which cozy-ui is based on), background color must be set via the sx prop (using bgcolor), style prop (using backgroundColor), or a CSS class. Without this correction, the colored circular background behind the close button will not render, causing a visual regression from the previous Circle component implementation.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/Personalization/WallpaperItem.jsx` around lines 65 - 87, The
Avatar is using a nonfunctional color prop so its background won't render;
replace the color prop on the Avatar component with a background style (use
sx={{ bgcolor: 'var(--primaryColor)' }} or style={{ backgroundColor:
'var(--primaryColor)' }}) so the circular background appears; update the Avatar
JSX (the Avatar that wraps IconButton/CrossIcon in WallpaperItem.jsx) to remove
color={'var(--primaryColor)'} and set the background via sx or style
accordingly, preserving the existing className, size, and children.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@package.json`:
- Line 56: Multiple components still use the old useCozyTheme hook and
<CozyTheme variant=...> wrapper which are incompatible with cozy-ui-plus v6;
search for useCozyTheme and CozyTheme across the listed components
(AssistantMobileWrapper, AssistantDesktopWrapper, FooterLogo, IntentHandler,
KonnectorRoutes, Konnector, BackupNotification, Shortcut* files, SectionDialog,
WallpaperItem, AnnouncementsDialog, LogoutModal, BackgroundContainer) and
replace them with the new v6 theming API: update imports to the v6 exports
(replace useCozyTheme/CozyTheme imports from 'cozy-ui-plus' with the v6
equivalents, e.g., the new useTheme hook and ThemeProvider or Theme component
per the v6 migration guide), convert any <CozyTheme variant="..."> wrappers to
the new provider/wrapper pattern and map the old variant prop to the new theme
property (or call useTheme() in component to select styles), and update
types/usages in SectionDialog.tsx to the new theme types; after changes, run
linting, build and visual/manual checks (or Storybook) to confirm no
runtime/style regressions.

---

Outside diff comments:
In `@src/components/Personalization/WallpaperItem.jsx`:
- Around line 65-87: The Avatar is using a nonfunctional color prop so its
background won't render; replace the color prop on the Avatar component with a
background style (use sx={{ bgcolor: 'var(--primaryColor)' }} or style={{
backgroundColor: 'var(--primaryColor)' }}) so the circular background appears;
update the Avatar JSX (the Avatar that wraps IconButton/CrossIcon in
WallpaperItem.jsx) to remove color={'var(--primaryColor)'} and set the
background via sx or style accordingly, preserving the existing className, size,
and children.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 530ec08b-7e67-419c-a992-c1ac424749b0

📥 Commits

Reviewing files that changed from the base of the PR and between 8775a3a and dd34d8c.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (6)
  • package.json
  • src/components/HeroHeader/CornerButton.jsx
  • src/components/HeroHeader/index.jsx
  • src/components/Personalization/WallpaperItem.jsx
  • src/containers/App.jsx
  • src/cozy-ui.d.ts
💤 Files with no reviewable changes (2)
  • src/containers/App.jsx
  • src/cozy-ui.d.ts

Comment thread package.json
"cozy-ui-plus": "^4.0.0",
"cozy-viewer": "^26.2.0",
"cozy-ui": "^138.1.0",
"cozy-ui-plus": "^6.0.0",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "Checking cozy-ui-plus theme API usage patterns..."
rg -n -C2 "from 'cozy-ui-plus/dist/providers/CozyTheme'|useCozyTheme|<CozyTheme[^>]*variant=|theme\.variant" --type=js --type=jsx --type=ts --type=tsx

Repository: linagora/cozy-home

Length of output: 156


🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "=== Checking package.json at line 56 ==="
sed -n '55,57p' package.json

echo -e "\n=== Checking for cozy-ui-plus theme API usage patterns ==="
# Search for the problematic patterns without file type restrictions
rg "useCozyTheme|CozyTheme.*variant|theme\.variant" -n -C2

echo -e "\n=== Checking specific files mentioned in review ==="
echo "File: src/components/Assistant/AssistantMobileWrapper.jsx"
[ -f src/components/Assistant/AssistantMobileWrapper.jsx ] && sed -n '1,15p' src/components/Assistant/AssistantMobileWrapper.jsx || echo "File not found"

echo -e "\nFile: src/components/FooterLogo/FooterLogo.jsx"
[ -f src/components/FooterLogo/FooterLogo.jsx ] && sed -n '1,15p' src/components/FooterLogo/FooterLogo.jsx || echo "File not found"

echo -e "\nFile: src/containers/IntentHandler.jsx"
[ -f src/containers/IntentHandler.jsx ] && sed -n '45,55p' src/containers/IntentHandler.jsx || echo "File not found"

Repository: linagora/cozy-home

Length of output: 9808


Complete the cozy-ui-plus v6 migration across the entire codebase.

After upgrading cozy-ui-plus to ^6.0.0 at line 56, extensive usage of useCozyTheme and <CozyTheme variant> patterns remains throughout the codebase. In addition to src/components/Assistant/AssistantMobileWrapper.jsx, src/components/FooterLogo/FooterLogo.jsx, and src/containers/IntentHandler.jsx, the following files also use these patterns: src/targets/intents/KonnectorRoutes.jsx, src/components/Konnector.jsx, src/components/BackupNotification/BackupNotification.jsx, src/components/Shortcuts/ShortcutActionsMenu.jsx, src/components/Shortcuts/ShortcutEditModal.jsx, src/components/Shortcuts/ShortcutCreateModal.jsx, src/components/Sections/SectionDialog.tsx, src/components/Personalization/WallpaperItem.jsx, src/components/Announcements/AnnouncementsDialog.tsx, src/components/HeroHeader/LogoutModal.tsx, src/components/BackgroundContainer.tsx, and src/components/Assistant/AssistantDesktopWrapper.jsx. Verify compatibility with v6 across all affected files or complete the migration to avoid runtime/style regressions.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@package.json` at line 56, Multiple components still use the old useCozyTheme
hook and <CozyTheme variant=...> wrapper which are incompatible with
cozy-ui-plus v6; search for useCozyTheme and CozyTheme across the listed
components (AssistantMobileWrapper, AssistantDesktopWrapper, FooterLogo,
IntentHandler, KonnectorRoutes, Konnector, BackupNotification, Shortcut* files,
SectionDialog, WallpaperItem, AnnouncementsDialog, LogoutModal,
BackgroundContainer) and replace them with the new v6 theming API: update
imports to the v6 exports (replace useCozyTheme/CozyTheme imports from
'cozy-ui-plus' with the v6 equivalents, e.g., the new useTheme hook and
ThemeProvider or Theme component per the v6 migration guide), convert any
<CozyTheme variant="..."> wrappers to the new provider/wrapper pattern and map
the old variant prop to the new theme property (or call useTheme() in component
to select styles), and update types/usages in SectionDialog.tsx to the new theme
types; after changes, run linting, build and visual/manual checks (or Storybook)
to confirm no runtime/style regressions.

@bundlemon
Copy link
Copy Markdown

bundlemon bot commented Mar 25, 2026

BundleMon

Files updated (6)
Status Path Size Limits
static/js/main.(hash).js
84.13KB (+1.68KB +2.04%) -
services/updateAccounts.js
472.13KB (+495B +0.1%) -
services/softDeleteOrRestoreAccounts.js
473.27KB (+437B +0.09%) -
static/js/cozy.(hash).js
891.07KB (-568B -0.06%) -
static/js/(chunkId).(hash).js
1.07MB (-1.19KB -0.11%) -
static/css/cozy.(hash).css
28.08KB (-4.26KB -13.17%) -
Unchanged files (10)
Status Path Size Limits
services/deleteAccounts.js
321.18KB -
services/sourceAccountIdentifierNormalizer.js
260.34KB -
services/cliskTimeout.js
259.79KB -
services/sourceAccountIdentifierNormalizerHel
per.js
236.97KB -
services/myselfFromIdenties.js
236.78KB -
services/polyfillFetch.js
97.16KB -
static/js/lib-react.(hash).js
43.88KB -
static/js/lib-router.(hash).js
26.7KB -
services/attributesHelpers.js
15.7KB -
static/css/main.(hash).css
8.77KB -

Total files change -3.41KB -0.07%

Groups updated (2)
Status Path Size Limits
**/*.js
7.27MB (+11.79KB +0.16%) -
**/*.css
77.03KB (-11.04KB -12.54%) -
Unchanged groups (1)
Status Path Size Limits
**/*.{png,svg,ico}
272.78KB -

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

Manage breaking change from cozy-ui 137.
@zatteo zatteo merged commit 568813c into master Mar 25, 2026
5 checks passed
@zatteo zatteo deleted the feat/packages branch March 25, 2026 08:46
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.

2 participants