2018-10-30 09:35:47 -07:00
|
|
|
// backend
|
|
|
|
export interface SocialMedia {
|
2019-01-16 21:01:29 -08:00
|
|
|
url: string;
|
|
|
|
service: string;
|
|
|
|
username: string;
|
2018-10-30 09:35:47 -07:00
|
|
|
}
|
2019-02-13 08:54:46 -08:00
|
|
|
// NOTE: sync with backend/grant/utils/enums.py MilestoneStage
|
|
|
|
export enum MILESTONE_STAGE {
|
|
|
|
IDLE = 'IDLE',
|
|
|
|
REQUESTED = 'REQUESTED',
|
|
|
|
REJECTED = 'REJECTED',
|
|
|
|
ACCEPTED = 'ACCEPTED',
|
|
|
|
PAID = 'PAID',
|
|
|
|
}
|
2018-10-30 09:35:47 -07:00
|
|
|
export interface Milestone {
|
2019-02-13 08:54:46 -08:00
|
|
|
id: number;
|
|
|
|
index: number;
|
2018-10-30 09:35:47 -07:00
|
|
|
content: string;
|
2019-02-13 08:54:46 -08:00
|
|
|
dateCreated: number;
|
2019-11-13 14:38:17 -08:00
|
|
|
dateEstimated?: number;
|
|
|
|
daysEstimated?: string;
|
2019-02-13 08:54:46 -08:00
|
|
|
dateRequested: number;
|
|
|
|
dateAccepted: number;
|
|
|
|
dateRejected: number;
|
|
|
|
datePaid: number;
|
2018-10-30 09:35:47 -07:00
|
|
|
immediatePayout: boolean;
|
|
|
|
payoutPercent: string;
|
|
|
|
stage: string;
|
|
|
|
title: string;
|
|
|
|
}
|
2019-02-01 11:13:30 -08:00
|
|
|
// NOTE: sync with backend/grant/utils/enums.py RFPStatus
|
|
|
|
export enum RFP_STATUS {
|
|
|
|
DRAFT = 'DRAFT',
|
|
|
|
LIVE = 'LIVE',
|
|
|
|
CLOSED = 'CLOSED',
|
|
|
|
}
|
|
|
|
export interface RFP {
|
|
|
|
id: number;
|
|
|
|
dateCreated: number;
|
2019-02-08 08:54:20 -08:00
|
|
|
dateOpened: number | null;
|
|
|
|
dateClosed: number | null;
|
2019-02-01 11:13:30 -08:00
|
|
|
title: string;
|
|
|
|
brief: string;
|
|
|
|
content: string;
|
|
|
|
status: string;
|
|
|
|
proposals: Proposal[];
|
2019-02-08 08:54:20 -08:00
|
|
|
matching: boolean;
|
|
|
|
bounty: string | null;
|
|
|
|
dateCloses: number | null;
|
2019-12-03 16:02:39 -08:00
|
|
|
isVersionTwo: boolean;
|
CCRs (#86)
* CCRs API / Models boilerplate
* start on frontend
* backendy things
* Create CCR redux module, integrate API endpoints, create types
* Fix/Cleanup API
* Wire up CreateRequestDraftList
* bounty->target
* Add 'Create Request Flow' MVP
* cleanup
* Tweak filenames
* Simplify migrations
* fix migrations
* CCR Staking MVP
* tslint
* Get Pending Requests into Profile
* Remove staking requirement
* more staking related removals
* MVP Admin integration
* Make RFP when CCR is accepted
* Add pagination to CCRs in Admin
Improve styles for Proposals
* Hookup notifications
Adjust copy
* Simplify ccr->rfp relationship
Add admin approval email
Fixup copy
* Show Message on RFP Detail
Make Header CTAs change based on draft status
Adjust proposal card style
* Bugfix: Show header for non signed in users
* Add 'create a request' to intro
* Profile Created CCRs
RFP CCR attribution
* ignore
* CCR Price in USD (#85)
* init profile tipjar backend
* init profile tipjar frontend
* fix lint
* implement tip jar block
* fix wrapping, hide tip block on self
* init backend proposal tipjar
* init frontend proposal tipjar
* add hide title, fix bug
* uncomment rate limit
* rename vars, use null check
* allow address and view key to be unset
* add api tests
* fix tsc errors
* fix lint
* fix CopyInput styling
* fix migrations
* hide tipping in proposal if address not set
* add tip address to create flow
* redesign campaign block
* fix typo
* init backend changes
* init admin changes
* init frontend changes
* fix backend tests
* update campaign block
* be - init rfp usd changes
* admin - init rfp usd changes
* fe - fully adapt api util functions to usd
* fe - init rfp usd changes
* adapt profile created to usd
* misc usd changes
* add tip jar to dedicated card
* fix tipjar bug
* use zf light logo
* switch to zf grants logo
* hide profile tip jar if address not set
* add comment, run prettier
* conditionally add info icon and tooltip to funding line
* admin - disallow decimals in RFPs
* fe - cover usd string edge case
* add Usd as rfp bounty type
* fix migration order
* fix email bug
* adapt CCRs to USD
* implement CCR preview
* fix tsc
* Copy Updates and UX Tweaks (#87)
* Add default structure to proposal content
* Landing page copy
* Hide contributors tab for v2 proposals
* Minor UX tweaks for Liking/Following/Tipping
* Copy for Tipping Tooltip, proposal explainer for review, and milestone day estimate notice.
* Fix header styles bug and remove commented out styles.
* Revert "like" / "unfollow" hyphenication
* Comment out unused tests related to staking
Increase PROPOSAL_TARGET_MAX in .env.example
* Comment out ccr approval email send until ready
* Adjust styles, copy.
* fix proposal prune test (#88)
* fix USD display in preview, fix non-unique key (#90)
* Pre-stepper explainer for CCRs.
* Tweak styles
* Default content for CCRs
* fix tsc
* CCR approval and rejection emails
* add back admin_approval_ccr email templates
* Link ccr author name to profile in RFPs
* copy tweaks
* copy tweak
* hookup mangle user command
* Fix/add endif in jinja
* fix tests
* review
* fix review
2019-12-05 17:01:02 -08:00
|
|
|
ccr?: CCR;
|
2019-02-01 11:13:30 -08:00
|
|
|
}
|
|
|
|
export interface RFPArgs {
|
|
|
|
title: string;
|
|
|
|
brief: string;
|
|
|
|
content: string;
|
2019-02-08 08:54:20 -08:00
|
|
|
matching: boolean;
|
|
|
|
dateCloses: number | null | undefined;
|
|
|
|
bounty: string | null | undefined;
|
|
|
|
status: string;
|
2019-02-01 11:13:30 -08:00
|
|
|
}
|
2019-02-09 19:00:49 -08:00
|
|
|
// NOTE: sync with backend/grant/utils/enums.py ProposalArbiterStatus
|
|
|
|
export enum PROPOSAL_ARBITER_STATUS {
|
|
|
|
MISSING = 'MISSING',
|
|
|
|
NOMINATED = 'NOMINATED',
|
|
|
|
ACCEPTED = 'ACCEPTED',
|
|
|
|
}
|
|
|
|
export interface ProposalArbiter {
|
|
|
|
user?: User;
|
|
|
|
proposal: Proposal;
|
|
|
|
status: PROPOSAL_ARBITER_STATUS;
|
|
|
|
}
|
2019-01-30 09:59:15 -08:00
|
|
|
// NOTE: sync with backend/grant/utils/enums.py ProposalStatus
|
2019-01-09 10:23:08 -08:00
|
|
|
export enum PROPOSAL_STATUS {
|
|
|
|
DRAFT = 'DRAFT',
|
ZF Grants 2.1 (#496)
* fix ccr pagination defaults
* add ccr admin tests
* add ccr user tests
* checkpoint
* fix tslint
* request changes discussion flow mvp
* admin - add discussion status
* backend - add live drafts
* admin - add live drafts
* frontend - add live drafts
* frontend - add edit discussion proposal
* fix tsc
* include DISCUSSION status in propsal listview
* do not make live draft on admin request changes
* hide live drafts from user proposal draft list
* fix backend tests
* add admin tests
* add user tests
* fix: liking, viewing discussion proposals, admin menu
* admin - update hints for live drafts
* fe - add better messaging when updating a proposal
* be - fix like test
* remove TODO comments
* add new email types
* fix storybook
* add revision tab story
* backend - implement proposal revisions
* frontend - implement proposal revisions
* update revision tab story
* fix lint
* remove set detection
* email proposal followers on revision
* restrict banner to team members only
* misc bug fixes
* update, add backend tests
* add milestone title change to revision history story
* fix milestones display in preview
* allow archived proposals to be queried
* implement archived proposal page
* fix tsc
* implement archived proposal get route
* move styling into less
* remove proposal archive parent id
* handle archived proposal status
* cleanup
* remove contributions, switch to USD, implement quarters
* use Qs to preserve formatting
* handle edit only kyc
* prevent ARCHIVED proposals from being sent to admin
* display latest revision first
* admin - proposal & ccr reject permanently
* backend - proposal & ccr reject permanently
* frontend - proposal & ccr reject permanently
* fix tsc
* use $ in milestone payout email
* introduce custom filters to proposal listview
* hide archive link on first revision
* upgrade packages
* add bech32 implementation
* add z address validation with tests
* fix tslint
* use local address validation
* fix tests, remove blockchain mock gets
* add additional bad addresses
* update briefs to include page break message
* remove contributions routes, menu entry
* disable countribution count admin stats
* remove matching and pretty print in finance
* fix tslint
* separate out rejected permanently proposals
* make removing proposals generic
* allow linked tabs to be ignored
* remove rejected permanently, bugfix
* update preview link to point to rejected tab
* implement rejected permanently tab, add tab message
* refactor variable
* fix tslint
* fix tslint
* send ccr reject permanently email on rejection
* fix preview message
* wire up proposal arbiter and rejected emails
* disable tip jar in proposal and profile
* sync ccr/proposal drafts on create form init
* check invites on submit modal open
* update team invite language
* update team text when edit
* fix ccr rejected permanently tag
* text changes, email preview fix
* display changes requested tag when in discussion with changes requested
* enable social share on open for discussion proposals, update language
* place sort below filter
* derive filter from query string
* use better filter names in query params
* fix tslint
* create snapshot of original proposal on first revision
* clear invites between edits, account for additional changes not tracked in revisions
* update tests
* fix test
* remove print
* SameSite Fixes (#150)
* QA Fixes 2 (#151)
* set filters as query strings on change
* remove rejected permanently tags
* add dollar sign in financials legend
* fix tsc
* Copy Touchups (#152)
* Email Fixes (#155)
* fix ZEC in milestone payout emails
* fix links in rejected permanently CCR/proposal emails
* Poll for Team and Invite Changes in Create Flow (#153)
* poll for team and invite changes in create flow
* fix tslint
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* pretty print payouts by quarter (#156)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove Blockchain Module (#154)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Add Tags to Proposal Cards (#157)
* add tag to proposals and dynamically set v1 card height
* listen on window resize
* make card height props optional
* set tag in bottom right, remove dynamic card resize, add dynamic tag resize
* cleanup
* cleanup
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Improve Frontend Address Validation (#158)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove blockchain module (#162)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Remove Blockchain App (#160)
* remove blockchain app
* remove blockchain app from travis
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
* Proposal Edit Fixes (#161)
* fe - display error if edit creation fails
* be - restrict live draft publish
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Restrict Arbiter Assignment (#159)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Email Copy updates
* Remove Admin Financials Card
* Hookup 'proposal_approved_without_funding' to admin email example
* bump various package versions
* Update yarn.lock files
* Attach 'proposal_approved_without_funding' to backend example email
* bump package versions
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
2020-04-07 19:56:32 -07:00
|
|
|
LIVE_DRAFT = 'LIVE_DRAFT',
|
2019-01-09 10:23:08 -08:00
|
|
|
PENDING = 'PENDING',
|
ZF Grants 2.1 (#496)
* fix ccr pagination defaults
* add ccr admin tests
* add ccr user tests
* checkpoint
* fix tslint
* request changes discussion flow mvp
* admin - add discussion status
* backend - add live drafts
* admin - add live drafts
* frontend - add live drafts
* frontend - add edit discussion proposal
* fix tsc
* include DISCUSSION status in propsal listview
* do not make live draft on admin request changes
* hide live drafts from user proposal draft list
* fix backend tests
* add admin tests
* add user tests
* fix: liking, viewing discussion proposals, admin menu
* admin - update hints for live drafts
* fe - add better messaging when updating a proposal
* be - fix like test
* remove TODO comments
* add new email types
* fix storybook
* add revision tab story
* backend - implement proposal revisions
* frontend - implement proposal revisions
* update revision tab story
* fix lint
* remove set detection
* email proposal followers on revision
* restrict banner to team members only
* misc bug fixes
* update, add backend tests
* add milestone title change to revision history story
* fix milestones display in preview
* allow archived proposals to be queried
* implement archived proposal page
* fix tsc
* implement archived proposal get route
* move styling into less
* remove proposal archive parent id
* handle archived proposal status
* cleanup
* remove contributions, switch to USD, implement quarters
* use Qs to preserve formatting
* handle edit only kyc
* prevent ARCHIVED proposals from being sent to admin
* display latest revision first
* admin - proposal & ccr reject permanently
* backend - proposal & ccr reject permanently
* frontend - proposal & ccr reject permanently
* fix tsc
* use $ in milestone payout email
* introduce custom filters to proposal listview
* hide archive link on first revision
* upgrade packages
* add bech32 implementation
* add z address validation with tests
* fix tslint
* use local address validation
* fix tests, remove blockchain mock gets
* add additional bad addresses
* update briefs to include page break message
* remove contributions routes, menu entry
* disable countribution count admin stats
* remove matching and pretty print in finance
* fix tslint
* separate out rejected permanently proposals
* make removing proposals generic
* allow linked tabs to be ignored
* remove rejected permanently, bugfix
* update preview link to point to rejected tab
* implement rejected permanently tab, add tab message
* refactor variable
* fix tslint
* fix tslint
* send ccr reject permanently email on rejection
* fix preview message
* wire up proposal arbiter and rejected emails
* disable tip jar in proposal and profile
* sync ccr/proposal drafts on create form init
* check invites on submit modal open
* update team invite language
* update team text when edit
* fix ccr rejected permanently tag
* text changes, email preview fix
* display changes requested tag when in discussion with changes requested
* enable social share on open for discussion proposals, update language
* place sort below filter
* derive filter from query string
* use better filter names in query params
* fix tslint
* create snapshot of original proposal on first revision
* clear invites between edits, account for additional changes not tracked in revisions
* update tests
* fix test
* remove print
* SameSite Fixes (#150)
* QA Fixes 2 (#151)
* set filters as query strings on change
* remove rejected permanently tags
* add dollar sign in financials legend
* fix tsc
* Copy Touchups (#152)
* Email Fixes (#155)
* fix ZEC in milestone payout emails
* fix links in rejected permanently CCR/proposal emails
* Poll for Team and Invite Changes in Create Flow (#153)
* poll for team and invite changes in create flow
* fix tslint
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* pretty print payouts by quarter (#156)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove Blockchain Module (#154)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Add Tags to Proposal Cards (#157)
* add tag to proposals and dynamically set v1 card height
* listen on window resize
* make card height props optional
* set tag in bottom right, remove dynamic card resize, add dynamic tag resize
* cleanup
* cleanup
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Improve Frontend Address Validation (#158)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove blockchain module (#162)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Remove Blockchain App (#160)
* remove blockchain app
* remove blockchain app from travis
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
* Proposal Edit Fixes (#161)
* fe - display error if edit creation fails
* be - restrict live draft publish
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Restrict Arbiter Assignment (#159)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Email Copy updates
* Remove Admin Financials Card
* Hookup 'proposal_approved_without_funding' to admin email example
* bump various package versions
* Update yarn.lock files
* Attach 'proposal_approved_without_funding' to backend example email
* bump package versions
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
2020-04-07 19:56:32 -07:00
|
|
|
DISCUSSION = 'DISCUSSION',
|
2019-01-09 10:23:08 -08:00
|
|
|
APPROVED = 'APPROVED',
|
|
|
|
REJECTED = 'REJECTED',
|
ZF Grants 2.1 (#496)
* fix ccr pagination defaults
* add ccr admin tests
* add ccr user tests
* checkpoint
* fix tslint
* request changes discussion flow mvp
* admin - add discussion status
* backend - add live drafts
* admin - add live drafts
* frontend - add live drafts
* frontend - add edit discussion proposal
* fix tsc
* include DISCUSSION status in propsal listview
* do not make live draft on admin request changes
* hide live drafts from user proposal draft list
* fix backend tests
* add admin tests
* add user tests
* fix: liking, viewing discussion proposals, admin menu
* admin - update hints for live drafts
* fe - add better messaging when updating a proposal
* be - fix like test
* remove TODO comments
* add new email types
* fix storybook
* add revision tab story
* backend - implement proposal revisions
* frontend - implement proposal revisions
* update revision tab story
* fix lint
* remove set detection
* email proposal followers on revision
* restrict banner to team members only
* misc bug fixes
* update, add backend tests
* add milestone title change to revision history story
* fix milestones display in preview
* allow archived proposals to be queried
* implement archived proposal page
* fix tsc
* implement archived proposal get route
* move styling into less
* remove proposal archive parent id
* handle archived proposal status
* cleanup
* remove contributions, switch to USD, implement quarters
* use Qs to preserve formatting
* handle edit only kyc
* prevent ARCHIVED proposals from being sent to admin
* display latest revision first
* admin - proposal & ccr reject permanently
* backend - proposal & ccr reject permanently
* frontend - proposal & ccr reject permanently
* fix tsc
* use $ in milestone payout email
* introduce custom filters to proposal listview
* hide archive link on first revision
* upgrade packages
* add bech32 implementation
* add z address validation with tests
* fix tslint
* use local address validation
* fix tests, remove blockchain mock gets
* add additional bad addresses
* update briefs to include page break message
* remove contributions routes, menu entry
* disable countribution count admin stats
* remove matching and pretty print in finance
* fix tslint
* separate out rejected permanently proposals
* make removing proposals generic
* allow linked tabs to be ignored
* remove rejected permanently, bugfix
* update preview link to point to rejected tab
* implement rejected permanently tab, add tab message
* refactor variable
* fix tslint
* fix tslint
* send ccr reject permanently email on rejection
* fix preview message
* wire up proposal arbiter and rejected emails
* disable tip jar in proposal and profile
* sync ccr/proposal drafts on create form init
* check invites on submit modal open
* update team invite language
* update team text when edit
* fix ccr rejected permanently tag
* text changes, email preview fix
* display changes requested tag when in discussion with changes requested
* enable social share on open for discussion proposals, update language
* place sort below filter
* derive filter from query string
* use better filter names in query params
* fix tslint
* create snapshot of original proposal on first revision
* clear invites between edits, account for additional changes not tracked in revisions
* update tests
* fix test
* remove print
* SameSite Fixes (#150)
* QA Fixes 2 (#151)
* set filters as query strings on change
* remove rejected permanently tags
* add dollar sign in financials legend
* fix tsc
* Copy Touchups (#152)
* Email Fixes (#155)
* fix ZEC in milestone payout emails
* fix links in rejected permanently CCR/proposal emails
* Poll for Team and Invite Changes in Create Flow (#153)
* poll for team and invite changes in create flow
* fix tslint
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* pretty print payouts by quarter (#156)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove Blockchain Module (#154)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Add Tags to Proposal Cards (#157)
* add tag to proposals and dynamically set v1 card height
* listen on window resize
* make card height props optional
* set tag in bottom right, remove dynamic card resize, add dynamic tag resize
* cleanup
* cleanup
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Improve Frontend Address Validation (#158)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove blockchain module (#162)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Remove Blockchain App (#160)
* remove blockchain app
* remove blockchain app from travis
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
* Proposal Edit Fixes (#161)
* fe - display error if edit creation fails
* be - restrict live draft publish
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Restrict Arbiter Assignment (#159)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Email Copy updates
* Remove Admin Financials Card
* Hookup 'proposal_approved_without_funding' to admin email example
* bump various package versions
* Update yarn.lock files
* Attach 'proposal_approved_without_funding' to backend example email
* bump package versions
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
2020-04-07 19:56:32 -07:00
|
|
|
REJECTED_PERMANENTLY = 'REJECTED_PERMANENTLY',
|
2019-01-09 10:23:08 -08:00
|
|
|
LIVE = 'LIVE',
|
|
|
|
DELETED = 'DELETED',
|
2019-01-31 14:56:16 -08:00
|
|
|
STAKING = 'STAKING',
|
2019-01-09 10:23:08 -08:00
|
|
|
}
|
2019-02-15 19:35:25 -08:00
|
|
|
// NOTE: sync with backend/grant/utils/enums.py ProposalStage
|
|
|
|
export enum PROPOSAL_STAGE {
|
|
|
|
PREVIEW = 'PREVIEW',
|
|
|
|
FUNDING_REQUIRED = 'FUNDING_REQUIRED',
|
|
|
|
WIP = 'WIP',
|
|
|
|
COMPLETED = 'COMPLETED',
|
2019-02-23 13:38:06 -08:00
|
|
|
FAILED = 'FAILED',
|
|
|
|
CANCELED = 'CANCELED',
|
2019-05-27 12:16:48 -07:00
|
|
|
NOT_CANCELED = 'NOT_CANCELED',
|
2019-02-15 19:35:25 -08:00
|
|
|
}
|
2018-10-30 09:35:47 -07:00
|
|
|
export interface Proposal {
|
2018-11-09 10:48:55 -08:00
|
|
|
proposalId: number;
|
2019-01-09 10:23:08 -08:00
|
|
|
brief: string;
|
|
|
|
status: PROPOSAL_STATUS;
|
2019-02-13 08:54:46 -08:00
|
|
|
payoutAddress: string;
|
2018-10-30 09:35:47 -07:00
|
|
|
dateCreated: number;
|
2019-01-09 10:23:08 -08:00
|
|
|
dateApproved: number;
|
|
|
|
datePublished: number;
|
2019-02-15 19:35:25 -08:00
|
|
|
deadlineDuration: number;
|
|
|
|
isFailed: boolean;
|
2018-10-30 09:35:47 -07:00
|
|
|
title: string;
|
2018-11-14 09:59:48 -08:00
|
|
|
content: string;
|
2019-02-15 19:35:25 -08:00
|
|
|
stage: PROPOSAL_STAGE;
|
2018-10-30 09:35:47 -07:00
|
|
|
milestones: Milestone[];
|
2019-02-13 08:54:46 -08:00
|
|
|
currentMilestone?: Milestone;
|
2018-10-30 09:35:47 -07:00
|
|
|
team: User[];
|
|
|
|
comments: Comment[];
|
2019-01-09 10:23:08 -08:00
|
|
|
target: string;
|
2019-01-29 15:50:27 -08:00
|
|
|
contributed: string;
|
|
|
|
funded: string;
|
2019-01-09 10:23:08 -08:00
|
|
|
rejectReason: string;
|
2019-01-29 15:50:27 -08:00
|
|
|
contributionMatching: number;
|
2019-03-06 12:25:58 -08:00
|
|
|
contributionBounty: string;
|
|
|
|
rfpOptIn: null | boolean;
|
2019-02-01 11:13:30 -08:00
|
|
|
rfp?: RFP;
|
2019-02-09 19:00:49 -08:00
|
|
|
arbiter: ProposalArbiter;
|
2019-10-16 20:43:20 -07:00
|
|
|
acceptedWithFunding: boolean | null;
|
2019-10-11 12:51:10 -07:00
|
|
|
isVersionTwo: boolean;
|
ZF Grants 2.1 (#496)
* fix ccr pagination defaults
* add ccr admin tests
* add ccr user tests
* checkpoint
* fix tslint
* request changes discussion flow mvp
* admin - add discussion status
* backend - add live drafts
* admin - add live drafts
* frontend - add live drafts
* frontend - add edit discussion proposal
* fix tsc
* include DISCUSSION status in propsal listview
* do not make live draft on admin request changes
* hide live drafts from user proposal draft list
* fix backend tests
* add admin tests
* add user tests
* fix: liking, viewing discussion proposals, admin menu
* admin - update hints for live drafts
* fe - add better messaging when updating a proposal
* be - fix like test
* remove TODO comments
* add new email types
* fix storybook
* add revision tab story
* backend - implement proposal revisions
* frontend - implement proposal revisions
* update revision tab story
* fix lint
* remove set detection
* email proposal followers on revision
* restrict banner to team members only
* misc bug fixes
* update, add backend tests
* add milestone title change to revision history story
* fix milestones display in preview
* allow archived proposals to be queried
* implement archived proposal page
* fix tsc
* implement archived proposal get route
* move styling into less
* remove proposal archive parent id
* handle archived proposal status
* cleanup
* remove contributions, switch to USD, implement quarters
* use Qs to preserve formatting
* handle edit only kyc
* prevent ARCHIVED proposals from being sent to admin
* display latest revision first
* admin - proposal & ccr reject permanently
* backend - proposal & ccr reject permanently
* frontend - proposal & ccr reject permanently
* fix tsc
* use $ in milestone payout email
* introduce custom filters to proposal listview
* hide archive link on first revision
* upgrade packages
* add bech32 implementation
* add z address validation with tests
* fix tslint
* use local address validation
* fix tests, remove blockchain mock gets
* add additional bad addresses
* update briefs to include page break message
* remove contributions routes, menu entry
* disable countribution count admin stats
* remove matching and pretty print in finance
* fix tslint
* separate out rejected permanently proposals
* make removing proposals generic
* allow linked tabs to be ignored
* remove rejected permanently, bugfix
* update preview link to point to rejected tab
* implement rejected permanently tab, add tab message
* refactor variable
* fix tslint
* fix tslint
* send ccr reject permanently email on rejection
* fix preview message
* wire up proposal arbiter and rejected emails
* disable tip jar in proposal and profile
* sync ccr/proposal drafts on create form init
* check invites on submit modal open
* update team invite language
* update team text when edit
* fix ccr rejected permanently tag
* text changes, email preview fix
* display changes requested tag when in discussion with changes requested
* enable social share on open for discussion proposals, update language
* place sort below filter
* derive filter from query string
* use better filter names in query params
* fix tslint
* create snapshot of original proposal on first revision
* clear invites between edits, account for additional changes not tracked in revisions
* update tests
* fix test
* remove print
* SameSite Fixes (#150)
* QA Fixes 2 (#151)
* set filters as query strings on change
* remove rejected permanently tags
* add dollar sign in financials legend
* fix tsc
* Copy Touchups (#152)
* Email Fixes (#155)
* fix ZEC in milestone payout emails
* fix links in rejected permanently CCR/proposal emails
* Poll for Team and Invite Changes in Create Flow (#153)
* poll for team and invite changes in create flow
* fix tslint
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* pretty print payouts by quarter (#156)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove Blockchain Module (#154)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Add Tags to Proposal Cards (#157)
* add tag to proposals and dynamically set v1 card height
* listen on window resize
* make card height props optional
* set tag in bottom right, remove dynamic card resize, add dynamic tag resize
* cleanup
* cleanup
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Improve Frontend Address Validation (#158)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove blockchain module (#162)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Remove Blockchain App (#160)
* remove blockchain app
* remove blockchain app from travis
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
* Proposal Edit Fixes (#161)
* fe - display error if edit creation fails
* be - restrict live draft publish
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Restrict Arbiter Assignment (#159)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Email Copy updates
* Remove Admin Financials Card
* Hookup 'proposal_approved_without_funding' to admin email example
* bump various package versions
* Update yarn.lock files
* Attach 'proposal_approved_without_funding' to backend example email
* bump package versions
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
2020-04-07 19:56:32 -07:00
|
|
|
changesRequestedDiscussion: boolean | null;
|
|
|
|
changesRequestedDiscussionReason: string | null;
|
2020-12-28 13:07:37 -08:00
|
|
|
kycApproved: null | boolean;
|
2021-02-01 17:32:12 -08:00
|
|
|
fundedByZomg: boolean;
|
2018-10-30 09:35:47 -07:00
|
|
|
}
|
|
|
|
export interface Comment {
|
2019-02-17 11:15:40 -08:00
|
|
|
id: number;
|
|
|
|
userId: User['userid'];
|
|
|
|
author?: User;
|
2019-01-16 21:01:29 -08:00
|
|
|
proposalId: Proposal['proposalId'];
|
|
|
|
proposal?: Proposal;
|
|
|
|
dateCreated: number;
|
2018-10-30 09:35:47 -07:00
|
|
|
content: string;
|
2019-02-18 13:31:20 -08:00
|
|
|
hidden: boolean;
|
|
|
|
reported: boolean;
|
|
|
|
}
|
|
|
|
export interface CommentArgs {
|
|
|
|
hidden: boolean;
|
|
|
|
reported: boolean;
|
2018-10-30 09:35:47 -07:00
|
|
|
}
|
2019-02-06 09:47:47 -08:00
|
|
|
// NOTE: sync with backend/utils/enums.py
|
|
|
|
export enum CONTRIBUTION_STATUS {
|
|
|
|
PENDING = 'PENDING',
|
|
|
|
CONFIRMED = 'CONFIRMED',
|
|
|
|
DELETED = 'DELETED',
|
|
|
|
}
|
2019-01-16 21:01:29 -08:00
|
|
|
export interface Contribution {
|
|
|
|
id: number;
|
2019-02-06 09:47:47 -08:00
|
|
|
status: CONTRIBUTION_STATUS;
|
2019-01-16 21:01:29 -08:00
|
|
|
txId: null | string;
|
|
|
|
amount: string;
|
|
|
|
dateCreated: number;
|
2019-02-22 12:51:46 -08:00
|
|
|
user: User | null;
|
2019-01-16 21:01:29 -08:00
|
|
|
proposal: Proposal;
|
2019-02-06 10:01:14 -08:00
|
|
|
addresses: {
|
|
|
|
transparent: string;
|
|
|
|
sprout: string;
|
|
|
|
memo: string;
|
|
|
|
};
|
2019-02-21 10:02:29 -08:00
|
|
|
staking: boolean;
|
2019-06-11 19:49:14 -07:00
|
|
|
private: boolean;
|
2019-02-17 08:52:35 -08:00
|
|
|
refundAddress?: string;
|
|
|
|
refundTxId?: string;
|
2019-01-16 21:01:29 -08:00
|
|
|
}
|
2019-02-06 09:47:47 -08:00
|
|
|
export interface ContributionArgs {
|
2019-02-17 08:52:35 -08:00
|
|
|
proposalId?: string | number;
|
|
|
|
userId?: string | number;
|
|
|
|
amount?: string;
|
|
|
|
status?: string;
|
2019-02-06 09:47:47 -08:00
|
|
|
txId?: string;
|
2019-02-17 08:52:35 -08:00
|
|
|
refundTxId?: string;
|
2019-01-16 21:01:29 -08:00
|
|
|
}
|
2018-10-30 09:35:47 -07:00
|
|
|
export interface User {
|
|
|
|
accountAddress: string;
|
|
|
|
avatar: null | { imageUrl: string };
|
|
|
|
displayName: string;
|
|
|
|
emailAddress: string;
|
|
|
|
socialMedias: SocialMedia[];
|
|
|
|
title: string;
|
|
|
|
userid: number;
|
|
|
|
proposals: Proposal[];
|
|
|
|
comments: Comment[];
|
2019-01-16 21:01:29 -08:00
|
|
|
contributions: Contribution[];
|
2019-02-14 20:18:43 -08:00
|
|
|
silenced: boolean;
|
|
|
|
banned: boolean;
|
|
|
|
bannedReason: string;
|
2019-02-20 10:04:25 -08:00
|
|
|
isAdmin: boolean;
|
2018-10-30 09:35:47 -07:00
|
|
|
}
|
2019-01-09 11:08:25 -08:00
|
|
|
|
|
|
|
export interface EmailExample {
|
|
|
|
info: {
|
|
|
|
subject: string;
|
|
|
|
title: string;
|
|
|
|
preview: string;
|
|
|
|
};
|
|
|
|
html: string;
|
|
|
|
text: string;
|
|
|
|
}
|
2019-01-30 09:59:15 -08:00
|
|
|
|
|
|
|
export enum PROPOSAL_CATEGORY {
|
|
|
|
DEV_TOOL = 'DEV_TOOL',
|
|
|
|
CORE_DEV = 'CORE_DEV',
|
|
|
|
COMMUNITY = 'COMMUNITY',
|
|
|
|
DOCUMENTATION = 'DOCUMENTATION',
|
|
|
|
ACCESSIBILITY = 'ACCESSIBILITY',
|
|
|
|
}
|
2019-02-05 12:34:19 -08:00
|
|
|
|
CCRs (#86)
* CCRs API / Models boilerplate
* start on frontend
* backendy things
* Create CCR redux module, integrate API endpoints, create types
* Fix/Cleanup API
* Wire up CreateRequestDraftList
* bounty->target
* Add 'Create Request Flow' MVP
* cleanup
* Tweak filenames
* Simplify migrations
* fix migrations
* CCR Staking MVP
* tslint
* Get Pending Requests into Profile
* Remove staking requirement
* more staking related removals
* MVP Admin integration
* Make RFP when CCR is accepted
* Add pagination to CCRs in Admin
Improve styles for Proposals
* Hookup notifications
Adjust copy
* Simplify ccr->rfp relationship
Add admin approval email
Fixup copy
* Show Message on RFP Detail
Make Header CTAs change based on draft status
Adjust proposal card style
* Bugfix: Show header for non signed in users
* Add 'create a request' to intro
* Profile Created CCRs
RFP CCR attribution
* ignore
* CCR Price in USD (#85)
* init profile tipjar backend
* init profile tipjar frontend
* fix lint
* implement tip jar block
* fix wrapping, hide tip block on self
* init backend proposal tipjar
* init frontend proposal tipjar
* add hide title, fix bug
* uncomment rate limit
* rename vars, use null check
* allow address and view key to be unset
* add api tests
* fix tsc errors
* fix lint
* fix CopyInput styling
* fix migrations
* hide tipping in proposal if address not set
* add tip address to create flow
* redesign campaign block
* fix typo
* init backend changes
* init admin changes
* init frontend changes
* fix backend tests
* update campaign block
* be - init rfp usd changes
* admin - init rfp usd changes
* fe - fully adapt api util functions to usd
* fe - init rfp usd changes
* adapt profile created to usd
* misc usd changes
* add tip jar to dedicated card
* fix tipjar bug
* use zf light logo
* switch to zf grants logo
* hide profile tip jar if address not set
* add comment, run prettier
* conditionally add info icon and tooltip to funding line
* admin - disallow decimals in RFPs
* fe - cover usd string edge case
* add Usd as rfp bounty type
* fix migration order
* fix email bug
* adapt CCRs to USD
* implement CCR preview
* fix tsc
* Copy Updates and UX Tweaks (#87)
* Add default structure to proposal content
* Landing page copy
* Hide contributors tab for v2 proposals
* Minor UX tweaks for Liking/Following/Tipping
* Copy for Tipping Tooltip, proposal explainer for review, and milestone day estimate notice.
* Fix header styles bug and remove commented out styles.
* Revert "like" / "unfollow" hyphenication
* Comment out unused tests related to staking
Increase PROPOSAL_TARGET_MAX in .env.example
* Comment out ccr approval email send until ready
* Adjust styles, copy.
* fix proposal prune test (#88)
* fix USD display in preview, fix non-unique key (#90)
* Pre-stepper explainer for CCRs.
* Tweak styles
* Default content for CCRs
* fix tsc
* CCR approval and rejection emails
* add back admin_approval_ccr email templates
* Link ccr author name to profile in RFPs
* copy tweaks
* copy tweak
* hookup mangle user command
* Fix/add endif in jinja
* fix tests
* review
* fix review
2019-12-05 17:01:02 -08:00
|
|
|
export enum CCR_STATUS {
|
|
|
|
DRAFT = 'DRAFT',
|
|
|
|
PENDING = 'PENDING',
|
|
|
|
APPROVED = 'APPROVED',
|
|
|
|
REJECTED = 'REJECTED',
|
ZF Grants 2.1 (#496)
* fix ccr pagination defaults
* add ccr admin tests
* add ccr user tests
* checkpoint
* fix tslint
* request changes discussion flow mvp
* admin - add discussion status
* backend - add live drafts
* admin - add live drafts
* frontend - add live drafts
* frontend - add edit discussion proposal
* fix tsc
* include DISCUSSION status in propsal listview
* do not make live draft on admin request changes
* hide live drafts from user proposal draft list
* fix backend tests
* add admin tests
* add user tests
* fix: liking, viewing discussion proposals, admin menu
* admin - update hints for live drafts
* fe - add better messaging when updating a proposal
* be - fix like test
* remove TODO comments
* add new email types
* fix storybook
* add revision tab story
* backend - implement proposal revisions
* frontend - implement proposal revisions
* update revision tab story
* fix lint
* remove set detection
* email proposal followers on revision
* restrict banner to team members only
* misc bug fixes
* update, add backend tests
* add milestone title change to revision history story
* fix milestones display in preview
* allow archived proposals to be queried
* implement archived proposal page
* fix tsc
* implement archived proposal get route
* move styling into less
* remove proposal archive parent id
* handle archived proposal status
* cleanup
* remove contributions, switch to USD, implement quarters
* use Qs to preserve formatting
* handle edit only kyc
* prevent ARCHIVED proposals from being sent to admin
* display latest revision first
* admin - proposal & ccr reject permanently
* backend - proposal & ccr reject permanently
* frontend - proposal & ccr reject permanently
* fix tsc
* use $ in milestone payout email
* introduce custom filters to proposal listview
* hide archive link on first revision
* upgrade packages
* add bech32 implementation
* add z address validation with tests
* fix tslint
* use local address validation
* fix tests, remove blockchain mock gets
* add additional bad addresses
* update briefs to include page break message
* remove contributions routes, menu entry
* disable countribution count admin stats
* remove matching and pretty print in finance
* fix tslint
* separate out rejected permanently proposals
* make removing proposals generic
* allow linked tabs to be ignored
* remove rejected permanently, bugfix
* update preview link to point to rejected tab
* implement rejected permanently tab, add tab message
* refactor variable
* fix tslint
* fix tslint
* send ccr reject permanently email on rejection
* fix preview message
* wire up proposal arbiter and rejected emails
* disable tip jar in proposal and profile
* sync ccr/proposal drafts on create form init
* check invites on submit modal open
* update team invite language
* update team text when edit
* fix ccr rejected permanently tag
* text changes, email preview fix
* display changes requested tag when in discussion with changes requested
* enable social share on open for discussion proposals, update language
* place sort below filter
* derive filter from query string
* use better filter names in query params
* fix tslint
* create snapshot of original proposal on first revision
* clear invites between edits, account for additional changes not tracked in revisions
* update tests
* fix test
* remove print
* SameSite Fixes (#150)
* QA Fixes 2 (#151)
* set filters as query strings on change
* remove rejected permanently tags
* add dollar sign in financials legend
* fix tsc
* Copy Touchups (#152)
* Email Fixes (#155)
* fix ZEC in milestone payout emails
* fix links in rejected permanently CCR/proposal emails
* Poll for Team and Invite Changes in Create Flow (#153)
* poll for team and invite changes in create flow
* fix tslint
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* pretty print payouts by quarter (#156)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove Blockchain Module (#154)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Add Tags to Proposal Cards (#157)
* add tag to proposals and dynamically set v1 card height
* listen on window resize
* make card height props optional
* set tag in bottom right, remove dynamic card resize, add dynamic tag resize
* cleanup
* cleanup
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Improve Frontend Address Validation (#158)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Remove blockchain module (#162)
* remove blockchain route from backend, remove calls to node
* revert blockchain_get removal
* Remove Blockchain App (#160)
* remove blockchain app
* remove blockchain app from travis
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
* Proposal Edit Fixes (#161)
* fe - display error if edit creation fails
* be - restrict live draft publish
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Restrict Arbiter Assignment (#159)
Co-authored-by: Daniel Ternyak <dternyak@gmail.com>
* Email Copy updates
* Remove Admin Financials Card
* Hookup 'proposal_approved_without_funding' to admin email example
* bump various package versions
* Update yarn.lock files
* Attach 'proposal_approved_without_funding' to backend example email
* bump package versions
Co-authored-by: Danny Skubak <skubakdj@gmail.com>
2020-04-07 19:56:32 -07:00
|
|
|
REJECTED_PERMANENTLY = 'REJECTED_PERMANENTLY',
|
CCRs (#86)
* CCRs API / Models boilerplate
* start on frontend
* backendy things
* Create CCR redux module, integrate API endpoints, create types
* Fix/Cleanup API
* Wire up CreateRequestDraftList
* bounty->target
* Add 'Create Request Flow' MVP
* cleanup
* Tweak filenames
* Simplify migrations
* fix migrations
* CCR Staking MVP
* tslint
* Get Pending Requests into Profile
* Remove staking requirement
* more staking related removals
* MVP Admin integration
* Make RFP when CCR is accepted
* Add pagination to CCRs in Admin
Improve styles for Proposals
* Hookup notifications
Adjust copy
* Simplify ccr->rfp relationship
Add admin approval email
Fixup copy
* Show Message on RFP Detail
Make Header CTAs change based on draft status
Adjust proposal card style
* Bugfix: Show header for non signed in users
* Add 'create a request' to intro
* Profile Created CCRs
RFP CCR attribution
* ignore
* CCR Price in USD (#85)
* init profile tipjar backend
* init profile tipjar frontend
* fix lint
* implement tip jar block
* fix wrapping, hide tip block on self
* init backend proposal tipjar
* init frontend proposal tipjar
* add hide title, fix bug
* uncomment rate limit
* rename vars, use null check
* allow address and view key to be unset
* add api tests
* fix tsc errors
* fix lint
* fix CopyInput styling
* fix migrations
* hide tipping in proposal if address not set
* add tip address to create flow
* redesign campaign block
* fix typo
* init backend changes
* init admin changes
* init frontend changes
* fix backend tests
* update campaign block
* be - init rfp usd changes
* admin - init rfp usd changes
* fe - fully adapt api util functions to usd
* fe - init rfp usd changes
* adapt profile created to usd
* misc usd changes
* add tip jar to dedicated card
* fix tipjar bug
* use zf light logo
* switch to zf grants logo
* hide profile tip jar if address not set
* add comment, run prettier
* conditionally add info icon and tooltip to funding line
* admin - disallow decimals in RFPs
* fe - cover usd string edge case
* add Usd as rfp bounty type
* fix migration order
* fix email bug
* adapt CCRs to USD
* implement CCR preview
* fix tsc
* Copy Updates and UX Tweaks (#87)
* Add default structure to proposal content
* Landing page copy
* Hide contributors tab for v2 proposals
* Minor UX tweaks for Liking/Following/Tipping
* Copy for Tipping Tooltip, proposal explainer for review, and milestone day estimate notice.
* Fix header styles bug and remove commented out styles.
* Revert "like" / "unfollow" hyphenication
* Comment out unused tests related to staking
Increase PROPOSAL_TARGET_MAX in .env.example
* Comment out ccr approval email send until ready
* Adjust styles, copy.
* fix proposal prune test (#88)
* fix USD display in preview, fix non-unique key (#90)
* Pre-stepper explainer for CCRs.
* Tweak styles
* Default content for CCRs
* fix tsc
* CCR approval and rejection emails
* add back admin_approval_ccr email templates
* Link ccr author name to profile in RFPs
* copy tweaks
* copy tweak
* hookup mangle user command
* Fix/add endif in jinja
* fix tests
* review
* fix review
2019-12-05 17:01:02 -08:00
|
|
|
LIVE = 'LIVE',
|
|
|
|
DELETED = 'DELETED',
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface CCR {
|
|
|
|
ccrId: number;
|
|
|
|
brief: string;
|
|
|
|
status: CCR_STATUS;
|
|
|
|
dateCreated: number;
|
|
|
|
dateApproved: number;
|
|
|
|
datePublished: number;
|
|
|
|
title: string;
|
|
|
|
content: string;
|
|
|
|
target: string;
|
|
|
|
rejectReason: string;
|
|
|
|
rfp?: RFP;
|
|
|
|
author: User;
|
|
|
|
}
|
|
|
|
|
2019-02-05 12:34:19 -08:00
|
|
|
export interface PageQuery {
|
|
|
|
page: number;
|
|
|
|
filters: string[];
|
|
|
|
search: string;
|
|
|
|
sort: string;
|
|
|
|
}
|
2019-02-06 09:47:47 -08:00
|
|
|
|
|
|
|
export interface PageData<T> extends PageQuery {
|
|
|
|
pageSize: number;
|
|
|
|
total: number;
|
|
|
|
items: T[];
|
|
|
|
fetching: boolean;
|
|
|
|
fetched: boolean;
|
|
|
|
}
|