Skip to content

Replace author Edit button with new window link icon#4856

Merged
wes-otf merged 2 commits into
mainfrom
application-detail-remove-author-edit
May 22, 2026
Merged

Replace author Edit button with new window link icon#4856
wes-otf merged 2 commits into
mainfrom
application-detail-remove-author-edit

Conversation

@wes-otf
Copy link
Copy Markdown
Contributor

@wes-otf wes-otf commented May 21, 2026

Addressing the conversation here. Making the link to the user's wagtail admin page a little less confusing now that the "Change Author" feature exists. Also made this open in a new tab. Feels a bit more intuitive

before
Screenshot 2026-05-21 at 09 52 43
after
Screenshot 2026-05-21 at 09 51 55

@wes-otf wes-otf requested a review from frjo May 21, 2026 13:56
{% trans "Edit" %}
<a class="link" href="{% url 'wagtailusers_users:edit' object.user_id %}" target="_blank">
{% heroicon_mini "arrow-top-right-on-square" class="inline align-text-bottom size-4" %}
</a>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

That icon usually is used for external links. Can we not just make it underline?

Not to fond of target="_blank" but we use it in 25 other places already.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was using some of the precedent here to convey to the staff member that this is going to remove them from their current workflow, as I can see a lot of them clicking it accidentally thinking it'll allow for filtering by applicant or something similar. Can make the name a link if you feel that's more intuitive though

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok, let leave it as is. But we do need to add a "title" attribute to the link to make it accessible. Something like "Edit user account".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

should be set now!

@frjo frjo added Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter labels May 22, 2026
@wes-otf wes-otf merged commit 90a5797 into main May 22, 2026
6 checks passed
wes-otf added a commit that referenced this pull request May 25, 2026
<!--
Thanks for contributing to Hypha!

Please ensure your contributions pass all necessary linting/testing and
that the appropriate documentation has been updated.
-->

<!--
Describe briefly what your pull request changes. If this is resolving an
issue, please specify below via "Fixes #<Github Issue ID>"
-->
Addressing the conversation
[here](#4380 (comment)).
Making the link to the user's wagtail admin page a little less confusing
now that the "Change Author" feature exists. Also made this open in a
new tab. Feels a bit more intuitive

*before*
<img width="160" height="92" alt="Screenshot 2026-05-21 at 09 52 43"
src="https://github.com/user-attachments/assets/164f4523-983a-4ee5-9ed2-8c7bbfab9de5"
/>
*after*
<img width="160" height="92" alt="Screenshot 2026-05-21 at 09 51 55"
src="https://github.com/user-attachments/assets/afa00bac-e232-464a-bd8c-2ae54e5970d5"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Enhancement This is an improvement of an existing thing (not a new thing, which would be a feature). Type: Patch Mini change, used in release drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants