Skip to content

Commit 82aae41

Browse files
committed
Merge branch 'development' of https://github.com/codeuino/social-platform-donut-frontend into user_activity
2 parents 1578089 + 48d0d88 commit 82aae41

File tree

13 files changed

+994
-42
lines changed

13 files changed

+994
-42
lines changed

package-lock.json

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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"react-router-dom": "^5.1.2",
4444
"react-scripts": "^3.4.0",
4545
"react-shapes": "^0.1.0",
46+
"react-share": "^4.2.1",
4647
"react-spinners": "^0.8.3",
4748
"react-switch": "^5.0.1",
4849
"react-toastify": "^6.0.5",

src/actions/postAction.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const updatePost = (postId, updatedInfo) => async (dispatch) => {
8181
console.log("updatedPostInfo ", updatedInfo);
8282
const res = await axios.patch(`${BASE_URL}/post/${postId}`, updatedInfo);
8383
if (res.status === 200) {
84-
dispatch(getPostById(postId));
84+
dispatch(getAllPosts());
8585
}
8686
} catch (error) {
8787
dispatch(errorHandler(error));
@@ -103,7 +103,10 @@ export const deletePost = (postId) => async (dispatch) => {
103103
// REMOVE REACTION
104104
export const removeReaction = (postId, type) => async (dispatch) => {
105105
try {
106-
const res = await axios.patch(`${BASE_URL}/post/removereaction/${postId}`, type);
106+
const res = await axios.patch(
107+
`${BASE_URL}/post/removereaction/${postId}`,
108+
type
109+
);
107110
if (res.status === 200) {
108111
dispatch(getAllPosts());
109112
}
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
import Drive from "../integrations/Drive.png";
2+
import Calendar from "../integrations/Calendar.png";
3+
import Github from "../integrations/Github.png";
4+
import Jitsi from "../integrations/Jitsi.png";
5+
import Trello from "../integrations/Trello.png";
6+
import SimplePoll from "../integrations/SimplePoll.png";
7+
8+
const integrationsList = [
9+
{
10+
id: "1",
11+
integrationName: "Google Drive",
12+
image: Drive,
13+
tag: "File Management",
14+
description: `Use Google Drive within Donut to:
15+
• Create new Google Docs, Slides, and Sheets files
16+
• Import an existing file from Google Drive into a channel or direct message
17+
• Search directly within Google Drive files shared within Donut
18+
• Automatically grant access to the files you share with the right audience
19+
• Get updates in Donut on changes in Drive, like comments, access requests, and new files shared with you
20+
• Reply directly to comment notifications from within Donut and have them posted to the file
21+
`,
22+
},
23+
{
24+
id: "2",
25+
integrationName: "Google Calendar",
26+
image: Calendar,
27+
tag: "Productivity",
28+
description: `From viewing your daily schedule or receiving up-to-the-minute reminders, keep your calendar top of mind without leaving Donut. Use Google Calendar in Donut to:
29+
• Create an event right from Donut using the shortcuts button.
30+
• Automatically sync your calendar to your Donut status to let your team know when you are in a meeting.
31+
• See a holistic view of your daily schedule from Donut.
32+
• Get notified when an event is starting soon, and join a Hangout, Zoom, Webex, or Microsoft Teams meeting directly from the calendar reminder in Donut.
33+
• Respond directly to event invitations.
34+
• Get updated when an event’s details change, and change your response as needed.
35+
`,
36+
},
37+
{
38+
id: "3",
39+
integrationName: "Github",
40+
image: Github,
41+
tag: "Developer Tools",
42+
description: `Bring your code to the conversations you care about with the GitHub and Donut app. With two of your most important workspaces connected, you’ll get updates about what’s happening on GitHub—without leaving Donut.
43+
Subscribe to repositories
44+
Use /github subscribe [owner/repo] in Donut to start receiving updates about that project.
45+
Stay up to date
46+
Get updates about what’s happening with your repositories in Donut discussions for activities like:
47+
• New commits
48+
• New pull requests
49+
• New issues
50+
• Code reviews
51+
• Deployment statuses
52+
See the details
53+
Give your team more information in Donut when you share links to GitHub activities and properties like:
54+
• Pull requests
55+
• Issues
56+
• Linked comments
57+
• Code snippets
58+
• Developer profiles
59+
Take actions with slash commands
60+
Donut conversations often lead to decisions and actionable takeaways. Now it’s easier to start on next steps from Donut with slash commands for common GitHub actions, using /github [action] [resource]. For example, these commands let you:
61+
• Close an issue or pull request
62+
• Reopen an issue or pull request
63+
• Open a new issue using a Donut dialog
64+
Using an older version of GitHub and Donut? Installing the new integration will allow you to migrate subscriptions from legacy versions. GitHub Enterprise and Donut Enterprise Grid are not yet supported.
65+
`,
66+
},
67+
{
68+
id: "4",
69+
integrationName: "Jitsi Meet",
70+
image: Jitsi,
71+
tag: "Communication",
72+
description: `Jitsi Meet is an OpenSource (Apache License) application that provides large scale video conferences for your browser or your mobile. No accounts or pin-codes are necessary. Just click the link and you are in!
73+
This integration adds the /jitsi slash command for your team so that you can start a video conference in your channel, making it easy for everyone to just jump on the call. Just type /jitsi into your channel and a conference link will be provided in the channel. Additionally, you can send direct messages to users by mentioning their username in the command.
74+
In addition to simple video calls Jitsi Meet also lets you join over the phone, stream to YouTube and collaboratively edit documents.
75+
`,
76+
},
77+
{
78+
id: "5",
79+
integrationName: "Trello",
80+
image: Trello,
81+
tag: "Prodictivity",
82+
description: `Trusted by millions, Trello is the visual collaboration tool that creates a shared perspective on any project.
83+
Link your Trello and Donut teams to harness the power of productivity with the Trello app for Donut, and create a seamless and collaborative workflow between your favorite apps.
84+
With Trello for Donut, you can:
85+
• Add new Trello cards to boards directly from Donut with /trello add
86+
• Join Trello cards (and boards!), change due dates, attach conversations and a lot more.
87+
• Invite @trello to a channel for automated card & board previews including members, descriptions, comments and more.
88+
• Allow Donut team members to join your Trello team & boards in one click.
89+
`,
90+
},
91+
{
92+
id: "6",
93+
integrationName: "Simple Poll",
94+
image: SimplePoll,
95+
tag: "Productivity",
96+
description: `With Simple Poll, you can create native and simple polls, right within Slack.
97+
Get your colleagues’ thoughts in minutes; not in the next meeting.
98+
Need to decide on whether to proceed with a candidate? The next step with a customer? A favourite product design? Or even where to go to lunch on Thursday? Simple Poll provides an effortless and collaborative way to make these decisions.
99+
`,
100+
},
101+
];
102+
103+
export default integrationsList;

src/css/components/_modals.scss

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@
124124
}
125125
}
126126
}
127+
.modal__body-sharebutton {
128+
margin-right: 8px;
129+
}
127130
.modal__mini-title {
128131
font-family: $font-family-Inter;
129132
font-style: normal;
@@ -479,26 +482,26 @@
479482
}
480483

481484
.modal__body {
482-
.modal__setting__btn__container {
483-
.modal__save {
484-
background: $color-modal-button-active;
485-
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
486-
// border-radius: 34px;
487-
width: 80px;
488-
height: 38.5px;
489-
margin-right: 20px;
490-
margin-bottom: 10px;
485+
.modal__setting__btn__container {
486+
.modal__save {
487+
background: $color-modal-button-active;
488+
box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.1);
489+
// border-radius: 34px;
490+
width: 80px;
491+
height: 38.5px;
492+
margin-right: 20px;
493+
margin-bottom: 10px;
491494

492-
.modal__buttontext {
493-
font-family: $font-family-Inter;
494-
font-style: normal;
495-
font-weight: bold;
496-
font-size: 14px;
497-
line-height: 22px;
498-
/* identical to box height */
495+
.modal__buttontext {
496+
font-family: $font-family-Inter;
497+
font-style: normal;
498+
font-weight: bold;
499+
font-size: 14px;
500+
line-height: 22px;
501+
/* identical to box height */
499502

500-
color: #ffffff;
501-
}
502-
}
503-
}
503+
color: #ffffff;
504+
}
505+
}
506+
}
504507
}

