Revert "Fix dashboard dark mode readability by using theme-aware text colors"

This reverts commit 2a0634b820.
This commit is contained in:
Firehose Bot
2026-07-06 11:54:56 +01:00
parent 2a0634b820
commit 76255c7641
7 changed files with 11 additions and 59 deletions
@@ -39,7 +39,7 @@ defmodule FirehoseWeb.EditorDashboardLive do
"pb-2 px-1 text-sm font-medium transition-colors",
if(@active_tab == :drafts,
do: "border-b-2 border-zinc-900 text-zinc-900",
else: "text-base-content/70 hover:text-base-content"
else: "text-zinc-500 hover:text-zinc-700"
)
]}
>
@@ -52,7 +52,7 @@ defmodule FirehoseWeb.EditorDashboardLive do
"pb-2 px-1 text-sm font-medium transition-colors",
if(@active_tab == :scheduled,
do: "border-b-2 border-zinc-900 text-zinc-900",
else: "text-base-content/70 hover:text-base-content"
else: "text-zinc-500 hover:text-zinc-700"
)
]}
>
@@ -61,17 +61,17 @@ defmodule FirehoseWeb.EditorDashboardLive do
</div>
<div id="drafts-tab" class={if(@active_tab != :drafts, do: "hidden")}>
<div :if={@drafts == []} class="text-base-content/70 text-sm">No drafts</div>
<div :if={@drafts == []} class="text-zinc-500 text-sm">No drafts</div>
<div :for={post <- @drafts} class="py-4 border-b border-zinc-100 last:border-0">
<div class="flex items-center justify-between">
<div>
<.link
navigate={post_path(post)}
class="text-base font-medium text-base-content hover:underline"
class="text-base font-medium text-zinc-900 hover:underline"
>
{post.title}
</.link>
<div class="text-sm text-base-content/70 mt-1">
<div class="text-sm text-zinc-500 mt-1">
{post.author} · {Calendar.strftime(post.date, "%b %d, %Y")} ·
<span class="text-amber-600 font-medium">Draft</span>
</div>
@@ -81,17 +81,17 @@ defmodule FirehoseWeb.EditorDashboardLive do
</div>
<div id="scheduled-tab" class={if(@active_tab != :scheduled, do: "hidden")}>
<div :if={@scheduled == []} class="text-base-content/70 text-sm">No scheduled posts</div>
<div :if={@scheduled == []} class="text-zinc-500 text-sm">No scheduled posts</div>
<div :for={post <- @scheduled} class="py-4 border-b border-zinc-100 last:border-0">
<div class="flex items-center justify-between">
<div>
<.link
navigate={post_path(post)}
class="text-base font-medium text-base-content hover:underline"
class="text-base font-medium text-zinc-900 hover:underline"
>
{post.title}
</.link>
<div class="text-sm text-base-content/70 mt-1">
<div class="text-sm text-zinc-500 mt-1">
{post.author} · {Calendar.strftime(post.date, "%b %d, %Y")} ·
<span class="text-blue-600 font-medium">
{Post.days_until_live(post)} days until live
@@ -42,7 +42,7 @@ defmodule FirehoseWeb.MicroprintsLive do
~H"""
<div class="max-w-6xl mx-auto">
<h1 class="text-2xl font-bold mb-2">Microprints</h1>
<p class="text-sm text-base-content/70 mb-6">
<p class="text-sm text-zinc-500 mb-6">
Visual fingerprints of source code files. Click a line to highlight it.
Click a card to expand and view the source.
</p>
@@ -9,10 +9,4 @@
I had started on a "Write your own coding agent" exercise. Four iterations in, actually. And then I found [Tiny Agents]( https://tinyagents.dev/lesson/agent-loop), a set of interactive exercises that let you experience how agents work, from a simple chat request, through a tool, more tools etc. It has a live graph, that visualises of the flow of data and actions.
It is good fun to play with, it starts simple and builds up. It lets you inspect the messages between the 'agent' loop code and the large language model server (which is just HTTP and som![](app/priv/static/images/blog/2026/agent-nearby_20260701_220759.png)e JSON).
![]/images/blog/2026/Screen![](app/priv/static/images/blog/2026/agent-nearby_20260701_220849.png)shot 2026-06-30 at 22.42.49.png)
![agent nearby](/images/blog/2026/agent-nearby.png)
![](app/priv/static/images/blog/2026/agent-nearby_20260701_220606.png)
It is good fun to play with, it starts simple and builds up. It lets you inspect the messages between the 'agent' loop code and the large language model server (which is just HTTP and some JSON).
@@ -86,15 +86,5 @@ defmodule FirehoseWeb.EditorDashboardLiveTest do
{:ok, _view, html} = live(conn, ~p"/editor/dashboard")
refute html =~ "Live Post"
end
test "renders with app layout including menu", %{conn: conn} do
{:ok, _view, html} = live(conn, ~p"/editor/dashboard")
# Verify the app layout is applied by checking for menu elements
assert html =~ "Willem&#39;s firehose"
assert html =~ "Blog"
assert html =~ "Releases"
assert html =~ "Contact"
assert html =~ "Dashboard" # This should be in the menu
end
end
end