diff --git a/PROJECT.org b/PROJECT.org index ac38398..611ef44 100644 --- a/PROJECT.org +++ b/PROJECT.org @@ -18,7 +18,7 @@ tasks, Todoist tasks, web pages I've read and trails I've hiked has turned out to be sometimes cathartic and sometimes functional as I try to remember when I did a thing. -* Backlog [0/30] :vrobbler:project:personal: +* Backlog [1/31] :vrobbler:project:personal: ** TODO [#C] Configure IMAP folder/start in user profile :imap:settings: *** Description @@ -590,3 +590,7 @@ The Edit log form should have from top to bottom: - People (which should be similar to the Bird widget on BirdLocation and allow setting per user score, win true/false, rank, new true/false, seat_ordrer) - Expansion ids (which should a multi-select widget of expansions for this game) - Location (which should be a drop down of BoardGameLocations for this user) +** DONE [#A] Fix bug in agent session templates :templates:homepage:scrobbles:agents: +:PROPERTIES: +:ID: 187aae32-e98b-c74d-5a8b-3284108ff0eb +:END: diff --git a/tests/agents_tests/test_agent_sessions.py b/tests/agents_tests/test_agent_sessions.py index ef3ef01..db12c74 100644 --- a/tests/agents_tests/test_agent_sessions.py +++ b/tests/agents_tests/test_agent_sessions.py @@ -1089,7 +1089,7 @@ def test_homepage_shows_agent_sessions_with_first_prompt_title( response = client.get(reverse("vrobbler-home")) assert response.status_code == 200 - assert b"Agent Sessions" in response.content + assert b"AgentSession" in response.content assert first_prompt.encode() in response.content assert settings.LLM_MODEL.encode() not in response.content diff --git a/vrobbler/templates/scrobbles/_timeline.html b/vrobbler/templates/scrobbles/_timeline.html index cbd76cc..573b13f 100644 --- a/vrobbler/templates/scrobbles/_timeline.html +++ b/vrobbler/templates/scrobbles/_timeline.html @@ -24,7 +24,11 @@ {{ scrobble.media_obj.strings.verb }} now | Finish — {% endif %} + {% if scrobble.media_type == "AgentSession" and scrobble.logdata.title %} + {{ scrobble.logdata.title|truncatechars_html:60 }} + {% else %} {{ scrobble.media_obj|truncatechars_html:60 }} + {% endif %} ({{ scrobble.media_type|lower }}·{{ scrobble.elapsed_time|natural_duration }})