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

feat: Create-fundraiser now a project specific route #153

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Matthews3301
Copy link
Contributor

@Matthews3301 Matthews3301 commented Jun 7, 2022

"Create fundraiser" page now uses a project specific url route. This helps with populating project name in the breadcrumbs.

@marinhoarthur should we filter available denoms in "Price per voucher" by /${projectId}/?

Closes #140

@github-actions
Copy link

github-actions bot commented Jun 7, 2022

Visit the preview URL for this PR (updated for commit b96211d):

https://ignite-new--pr153-feat-create-fundrais-fesicpsu.web.app

(expires Thu, 16 Jun 2022 14:09:56 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@marinhoarthur
Copy link
Contributor

@Matthews3301 afaik we should filter the selling coins list (i.e. total quantity for sale) by projectId, not the paying coins list (i.e. price per voucher).

The filtering should be in the form of: v/<x>/<campaign-name> where x is the projectId. The list to be filtered is the user balance one.

The paying coins list on the other hand is just a subset from total supply. Currently we subtract whatever is selected for selling coin so to avoid having equal denom for selling and paying.

Is this accurate @fadeev ?

@@ -141,9 +146,9 @@ const state = reactive(initialState)

// lifecycles
onMounted(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This other PR is already tackling this code block. Maybe would be better to wait for that one to be merged as well.

@Matthews3301
Copy link
Contributor Author

Matthews3301 commented Jun 7, 2022

@marinhoarthur okay, so "selling coins list" - I'll add projectId filtering in this PR, shall I?

@fadeev
Copy link
Contributor

fadeev commented Jun 7, 2022

@marinhoarthur yes, it is. Thanks!

src/views/ProjectFundraiserCreate.vue Outdated Show resolved Hide resolved
@@ -254,7 +247,9 @@ const isVoucherPriceGreaterThanZero = computed<boolean>(() =>
)
const hasAnyBalance = computed<boolean>(
() =>
(isFetchedBalances.value && balances.value && balances.value.length > 0) ||
(isFetchedBalances.value &&
filteredBalances.value &&
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can omit this condition

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated

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.

Full url route for "create-fundraiser"
4 participants