-
Notifications
You must be signed in to change notification settings - Fork 11.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:RocketChat/Rocket.Chat into new/…
…hideUi * 'develop' of github.com:RocketChat/Rocket.Chat: chore: add gitpod config file for quick setup (#30921) feat: Allow user to set timeout of outgoing webhook (#31222) feat: added modal confirmation before pinning message (#31348) fix: not being able to access or create rooms with join code (#31270) chore: services changes on lifecycle methods + throw if svc is not available (#31375) test: bump playwright (#31376) i18n: update translations (#29462) i18n: adds video call translations for Persian language (#30406) regression: `AppRow` bundleIn verification (#31373) feat: Add Desktop PDF viewer (#31279) fix: Attachments not collapsing when using incoming webhook (#31318) chore: add aria-label to Select Inputs at Engagement Dashboard (#31249) fix: engagement dashboard timezone selector (#31248)
- Loading branch information
Showing
37 changed files
with
755 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Fixed Attachments not respecting collapse property when using incoming webhook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Fixed Engagement Dashboard timezone selector freezing UI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": patch | ||
--- | ||
|
||
Fixed an issue where room access and creation were hindered due to join codes not being fetched correctly in the API. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@rocket.chat/meteor": minor | ||
--- | ||
|
||
Added a modal to confirm the intention to pin a message, preventing users from doing it by mistake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
tasks: | ||
- init: | | ||
nvm install $(jq -r .engines.node package.json) && | ||
curl https://install.meteor.com/ | sh && | ||
export PATH="$PATH:$HOME/.meteor" && | ||
yarn && | ||
export ROOT_URL=$(gp url 3000) | ||
command: yarn build && yarn dev | ||
ports: | ||
- port: 3000 | ||
visibility: public | ||
onOpen: open-preview | ||
|
||
github: | ||
prebuilds: | ||
master: true | ||
pullRequests: true | ||
pullRequestsFromForks: true | ||
addCheck: true | ||
addComment: true | ||
addBadge: true | ||
|
||
vscode: | ||
extensions: | ||
- esbenp.prettier-vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type OutlookEventsResponse = { status: 'success' | 'canceled' }; | ||
|
||
export interface IRocketChatDesktop { | ||
openInternalVideoChatWindow?: (url: string, options: { providerName: string | undefined }) => void; | ||
getOutlookEvents?: (date: Date) => Promise<OutlookEventsResponse>; | ||
setOutlookExchangeUrl?: (url: string, userId: string) => Promise<void>; | ||
hasOutlookCredentials?: () => Promise<boolean>; | ||
clearOutlookCredentials?: () => void; | ||
openDocumentViewer?: (url: string, format: string, options: any) => void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import type { IRocketChatDesktop } from './IRocketChatDesktop'; | ||
|
||
declare global { | ||
// eslint-disable-next-line @typescript-eslint/naming-convention | ||
interface Window { | ||
RocketChatDesktop?: IRocketChatDesktop; | ||
} | ||
} |
14 changes: 0 additions & 14 deletions
14
apps/meteor/client/lib/utils/window.RocketChatDesktop.d.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
apps/meteor/client/views/room/modals/PinMessageModal/PinMessageModal.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import type { MessageQuoteAttachment, IMessage } from '@rocket.chat/core-typings'; | ||
import { Box } from '@rocket.chat/fuselage'; | ||
import { useTranslation, useUserAvatarPath } from '@rocket.chat/ui-contexts'; | ||
import type { ComponentProps, ReactElement } from 'react'; | ||
import React from 'react'; | ||
|
||
import GenericModal from '../../../../components/GenericModal'; | ||
import { QuoteAttachment } from '../../../../components/message/content/attachments/QuoteAttachment'; | ||
import { useUserDisplayName } from '../../../../hooks/useUserDisplayName'; | ||
|
||
type PinMessageModalProps = { message: IMessage } & ComponentProps<typeof GenericModal>; | ||
|
||
const PinMessageModal = ({ message, ...props }: PinMessageModalProps): ReactElement => { | ||
const t = useTranslation(); | ||
const getUserAvatarPath = useUserAvatarPath(); | ||
const displayName = useUserDisplayName(message.u); | ||
const avatarUrl = getUserAvatarPath(message.u.username); | ||
|
||
const attachment = { | ||
author_name: String(displayName), | ||
author_link: '', | ||
author_icon: avatarUrl, | ||
message_link: '', | ||
text: message.msg, | ||
attachments: message.attachments as MessageQuoteAttachment[], | ||
md: message.md, | ||
}; | ||
|
||
return ( | ||
<GenericModal icon='pin' title={t('Pin_Message')} variant='warning' confirmText={t('Yes_pin_message')} {...props}> | ||
<Box mbe={16} is='p'> | ||
{t('Are_you_sure_you_want_to_pin_this_message')} | ||
</Box> | ||
<QuoteAttachment attachment={attachment} /> | ||
<Box is='p' fontScale='c1' mbs={16}> | ||
{t('Pinned_messages_are_visible_to_everyone')} | ||
</Box> | ||
<Box is='p' fontScale='c1'> | ||
{t('Starred_messages_are_only_visible_to_you')} | ||
</Box> | ||
</GenericModal> | ||
); | ||
}; | ||
|
||
export default PinMessageModal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './PinMessageModal'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.