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

AO3-6942 Update page title in admin for spam ban deletion #5100

Conversation

laurasimmons30
Copy link
Contributor

@laurasimmons30 laurasimmons30 commented Mar 14, 2025

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-6942

Purpose

Updates the page title for confirm_delete_user_creation page in admin view to be more dynamic and consistent with other similar page titles

Credit

Laura (she/her)

@laurasimmons30 laurasimmons30 force-pushed the AO3-6942-update-browser-page-title-during-spam-ban branch from 2e98a70 to 2bc82d0 Compare March 14, 2025 21:07
@EchoEkhi
Copy link
Contributor

You might want to pick a shorter title for your pull request, because when the commits get squashed during merge, that becomes the new commit message

@laurasimmons30 laurasimmons30 changed the title AO3-6942 update page title in admin view for spammer ban deletion use… AO3-6942 update page title in admin view for spammer ban deletion Mar 15, 2025
@laurasimmons30 laurasimmons30 changed the title AO3-6942 update page title in admin view for spammer ban deletion AO3-6942 update page title in admin view for spam ban deletion Mar 15, 2025
@laurasimmons30 laurasimmons30 changed the title AO3-6942 update page title in admin view for spam ban deletion AO3-6942 update page title in admin for spam ban deletion Mar 15, 2025
@@ -12,6 +12,7 @@ Feature: Filters
And I post the work "A Hobbit's Meandering" with fandom "The Hobbit"
And I post the work "Bilbo Does the Thing" with fandom "The Hobbit, Legend of Korra"
And I post the work "Roonal Woozlib and the Ferrets of Nimh" with fandom "Harry Potter"
And it is currently 1 second from now
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There seems to be some flakyness around the works count and bookmarks count links getting populated with the correct number of created works before they're clicked in some tests. I'm not sure this totally fixed it, but worth flagging.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I pulled this text fix out into a separate Jira issue and pull request: #5101

Copy link
Contributor

@Bilka2 Bilka2 left a comment

Choose a reason for hiding this comment

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

Thank you for contributing! This just needs one tiny change.

Please remove the fix for the flaky test because I pulled it out into its own Jira issue and pull request to avoid expanding the scope of this PR. But thank you for getting started on that!

@@ -148,6 +148,7 @@ en:
caution_html: Are you sure you want to <strong><em>delete</em></strong> all the works and comments created by this user, along with their %{bookmarks} bookmarks, %{series} series, and %{collections} collections? This <strong>cannot be undone</strong>.
confirm: Are you sure? Remember this will destroy ALL these objects!
page_heading: Delete Spammer Creations
page_title: "%{login} - Confirm Deletion of User Creations"
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this to config/locales/controllers/en.yml instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is that correct? This change is for the text in the browser tab title to be updated, not a controller action message (to my understanding).

example of a different page per the ticket:

page_title: "%{login} - User Creations"

Copy link
Contributor

@Bilka2 Bilka2 Mar 17, 2025

Choose a reason for hiding this comment

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

Yes, because it's getting set in the controller, not in the view. A few of the locales for the page titles accidentally ended up in the wrong file, we have https://otwarchive.atlassian.net/browse/AO3-6924 to fix some of them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok sounds good! Thanks for the clarification, i will make that update 👍

Copy link
Contributor

Choose a reason for hiding this comment

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

Thank you!

@brianjaustin brianjaustin changed the title AO3-6942 update page title in admin for spam ban deletion AO3-6942 Update page title in admin for spam ban deletion Mar 17, 2025
@brianjaustin brianjaustin merged commit 145f7e4 into otwcode:master Mar 31, 2025
66 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants