@@ -598,10 +598,10 @@ defmodule AlgoraWeb.Org.JobLive do
598
598
599
599
defp assign_applicants ( socket ) do
600
600
all_applicants = Jobs . list_job_applications ( socket . assigns . job )
601
-
601
+
602
602
# Get total matches count first (efficient query)
603
603
total_matches_count = Settings . get_job_matches_count ( socket . assigns . job )
604
-
604
+
605
605
# Load only the matches we need to display (limit to 9)
606
606
limited_matches = Settings . get_job_matches ( socket . assigns . job , limit: 9 )
607
607
@@ -623,10 +623,8 @@ defmodule AlgoraWeb.Org.JobLive do
623
623
624
624
# Trigger async sync for missing heatmaps if connected
625
625
if connected? ( socket ) do
626
- missing_heatmap_users =
627
- developers
628
- |> Enum . reject ( & Map . has_key? ( heatmaps_map , & 1 . id ) )
629
-
626
+ missing_heatmap_users = Enum . reject ( developers , & Map . has_key? ( heatmaps_map , & 1 . id ) )
627
+
630
628
if length ( missing_heatmap_users ) > 0 do
631
629
enqueue_heatmap_sync ( missing_heatmap_users )
632
630
end
@@ -954,6 +952,8 @@ defmodule AlgoraWeb.Org.JobLive do
954
952
</ . button >
955
953
</ div >
956
954
955
+ < . heatmap_display :if = { @ heatmap_data } heatmap_data = { @ heatmap_data } />
956
+
957
957
< div :if = { @ contributions != [ ] } class = "mt-4 " >
958
958
< p class = "text-xs text-muted-foreground uppercase font-semibold " >
959
959
Top contributions
@@ -1005,8 +1005,6 @@ defmodule AlgoraWeb.Org.JobLive do
1005
1005
<% end %>
1006
1006
</ div >
1007
1007
</ div >
1008
-
1009
- < . heatmap_display :if = { @ heatmap_data && not @ anonymized } heatmap_data = { @ heatmap_data } />
1010
1008
</ div >
1011
1009
</ div >
1012
1010
"""
0 commit comments