Skip to content

Conversation

@jsoref
Copy link

@jsoref jsoref commented Oct 16, 2025

I'm sorry, the branch selection text above doesn't include accessible links explaining to a mortal how to determine if something should be a hotfix. As such, I'm targeting develop, however I can easily rebase and change the destination branch.

Purpose

Do not use (click) here links

For more information, see:

Changes

  • Fixes a couple of typos
  • Fixes a couple of branding errors

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

@jsoref jsoref marked this pull request as draft October 16, 2025 12:48
raise HTTPError(http_status.HTTP_403_FORBIDDEN, data={
'message_long': 'Your Gitlab token is deleted or invalid you may disconnect your Gitlab account and '
'reconnect with a valid token <a href="/settings/addons/">here</a>.'
'message_long': 'Your GitLab token is deleted or invalid you may <a href="/settings/addons/">disconnect '
Copy link
Author

Choose a reason for hiding this comment

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

Comment on lines -26 to +27
To approve this requst: <a href="${approval_link}">Click here</a>.<br>
To cancel this request: <a href="${disapproval_link}">Click here</a>
You can <a href="${approval_link}">approve this request</a>.<br>
Or you can <a href="${disapproval_link}">cancel this request</a>.
Copy link
Author

Choose a reason for hiding this comment

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

Includes typo fix

@jsoref jsoref marked this pull request as ready for review October 16, 2025 12:53
<li>Upload supplemental, materials, data, and code to the OSF project associated with your ${document_type}.
<a href="https://help.osf.io/article/177-upload-a-preprint" target="_blank">Learn how</a></li>
<li>Preregister your next study. <a href="https://help.osf.io/345-create-registrations">Read more</a></li>
<li>Preregister your next study. See <a href="https://help.osf.io/345-create-registrations">Create a Registration</a></li>
Copy link
Author

Choose a reason for hiding this comment

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

Copy link
Contributor

@futa-ikeda futa-ikeda 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 so much for going through and updating these! I've left a couple suggestions for potential readability improvements, and if you could remove the unneeded aria-label in gitlab/models.py, that would be much appreciated!

@jsoref jsoref requested a review from futa-ikeda October 21, 2025 16:12
Copy link
Contributor

@futa-ikeda futa-ikeda left a comment

Choose a reason for hiding this comment

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

Apologies for missing this the first time around. Just a couple of minor updates I noticed, but otherwise, should be all good!

<a href="${requester.absolute_url}">${requester.fullname}</a> has requested access to your ${node.project_or_component} "<a href="${node.absolute_url}">${node.title}</a>."<br>
<br>
To review the request, click <a href="${contributors_url}">here</a> to allow or deny access and configure permissions.<br>
<a href="${contributors_url}">Review the request</a> to allow or deny access and configure permissions.<br>
Copy link
Author

Choose a reason for hiding this comment

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

Here's one instance of dropping To

% endif
<p>
To review the request, click <a href="${node.absolute_url}contributors/">here</a> to allow or deny access and configure permissions.
<a href="${node.absolute_url}contributors/">Review the request</a> to allow or deny access and configure permissions.
Copy link
Author

Choose a reason for hiding this comment

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

Here's the other instance of dropping To

<li>Upload supplemental, materials, data, and code to the OSF project associated with your ${document_type}.
<a href="https://help.osf.io/article/177-upload-a-preprint" target="_blank">Learn how</a></li>
<li>Preregister your next study. <a href="https://help.osf.io/345-create-registrations">Read more</a></li>
Learn how to <a href="https://help.osf.io/article/177-upload-a-preprint" target="_blank">upload a preprint</a>.</li>
Copy link
Author

Choose a reason for hiding this comment

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

Similarly, this Learn how also deserves a fix.

<a href="https://help.osf.io/article/177-upload-a-preprint" target="_blank">Learn how</a></li>
<li>Preregister your next study. <a href="https://help.osf.io/345-create-registrations">Read more</a></li>
Learn how to <a href="https://help.osf.io/article/177-upload-a-preprint" target="_blank">upload a preprint</a>.</li>
<li>Preregister your next study. Learn how to <a href="https://help.osf.io/345-create-registrations">create a registration</a>.</li>
Copy link
Author

Choose a reason for hiding this comment

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

I'm adding .s because these now feel very much like sentences as opposed to random words.

@jsoref jsoref requested a review from futa-ikeda October 21, 2025 18:24
Copy link
Contributor

@futa-ikeda futa-ikeda 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 so much for these updates! I'll leave an approval here, but will hold off on merging this, as I want to run this past a couple people on our end.

Comment on lines 8 to 12
Your submission ${reviewable.title}, submitted to ${reviewable.provider.name},
has not been accepted. Your registration was returned as a draft so you can make the appropriate edits for resubmission.
<a href=${draft_registration.absolute_url}>Click here</a> to view your draft.
<a href=${draft_registration.absolute_url}>View your draft</a>.
% else:
Your submission <a href="${reviewable.absolute_url}">${reviewable.title}</a>, submitted to ${reviewable.provider.name}, has been accepted by the moderator.
Copy link
Contributor

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 areas where the $ sign has been removed for the template variables. Could you add those back in?

Copy link
Author

Choose a reason for hiding this comment

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

Are you sure? I think the $ is just being highlighted being the syntax highlighter doesn't think it's valid html (I don't think it understands .mako

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, yes, you're right! That makes more sense. Sorry for the confusion!

<li>Submit your preprint to an APA-published journal. Learn about <a href="https://help.osf.io/article/376-preprints-home-page#Submitting-to-a-Moderated-Preprint-Service-nueKG">Submitting to a Moderated Preprint Service</a>.</li>
% endif
<li>Upload supplemental, materials, data, and code to the OSF project associated with your ${document_type}.
Copy link
Contributor

Choose a reason for hiding this comment

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

One more dropped $ here as well

Copy link
Author

Choose a reason for hiding this comment

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

Lines that aren't pink/green aren't changed by me, so that's definitely the syntax highlighter not understanding the syntax.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yep, sorry, definitely misread these syntax highlighting here too!

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.

2 participants