Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into fix/…
Browse files Browse the repository at this point in the history
…memberList

* 'develop' of github.com:RocketChat/Rocket.Chat: (43 commits)
  chore: Pages empty state consistency (#29439)
  refactor: Convert Omnichannel helper ee to ts (#29274)
  regression(i18n): Broken translations on client-side startup (#29442)
  chore: break down helpers.ts and create new files (#28611)
  test: runInBand unit test (#29484)
  i18n: system message copy updates (#29372)
  chore: emoji popup trigger length (#29282)
  fix: Seat counter including apps (#29489)
  fix: Invalid message draft (#29474)
  fix: message deletion fails if has files attached on filesystem storage (#29313)
  chore: replace meteor.call -> sdk.call (#29318)
  chore: deprecation api (#29347)
  fix: Imported messages are not displayed (#29416)
  chore: convert metrics to ts (#29475)
  chore: use new Livechat SDK Implementation (#29098)
  fix: Room history scroll position (#29335)
  fix: check for $addToSet to be not empty before passing update params (#29378)
  chore: update `badge-level-0` color (#29460)
  fix: Saving Business hour throws an alert (#29449)
  regression: emojiPicker position (#29408)
  ...
  • Loading branch information
gabriellsh committed Jun 12, 2023
2 parents 0aba2a5 + 742eac7 commit 48b61e7
Show file tree
Hide file tree
Showing 398 changed files with 6,194 additions and 4,503 deletions.
5 changes: 5 additions & 0 deletions .changeset/bright-masks-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fixed system messages for room role changes
5 changes: 5 additions & 0 deletions .changeset/chatty-numbers-approve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: Importer crashes when sending the "active status" e-mail notification to users
5 changes: 5 additions & 0 deletions .changeset/curly-worms-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: OTR session closing after 10 seconds without warning
5 changes: 5 additions & 0 deletions .changeset/curvy-hounds-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

feat: access-marketplace permission
8 changes: 8 additions & 0 deletions .changeset/early-turtles-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"@rocket.chat/api-client": patch
"@rocket.chat/ddp-client": patch
"@rocket.chat/livechat": patch
"@rocket.chat/rest-typings": patch
---

chore: New Livechat SDK Implementation
5 changes: 5 additions & 0 deletions .changeset/friendly-spies-retire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: message deletion fails if has files attached on filesystem storage
29 changes: 29 additions & 0 deletions .changeset/helpers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
"@rocket.chat/meteor": patch
---

chore: break down helpers.ts and create new files

🔀 changed `handleAPIError` import in AppDetailsPage.tsx
🔀 changed `apiCurlGetter` import in AppDetailsAPIs.tsx
🔀 changed `formatPriceAndPurchaseType` import in AppStatusPriceDisplay.tsx

❌ deleted `apiCurlGetter, handleInstallError, handleAPIError, warnAppInstall, warnEnableDisableApp, warnStatusChange, formatPriceAndPurchaseType` and moved them to new files, from helpers.ts

✅ created apiCurlGetter.ts file
✅ created appErroredStatuses.ts file
✅ created formatPrice.ts file
✅ created formatPriceAndPurchaseType.ts file
✅ created formatPricingPlan.ts file
✅ created handleAPIError.ts file
✅ created handleInstallError.ts file
✅ created installApp.ts file
✅ created updateApp.ts file
✅ created warnAppInstal.ts file
✅ created warnEnableDisableApp.ts file
✅ created warnStatusChange.ts file

🔀 changed `handleAPIError` import in useAppInstallationHandler.tsx
🔀 changed `handleAPIError` import in useCategories.ts
🔀 changed `handleAPIError` import in useOpenIncompatibleModal.tsx

5 changes: 5 additions & 0 deletions .changeset/honest-coins-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: `queuedForUser` endpoint not filtering by status
7 changes: 7 additions & 0 deletions .changeset/login-terms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@rocket.chat/meteor": patch
"@rocket.chat/web-ui-registration": patch
---

fix: Login Terms custom content
The custom layout Login Terms did not had any effect on the login screen, so it was changed to get the proper setting effect
11 changes: 11 additions & 0 deletions .changeset/mean-guests-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
'@rocket.chat/meteor': minor
---

feat: *Enterprise* Add support for different transporters to connect multiple monolith instances.

To use that, you can use the `TRANSPORTER` env var adding "monolith+" to the transporter value. To use NATS for example, your env var should be:

```bash
export TRANSPORTER="monolith+nats://localhost:4222"
```
5 changes: 5 additions & 0 deletions .changeset/modern-coins-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

refactor: Convert Omnichannel helper ee to ts
5 changes: 5 additions & 0 deletions .changeset/modern-terms-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/agenda": patch
---

fix: Saving Business hour throws an alert
5 changes: 5 additions & 0 deletions .changeset/pretty-dots-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

fix: Room history scrollbar position
5 changes: 5 additions & 0 deletions .changeset/quiet-bottles-fry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

fix: Import progress page stuck at 0%
5 changes: 5 additions & 0 deletions .changeset/quiet-kids-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

Fixed invalid message draft issue.
5 changes: 5 additions & 0 deletions .changeset/sixty-owls-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

Fix seats counter including apps
6 changes: 6 additions & 0 deletions .changeset/slow-maps-swim.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rocket.chat/meteor": patch
---

fix: Imported messages are not displayed
fix: Importer agent is added as a member of every imported room
5 changes: 5 additions & 0 deletions .changeset/soft-kings-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': minor
---

Added emoji popup trigger length of 3 characters.
5 changes: 5 additions & 0 deletions .changeset/tough-knives-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': patch
---

fix: Remove room from UI when another agent takes it
5 changes: 5 additions & 0 deletions .changeset/violet-beans-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/meteor": patch
---

Fix visitor's query when both email & phone number are empty
5 changes: 5 additions & 0 deletions .changeset/warm-scissors-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@rocket.chat/gazzodown": patch
---

chore(meteor): Update mention style
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/packages/* @RocketChat/Architecture
/packages/core-typings/ @RocketChat/Architecture
/packages/rest-typings/ @RocketChat/Architecture
/packages/rest-typings/ @RocketChat/Architecture @RocketChat/backend
/packages/ui-contexts/ @RocketChat/frontend
/packages/eslint-config/ @RocketChat/Architecture
/packages/livechat/ @RocketChat/frontend @RocketChat/Architecture
Expand Down
118 changes: 75 additions & 43 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,103 +1,135 @@
<img src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" data-canonical-src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" width="500" />
<p align="center">
<img src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" data-canonical-src="https://github.com/RocketChat/Rocket.Chat.Artwork/raw/master/Logos/2020/png/logo-horizontal-red.png" width="400" />
</p>

<h1 align="center">
The ultimate Free Open Source Solution for team communications.
The ultimate Free Open Source Solution for team communications
</h1>

<p align="center">
<img src="https://img.shields.io/github/v/release/RocketChat/Rocket.Chat?label=version">
<img src="https://img.shields.io/github/actions/workflow/status/RocketChat/Rocket.Chat/build_and_test.yml">
<img src="https://img.shields.io/badge/license-MIT-green">
<img alt="Codecov branch" src="https://img.shields.io/codecov/c/github/RocketChat/Rocket.Chat/develop">
</p>



[Rocket.Chat](https://rocket.chat) is an open-source fully customizable communications platform developed in JavaScript for organizations with high standards of data protection.

We are a MERN based application enabling real-time conversations between colleagues, with other companies or with your customers, regardless of how they connect with you. The result is an increase in productivity and customer satisfaction rates.
We are the ultimate **Free Open Source Solution** for team communications, enabling real-time conversations between colleagues, with other companies or with your customers, regardless of how they connect with you. The result is an increase in productivity and customer satisfaction rates.

Every day, tens of millions of users in over 150 countries and in organizations such as Deutsche Bahn, The US Navy, and Credit Suisse trust Rocket.Chat to keep their communications completely private and secure.

# 🚀 Product Offerings - Self Hosted and Cloud

Rocket.Chat has four key product offerings:

💬 **Team collaboration** - A single point for secure internal and cross-company collaboration.

Every day, tens of millions of users in over 150 countries and in organizations such as Deutsche Bahn, The US Navy, and Credit Suisse trust [Rocket.Chat](https://rocket.chat) to keep their communications completely private and secure.
🎯 **Omnichannel customer service** - Engage in seamless interactions with customers regardless of how they connect with you.

- [Review product documentation](https://docs.rocket.chat)
- [Review developer documentation](https://developer.rocket.chat)
🦾 **Chat engine** - Create customized messaging experiences within your mobile or web app.

Using our self-managed offerings you can deploy Rocket.Chat on your own server, or you can use SaaS Rocket.Chat. We offer support for both community as well as commercial plans.
🤖 **Marketplace** - Choose a wide range of apps and native integrations that help your business communicate more effectively.

<img src="https://raw.githubusercontent.com/RocketChat/Rocket.Chat.Artwork/master/Product%20Images/Welcome%20to%20RC%20(Readme).jpg" data-canonical-src="https://raw.githubusercontent.com/RocketChat/Rocket.Chat.Artwork/master/Product%20Images/Welcome%20to%20RC%20(Readme).jpg" width="919" height="511" />
<img src="https://global-uploads.webflow.com/611a19b9853b7414a0f6b3f6/6319c72bbd8af5c8c22efab6_heroImage.webp" data-canonical-src="https://global-uploads.webflow.com/611a19b9853b7414a0f6b3f6/6319c72bbd8af5c8c22efab6_heroImage.webp" />

## Cloud Hosted Rocket.Chat
# ☁️ Cloud Hosted Rocket.Chat

https://cloud.rocket.chat/trial
Send your first message in minutes.

## Local development
Free for 30 days. Afterward, choose between continuing to host on our secure cloud or migrating to your private cloud, data center, or even air-gapped environment.

### Prerequisites
[Start your cloud hosted trial now](https://rocket.chat/trial-saas)

# 🛠️ Local development

## Prerequisites

You can follow these instructions to setup a dev environment:

- Install **Node 14.x (LTS)** either [manually](https://nodejs.org/dist/latest-v14.x/) or using a tool like [nvm](https://github.com/creationix/nvm) (recommended)
- Install **Meteor**: https://www.meteor.com/developers/install
- Install **Node 14.x (LTS)** either [manually](https://nodejs.org/dist/latest-v14.x/) or using a tool like [nvm](https://github.com/creationix/nvm) or [volta](https://volta.sh/) (recommended)
- Install **Meteor** ([version here](apps/meteor/.meteor/release)): https://www.meteor.com/developers/install
- Install **yarn**: https://yarnpkg.com/getting-started/install
- Clone this repo: `git clone https://github.com/RocketChat/Rocket.Chat.git`
- Run `yarn` to install dependencies

### Starting Rocket.Chat
**Starting Rocket.Chat:**

```bash
yarn dev # run all packages
```
yarn dsv
OR
```bash
yarn dsv # run only meteor (front and back) with pre-built packages
```

After initialized, you can access the server at http://localhost:3000

### Starting Rocket.Chat in microservices mode
**Starting Rocket.Chat in microservices mode:**

```
```bash
yarn turbo run ms
```

After initialized, you can access the server at http://localhost:4000

## Installation
> ⚠️ Check more detailed informations in the [Rocket.Chat Environment Setup](https://developer.rocket.chat/rocket.chat/rocket-chat-environment-setup) guide
# 💻 Installation

Please see the [requirements documentation](https://docs.rocket.chat/deploy/installing-client-apps/minimum-requirements-for-using-rocket.chat) for system requirements and more information about supported operating systems.
Please refer to [Install Rocket.Chat](https://rocket.chat/install) to install your Rocket.Chat instance.

## Feature Request
# 📱 Mobile Apps

[Rocket.Chat/feature-requests](https://github.com/RocketChat/feature-requests) is used to track Rocket.Chat feature requests and discussions. Click [here](https://github.com/RocketChat/feature-requests/issues/new?template=feature_request.md) to open a new feature request. [Feature Request Forums](https://forums.rocket.chat/c/feature-requests/8) stores the historical archives of old feature requests (up to 2018).
In addition to the web interface, you can also download Rocket.Chat clients for:

## Community

Join thousands of members worldwide in our [community server](https://open.rocket.chat).
Join [#Support](https://open.rocket.chat/channel/support) for help from our community with general Rocket.Chat questions.
Join [#Dev](https://open.rocket.chat/channel/dev) for needing help from the community to develop new features.
Talk with Rocket.Chat's leadership at the [Community Open Call](https://www.youtube.com/playlist?list=PLee3gqXJQrFVaxryc0OKTKc92yqQX9U-5), held monthly. Join us for [the next Community Open Call](https://app.livestorm.co/rocket-chat/community-open-call?type=detailed).
[![Rocket.Chat on Apple App Store](https://user-images.githubusercontent.com/551004/29770691-a2082ff4-8bc6-11e7-89a6-964cd405ea8e.png)](https://itunes.apple.com/us/app/rocket-chat/id1148741252?mt=8) [![Rocket.Chat on Google Play](https://user-images.githubusercontent.com/551004/29770692-a20975c6-8bc6-11e7-8ab0-1cde275496e0.png)](https://play.google.com/store/apps/details?id=chat.rocket.android) [![](https://user-images.githubusercontent.com/551004/48210349-50649480-e35e-11e8-97d9-74a4331faf3a.png)](https://f-droid.org/en/packages/chat.rocket.android)

## Contributions
You can also contribute to the Mobile open source code in [Rocket.Chat.ReactNative](https://github.com/RocketChat/Rocket.Chat.ReactNative) and check it out its [documentation](https://developer.rocket.chat/mobile-app/mobile-app-environment-setup)

Rocket.Chat is an open source project and we are very happy to accept community contributions. Please refer to the [How can I help?](https://developer.rocket.chat/contribute-to-rocket.chat/ways-to-contribute) for more details.
# 🧩 Apps Engine for Rocket.Chat

## Credits
You can develop your own app that can be integrated with Rocket.Chat. We provide an [Open Source Apps Engine framework](https://developer.rocket.chat/apps-engine/getting-started) increasing the world of possibilities of integrations around the Rocket.Chat ecosystem

- Emoji provided graciously by [JoyPixels](https://www.joypixels.com).
- Testing with [BrowserStack](https://www.browserstack.com).
- Translations done with [LingoHub](https://lingohub.com).
# 📚 Learn More

## Mobile Apps
- [Product Documentation](https://docs.rocket.chat)
- [Developer Documentation](https://developer.rocket.chat)
- [API Documentation](https://developer.rocket.chat/reference/api)
- [Apps Engine Development](https://developer.rocket.chat/apps-engine/rocket.chat-apps-and-apps-engine)
- [See who's using Rocket.Chat](https://www.rocket.chat/customers)

In addition to the web interface, you can also download Rocket.Chat clients for:
# 🆕 Feature Request

[![Rocket.Chat on Apple App Store](https://user-images.githubusercontent.com/551004/29770691-a2082ff4-8bc6-11e7-89a6-964cd405ea8e.png)](https://itunes.apple.com/us/app/rocket-chat/id1148741252?mt=8) [![Rocket.Chat on Google Play](https://user-images.githubusercontent.com/551004/29770692-a20975c6-8bc6-11e7-8ab0-1cde275496e0.png)](https://play.google.com/store/apps/details?id=chat.rocket.android) [![](https://user-images.githubusercontent.com/551004/48210349-50649480-e35e-11e8-97d9-74a4331faf3a.png)](https://f-droid.org/en/packages/chat.rocket.android)
[Rocket.Chat/feature-requests](https://github.com/RocketChat/feature-requests) is used to track Rocket.Chat feature requests and discussions. Click [here](https://github.com/RocketChat/feature-requests/issues/new?template=feature_request.md) to open a new feature request. [Feature Request Forums](https://forums.rocket.chat/c/feature-requests/8) stores the historical archives of old feature requests (up to 2018).

# 🤝 Community

## Learn More
Join thousands of members worldwide in our [community server](https://open.rocket.chat).
Join [#support](https://open.rocket.chat/channel/support) and [#general](https://open.rocket.chat/channel/general) for help from the community.

- [API](https://developer.rocket.chat/reference/api)
- [See who's using Rocket.Chat](https://rocket.chat/customer-stories)

## Become a Rocketeer
# 👥 Contributions

Rocket.Chat is an open source project and we are very happy to accept community contributions. Please refer to the [How can I help?](https://developer.rocket.chat/contribute-to-rocket.chat/ways-to-contribute) page for more details.


## 💼 Become a Rocketeer

We're hiring developers, support people, and product managers all the time. Please check our [jobs page](https://rocket.chat/jobs).

## Get the Latest News
## 🗞️ Get the Latest News

- [Twitter](https://twitter.com/RocketChat)
- [Blog](https://rocket.chat/blog)
- [Twitter](https://twitter.com/RocketChat)
- [Facebook](https://www.facebook.com/RocketChatApp)
- [LinkedIn](https://www.linkedin.com/company/rocket-chat)
- [Youtube](https://www.youtube.com/channel/UCin9nv7mUjoqrRiwrzS5UVQ)
- [Email Newsletter](https://rocket.chat/newsletter)

Any other questions, reach out to us at [our website](https://rocket.chat/contact) or you can email us directly at [contact@rocket.chat](mailto:contact@rocket.chat). We’d be happy to help!
## 🗒️ Credits

- Emoji provided graciously by [JoyPixels](https://www.joypixels.com).
10 changes: 6 additions & 4 deletions apps/meteor/app/api/server/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { parseJsonQuery } from './helpers/parseJsonQuery';
import { Logger } from '../../logger/server';
import { getUserInfo } from './helpers/getUserInfo';
import { hasPermissionAsync } from '../../authorization/server/functions/hasPermission';
import { apiDeprecationLogger } from '../../lib/server/lib/deprecationWarningLogger';

const logger = new Logger('API');

Expand Down Expand Up @@ -177,10 +178,7 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
}

async parseJsonQuery(this: PartialThis) {
// eslint-disable-next-line @typescript-eslint/no-this-alias
const self = this;

return parseJsonQuery(this.request.route, self.userId, self.queryParams, self.logger, self.queryFields, self.queryOperations);
return parseJsonQuery(this);
}

public addAuthMethod(func: (this: PartialThis, ...args: any[]) => any): void {
Expand Down Expand Up @@ -581,6 +579,10 @@ export class APIClass<TBasePath extends string = ''> extends Restivus {
};

try {
if (options.deprecationVersion) {
apiDeprecationLogger.endpoint(this.request.route, options.deprecationVersion, this.response);
}

await api.enforceRateLimit(objectForRateLimitMatch, this.request, this.response, this.userId);

if (_options.validateParams) {
Expand Down
1 change: 1 addition & 0 deletions apps/meteor/app/api/server/definition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export type Options = (
) & {
validateParams?: ValidateFunction | { [key in Method]?: ValidateFunction };
authOrAnonRequired?: true;
deprecationVersion?: string;
};

export type PartialThis = {
Expand Down
Loading

0 comments on commit 48b61e7

Please sign in to comment.