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

Merge Develop to Master #663

Merged
merged 34 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
54ed51f
ui upgrades added
fabiolalombardim Jun 6, 2023
387d4a7
Add delegated token deployment
Man-Jain Jun 20, 2023
1dee64f
Merge branch 'develop' into token-deployment-ui-upgrades
Man-Jain Jun 28, 2023
bc1663e
Merge branch 'develop' of github.com:dOrgTech/homebase-app into develop
Man-Jain Jul 15, 2023
23dcc47
Voting delegation UI for Token (#608)
fabiolalombardim Jul 22, 2023
9d47a12
Merge branch 'develop' of github.com:dOrgTech/homebase-app into develop
Man-Jain Jul 22, 2023
a165d47
Merge branch 'master' of github.com:dOrgTech/homebase-app into develop
Man-Jain Jul 22, 2023
7901f15
Fix cycle issue for off-chain proposals
Man-Jain Jul 23, 2023
5ff5106
Merge branch 'master' of github.com:dOrgTech/homebase-app into develop
Man-Jain Jul 23, 2023
1d5396e
separate PRs - token deployment UI updated
fabiolalombardim Jul 28, 2023
ca858fd
merged develop changes
fabiolalombardim Jul 28, 2023
05590ef
Merge pull request #627 from dOrgTech/token-deployment-ui
magentaceiba Jul 30, 2023
33225a6
delegation options & status updates
fabiolalombardim Jul 30, 2023
1e3a849
Merge branch 'develop' of github.com:dOrgTech/homebase-app into develop
Man-Jain Aug 9, 2023
b365e15
Delegation options & status updates (#628)
fabiolalombardim Aug 9, 2023
6487e26
user who has delegate cant vote (#630)
fabiolalombardim Aug 9, 2023
9445a99
modal closed after proposal success (#631)
fabiolalombardim Aug 9, 2023
b5ebfdc
connection with backend new endpoints
fabiolalombardim Aug 23, 2023
c594845
fix to remove non zero balance
fabiolalombardim Aug 26, 2023
3626e98
disabled new proposal button if community requires token ownership
fabiolalombardim Aug 26, 2023
36d8918
added validation for link (#637)
fabiolalombardim Aug 26, 2023
b14d3ec
Delegation modal & Status Update (#641)
fabiolalombardim Aug 26, 2023
5a9515b
Connection with backend new endpoints (#643)
fabiolalombardim Aug 26, 2023
90913be
merge resolved
fabiolalombardim Aug 29, 2023
e2fe956
Merge pull request #645 from dOrgTech/token-ownership
fabiolalombardim Aug 29, 2023
f45cd32
minor clean & disable new poll when user doesnt have tokens
fabiolalombardim Sep 14, 2023
660f703
set poll duration label
fabiolalombardim Sep 14, 2023
754801b
Change logic for delegation voting power and add validation for user …
Man-Jain Sep 15, 2023
d4ce63b
Delegation and Error Handling (#662)
Man-Jain Sep 19, 2023
b4ea7fd
Fix refresh for delegation status and voting power (#664)
Man-Jain Sep 19, 2023
79af428
Change voting weight logic for proposal detail page (#665)
Man-Jain Sep 19, 2023
bbf66b2
Fix modal close error in lite dao and proposal fetching (#666)
Man-Jain Sep 20, 2023
7b852b7
Fix active proposal count (#667)
Man-Jain Sep 20, 2023
af626f6
Merge pull request #634 from dOrgTech/staging
Man-Jain Sep 20, 2023
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
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"@types/mixpanel-browser": "^2.35.7",
"@types/prismjs": "^1.26.0",
"@types/react-router-hash-link": "^2.4.5",
"@types/valid-url": "^1.0.4",
"assert": "^2.0.0",
"bignumber.js": "^9.0.1",
"blockies-ts": "^1.0.0",
Expand Down Expand Up @@ -77,6 +78,7 @@
"stream-http": "^3.2.0",
"url": "^0.11.0",
"util": "^0.12.5",
"valid-url": "^1.0.9",
"yup": "^0.32.9"
},
"devDependencies": {
Expand Down Expand Up @@ -131,4 +133,4 @@
"yarn lint:check"
]
}
}
}
2 changes: 2 additions & 0 deletions src/models/Community.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface Community {
allowPublicAccess: boolean
decimals?: string
network: string
votingAddressesCount: number
}

export interface CommunityToken {
Expand All @@ -23,4 +24,5 @@ export interface CommunityToken {
symbol: string
tokenAddress: string
decimals: string
message?: string
}
2 changes: 2 additions & 0 deletions src/modules/common/SmallButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const SmallButton = styled(Button)({
"transition": ".15s ease-out",
"textTransform": "capitalize",
"borderRadius": 8,
"backgroundColor": "#81feb7 !important",
"color": "#1c1f23",

"&$disabled": {
boxShadow: "none"
Expand Down
30 changes: 27 additions & 3 deletions src/modules/creator/deployment/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const ProgressContainer = styled(Grid)(({ theme }) => ({
background: "#2F3438",
display: "grid",
borderRadius: 8,
maxHeight: 410,
maxHeight: 460,
paddingTop: 20,
position: "sticky",
top: 125
Expand All @@ -92,6 +92,21 @@ const StyledStepper = styled(Stepper)({
"cursor": "pointer"
})

const FAQClickToAction = styled(Typography)(({ theme }) => ({
color: theme.palette.secondary.main,
fontSize: "14px",
cursor: "pointer",
textAlign: "center",
textDecoration: "underline"
}))

const FAQClickText = styled(Typography)(({ theme }) => ({
color: theme.palette.secondary.main,
fontSize: "14px",
cursor: "pointer",
textAlign: "center"
}))

export const Deployment: React.FC = () => {
const creator = useContext(DeploymentContext)

Expand All @@ -102,7 +117,11 @@ export const Deployment: React.FC = () => {

const history = useHistory()
const step = useDeploymentStepNumber()
const progress = useMemo(() => step * 50, [step])
const progress = useMemo(() => step * 45, [step])

const goToFAQ = (): void => {
history.push("/faq")
}

return (
<PageContainer container direction="row">
Expand All @@ -120,10 +139,15 @@ export const Deployment: React.FC = () => {
trackStrokeColor={"rgba(255, 255, 255, 0.2)"}
>
<Box className="indicator">
<IndicatorValue>{progress === 0.5 ? 0 : step * 50}%</IndicatorValue>
<IndicatorValue>{progress === 0.5 ? 0 : step * 45}%</IndicatorValue>
</Box>
</ProgressBar>

<Box onClick={goToFAQ}>
<FAQClickText>New to DAOs?</FAQClickText>
<FAQClickToAction> Read our FAQ </FAQClickToAction>
</Box>

<StyledStepper activeStep={step} orientation="vertical">
{STEPS.map(({ title, path }: StepInfo, index: number) => (
<Step key={title}>
Expand Down
59 changes: 36 additions & 23 deletions src/modules/creator/deployment/steps/Config.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const CustomTextarea = styled(withTheme(TextareaAutosize))(props => ({
"boxSizing": "border-box",
"width": "100%",
"marginTop": 14,
"fontWeight": 400,
"fontWeight": 300,
"padding": "21px 20px",
"fontFamily": "Roboto Mono",
"border": "none",
Expand Down Expand Up @@ -66,19 +66,24 @@ const CustomFormikTextField = withStyles({
})(FormikTextField)

const CustomInputContainer = styled(Grid)(({ theme }) => ({
height: 54,
boxSizing: "border-box",
marginTop: 14,
background: "#2F3438",
borderRadius: 8,
alignItems: "center",
display: "flex",
padding: "13px 23px"
"height": 54,
"boxSizing": "border-box",
"marginTop": 14,
"background": "#2F3438",
"borderRadius": 8,
"alignItems": "center",
"display": "flex",
"padding": "13px 23px",
"fontWeight": 300,
"& input::placeholder": {
fontWeight: 300
}
}))

const ErrorText = styled(Typography)({
fontSize: 14,
color: "red"
color: "red",
marginTop: 4
})

const TextareaContainer = styled(Grid)({
Expand Down Expand Up @@ -116,6 +121,8 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
const { dispatch } = useContext(DeploymentContext)
const match = useRouteMatch()
const history = useHistory()
const theme = useTheme()
const isMobileSmall = useMediaQuery(theme.breakpoints.down("sm"))

useEffect(() => {
if (values) {
Expand All @@ -126,6 +133,10 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
submitForm(values)
},
text: "Continue"
},
back: {
text: "Back",
handler: () => history.push("/creator/ownership")
}
})
}
Expand All @@ -137,10 +148,10 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
<Grid item xs={12}>
<Typography variant="subtitle1" color="textSecondary">
{" "}
Contract name{" "}
Contract Name{" "}
</Typography>
<CustomInputContainer>
<Field id="outlined-basic" placeholder="Contract name" name="name" component={CustomFormikTextField} />
<Field id="outlined-basic" placeholder="Contract Name" name="name" component={CustomFormikTextField} />
</CustomInputContainer>
{errors.name && touched.name ? <ErrorText>{errors.name}</ErrorText> : null}
</Grid>
Expand All @@ -157,7 +168,7 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
<CustomTextarea
maxLength={1500}
aria-label="empty textarea"
placeholder="Description"
placeholder="Type a description"
value={getIn(values, "description")}
onChange={(newValue: any) => {
setFieldValue("description", newValue.target.value)
Expand All @@ -178,15 +189,15 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
<Field
id="outlined-basic"
type="number"
placeholder="Supply"
placeholder="0"
name="totalSupply"
component={CustomFormikTextField}
onKeyDown={(e: FieldChange) => handleNegativeInput(e)}
/>
</CustomInputContainer>
{errors.totalSupply && touched.totalSupply ? <ErrorText>{errors.totalSupply}</ErrorText> : null}
</Grid>
<Grid item xs={6}>
<Grid item xs={isMobileSmall ? 6 : 3}>
<Typography variant="subtitle1" color="textSecondary">
{" "}
Decimals{" "}
Expand All @@ -195,7 +206,7 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
<Field
id="outlined-basic"
type="number"
placeholder="Decimals"
placeholder="0"
name="decimals"
component={CustomFormikTextField}
onKeyDown={(e: FieldChange) => handleChange(e)}
Expand All @@ -209,21 +220,21 @@ const TokenSettingsForm = ({ submitForm, values, errors, touched, setFieldValue,
<Grid item xs={6}>
<Typography variant="subtitle1" color="textSecondary">
{" "}
Symbol{" "}
Icon{" "}
</Typography>
<CustomInputContainer>
<Field id="outlined-basic" placeholder="Symbol" name="symbol" component={CustomFormikTextField} />
<Field id="outlined-basic" placeholder="URL" name="icon" component={CustomFormikTextField} />
</CustomInputContainer>
{errors.symbol && touched.symbol ? <ErrorText>{errors.symbol}</ErrorText> : null}
</Grid>
<Grid item xs={6}>
<Grid item xs={isMobileSmall ? 6 : 3}>
<Typography variant="subtitle1" color="textSecondary">
{" "}
Icon{" "}
Symbol{" "}
</Typography>
<CustomInputContainer>
<Field id="outlined-basic" placeholder="Icon" name="icon" component={CustomFormikTextField} />
<Field id="outlined-basic" placeholder="TEZ" name="symbol" component={CustomFormikTextField} />
</CustomInputContainer>
{errors.symbol && touched.symbol ? <ErrorText>{errors.symbol}</ErrorText> : null}
</Grid>
</Grid>
</Grid>
Expand Down Expand Up @@ -252,7 +263,9 @@ export const ConfigContract: React.FC = () => {
<>
<Grid container direction="column">
<Grid>
<TitleBlock title="Configure token contract" description={""}></TitleBlock>
<Typography style={{ marginBottom: 32 }} variant="h5" color="textSecondary">
Configure Token Contract
</Typography>
</Grid>

<Formik
Expand Down
Loading
Loading