Feed source tabs: quote what lands on the tab you are not reading - #1667
Merged
Conversation
Ein Punkt am anderen Quellen-Reiter sagte bisher nur, dass dort etwas liegt — zu wenig, um zu entscheiden, ob sich ein Wechsel lohnt. Jetzt reißt die Leiste den Neuzugang acht Sekunden lang an (Absender plus erste Wörter) und faltet auf schmalen Bildschirmen die übrigen Reiter weg, damit der Anriss die Breite bekommt; Reiter und Anriss teilen dabei eine warme Fläche, denn der gemeinte Reiter steht oft nicht daneben. Die Uhr läuft im Browser, nicht auf dem Server: eine serverseitige Uhr zählt die Laufzeit der Nachricht mit, und ein Ausblendbefehl auf einer toten Leitung ließe den Anriss für immer stehen. Ab dem zweiten Beitrag im Fenster wird aus dem Zitat eine Zahl, ohne die Uhr neu zu stellen, sonst gehört die Leiste einer regen Quelle dauerhaft. Zwei Einstellungen pro Mitglied (an/aus, 4 bis 20 Sekunden) mit einem abspielbaren Beispiel in der Karte, weil die Wirkung sonst nur auf einer anderen Seite und sekundenweise zu sehen wäre. Diesen Text hat ein KI-Agent in meinem Namen geschrieben. Ich weiß, dass das problematisch ist.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Symptom A post landing on the source tab you are not on marked it with a coral dot and nothing else — not enough to decide whether switching is worth it.
What changed On
/feed, the tab bar now quotes the arrival for eight seconds beside its tab: author plus first words, truncated by the bar's width. The tab and the quote share one warm tint for that window, because the tab in question is often not the one next to the quote. On a narrow bar the other tabs fold their labels to zero width so the quote gets the room. Clicking the quote switches to that tab.The clock runs in the browser (
FeedTicker,assets/js/app.js), not on the server: a server-side window would include the trip back, and a lost hide message on a dead line would leave the quote standing. From the second arrival inside a window the quote becomes a count, without restarting the clock.Vutuv.Posts.feed_source_since?/3becamenewest_source_entry/3— same query, it hands the entry back so it can be quoted.Entry points
/feed(VutuvWeb.PostLive.Feed), the shared barVutuvWeb.PostComponents.post_filter_tabs/1, and/settings/preferences→ Feed tabs, where two new preferences (on/off, 4–20 seconds, defaults on/8) sit with an example you can play.To decide Eight seconds and the five offered lengths are a guess; the settings card exists so members can disagree. The fold rules had to go into the unlayered block in
app.css— a tab wears its padding aspx-3, which a layered rule cannot take off.An AI agent wrote this text in my name. I know that is problematic.
https://claude.ai/code/session_01Wj8RsXvfN4iEk8o5buYmk5