Skip to content

Commit

Permalink
feat: add tooltip about CAPTCHA to ratings page
Browse files Browse the repository at this point in the history
  • Loading branch information
daveschumaker committed May 14, 2023
1 parent cc02ec7 commit 2be24f8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2023.05.14

- Happy Mother's Day to all you moms out there.
- Added a tooltip to the [image ratings page](/rate) that gives some more information about the CAPTCHA system. These are images you sometimes see that say "YOU MUST RATE THIS IMAGE A 7." When you see this, please do as the image says. 🙂

# 2023.05.13

- Oh, boy. I've been encountering a whole bunch of issues with my VPS this weekend. It sounds like there was an issue with a physical node that they've fixed. I'm really sorry if you've encountered any unexpected downtime.
Expand Down
2 changes: 1 addition & 1 deletion components/UI/Tooltip/tooltip.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.tooltip-wrapper {
max-width: 200px;
max-width: 300px;
border: 1px solid white;
z-index: 21;
}
Expand Down
26 changes: 26 additions & 0 deletions pages/rate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import { userInfoStore } from '../store/userStore'
import { clientHeader } from '../utils/appUtils'
import { sleep } from 'utils/sleep'
import { NewRating } from 'types'
import Tooltip from 'components/UI/Tooltip'

const MAX_ERROR_COUNT = 30

Expand Down Expand Up @@ -522,6 +523,31 @@ const Rate = () => {
/>
</Head>
<PageTitle>Rate images</PageTitle>
<div
style={{
alignItems: 'center',
display: 'flex',
flexDirection: 'row',
columnGap: '2px',
fontSize: '12px',
marginTop: '-12px',
marginBottom: '8px'
}}
>
What does &quot;<strong>you must rate this image X</strong>&quot; mean?
<Tooltip tooltipId="rate-image-captcha">
This is the AI Horde&apos;s version of a CAPTCHA. In order to prevent
abuse, these images are randomly displayed to ensure a user is not an
automated system. <strong>Please rate as the image requests!</strong>{' '}
Otherwise, you may be subject to a rating timeout.
<div style={{ marginTop: '8px' }}>
<img
src="/artbot/image_rating.png"
alt="Example of an image rating CAPTCHA"
/>
</div>
</Tooltip>
</div>
{componentState.apiKey === ANON_API_KEY && (
<>
<SubTitle>
Expand Down
Binary file added public/image_rating.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2be24f8

Please sign in to comment.