Skip to content

Commit 4c8c520

Browse files
committed
refactor: update chat section layout in BountyLive
- Replaced the previous owner display with a chat header and a dynamic list of exclusive users. - Improved the layout for better alignment and spacing in the chat section. - Removed the unused `bounty_frequency` function as part of the cleanup.
1 parent 9c3a6a0 commit 4c8c520

File tree

1 file changed

+13
-18
lines changed

1 file changed

+13
-18
lines changed

lib/algora_web/live/bounty_live.ex

Lines changed: 13 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -381,19 +381,19 @@ defmodule AlgoraWeb.BountyLive do
381381
382382
<div class="h-[calc(100vh-64px)] w-[400px] flex flex-none flex-col border-l border-border">
383383
<div class="flex flex-none items-center justify-between border-b border-border bg-card/50 p-4 backdrop-blur supports-[backdrop-filter]:bg-background/60">
384-
<div class="flex items-center gap-3">
385-
<div class="relative">
386-
<.avatar>
387-
<.avatar_image src={@bounty.owner.avatar_url} alt="Developer avatar" />
388-
<.avatar_fallback>
389-
{Algora.Util.initials(@bounty.owner.name)}
390-
</.avatar_fallback>
391-
</.avatar>
392-
<div class="absolute right-0 bottom-0 h-3 w-3 rounded-full border-2 border-background bg-success">
393-
</div>
394-
</div>
395-
<div>
396-
<h2 class="text-lg font-semibold">{@bounty.owner.name}</h2>
384+
<div class="flex justify-between items-center w-full">
385+
<h2 class="text-lg font-semibold">
386+
Chat
387+
</h2>
388+
<div class="relative flex -space-x-2">
389+
<%= for user <- @exclusives do %>
390+
<.avatar>
391+
<.avatar_image src={user.avatar_url} alt="Developer avatar" />
392+
<.avatar_fallback>
393+
{Algora.Util.initials(@bounty.owner.name)}
394+
</.avatar_fallback>
395+
</.avatar>
396+
<% end %>
397397
</div>
398398
</div>
399399
</div>
@@ -661,11 +661,6 @@ defmodule AlgoraWeb.BountyLive do
661661
Accounts.list_featured_developers()
662662
end
663663

664-
# TODO: implement this
665-
defp bounty_frequency(_bounty) do
666-
"Monthly"
667-
end
668-
669664
defp close_drawers(socket) do
670665
socket
671666
|> assign(:show_reward_modal, false)

0 commit comments

Comments
 (0)