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

EuphonyTxPanel Component & Documentation #262

Merged
merged 12 commits into from
Oct 1, 2022
Merged

Conversation

zion830
Copy link
Contributor

@zion830 zion830 commented Sep 18, 2022

Related issue : #231

  • It is an UI component for easy use of EuTxManager. It also provides several options to custom design.
  • And I added a new markdown file to introduce Euphony Ui

Screenshot

eutxpanel_screenshot

Comment on lines 39 to 40
// TODO : EuTxManager() should be changed to use singleton pattern
val viewModel: TxPanelViewModel = viewModel(factory = TxPanelViewModelFactory(EuTxManager()))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If #255 is merged, I need to change this line

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I applied the singleton pattern patch! 9be03e5

@yeonns yeonns linked an issue Sep 19, 2022 that may be closed by this pull request
Copy link
Member

@yeonns yeonns left a comment

Choose a reason for hiding this comment

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

@zion830 Thank you for implementing EuphonyTxPanel!
Your test code and documentation is cool 👍
I commented one thing and check please :)

Comment on lines +40 to +41
#### Options

Copy link
Member

Choose a reason for hiding this comment

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

WoW! So nice options 👍 It will help to customize EuphonyTxPanel!

Comment on lines 39 to 40
// TODO : EuTxManager() should be changed to use singleton pattern
val viewModel: TxPanelViewModel = viewModel(factory = TxPanelViewModelFactory(EuTxManager()))
Copy link
Member

Choose a reason for hiding this comment

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

TextField(
modifier = Modifier
.weight(1f)
.fillMaxHeight(),
Copy link
Member

Choose a reason for hiding this comment

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

I tested your EuphonyTxPanel, and even if row has panelHeight, your TextField and Button has fillMaxHeight(), so it fills whole screen. So, I think TextField and Button should have panelHeight.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for letting me know! I fixed it
15c0d37

@yeonns yeonns added the feature Euphony's new feature label Sep 19, 2022
@designe designe added the osca-22 Contribution From Open Source Academy 2022 label Sep 19, 2022
Copy link
Member

@designe designe left a comment

Choose a reason for hiding this comment

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

EuphonyTxPanel component implementation, documentation, and unit-test are perfect! 👍
This is the good starting point of TxPanel's component!

@designe designe merged commit 5ea9a0b into euphony-io:master Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Euphony's new feature osca-22 Contribution From Open Source Academy 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Suggested: EuphonyTxPanel Component
3 participants