Skip to content
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

Fixes javascript-crm Issues #1 to #4 #112

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

Conversation

AnneChaiyato
Copy link

No description provided.

Copy link
Member

Choose a reason for hiding this comment

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

Consider providing a brief explanation for the change in the comment.

Copy link
Member

Choose a reason for hiding this comment

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

Great job on the changes! I have a few suggestions:

  1. Instead of using console.log to log the 'companies' array, consider using a logger library like 'winston' or 'debug'. This will provide more flexibility and control over logging.

  2. It would be helpful to add comments explaining the purpose of the code block where you rearrange the company fields. This will make the code more readable and maintainable.

  3. When reformatting the 'created_time' variable, consider using a more descriptive variable name instead of 'reformatted_time'. This will make the code easier to understand.

  4. In the 'makeTable' function, consider adding error handling for cases where the API call fails. This will improve the robustness of the code.

Comment on lines 19 to 22
border-collapse: collapse;
border: 3px solid purple;
border: 3px solid lightblue;
}

Copy link
Member

Choose a reason for hiding this comment

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

The changes in this PR look great! I have a couple of suggestions:

  1. On line 19, it looks like the indentation is off. Please make sure it aligns with the previous line.
  2. On line 22, the color 'lightblue' might not provide enough contrast with the text. Consider using a darker color to improve readability.

Overall, great work!

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.

3 participants