Skip to content

Enhance date handling, caching, and UI for analysis features - #5

Merged
snowfluke merged 9 commits into
snowfluke:mainfrom
amaruki:main
Apr 28, 2026
Merged

snowfluke merged 9 commits into
snowfluke:mainfrom
amaruki:main

Conversation

@amaruki

@amaruki amaruki commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

No description provided.

amaruki added 9 commits March 4, 2026 10:04
Centralize all date/time operations to use Western Indonesia Time (UTC+7) for consistency with the Indonesian stock market (IDX). Add new `src/lib/wib.ts` module with helper functions and update all components, services, and jobs to use these utilities instead of native JavaScript Date methods.
Add caching layer to the analyze-ticker endpoint to cache results for 24 hours per ticker, reducing redundant API calls and improving response times. Also implements user-friendly error messages that convert technical errors into clear, actionable messages for end users.
Standardize date handling to use the centralized getWibDateString utility function
instead of inline toISOString slice, ensuring consistent WIB timezone usage across
the refresh endpoint. Also adds logging for analysis progress states.
Convert useLogStream hook from component-scoped to global state management. The log stream now uses a global store with module-level variables and listener pattern, allowing logs to persist across navigation. Also added deduplication by timestamp+message to handle SSE replay on reconnect.
Track when predictions were originally added and display this information in status change notifications, helping users understand how long a prediction has been active.
Added title attribute to analysisSummary display elements in AvoidSection and
RecommendationCard components to show full text on hover when content is
truncated by CSS line-clamp or truncate classes.
@snowfluke
snowfluke merged commit c61cb46 into snowfluke:main Apr 28, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants