Skip to content

Commit 7ee715d

Browse files
committed
2 parents bfba870 + 99c66e0 commit 7ee715d

File tree

6 files changed

+36
-6
lines changed

6 files changed

+36
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ RUN apt-get update -qq && \
3535

3636
# Install application gems
3737
COPY Gemfile Gemfile.lock ./
38-
RUN bundle install && \
38+
RUN bundle install --jobs=4 --retry=3 && \
3939
rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \
4040
bundle exec bootsnap precompile --gemfile
4141

app/jobs/backfill_geocoding_job.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def perform(dry_run: false, all: false)
3939
total_visits_unfiltered = all_visits_unfiltered.count
4040
total_ips_unfiltered = all_visits_unfiltered.map(&:ip).uniq.count
4141

42-
all_visits = all_visits_unfiltered.reject { |v| cloudflare_ip?(v.ip) }
42+
all_visits = all_visits_unfiltered # .reject { |v| cloudflare_ip?(v.ip) }
4343

4444
# Group by IP to only geocode each unique IP once
4545
visits_by_ip = all_visits.group_by(&:ip)

app/views/home/_blueprint_progress.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
</div>
2929
</div>
3030

31-
<% if @bp_progress > 100 %>
32-
<p class="mt-1 text-xs text-white/80">
33-
You exceeded the goal by <%= @bp_progress - 100 %>% — keep going!
31+
<% if @bp_progress >= 100 %>
32+
<p class="mt-1 text-white/80">
33+
You've reached 100%! You'll be sent an email to confirm your spot within 2 business days.
3434
</p>
3535
<% end %>
3636
</div>

app/views/home/index.html.erb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@
55
<p class="text-lg md:text-xl">Here's what's cooking today</p>
66
</div>
77
<div class="grid grid-cols-1 md:grid-cols-2 gap-4 md:gap-8">
8+
<% if current_user.idv_linked? && !current_user.ysws_verified %>
9+
<%= render 'shared/card', class: 'col-span-1 md:col-span-2 border-bp-warning border-2 space-y-0 flex flex-row items-center' do %>
10+
<div class="grow">
11+
<p class="font-rc-full text-2xl md:text-3xl">Finish verifying your identity</p>
12+
<p>Upload your documents to Hack Club Account and wait for manual
13+
review.</p>
14+
</div>
15+
<div>
16+
<%= render 'shared/button', text: "Verify Now", url: "https://account.hackclub.com/verifications/document" %>
17+
</div>
18+
<% end %>
19+
<% end %>
820
<% unless current_user.is_pro %>
921
<%= render 'shared/card', class: 'col-span-1 md:col-span-2 flex flex-col motion-safe:transition-colors border-2 border-bp-warning border-solid' do %>
1022
<p class="text-2xl md:text-3xl font-rc-full mb-8">Build your first hardware project. Start with Hackpad!</p>

config/initializers/ahoy.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
class Ahoy::Store < Ahoy::DatabaseStore
2+
def track_visit(data)
3+
data[:ip] = request.headers["CF-Connecting-IP"] || request.remote_ip
4+
5+
if request.session[:user_id] == 1
6+
begin
7+
Sentry.capture_message("Ahoy Headers for User 1", extra: { headers: request.headers.to_h })
8+
rescue => e
9+
Sentry.capture_exception(e)
10+
end
11+
end
12+
13+
super(data)
14+
end
215
end
316

417
# set to true for JavaScript tracking
@@ -7,4 +20,5 @@ class Ahoy::Store < Ahoy::DatabaseStore
720
# set to true for geocoding (and add the geocoder gem to your Gemfile)
821
# we recommend configuring local geocoding as well
922
# see https://github.com/ankane/ahoy#geocoding
10-
Ahoy.geocode = false
23+
Ahoy.geocode = true
24+
Ahoy.job_queue = :background

docs/about/faq.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Yes!
3030

3131
Anything within budget!
3232

33+
## Do I need the journal in my repo?
34+
35+
No! It just needs to be in [blueprint.hackclub.com](blueprint.hackclub.com) :D
36+
3337
## How long may reviews take?
3438

3539
Reviews may vary in time! They can take a week or more. We try to review as soon as possible :)

0 commit comments

Comments
 (0)