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

feature: allow to hide tag history to simplify the user interface #362

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

lukengda
Copy link
Contributor

I would like to use docker-registry-ui to inform users about the available tags for our images. The users of this interface are not interested in the technical backgrounds how it works and I worry that it would confuse them.

Note: One needs to be aware, that this is data is available nonetheless. This is only a user interface switch for hiding the button.

If desired, i could also rephrase the variables to "show-tag-history", defaulting to true, to match the name of other options.

Is there anything else that is required for the merge request?

Closes #358

@Joxit
Copy link
Owner

Joxit commented Mar 12, 2024

Hi, thank you for your contribution, I think you're right, you should rename the variable to show-tag-history

@lukengda
Copy link
Contributor Author

okay, thank you for the feedback. This will be be the first "default true" config, but i think i can make it happen. Will update this PR.

I would like to use docker-registry-ui to inform users about the available
tags for our images. The users of this interface are not interested in the
technical backgrounds how it works and I worry that it would confuse them.

Note: One needs to be aware, that this is data is available nonetheless. This
is only a user interface switch for hiding the button.
@lukengda lukengda force-pushed the feature/allow-hide-tag-history branch from bd84d74 to e470fed Compare March 13, 2024 16:26
@lukengda
Copy link
Contributor Author

I reversed the logic and called it SHOW_TAG_HISTORY, defaulting to true. Hope this fits better now :)

Copy link
Owner

@Joxit Joxit left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution

@@ -119,7 +119,7 @@ Some env options are available for use this interface for **only one server** (w
- `CATALOG_MAX_BRANCHES`: Set the maximum repository/namespace to expand (e.g. `joxit/docker-registry-ui` `joxit/` is the repository/namespace). Can be 0 to disable branching. (see [#319](https://github.com/Joxit/docker-registry-ui/pull/319)). (default: `1`). Since 2.5.0
- `TAGLIST_PAGE_SIZE`: Set the number of tags to display in one page. (default: `100`). Since 2.5.0
- `REGISTRY_SECURED`: By default, the UI will check on every requests if your registry is secured or not (you will see `401` responses in your console). Set to `true` if your registry uses Basic Authentication and divide by two the number of call to your registry. (default `false`). Since 2.5.0

- `SHOW_TAG_HISTORY`: Whether to show the tag history feature or not. Allows to simplify the user interface by hiding it form the tag list if set to `false`. (default: `true`).
Copy link
Owner

Choose a reason for hiding this comment

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

You text is a way to much subjective "Allows to simplify the user interface". I will change it before the next release.

@Joxit Joxit merged commit 7025df6 into Joxit:main Mar 14, 2024
1 check 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
Development

Successfully merging this pull request may close these issues.

Feature request: Allow hiding the history feature to reduce complexity of the user interface
2 participants