-
Couldn't load subscription status.
- Fork 629
AO3-7134 - Fix new user tips link not opening in modal #5435
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
base: master
Are you sure you want to change the base?
Conversation
|
Hi, quen! Thank you so much for this pull request. Someone will be along to review it soon -- in the meantime, I've set the Jira issue to In Review to make sure no one else duplicates your work. You're more than welcome to create a Jira account. It makes things a bit easier for us on the organizational side if the Full Name on your Jira account either closely matches the name you'd like us to credit in the release notes or includes it in parentheses, e.g. "Nickname (CREDIT NAME)," so we'd appreciate it if you could do that. Once you've made your account, you can either reply here or send an email to [email protected] with your account name and email address and we'll set you up with the ability to comment on, assign, and transition issues in the future. Thanks again for contributing! If you have any questions, you can contact us at the same email address listed above. |
Thanks so much, I've sent an email to that address with my Jira info! |
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.
I also dropped the class option from the link_to_modal as that was not used by any of the three callers of that method
What about class: "help symbol question" in
otwarchive/app/helpers/application_helper.rb
Line 190 in e989204
| " ".html_safe + link_to_modal(link, for: help_file, title: help_entry.split('-').join(' ').capitalize, class: "help symbol question").html_safe |
| And I follow "My Dashboard" | ||
| Then I should see "Hi! It looks like you've just logged in to AO3 for the first time." | ||
| When I follow "useful tips for new users" | ||
| Then I should see "Welcome to the Example Archive!" |
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.
Some existing tests appear to add within "#modal" at the end there, to check this is indeed a modal we're dealing with.
Ah great catch, I missed that (I think because it was in the same file as the method itself) - I'll walk that back! |
Pull Request Checklist
AO3-1234 Fix thing)until they are reviewed and merged before creating new pull requests.
Issue
https://otwarchive.atlassian.net/browse/AO3-7134
Purpose
Fixes an issue where the "useful tips for new users" link was opening in a full unstyled HTML page rather than being rendered into a modal.
Implementation / Review Notes
I wasn't sure where the other modals are sourcing their footer text (I couldn't find those strings in the code base), so I set that to an empty string so that no footer text would display.
I also dropped the
classoption from thelink_to_modalas that was not used by any of the three callers of that method (and if do we want to support concatenation of CSS classes it might be nice to do that more dynamically so as not to include the leading whitespace), but if it's necessary to keep that functionality I'm happy to walk that change back!Testing Instructions
Per the very helpful instructions in the ticket:
Credit
I don't have a Jira account made yet, though I'd be happy to have one created!
I can be credited as quen (or quen-codes), she/her