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 home and create vote component #15

Merged
merged 2 commits into from
Aug 6, 2024
Merged

Conversation

danieljancar
Copy link
Owner

@danieljancar danieljancar commented Aug 6, 2024

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING and other relevant documents.

Description

Created the home and create vote pages with appropriate features. Also, started centralized error handling components and integrated them there, will be added to other components in the future, as well improved accessibility

Screenshots (if appropriate):

Screen.Recording.2024-08-06.at.01.53.02.mov

Additional context:

Please try to keep to the clean code approach and try centralising and splitting up components/features if they get to large. 😄

Created the home and create vote pages with appropriate features. Also, started centralized error handling components and integrated them there, will be added to other components in the future, as well improved accessibility
@danieljancar danieljancar added enhancement New feature or request DSC mandatory Has to be done for DEV-Stellar Challenge labels Aug 6, 2024
@danieljancar danieljancar requested a review from Gr1ll August 6, 2024 00:25
@danieljancar danieljancar linked an issue Aug 6, 2024 that may be closed by this pull request
5 tasks
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

We appreciate your interest in contributing to our project. As this is your first pull request, please ensure you have followed our Contributing Guidelines, as well as our Git/GitHub workflows. Adhering to these practices helps maintain our project's quality and ease of collaboration. If you're unsure about anything or need some help, don't hesitate to ask. Happy coding!

Copy link
Collaborator

@Gr1ll Gr1ll left a comment

Choose a reason for hiding this comment

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

very clean code, create vote has some minor errors

apps/frontend/src/app/config/config.ts Outdated Show resolved Hide resolved
apps/frontend/src/app/config/config.ts Show resolved Hide resolved
networkPassphrase: Networks.TESTNET,
})
.addOperation(
contract.call(
Copy link
Collaborator

Choose a reason for hiding this comment

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

          contract.call(
            'create_vote',
            nativeToScVal('voteID', { type: 'symbol' }),
            nativeToScVal(options, { type: 'vec' }),
            nativeToScVal(title, { type: 'string' }),
            nativeToScVal(description, { type: 'string' }),
          ),

voteID is missing, options needs to be set second

'create',
nativeToScVal(title, { type: 'string' }),
nativeToScVal(description, { type: 'string' }),
nativeToScVal(options, { type: 'array' }),
Copy link
Collaborator

Choose a reason for hiding this comment

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

options current type looks like this:

[
    {
        "option": "t"
    },
    {
        "option": "t"
    }
]

but needs to be like this:

['option1', 'option2']

@Gr1ll Gr1ll merged commit 132f0b9 into develop Aug 6, 2024
3 checks passed
@Gr1ll Gr1ll deleted the 4-create-home-page branch August 11, 2024 11:30
Copy link

🎉 This issue has been resolved in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released This issue or pr was released in a version label Aug 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DSC mandatory Has to be done for DEV-Stellar Challenge enhancement New feature or request released This issue or pr was released in a version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create home page
2 participants