view asyncio_threads/frontend/README.md @ 175:71ad34a8bc9a hg-web

[HgWeb] Can stream hg response now. Added react page for hg web since we use json anyway.
author MrJuneJune <me@mrjunejune.com>
date Tue, 20 Jan 2026 06:06:47 -0800
parents 46daba6e3cf4
children
line wrap: on
line source

Frontend Task

1. Component Implementation: Enhanced TypeAhead (Good?)

Develop a TypeAhead input component that filters a dataset based on user entry. Implement a debounce mechanism to optimize performance by limiting the frequency of function execution during typing. Apply text processing logic to identify and visually highlight the specific substrings within the results that match the user's input.

2. Algorithmic Challenge: Increasing Subsequence(Okay?)

Analyze a given array of integers and write a function to determine the length of the longest subsequent growing sequence contained within the array.

3. Frontend Architecture: AI Prompt and Context Interface

Construct a dual-pane user interface featuring a prompt history sidebar on the left and a main content area on the right for input and context display. Implement data fetching from the OpenAI API. Develop state management logic where submitting a new prompt triggers an API call, and selecting a specific prompt from the history injects the corresponding past response to serve as the context for the subsequent request.