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

#5811 Added ability to generate keys in the extension #5823

Conversation

ioanmo226
Copy link
Collaborator

@ioanmo226 ioanmo226 commented Sep 6, 2024

This PR added ability to generate keys in the extension

close #5811 // if this PR closes an issue


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@ioanmo226
Copy link
Collaborator Author

@sosnovsky Implementation is now finished. Will be adding UI test now.
In the meantime,could you test functionality and let me know if you want some changes?

@sosnovsky
Copy link
Collaborator

@ioanmo226 I expected this functionality to be added to the existing Add key modal, like described in #5811 (comment). Will it be too complicated to move it there?

@ioanmo226
Copy link
Collaborator Author

I saw that comment.
But there are only radio boxes in Add key modal. Thought not good UI/UX to add Generate key button in there.

@ioanmo226
Copy link
Collaborator Author

Let me know if you want to place Generate Key button in modal.
If so, do I have to place at the top of radio checkboxes? Should it be button or radio type?

@sosnovsky
Copy link
Collaborator

Yes, let's place it in the modal as radio button, like other options:

Screenshot 2024-09-06 at 12 31 05

@ioanmo226
Copy link
Collaborator Author

If user clicks Generate new key button it should replace modal with generate key view?

@ioanmo226
Copy link
Collaborator Author

Or display generate key view under the radio buttons?

@sosnovsky
Copy link
Collaborator

Or display generate key view under the radio buttons?

It should appear below radio buttons, so users will be able to switch between different options:

Screenshot 2024-09-06 at 14 34 45

@ioanmo226
Copy link
Collaborator Author

I see. Let me implement that way

@ioanmo226
Copy link
Collaborator Author

Hmm... strange..
Tests pass locally without any problem but in semaphoreci, several tests fail.
Maybe because of concurrent test runs?
Checking deeply now

@sosnovsky
Copy link
Collaborator

Semaphore tests stuck on this screen:

Screenshot 2024-09-12 at 16 01 18

As I remember, we had 2 keys for flowcrypt.compatibility, maybe third key is added in some test and it affects all tests running after it?

@ioanmo226
Copy link
Collaborator Author

Ohhh. Yep
That's it.
It would be because I added new test settings - my key page - generate key which generated new key.

@ioanmo226
Copy link
Collaborator Author

ioanmo226 commented Sep 12, 2024

Thank you for your hint. I thought tests were isolated and tests each other don't affect others. But seems like add/generate key affects other tests

@ioanmo226 ioanmo226 marked this pull request as ready for review September 13, 2024 01:22
Copy link
Collaborator

@sosnovsky sosnovsky left a comment

Choose a reason for hiding this comment

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

Well done, works great 👍

@sosnovsky sosnovsky merged commit d64cc98 into master Sep 16, 2024
13 checks passed
@sosnovsky sosnovsky deleted the 5811-feature-suggestion-ability-to-generate-keys-within-the-extension branch September 16, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Suggestion] Ability to generate keys within the extension
2 participants