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

add copyboard to public key #1857

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AMiracle-creator
Copy link

@AMiracle-creator AMiracle-creator commented May 14, 2024

photo_2024-06-02 17 09 54

photo_2024-06-02 17 09 58

@AMiracle-creator AMiracle-creator requested a review from a team as a code owner May 14, 2024 19:30
@CLAassistant
Copy link

CLAassistant commented May 14, 2024

CLA assistant check
All committers have signed the CLA.

@Kaz-ookid Kaz-ookid linked an issue May 15, 2024 that may be closed by this pull request
Copy link
Contributor

@Kaz-ookid Kaz-ookid left a comment

Choose a reason for hiding this comment

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

Hi! Overall nice work, and quick handling of this recently opened issue! You should sign the CLA otherwise we won't be able to merge your work.

However I think your PR could use some simple tests, as simple as those here.

I also think you should add some screenshots of how the UI looks like, to avoid reviewers to checkout locally :)

Finally, some nitpicks and questions are to be found below!


private fun setupCopyButton() {
clipboardManager.setupCopyButton(
binding.copyServerButton, binding.pkText, "Public Key")
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe copyServerButton should be renamed in copyPublicKeyButton or something like that

app:layout_constraintTop_toBottomOf="@id/pk_qr_code" />

<ImageButton
android:id="@+id/copy_server_button"
Copy link
Contributor

Choose a reason for hiding this comment

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

same here, I think you just forgot to adapt the id 👍

@@ -16,6 +16,7 @@
<!-- copy to clipboard -->
<string name="copy_to_clipboard_server">Copy to Clipboard Server Address</string>
<string name="copy_to_clipboard_lao_id">Copy to Clipboard Lao ID</string>
<string name="copy_to_clipboard_public_key">Copy to Public Key</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nitpick but there a typo, should be Copy to Clipboard Public Key

@@ -294,15 +294,6 @@
<string name="popcha_scan_title">Enter PoPCHA URL to log in</string>
<string name="manual_popcha_hint">PoPCHA URL</string>

<!-- Federation -->
Copy link
Contributor

Choose a reason for hiding this comment

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

Where do those deletions come from? Maybe a wrong merge? Those strings look like a recent addition from Federation team, why are they getting deleted in this PR?

@@ -389,4 +376,6 @@
<string name="invalid_qrcode_lao_data">Invalid QRCode laoData</string>
<string name="invalid_qrcode_popcha_data">Invalid URL</string>

<string name="network_status_connection_fail">No internet connection</string>
Copy link
Contributor

Choose a reason for hiding this comment

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

same for this addition, it looks like it should not be related to this PR

@Kaz-ookid
Copy link
Contributor

Hey, please consider addressing my comments soon. This is a quick fix we do not want to be stuck on :)
It is a pleasure to receive help from external contributors, but we will have to implement it ourselves otherwise.

@AMiracle-creator
Copy link
Author

@Kaz-ookid Hi, sorry it took me so long to respond. I'll try to fix it soon

Copy link
Contributor

@matteosz matteosz left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User's Public Key lacks Copy to Clipboard Button
4 participants