       console?.log 'Saved classification', classification.id
       # After saving, remove the classification resource from the local cache.
       classification.destroy()
+    classificationsThisSession += 1
+    @maybePromptToSignIn()
+
+  maybePromptToSignIn: ->
+    auth.checkCurrent().then (user) ->
+      console.log classificationsThisSession, classificationsThisSession in PROMPT_TO_SIGN_IN_AFTER, not user?
+      if classificationsThisSession in PROMPT_TO_SIGN_IN_AFTER and not user?
+        alert <div className="content-container">
+          <p><strong>Hey, you’ve done {classificationsThisSession} classifications, but you’re not signed in!</strong></p>
+          <p>Signing in allows us to give you credit for your work, and helps us make better sense of all the data.</p>
+        </div>
 
   loadAnotherSubject: ->
     @getCurrentWorkflowID(@props).then (workflowID) =>

animatedScrollTo = require 'animated-scrollto'
counterpart = require 'counterpart'
Classifier = require '../../classifier'

SKIP_CELLECT = location.search.match(/\Wcellect=0(?:\W|$)/)?

if SKIP_CELLECT
  console?.warn 'Intelligent subject selection disabled'

# Map each project ID to a promise of its last randomly-selected workflow ID.
# This is to maintain the same random workflow for each project when none is specified by the user.

auth = require '../../api/auth'
React = require 'react'
TitleMixin = require '../../lib/title-mixin'
HandlePropChanges = require '../../lib/handle-prop-changes'
