Skip to content

Staging#130

Merged
fersan1985 merged 32 commits intoprod-gcpfrom
staging
Jul 12, 2022
Merged

Staging#130
fersan1985 merged 32 commits intoprod-gcpfrom
staging

Conversation

@fersan1985
Copy link
Copy Markdown
Contributor

No description provided.

0xmovses and others added 30 commits July 4, 2022 18:12
* used coalesce in update sql to ignore nil fields

* removed debugging logs

* removed body as required field

* fixed Name field bug
* create ActionButton component

* create components

* add new tab

* use mocked data

* add component

* add responsibe spacing

* add hover to strategy selector

* add input component

* create input component

* update component

* updates

* extract state

* fix addbutton

* updates

* set state to null

* remove loader

* update for one-address-one-vote

* remove output

* change name

* assign null

* add enableDelete

* hook function to save data to backend

* remove wait

* extract Strategy Selector

* add new step

* extract Strategy Selector

* update name of component

* update step four

* remove strategy

* add validation to step four

* eslint updates

* eslint fixes

* eslint fixes

* update text

* update saving data

* update updating strategies

* remove moked data

* updates to match backend changes

* remove useEffect

* typo

* fix reloading strategies

* use name from strategy

* change name

* fix style and eslint

* update add strategy button

* fix dep

* update onStrategySelection callback call

* add config for strategies

* update payload

* update mapping function

* remove output

* export and import helper function

* update data

* remove map func

* revert change removing wrapper

* extract validation

* remove useEffect

* update if clause

* remove dep
* CAS-135: Add Leaderboard Endpoint

* CAS-135: Add leaderboard test file and remove unnecessary comments

* CAS-139: Add EarlyVote scoring

* CAS-139: Updates based on PR Feedback

* CAS-139: Add Helper functions for leaderboard tests

Co-authored-by: Jonathan <jon.bluks@gmail.com>
Co-authored-by: Richard Melkonian <r.v.melkonian@gmail.com>
* create ActionButton component

* create components

* add new tab

* use mocked data

* add component

* add responsibe spacing

* add hover to strategy selector

* add input component

* create input component

* update component

* updates

* extract state

* fix addbutton

* updates

* set state to null

* remove loader

* update for one-address-one-vote

* remove output

* change name

* assign null

* add enableDelete

* hook function to save data to backend

* remove wait

* extract Strategy Selector

* add new step

* extract Strategy Selector

* update name of component

* update step four

* remove strategy

* add validation to step four

* eslint updates

* eslint fixes

* eslint fixes

* update text

* update saving data

* update updating strategies

* remove moked data

* updates to match backend changes

* remove useEffect

* typo

* fix reloading strategies

* use name from strategy

* change name

* fix style and eslint

* update add strategy button

* fix dep

* update onStrategySelection callback call

* add hook to load community

* use strategies from community

* remove hook useVotingStrategies

* add config for strategies

* update payload

* update mapping function

* remove output

* export and import helper function

* export and import helper function

* update data

* remove map func

* revert change removing wrapper

* extract validation

* remove useEffect

* update if clause

* remove dependency from useEffect

* change dep

* add public path to strategy config
* add comment

* add isValidAddress fn

* change funciton name

* add helper function

* add validation for flow address

* add comment

Co-authored-by: David Slone <dbslone@gmail.com>
* create ActionButton component

* create components

* add new tab

* use mocked data

* add component

* add responsibe spacing

* add hover to strategy selector

* add input component

* create input component

* update component

* updates

* extract state

* fix addbutton

* updates

* set state to null

* remove loader

* update for one-address-one-vote

* remove output

* change name

* assign null

* add enableDelete

* hook function to save data to backend

* remove wait

* extract Strategy Selector

* update name of component

* eslint updates

* eslint fixes

* eslint fixes

* update text

* update saving data

* update updating strategies

* remove moked data

* updates to match backend changes

* remove useEffect

* typo

* fix reloading strategies

* use name from strategy

* change name

* add config for strategies

* update payload

* update mapping function

* remove output

* fix style

* use const values instad of strings

* extract component

* make default

* change label map

* remove map function

* removed

* use capitalize

* change props

* Update frontend/packages/client/src/components/Community/StrategySelectorForm.js

Co-authored-by: Christopher J Keller <chris.keller@dapperlabs.com>

* change render condition

* chage about and use profile

* remove output

* update style for strategy name

* remove hook and use community info to get strategy

Co-authored-by: Christopher J Keller <chris.keller@dapperlabs.com>
Co-authored-by: David Slone <dbslone@gmail.com>
* update field validation

* update logo upload

* rem default flow logo and use blockies for community logo

Co-authored-by: David Slone <dbslone@gmail.com>
…96)

* update condition

* add comment

* update condition

* update functions

* update function name

* fix typo

* update order

Co-authored-by: David Slone <dbslone@gmail.com>
* add pagination

* create hook for features communities

* load featured communities

* add more space values

* update home page

* update to load user communities

* update packages and install react-query

* add react-query configuration

* update hook

* update home page

* fix error handler url param

* add node env

* fix initial loading

* add deps back

* update config

* check for null on data prop

* remove config leaving defaul

* remove dups from array

Co-authored-by: David Slone <dbslone@gmail.com>
* add pagination

* create hook for features communities

* load featured communities

* add more space values

* update home page

* update to load user communities

* update packages and install react-query

* add react-query configuration

* update hook

* update home page

* fix error handler url param

* add node env

* fix returning data

* update to use mutations

* update community param

* add queries and comment code

* add dev tools

* add onSuccess callback

* remove mutate

* remove reseting state

* fix initial loading

* add deps back

* update config

* check for null on data prop

* remove config leaving defaul

Co-authored-by: David Slone <dbslone@gmail.com>
…nity (#123)

* fix category selection and default value

* update field
* CAS-135: Add Leaderboard Endpoint

* CAS-135: Add leaderboard test file and remove unnecessary comments

* CAS-139: Add EarlyVote scoring

* CAS-139: Add EarlyVote scoring

* CAS-139: Updates based on PR Feedback

* CAS-140: Add Streak Bonus

* CAS-140: Add helper functions for leaderboard test

* CAS-140: Refactor based on PR feedback

Co-authored-by: Jonathan <jon.bluks@gmail.com>
Co-authored-by: Richard Melkonian <r.v.melkonian@gmail.com>
add useCallback wrapper
* CAS-135: Add Leaderboard Endpoint

* CAS-135: Add leaderboard test file and remove unnecessary comments

* CAS-139: Add EarlyVote scoring

* CAS-139: Add EarlyVote scoring

* CAS-139: Updates based on PR Feedback

* CAS-140: Add Streak Bonus

* CAS-140: Add helper functions for leaderboard test

* CAS-140: Refactor based on PR feedback

* CAS-141: Fix migration file names

Co-authored-by: Jonathan <jon.bluks@gmail.com>
Co-authored-by: Richard Melkonian <r.v.melkonian@gmail.com>
* add seed using id

* use community members instead of admins

* add function

* fix initial data

* use react-query

* remove ouput

* add callback and invalidate query

* add reFetch

* increase to six avatars

* fix count

* update params

* add count

* remove if clause
* show join button when user is not connected

* add modal to make user connect

* make error catching wider
@fersan1985 fersan1985 merged commit 3fe5eb9 into prod-gcp Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants