iiitl / iiitl/Student-Hub-App

[ui-ux]:: `ChatUserProfile.kt` has no side mail button, so users cannot open the phone's mail app from profile

Open
#32 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

easy ui-ux
Dominant language
Kotlin
Stars
0
Forks
16
PR merge metrics
No merged PRs in 30d

Description

In ChatUserProfile.kt, the email is displayed in a non-editable TextView, and the layout activity_chat_user_profile.xmlrenders it as a full-width field with an inline email icon:

etemail.isFocusable = false
etemail.isFocusableInTouchMode = false
etemail.isClickable = true
<TextView
    android:id="@+id/etemail"
    android:layout_width="match_parent"
    android:drawableLeft="@drawable/baseline_email_24" />

But there is no setOnClickListener that launches an email intent such as Intent(Intent.ACTION_SENDTO, Uri.parse("mailto:...")). The profile screen therefore presents the email like an interactive contact action, yet tapping it does nothing. This is especially confusing because the app already exposes the user's email on the profile page and users expect contact details to be actionable on mobile.

Current Behavior:
The email remains read-only, but there is no separate side button to contact the user by mail.

Expected Behavior:
The email text should remain non-editable, and a mail button beside it should open the device's default mail app with the recipient prefilled.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with ChatUserProfile.kt and activity_chat_user_profile.xml, where the read-only email field and its current layout are defined. Inspect the existing profile setup and add the requested side mail action without making the email editable. Done means the profile shows a separate mail button and tapping it opens the device's default mail app with the user's address prefilled.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
mobile
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.