feat(chat): show nine welcome questions and move the logo to the header (AMUL-72) - #165
Merged
Merged
Conversation
…er (AMUL-72) Per the change request, the welcome screen drops the tomato-only APMC question and gains four: monthly earnings, milk union / Gujarat / India scheme details, multi-commodity APMC prices, and mandali bonus calculation. The list is now 2 pinned -> FAQ card -> those four -> 3 random, so nine questions plus the FAQ card. To fit them on a phone, the pulsating logo and the "Amul AI" wordmark move out of the welcome panel and into the sticky header (the doctor persona keeps its plain-text title), and the greeting and cards use a tighter type scale below the sm breakpoint. Desktop is unchanged. `fixedQuestion` becomes `fixedQuestions` (array). The icon keyword map is reordered so the money and scheme rows match before the broad "પશુ"/"દૂધ" cow keywords that the new questions also contain. Measured over CDP at real mobile viewports: all ten rows are fully visible at 360x640, 375x667, 390x780 and 412x915 (was 2 of 5 at 360x640). 320x568 fits six. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017nqpBEd3wDnLv5mqkmQpJv
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.
Implements the AMUL-72 change request.
Content
fixedQuestion, added in AMUL-62).The welcome list is now 2 pinned → FAQ card → those four → 3 random, i.e. nine questions plus the FAQ card (
QUICK_ACTION_COUNT5 → 10).fixedQuestionbecomesfixedQuestions(array); ids stay unique across both the static and template branches.The icon keyword map is reordered so the money and scheme rows match before the broad
પશુ/દૂધcow keywords that the new questions also contain — otherwise the schemes card would have drawn 🐮, and the new cards would have picked a random emoji.Layout
Per the annotated mock, the pulsating logo and the red "Amul AI" wordmark move out of the welcome panel and into the sticky header. The doctor persona keeps its plain-text title. The greeting and the cards use a tighter type scale below the
smbreakpoint; desktop is unchanged.Verification
Measured over the Chrome DevTools Protocol at real mobile viewports (throwaway harness rendering the real
ChatHeader/WelcomePanel/ChatInput):320×568 (iPhone SE 1st gen) is the one size that does not reach nine.
tsc -b,eslint(0 errors),vitest(19 passed) andvite buildall pass.Reviewer notes
યોજનનોની; corrected toયોજનાઓની. Stray spaces before commas and question marks were normalised. Wording is otherwise verbatim.ગયા મહિના અને ચાલુ મહિના... આવક અને કપાતis still in the random pool and overlaps the new earnings question, so both can occasionally appear together. Left in place — the change request did not ask to remove it.🤖 Generated with Claude Code
https://claude.ai/code/session_017nqpBEd3wDnLv5mqkmQpJv