-
Notifications
You must be signed in to change notification settings - Fork 4
Redirects: match recent improvements #237
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
Conversation
Matches readthedocs/readthedocs.org#10881. Applied the same code we have for automation rules.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks for jumping in on this change 💪
The listing UIs do tend to get overwhelmed with too much data in each listing item, but there are a few options. For status code or similar, I think a listing filter works really well. I'd say a listing filter would at least have redirect type and status code, maybe there are other fields. We don't have to list this in each item for the UI/UX to make sense here, as users can enable the filters to see the matching rules. Filtering does complicate the UI around rule ordering though, for both the arrows and the drag and drop. We can always disable these methods if the filter is active though.
I would aim for implementing explicit ordering first and allow users to just type in a priority number or something. Drag and drop doesn't work great here because this list will eventually paginate. It's a nice UX affordance for later maybe though. Feel free to move these to a dedicated issue and we can come back later |
@agjohnson opened #241. Another thing, I'm not sure about using the Specially for types like clean url/html url, they are displayed like We are also using |
I don't like I might just say that instead of switching between pseudo variable formats, the styles should be more specific, and should stand out more. I can play around with the element structure here. I'm guessing I'll end up using We should absolutely replace Do we have any other variables we need to describe in the UI besides:
|
We have project prefix, subproject prefix, and 3 types of versioning scheme which will result in a different prefix for page redirects... but anything that describes page redirects applying to only the page/filename of any version would be ok. |
Okay, maybe
Overall, the main thing I would want to preserve in this UI is that the redirects are not listed by their verbose name ("Clean URL to HTML", etc). These names make comparing the redirects quite difficult. I'll want to represent all redirects as from/target. I think what you've done is pretty close for now though, it's only really the |
@@ -37,6 +37,34 @@ | |||
{% endblock list_placeholder_text %} | |||
|
|||
{% block list_item_right_buttons %} | |||
{% trans "Move up" as button_up_text %} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Matches readthedocs/readthedocs.org#10881.
Applied the same code we have for automation rules.
There are some new options that we may want to include in the UI, like status code, description, and if the redirect is enabled/disabled. We can also think about implementing some nice drag and drop in addition to the arrow buttons.