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: assign names to repos #1665

Merged
merged 22 commits into from
Jun 24, 2023
Merged

Conversation

diivi
Copy link
Contributor

@diivi diivi commented Mar 20, 2023

Description

Adds a "name" field in the new repo creation form and displays it where I thought it was suitable.

Related Issue

Fixes #1388

Motivation and Context

Easier to remember and tag repos.

How Has This Been Tested?

Tried creating a repo and looking at the places where I rendered the name instead of the url.

Screenshots (if appropriate):

image
image
image

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:

  • I have read the CONTRIBUTING guide.
  • 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 added tests to cover my changes.
  • All new and existing tests passed.

I provide my contribution under the terms of the license of this repository and I affirm the Developer Certificate of Origin.

Copy link
Collaborator

@real-yfprojects real-yfprojects left a comment

Choose a reason for hiding this comment

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

I think the repo id should be used when the user didn't specify a repo name.

@m3nu
Copy link
Contributor

m3nu commented Mar 21, 2023

I'd still show the repo URL behind the name in the dropdown and on the archives tab. Maybe My Macbook BorgBase Repo – ssh://[email protected]

And have "optional" in the placeholder. E.g. Some name (optional). To clarify 1) that this is optional and 2) that this is used only locally to manage the repo. Maybe there is better wording for it.

@real-yfprojects
Copy link
Collaborator

I think a tooltip showing the complete repo path would be useful since it sometimes doesn't fit into the displaying widget.

@diivi diivi requested a review from real-yfprojects March 27, 2023 15:14
@real-yfprojects
Copy link
Collaborator

Looking good. However I am unsure whether I like using the repo id as a repo name for existing repos. I don't see any value in having 1,2,3 and so on in front of my repo paths/urls. I believe its better to only show the name if the user specified one.

And we should provide a way to edit the repo name. This could be a task for a future PR.

@diivi diivi requested a review from real-yfprojects April 12, 2023 19:28
@real-yfprojects real-yfprojects requested a review from m3nu May 28, 2023 16:16
@m3nu
Copy link
Contributor

m3nu commented May 29, 2023

Implementation looks good and it does what it promises.

Just have one idea to make it even better: How about adding some space or a thin line before the 2 password fields? To slightly separate them from the other fields and have a logical grouping.

Screenshot 2023-05-29 at 11 06 54

@diivi
Copy link
Contributor Author

diivi commented Jun 1, 2023

With separators (2e27718)

image
image

@m3nu
Copy link
Contributor

m3nu commented Jun 1, 2023

I think it's great like this.

m3nu
m3nu previously approved these changes Jun 1, 2023
@diivi diivi requested a review from real-yfprojects June 2, 2023 14:17
@real-yfprojects
Copy link
Collaborator

real-yfprojects commented Jun 11, 2023

I propose this, in accordance to the HIG:

grafik

@m3nu
Copy link
Contributor

m3nu commented Jun 23, 2023

This is OK to merge for me, but has pending feedback from @real-yfprojects regarding the small UI thing.

@m3nu m3nu self-assigned this Jun 23, 2023
@diivi
Copy link
Contributor Author

diivi commented Jun 23, 2023

I propose this, in accordance to the HIG:

Can you share the code/property?

@diivi diivi force-pushed the feat/add-name-to-repos branch from 23b1d68 to 5ade789 Compare June 23, 2023 18:31
@diivi
Copy link
Contributor Author

diivi commented Jun 23, 2023

image
Ignore the black eye icon, it seems to be an issue with the master branch as well, I will file it.

@m3nu
Copy link
Contributor

m3nu commented Jun 23, 2023

Right. I had to update some icons due to licensing and forgot to adjust the fill property for those. Please adjust it by adding fill="#000000" in the first <svg> tag:

<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 1536 1536" style="enable-background:new 0 0 1536 1536;" fill="#000000" xml:space="preserve">

This is needed for all icons, so they can be colored light/dark.

I still need to make a change for Google's Material icons license, so could also make the change there, if it doesn't fit this PR.

@diivi
Copy link
Contributor Author

diivi commented Jun 24, 2023

Done

@m3nu
Copy link
Contributor

m3nu commented Jun 24, 2023

Thanks for sneaking this in. Will test locally in a few hours and then merge.

@m3nu m3nu merged commit 92608f9 into borgbase:master Jun 24, 2023
@m3nu
Copy link
Contributor

m3nu commented Jun 24, 2023

Works as expected locally and implementation looks reasonable.

Congrats on another successful PR, @diivi 👏

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.

Assign names to repos
3 participants