src/router.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ import Setup from "./user/setup/Setup";
2020
import CommunitySetting from "./user/dashboard/Community/CommunitySetting";
2121
import Insight from "./user/dashboard/insights/Insight";
2222
import AdminRoute from "./common/AdminRoute";
23-
import Activity from './user/Activity/Activity';
24-
import IntegrationsPage from './user/integrations/IntegrationsPage/IntegrationsPage'
23+
import Activity from "./user/Activity/Activity";
24+
import IntegrationsPage from "./user/integrations/IntegrationsPage/IntegrationsPage";
25+
import UserIntegrations from "./user/integrations/UserIntegrations/UserIntegrations";
2526

2627
const Router = () => (
2728
<BrowserRouter>
@@ -45,15 +46,16 @@ const Router = () => (
4546
/>
4647
<PrivateRoute exact path="/proposaleditor" component={ProposalEditor} />
4748
<PrivateRoute exact path="/setup" component={Setup} />
48-
<AdminRoute
49-
exact
50-
path="/org-settings"
51-
component={CommunitySetting}
52-
/>
49+
<AdminRoute exact path="/org-settings" component={CommunitySetting} />
5350
<AdminRoute exact path="/activity/:userId" component={Activity} />
5451
<PrivateRoute exact path="/insight" component={Insight} />
5552
<PrivateRoute exact path="/admin" component={Admin} />
5653
<PrivateRoute exact path="/integrations" component={IntegrationsPage} />
54+
<PrivateRoute
55+
exact
56+
path="/userintegrations"
57+
component={UserIntegrations}
58+
/>
5759
<Route component={NotFound} />
5860
</Switch>
5961
</BrowserRouter>

0 commit comments

Comments
 (0)