AutarkLabs / open-enterprise

A suite of apps that includes allocation, dot voting, issue curation, and other planning tools so organizations can collectively budget and design custom reward & bounty systems.
GNU General Public License v3.0
92 stars 54 forks source link

Allocations period details #1767

Closed PeterMPhillips closed 4 years ago

PeterMPhillips commented 4 years ago

Covers this issue: https://github.com/autarklabs/open-enterprise/issues/1576

There are some changes that affect other components. In particular, I moved the usePeriod function from BudgetDetail to the hooks folder and it's now being used by NewBudget and PeriodDetails

Currently, only verified tokens are used to calculate the budget. As you can see in this screen AUTD doesn't contribute to the 'Budgeted' field or the 'Budget utilized' field.

Screenshot from 2019-12-18 17-11-12

ottodevs commented 4 years ago

I retargeted base branch to dev, because allocations-newbudgetpanel PR was already merged

chadoh commented 4 years ago

See my implementation. Gotta pass className

On Dec 18, 2019 at 1:38 AM, <Peter Phillips (mailto:notifications@github.com)> wrote:

@PeterMPhillips commented on this pull request.

In apps/allocations/app/components/App/PeriodDetails.js (https://github.com/AutarkLabs/open-enterprise/pull/1767#discussion_r359172050):

  • <InfoBlock + title="Next period" + large={${MONTHS[endDate.getMonth()]} ${endDate.getDate()}} + small={endDate.getFullYear().toString()} + /> + <InfoBlock + title="Time remaining" + large={remainingArray[0]} + small={remainingArray[1]} + /> +
+ + ) +} + +const InfoBlock = ({ title, large, small }) => {

I was unable to get the css prop to work, it would just come out as undefined when values were passed to it. I used the style prop instead

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub (https://github.com/AutarkLabs/open-enterprise/pull/1767?email_source=notifications&email_token=AABWDLRE6OPAFVIINJPVDP3QZHAPTA5CNFSM4J2K32HKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCPSKZDQ#discussion_r359172050), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AABWDLWCNZEO2T55W2MOZNLQZHAPTANCNFSM4J2K32HA).