mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 07:42:23 +00:00
fix(coach): account for every stored table and keep table controls on screen
A withheld table now leaves a line saying why (module off, or the stored tables could not be read) and a failed read shows an error row with a retry, so the Data used count matches what is listed. A table copied from an earlier answer names that answer's date under its title. The preview shows the latest twelve periods of a time series, and the truncation note says the latest rows are kept, which is what the server keeps. The title, copy and view controls sit above the scrolling table with the title kept as a hidden caption, and a reply with tables takes the full column width. The step headers and the related-metric chip read as label: value in all seven locales, so a metric name no longer sits capitalised mid-sentence.
This commit is contained in:
1 parent
25ad1810c2
commit
9892088620
18 files changed
+761
-217
No files matched your search
@@ -26,6 +26,8 @@ export function useCoachMessageResults(args: {
|
||||
results: CoachResultEntry[] | undefined;
|
||||
isLoading: boolean;
|
||||
isError: boolean;
|
||||
/** Read again after a failure. */
|
||||
refetch: () => void;
|
||||
} {
|
||||
const { conversationId, messageId, enabled } = args;
|
||||
const [node, setNode] = useState<HTMLElement | null>(null);
|
||||
@@ -70,5 +72,6 @@ export function useCoachMessageResults(args: {
|
||||
results: query.data,
|
||||
isLoading: query.isLoading,
|
||||
isError: query.isError,
|
||||
refetch: () => void query.refetch(),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user