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

[#220] drep list #559

Merged
merged 5 commits into from
Mar 27, 2024
Merged

[#220] drep list #559

merged 5 commits into from
Mar 27, 2024

Conversation

jdyczka
Copy link
Contributor

@jdyczka jdyczka commented Mar 26, 2024

List of changes

  • Add layout for DRep list (without sorting and filtering)
  • Add logic for delegation on DRepList
  • Add logic for delegating for automated voting options

Checklist

  • related issue
  • My changes generate no new warnings
  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the changelog
  • I have added tests that prove my fix is effective or that my feature works

@jdyczka jdyczka added the 🖥 Frontend Frontend related label Mar 26, 2024
@jdyczka jdyczka self-assigned this Mar 26, 2024
@jdyczka jdyczka changed the base branch from develop to feat/99-drep-directory March 26, 2024 10:10
);

const getBgColor = (status: Status): string => {
switch (status) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Insead of switch
{
Active:successGreen.c200,
Inactive:cyan.c100,
Retired:errorRed.c100
}[status]

Copy link
Contributor

Choose a reason for hiding this comment

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

the same for text color

>
{t("delegate")}
</Button>
{!isConnected
Copy link
Contributor

Choose a reason for hiding this comment

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

is it not the same label ?, but just different action ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

left a comment on figma

isConnected={isConnected}
isSelected={currentDelegation === "drep_always_abstain"}
onClickDelegate={() => delegate("abstain")}
onClickInfo={() => { }}
Copy link
Contributor

Choose a reason for hiding this comment

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

what Info should do ?, can you leave commet ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

left a comment on figma

addSuccessAlert(t("alerts.delegate.success"));
}
} catch (error) {
addErrorAlert(t("alerts.delegate.failed"));
Copy link
Contributor

Choose a reason for hiding this comment

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

add sentry capture expction

- refactor determining StatusPill colors
- add Sentry.captureException on delegate error
@jdyczka jdyczka merged commit e0b9be3 into feat/99-drep-directory Mar 27, 2024
4 checks passed
@jdyczka jdyczka deleted the feat/220-drep-list branch March 27, 2024 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 Frontend Frontend related
Projects
None yet
3 participants