Skip to content

Create Sehatsathi #2344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hirenseju123-commits
Copy link

Heal
file_00000000f79c61f58871c929d116a2cc
thy and stronger

Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.

List which issues are fixed by this PR. For larger changes, raising an issue first helps
reduce redundant work.

Pre-launch Checklist

  • I read the Effective Dart: Style recently, and have followed its advice.
  • I signed the CLA.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-devrel channel on Discord.

Healthy and stronger
Copy link

google-cla bot commented Aug 22, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new JSON file, Sehatsathi, which appears to define the UI and logic for a health application. The structure is well-defined, but there are a few areas for improvement based on the provided style guide and general best practices.

My review identifies a few issues:

  • Naming Conventions: The filename Sehatsathi does not follow the snake_case convention specified in the style guide (line 19). It would also be beneficial to add a .json extension to clarify the file type (e.g., sehat_sathi.json). Similarly, several keys and values within the JSON use snake_case instead of the prescribed lowerCamelCase (line 18).
  • Security: A placeholder phone number is hardcoded in the file. This is a security risk, as sensitive data should not be stored in version control.

I've added detailed comments on these points in the code.

"type": "button",
"label": "Call Emergency Contact",
"action": "call",
"phone_number": "+91XXXXXXXXXX"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Hardcoding sensitive data like a phone number, even as a placeholder, is a security concern. This value could be accidentally replaced with a real one and committed to the repository. It's recommended to load such configuration from a more secure source at runtime, such as environment variables or a secrets management service, rather than including it in version-controlled files.

"title": "Welcome / Login",
"fields": [
{
"type": "mobile_number",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The value mobile_number for the type key uses snake_case. According to the style guide, lowerCamelCase should be used for such identifiers.1

          "type": "mobileNumber",

Style Guide References

Footnotes

  1. The style guide specifies using lowerCamelCase for variables, constants, methods, and parameters. (link)

"required": true
},
{
"type": "otp_verification",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The value otp_verification for the type key uses snake_case. According to the style guide, lowerCamelCase should be used for such identifiers.1

          "type": "otpVerification",

Style Guide References

Footnotes

  1. The style guide specifies using lowerCamelCase for variables, constants, methods, and parameters. (link)

{
"type": "info",
"label": "💡 Daily Health Tips:",
"dynamic_content": [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The key dynamic_content uses snake_case. According to the style guide, lowerCamelCase should be used for properties.1

          "dynamicContent": [

Style Guide References

Footnotes

  1. The style guide specifies using lowerCamelCase for variables, constants, methods, and parameters. (link)

"type": "button",
"label": "Call Emergency Contact",
"action": "call",
"phone_number": "+91XXXXXXXXXX"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The key phone_number uses snake_case. According to the style guide, lowerCamelCase should be used for properties.1

          "phoneNumber": "+91XXXXXXXXXX"

Style Guide References

Footnotes

  1. The style guide specifies using lowerCamelCase for variables, constants, methods, and parameters. (link)

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.

1 participant