Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update community settings & hivemind #331

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import {
Alert,
Autocomplete,
Chip,
CircularProgress,
FormControl,
FormHelperText,
FormLabel,
Link,
TextField,
Typography,
} from '@mui/material';
import router from 'next/router';
import React, { useState } from 'react';
Expand Down Expand Up @@ -51,6 +54,11 @@ function TcHivemindNotion({
return (
<>
<div className='flex flex-col items-center justify-between space-y-3'>
<Alert className='flex justify-start w-full rounded-md' severity='info'>
<Typography variant='body2' className='text-left'>
See documentation for how to <Link className='font-bold' color='inherit' href='https://togethercrew.gitbook.io/onboarding/fundamentals/setting-up-hivemind' target='_blank'>integrate Notion to Hivemind</Link>
</Typography>
</Alert>
<FormControl fullWidth>
<FormLabel>Notion Page Id</FormLabel>
<Autocomplete
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,11 @@ function TcCommunityPlatforms() {

return (
<div>
<div>
<TcText text='Platforms & Modules' variant='h6' />
<TcText
text='Configure the following by adding/removing platforms and enabling/disabling access settings within each module'
variant='body2'
/>
</div>

<Paper className='rounded-none bg-gray-100 p-4 shadow-none'>
<div className='flex flex-col space-y-3 md:flex-row md:items-center md:space-y-0 md:space-x-3'>
<TcText text='Platforms' variant='h6' fontWeight='bold' />
<TcText
text='Connect platforms to their respective modules'
text='Add/remove platform integrations'
variant='body1'
/>
</div>
Expand Down Expand Up @@ -235,7 +227,7 @@ function TcCommunityPlatforms() {
<div className='flex flex-col space-y-3 md:flex-row md:items-center md:space-y-0 md:space-x-3'>
<TcText text='Modules' variant='h6' fontWeight='bold' />
<TcText
text='Manage the following modules and their access setting'
text='Turn on/off the different modules and give them or remove data access to the Platforms you have integrated'
variant='body1'
/>
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { CircularProgress, Paper } from '@mui/material';
import { Alert, CircularProgress, Paper } from '@mui/material';
import moment from 'moment';
import React, { useEffect, useState } from 'react';
import { AiOutlineClose } from 'react-icons/ai';
Expand Down Expand Up @@ -162,6 +162,9 @@ function TcNotionIntegration({
</>
)}
</div>
<Alert severity="info">
To edit pages access, please remove the Notion integration and add it again
</Alert>
</div>
<TcButton
startIcon={<MdDelete />}
Expand Down
Loading