fix(ui): drop history narration and em dashes from chat and dashboard comments
This commit is contained in:
13 files changed
+26
-31
No files matched your search
@@ -7,8 +7,8 @@ import type { ChatMedia } from "./state";
|
||||
/**
|
||||
* One attachment a message carried, as the transcript shows it.
|
||||
*
|
||||
* The bytes are gone by design — they are turn-scoped and are stripped before
|
||||
* the record is stored — so this is a labelled chip rather than a preview. It
|
||||
* The bytes are gone by design: they are turn-scoped and stripped before the
|
||||
* record is stored, so this is a labelled chip rather than a preview. It
|
||||
* links out only when the attachment itself carried a URL; a platform file id
|
||||
* is deliberately never rendered, because it is a handle rather than an
|
||||
* address and a chip that 404s is worse than no chip.
|
||||
|
||||
@@ -27,10 +27,9 @@ import {
|
||||
* panel says before either exists.
|
||||
*
|
||||
* The scroller follows the tail, and stops following the moment the reader
|
||||
* scrolls up rather than yanking them back on every streamed token. That is
|
||||
* what MessageScroller is for, so it is used rather than re-derived: an
|
||||
* earlier version set scrollTop from a watcher, which has neither the
|
||||
* "reader scrolled away" state nor a way back down.
|
||||
* scrolls up rather than yanking them back on every streamed token. A watcher
|
||||
* that set scrollTop by hand would have no "reader scrolled away" state and no
|
||||
* way back down, so MessageScroller owns this.
|
||||
*/
|
||||
const emit = defineEmits<{ prompt: [text: string] }>();
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import type { ChatMedia } from "./state";
|
||||
*
|
||||
* The bytes are turn-scoped and never reach a browser, so the label stands in
|
||||
* for the file. It reuses the placeholder vocabulary the channels already
|
||||
* write into a message's text (`[photo]`, `[document: report.pdf]` — see the
|
||||
* write into a message's text (`[photo]`, `[document: report.pdf]`, see the
|
||||
* notes in `internal/channels/telegram/inboundmedia.go`), so the same
|
||||
* attachment reads the same whether its metadata survived persistence or only
|
||||
* the note in its text did.
|
||||
@@ -32,7 +32,7 @@ export function mediaLabel(attachment: ChatMedia): string {
|
||||
* size, dimensions and duration, in the order a reader asks about them.
|
||||
*
|
||||
* It reports only what the record actually carried, so an unknown size reads
|
||||
* as absent rather than as zero, and it never names the platform file id — a
|
||||
* as absent rather than as zero, and it never names the platform file id: a
|
||||
* handle is not information about the file.
|
||||
*/
|
||||
export function mediaDetail(attachment: ChatMedia): string {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Keeping the arrow-key selection visible in the command palette.
|
||||
//
|
||||
// The palette caps its height and scrolls, so once the matches run past the
|
||||
// visible rows the selection walked off-screen and the highlight was invisible
|
||||
// (archie-core-ifay). Browsers have scrollIntoView, but the decision is pure
|
||||
// visible rows the selection must scroll with the highlight. Browsers have
|
||||
// scrollIntoView, but the decision is pure
|
||||
// arithmetic and worth testing on its own, so the effect only applies what
|
||||
// this returns.
|
||||
|
||||
|
||||
@@ -242,9 +242,8 @@ export async function refreshSessions(): Promise<void> {
|
||||
);
|
||||
|
||||
if (!currentSession.value && sessionList[0]) {
|
||||
// Vue's reactivity makes the assignment above readable here immediately, so
|
||||
// the read that selects the first conversation needs no data threaded into
|
||||
// it the way the Preact tree had to pass its own copy.
|
||||
// The assignment above is readable here immediately, so the first
|
||||
// conversation is selected from the shared state with no data passed in.
|
||||
await selectSession(sessionList[0].session_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user