Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Commit 929a6ec

Browse files
Feat: added whatsapp related assets
1 parent 3165836 commit 929a6ec

File tree

11 files changed

+131
-26
lines changed

11 files changed

+131
-26
lines changed

actions/whatsapp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"packageManager": "pnpm@8.15.6",
1111
"dependencies": {
12-
"@tegonhq/sdk": "file:../../packages/tegon-sdk/dist",
12+
"@tegonhq/sdk": "0.1.13",
1313
"@trigger.dev/sdk": "3.0.0-beta.56",
1414
"axios": "^1.6.7",
1515
"form-data": "^4.0.0"

actions/whatsapp/pnpm-lock.yaml

Lines changed: 79 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/server/src/modules/workspaces/workspaces.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,15 +155,15 @@ export class WorkspacesController {
155155
}
156156

157157
@UseGuards(AuthGuard, AdminGuard)
158-
@Post(':workspaceId/invite_users')
158+
@Post('invite_users')
159159
async inviteUsers(
160160
@SessionDecorator() session: SessionContainer,
161-
@Param() workspaceIdRequestBody: WorkspaceRequestParamsDto,
161+
@WorkspaceD() workspaceId: string,
162162
@Body() inviteUsersBody: InviteUsersBody,
163163
) {
164164
return await this.workspacesService.inviteUsers(
165165
session,
166-
workspaceIdRequestBody.workspaceId,
166+
workspaceId,
167167
inviteUsersBody,
168168
);
169169
}

apps/webapp/src/common/icon-utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { RiDiscordFill, RiGithubFill, RiMailFill } from '@remixicon/react';
2-
import { Actions, SlackIcon, StackLine } from '@tegonhq/ui/icons';
2+
import { Actions, SlackIcon, StackLine, Whatsapp } from '@tegonhq/ui/icons';
33

44
export const ICON_MAPPING = {
55
slack: SlackIcon,
66
email: RiMailFill,
77
discord: RiDiscordFill,
88
github: RiGithubFill,
9+
whatsapp: Whatsapp,
910

1011
// Default icon
1112
integration: StackLine,

apps/webapp/src/modules/issues/single-issue/left-side/activity/comments-activity/comments-activity.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ export const CommentsActivity = observer(() => {
3434
const sortedComments = React.useMemo(() => {
3535
const comments = commentsStore.getComments(issue.id) as IssueCommentType[];
3636

37-
return sort(comments).desc((comment) =>
38-
new Date(comment.updatedAt).getTime(),
37+
return sort(comments).asc((comment) =>
38+
new Date(comment.createdAt).getTime(),
3939
);
4040
// eslint-disable-next-line react-hooks/exhaustive-deps
4141
}, [commentsStore.comments.length, issue]);
@@ -46,8 +46,6 @@ export const CommentsActivity = observer(() => {
4646

4747
return (
4848
<div className="my-2 w-full flex flex-col gap-4">
49-
<IssueComment />
50-
5149
<Timeline>
5250
{sortedComments
5351
.filter((comment: IssueCommentType) => !comment.parentId)
@@ -64,6 +62,7 @@ export const CommentsActivity = observer(() => {
6462
/>
6563
))}
6664
</Timeline>
65+
<IssueComment />
6766
</div>
6867
);
6968
});

apps/webapp/src/modules/issues/single-issue/right-side/support-properties.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ export const People = observer(({ peopleId }: { peopleId?: string }) => {
2424
{people && (
2525
<div className={cn('flex flex-col items-start')}>
2626
<div className="text-xs text-left">User</div>
27-
<div className="text-left mt-0.5">
28-
{people.name} ({people.email})
29-
</div>
27+
<div className="text-left mt-0.5">{people.name}</div>
3028
</div>
3129
)}
3230

apps/webapp/src/modules/settings/workspace-settings/integrations/integration.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export function Integration() {
1919

2020
return (
2121
<>
22-
{!isLoading && <Header title={integrationDefinition.name} />}
2322
<ContentBox>
23+
{!isLoading && <Header title={integrationDefinition.name} />}
2424
<ScrollArea className="flex grow h-full">
2525
<div className="w-full p-4">
2626
{!isLoading && (

apps/webapp/src/modules/settings/workspace-settings/integrations/integrations.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ Integrations.getLayout = function getLayout(page: React.ReactElement) {
8989
return (
9090
<SettingsLayout>
9191
<div className="h-[100vh] flex flex-col w-full">
92-
<Header title="Integrations" />
9392
<ContentBox>
93+
<Header title="Integrations" />
9494
<ScrollArea className="flex grow h-full">
9595
<div className="w-full p-4">{page} </div>
9696
</ScrollArea>

packages/tegon-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tegonhq/sdk",
3-
"version": "0.1.12",
3+
"version": "0.1.13",
44
"description": "Tegon Node.JS SDK",
55
"main": "./dist/index.js",
66
"types": "./dist/index.d.ts",

packages/ui/src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export * from './cycle';
6969
export * from './activity';
7070
export * from './help-centre';
7171
export * from './code';
72+
export * from './whatsapp';
7273

7374
export * from './team-line';
7475
export * from './issues-fill';

0 commit comments

Comments
 (0)