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

PR WIP #87

Open
wants to merge 49 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
737c96d
Initial setup with tailwind
rollymaduk Sep 9, 2021
8807bc8
setup storybook [WIP], setup vercel preview server
rollymaduk Sep 9, 2021
ccc749e
added typescript to ui
rollymaduk Sep 9, 2021
9788437
moved typescript to dev dependency
rollymaduk Sep 9, 2021
fbc9074
Layout shell for app
rollymaduk Sep 9, 2021
fc68d49
Built layout components and integrated libraries
rollymaduk Sep 9, 2021
57662b5
built dashboard components [WIP]
rollymaduk Sep 9, 2021
2917c86
Bug fix on nav bar
rollymaduk Sep 9, 2021
2f0b9c0
removed mock-data library
rollymaduk Sep 9, 2021
08905ec
removed config file
rollymaduk Sep 9, 2021
fe23891
removed storybook
rollymaduk Sep 9, 2021
e39b6d5
added card buttons and changed menu buttons
rollymaduk Sep 10, 2021
304eadb
built slide over component
rollymaduk Sep 10, 2021
94ad963
Feature: Proposal Detail Skeleton
rollymaduk Sep 10, 2021
e6d225c
chore: testing notifications
rollymaduk Sep 10, 2021
14740b0
Feature: Proposal Detail view, modified proposal list, Fixes: bugs on…
rollymaduk Sep 14, 2021
381c081
CHORE:prettify formatting
rollymaduk Sep 15, 2021
53b2994
FEAT: Members List View, CHORE: Renamed files, refactored components
rollymaduk Sep 16, 2021
073b7ff
Feat: Proposal input form, Chore: refactored some codes
rollymaduk Sep 17, 2021
2455757
Feature: Proposal input form [WIP] and more refactoring accross compo…
rollymaduk Sep 18, 2021
8b8ca55
BUG-FIX:Fixed build time errors
rollymaduk Sep 18, 2021
a3c2ecf
FEAT: FAQ view, refactored proposal cards to add status and remove dr…
rollymaduk Sep 18, 2021
19e4705
FEAT: Added profile detail view WIP refactored some components and fi…
rollymaduk Sep 21, 2021
d471801
FEAT:Landing page [WIP] 95% complete
rollymaduk Sep 22, 2021
db8392f
FEAT:Auth with landing, protected routes and more infra stuff
rollymaduk Sep 24, 2021
018eebf
BUG-FIX: type errors fix
rollymaduk Sep 24, 2021
3dd343b
FEAT:Data loading to DB, Dashboard theme, bug fixes, voting DB, profi…
rollymaduk Sep 25, 2021
5025894
FEAT:Added avatar component, bug fixes and more
rollymaduk Sep 25, 2021
d91a3c0
BUGFIX: type error fix
rollymaduk Sep 25, 2021
8907b4a
BUGFIX: type error fix
rollymaduk Sep 25, 2021
1d36cfb
BUGFIX: type error fix
rollymaduk Sep 25, 2021
6597d1f
BUGFIX: type error fix
rollymaduk Sep 25, 2021
e9f355c
BugFix: Typescript error
rollymaduk Sep 26, 2021
bed841e
BugFix: Typescript error
rollymaduk Sep 26, 2021
c71655a
BugFix: Typescript error
rollymaduk Sep 26, 2021
0347996
BugFix: Typescript error
rollymaduk Sep 26, 2021
b12943e
CHORE: Refactors and minor fixes
rollymaduk Sep 26, 2021
2ab06cf
Bug FIX:Drews submissions, general and refactors [WIP]
rollymaduk Sep 26, 2021
35b6929
BugFIXtype error
rollymaduk Sep 26, 2021
9eca93d
Dynamic MIA value widget
rollymaduk Sep 28, 2021
14b4eec
Dynamic MIA value widget and WIP contracts
rollymaduk Sep 28, 2021
cbb7c62
Dynamic MIA value widget and WIP contracts
rollymaduk Sep 28, 2021
120bc78
Bug Fix: failing vars on client
rollymaduk Sep 28, 2021
6d6eb63
Bug Fix: css issues on home page
rollymaduk Sep 28, 2021
45fdf25
Bug Fix: css issues on home page
rollymaduk Sep 28, 2021
9e667d6
fixed changes on adding votes
rollymaduk Sep 29, 2021
ba14cb3
fixed changes on adding votes
rollymaduk Sep 29, 2021
3d2640c
fixed changes on adding votes
rollymaduk Sep 29, 2021
76eeeb0
fixed changes on adding votes
rollymaduk Sep 29, 2021
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
12 changes: 12 additions & 0 deletions lerna-debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
0 silly argv {
0 silly argv _: [ 'add' ],
0 silly argv scope: 'ui',
0 silly argv globs: [],
0 silly argv lernaVersion: '3.22.1',
0 silly argv '$0': '/home/ronald/.yarn/bin/lerna',
0 silly argv pkg: '@types/algoliaSearch'
0 silly argv }
1 notice cli v3.22.1
2 verbose rootPath /home/ronald/v-code projects/daoos
3 error Error: 404 Not Found - GET https://registry.npmjs.org/@types%2falgoliaSearch - Not found
3 error at /home/ronald/v-code projects/daoos/node_modules/@evocateur/npm-registry-fetch/check-response.js:104:15
90 changes: 3 additions & 87 deletions packages/contracts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,88 +1,4 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/
settings/Mainnet.toml
settings/Testnet.toml
history.txt
3 changes: 0 additions & 3 deletions packages/contracts/.prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion packages/contracts/.prettierrc.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/contracts/.vscode/extensions.json

This file was deleted.

15 changes: 0 additions & 15 deletions packages/contracts/.vscode/launch.json

This file was deleted.

4 changes: 4 additions & 0 deletions packages/contracts/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

{
"deno.enable": true,
}
6 changes: 6 additions & 0 deletions packages/contracts/Clarinet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[project]
name = "contracts"
requirements = []
[contracts.vote]
path = "contracts/vote.clar"
depends_on = []
6 changes: 0 additions & 6 deletions packages/contracts/contracts/plugin-trait.clar

This file was deleted.

59 changes: 59 additions & 0 deletions packages/contracts/contracts/vote.clar
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
;; Daoos Vote
;; <contract to manage daoos voting>

;; constants
;;
(define-constant ERROR_YOU_CAN_ONLY_VOTE_ONCE u0)

;; data maps and vars
;;


(define-map vote-state

{proposal-id: (string-utf8 80)}
{
voter: principal,
is-yes: bool,
name: (string-ascii 50),
email: (string-utf8 60)
}
)

;; private functions
;;
;; private method to get voter of a proposal
(define-private (find-voter-by-proposal (proposalId (string-utf8 80)))
(begin
(get voter (map-get? vote-state (tuple (proposal-id proposalId))))
)
)


;; public functions
;;

;; read-only functions
;;
(define-read-only (member-has-not-cast-a-vote (proposalId (string-utf8 80)))
(begin
(is-none (find-voter-by-proposal proposalId))
)
)


;; public method to cast a vote
(define-public (cast-vote
(proposalId (string-ascii 40))
(ballot bool)
(name (string-ascii 50))
(email (string-utf8 60)))
(let ((propId (concat proposalId tx-sender)))
(asserts! (member-has-not-cast-a-vote propId) (err ERROR_YOU_CAN_ONLY_VOTE_ONCE))
(map-insert vote-state {proposal-id: propId}
{voter: tx-sender,is-yes: ballot,name: name, email: email}
)
(ok true)
)

)
Loading