Repository navigation
Enhance date handling, caching, and UI for analysis features - #5
Merged
Merged
Conversation
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.
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.
No description provided.