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: add connector unique name suffix #2866

Merged
merged 7 commits into from
Dec 6, 2023

Conversation

lujakob
Copy link
Contributor

@lujakob lujakob commented Nov 14, 2023

Describe the changes you have made in this PR

The accounts in the list of accounts under "Manage accounts" should have unique names. The changes of this PR add a "(1)" suffix to the account name in case an account of the same name already exists. The number in between the brackets "()" is detected and increased by 1, so an account with the same name can be added multiple times and the suffix will be increased from "(1)" to "(2)" to "(3)" etc...

Link this PR to an issue [optional]

Fixes #2793

Type of change

  • feat: New feature (non-breaking change which adds functionality)

Screenshots of the changes [optional]

Bildschirmfoto 2023-11-14 um 21 58 13

How has this been tested?

Manually

Checklist

  • Self-review of changed code
  • Manual testing
  • Added automated tests where applicable
  • Update Docs & Guides
  • For UI-related changes
  • Darkmode
  • Responsive layout

Copy link
Contributor

@reneaaron reneaaron left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @lujakob, great to see you around again! 😊

src/extension/background-script/actions/accounts/add.ts Outdated Show resolved Hide resolved
@lujakob
Copy link
Contributor Author

lujakob commented Nov 23, 2023

@reneaaron I added tests as suggested and ran the format command. Please have another look.

@lujakob
Copy link
Contributor Author

lujakob commented Dec 2, 2023

@reneaaron I added tests as suggested and ran the format command. Please have another look.

Hi @reneaaron could you please check this PR once again? Thanks.

Copy link
Contributor

@reneaaron reneaaron left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @lujakob! 🙌

I tried to simplify the unique name generation a bit, have a look if that makes sense!

tACK

@lujakob
Copy link
Contributor Author

lujakob commented Dec 5, 2023

Thanks for the PR @lujakob! 🙌

I tried to simplify the unique name generation a bit, have a look if that makes sense!

tACK

Awesome, thanks.

@reneaaron reneaaron merged commit 6960600 into getAlby:master Dec 6, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants