Skip to content

feat(chat): show nine welcome questions and move the logo to the header (AMUL-72) - #165

Merged
KDwevedi merged 1 commit into
OpenAgriNet:amul-prodfrom
vrajshah24:feat/amul-72
Sep 9, 2026
Merged

feat(chat): show nine welcome questions and move the logo to the header (AMUL-72)#165
KDwevedi merged 1 commit into
OpenAgriNet:amul-prodfrom
vrajshah24:feat/amul-72

Conversation

@vrajshah24

Copy link
Copy Markdown

Implements the AMUL-72 change request.

Content

  • Removes the tomato-only APMC question (fixedQuestion, added in AMUL-62).
  • Adds the four questions from the change request: monthly earnings, milk union / Gujarat / India scheme details, multi-commodity APMC prices, and mandali bonus calculation.

The welcome list is now 2 pinned → FAQ card → those four → 3 random, i.e. nine questions plus the FAQ card (QUICK_ACTION_COUNT 5 → 10). fixedQuestion becomes fixedQuestions (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 sm breakpoint; desktop is unchanged.

Verification

Measured over the Chrome DevTools Protocol at real mobile viewports (throwaway harness rendering the real ChatHeader / WelcomePanel / ChatInput):

viewport before after
360×640 2 of 5 10 of 10
375×667 10 of 10
390×780 5 of 5 10 of 10
412×915 10 of 10
320×568 6 of 10

320×568 (iPhone SE 1st gen) is the one size that does not reach nine.

tsc -b, eslint (0 errors), vitest (19 passed) and vite build all pass.

Reviewer notes

  • The Hindi and English wording of the four new questions is a translation of the Gujarati supplied in the change request — worth a native check.
  • The document spelled the schemes question યોજનનોની; 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.
  • The four new questions were not added to the FAQ drawer; the change request only covered the welcome screen.

🤖 Generated with Claude Code

https://claude.ai/code/session_017nqpBEd3wDnLv5mqkmQpJv

…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
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