Skip to content

feat(uikit): Move @rocket.chat/ui-kit package to the main monorepo - #31138

Merged
ggazzo merged 9 commits into
developfrom
feat/uikit-package
Dec 6, 2023
Merged

feat(uikit): Move @rocket.chat/ui-kit package to the main monorepo#31138
ggazzo merged 9 commits into
developfrom
feat/uikit-package

Conversation

@tassoevan

Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

Issue(s)

Steps to test or reproduce

Further comments

@changeset-bot

changeset-bot Bot commented Dec 1, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bdb1f68

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 52 packages
Name Type
@rocket.chat/ui-kit Minor
@rocket.chat/server-cloud-communication Patch
@rocket.chat/omnichannel-services Patch
rocketchat-services Patch
@rocket.chat/omnichannel-transcript Patch
@rocket.chat/authorization-service Patch
@rocket.chat/web-ui-registration Patch
@rocket.chat/stream-hub-service Patch
@rocket.chat/password-policies Patch
@rocket.chat/uikit-playground Patch
@rocket.chat/presence-service Patch
@rocket.chat/fuselage-ui-kit Major
@rocket.chat/instance-status Patch
@rocket.chat/account-service Patch
@rocket.chat/mock-providers Patch
@rocket.chat/release-action Patch
@rocket.chat/api-client Patch
@rocket.chat/ddp-client Patch
@rocket.chat/pdf-worker Patch
@rocket.chat/ui-theming Patch
@rocket.chat/account-utils Patch
@rocket.chat/core-services Patch
@rocket.chat/eslint-config Patch
@rocket.chat/model-typings Patch
@rocket.chat/ui-video-conf Patch
@rocket.chat/cas-validate Patch
@rocket.chat/core-typings Patch
@rocket.chat/rest-typings Patch
@rocket.chat/server-fetch Patch
@rocket.chat/ddp-streamer Patch
@rocket.chat/queue-worker Patch
@rocket.chat/presence Patch
@rocket.chat/poplib Patch
@rocket.chat/ui-composer Patch
@rocket.chat/ui-contexts Patch
@rocket.chat/license Patch
@rocket.chat/log-format Patch
@rocket.chat/gazzodown Patch
@rocket.chat/ui-client Patch
@rocket.chat/livechat Patch
@rocket.chat/favicon Patch
@rocket.chat/agenda Patch
@rocket.chat/base64 Patch
@rocket.chat/logger Patch
@rocket.chat/models Patch
@rocket.chat/random Patch
@rocket.chat/sha256 Patch
@rocket.chat/tools Patch
@rocket.chat/cron Patch
@rocket.chat/i18n Patch
@rocket.chat/jwt Patch
@rocket.chat/meteor Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov

codecov Bot commented Dec 1, 2023

Copy link
Copy Markdown

Codecov Report

Merging #31138 (bdb1f68) into develop (88a871f) will decrease coverage by 8.51%.
The diff coverage is 33.33%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #31138      +/-   ##
===========================================
- Coverage    57.24%   48.73%   -8.51%     
===========================================
  Files          881     3280    +2399     
  Lines        19949    80006   +60057     
  Branches      3719    16011   +12292     
===========================================
+ Hits         11419    38992   +27573     
- Misses        7841    36438   +28597     
- Partials       689     4576    +3887     
Flag Coverage Δ
e2e 51.35% <ø> (+8.98%) ⬆️
e2e-api 40.78% <33.33%> (?)
unit 76.70% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@tassoevan tassoevan added this to the 6.6 milestone Dec 4, 2023
@tassoevan
tassoevan marked this pull request as ready for review December 4, 2023 18:32
@tassoevan
tassoevan requested review from a team as code owners December 4, 2023 18:32
Comment thread apps/meteor/package.json
"@rocket.chat/ui-composer": "workspace:^",
"@rocket.chat/ui-contexts": "workspace:^",
"@rocket.chat/ui-kit": "~0.32.1",
"@rocket.chat/ui-kit": "workspace:~",

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.

any special reason to use workspace:~ instead of workspace:^? this used to be an issue with the script to fix the version dependencies before publishing a package, but now we just ignore whatever "symbol" is being used..

so my question is more why did you chose for ~? since we use ^ for everything else

@tassoevan tassoevan Dec 5, 2023

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.

I particularly go for yarn add --tilde when adding new dependency because "tilde-dependencies" deny minor-version bumps, while carets not; in my personal projects, I even put defaultSemverRangePrefix: "~" on .yarnrc.yml.
When the package is published on npmjs registry, workspace:~ is replaced with ~x.y.z while workspace:^ is replaced with ^x.y.z.

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.

When the package is published on npmjs registry, workspace:~ is replaced with ~x.y.z while workspace:^ is replaced with ^x.y.z.

not really, we always set to ^x.y.z :

packageJson[dependencyType][dependency] = `^${realVersion}`;

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.

Ideally we shouldn't have to do this heavy-lifting ourselves... https://yarnpkg.com/features/workspaces#cross-references

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.

"Na prática, a teoria é outra."

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.

Patched the action's code.

tiagoevanp
tiagoevanp previously approved these changes Dec 5, 2023
@ggazzo
ggazzo merged commit b223cbd into develop Dec 6, 2023
@ggazzo
ggazzo deleted the feat/uikit-package branch December 6, 2023 02:08
gabriellsh added a commit that referenced this pull request Dec 7, 2023
…hideUi

* 'develop' of github.com:RocketChat/Rocket.Chat: (21 commits)
  chore: Rename useFileInput to useSingleFileInput (#31186)
  regression: FED-116 allow to invite rc users to fed channels (#30658)
  refactor: Remove `livechat.js` file (#31179)
  test: Fix Analytics test to use always same date (#31178)
  chore: notify messages on emails incoming and outgoing (#30925)
  chore: add msg stream to the federation v1 feature (#31105)
  chore: update editedBy when the user changes their username (following BE rules) (#31098)
  chore: add a manual msg stream update for autotranslate (#31094)
  chore: send streaming msg update on livechat decline call event (#31025)
  chore: Replace `IconButton` in favor of `Button` on `PageHeader` (#31171)
  refactor: Migrate `analytics.js` to service (#31051)
  feat: Add `push.info` endpoint to retrieve push gateway info (#30868)
  chore: Convert Importer classes to typescript (#29714)
  docs: fix lost image render in markdown (#31013)
  feat(uikit): Move `@rocket.chat/ui-kit` package to the main monorepo (#31138)
  i18n: Language update from LingoHub 🤖 on 2023-12-05Z (#31161)
  feat: Skip to main content shortcut and `useDocumentTitle` (#30680)
  chore: Replace `useForm` in favor of RHF on Omnichannel `AgentsEdit` (#30789)
  chore: ImageGallery tweaks (#31159)
  fix: New `custom-roles` license module isn't properly checked (#31153)
  ...
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.

4 participants