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

Feat/hng-124 #207

Conversation

itstolexy
Copy link
Collaborator

task-124 settings pages profile settings implement custom text area with validation and character count

…remix into feat/HNG-124-Settings-Pages-Profile-Settings-implement-custom-extarea-with-validation-and-character-count
…remix into feat/HNG-124-Settings-Pages-Profile-Settings-implement-custom-extarea-with-validation-and-character-count
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

eslint

🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ·········· with ········

value={formState[FormField.bio]}


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··

error={formError[FormField.bio]}


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··

handleChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>


🚫 [eslint] <unicorn/prevent-abbreviations> reported by reviewdog 🐶
Please rename the variable e. Suggested names are: error, event_. A more descriptive name will do too.

handleChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ············ with ··········

updateFormData(FormField.bio, e.target.value)


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Delete ··


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace State,·IFormError with Error,·IFormState

import { IFormState, IFormError } from "../typings";


🚫 [eslint] <unicorn/no-null> reported by reviewdog 🐶
Use undefined instead of null.


🚫 [eslint] <unicorn/no-null> reported by reviewdog 🐶
Use undefined instead of null.


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert


🚫 [eslint] <unicorn/prevent-abbreviations> reported by reviewdog 🐶
The variable Props should be named Properties. A more descriptive name will do too.


🚫 [eslint] <unicorn/prevent-abbreviations> reported by reviewdog 🐶
Please rename the variable e. Suggested names are: error, event_. A more descriptive name will do too.

handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace bg-white·text-base·text-black·outline-0·rounded-md with rounded-md·bg-white·text-base·text-black·outline-0

<div className="w-full bg-white text-base text-black outline-0 rounded-md">


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace w-full·h-[80px]·border·border-[#DC2626]·outline-0·bg-white·px-2·placeholder:text-[#C2C2C2]·placeholder:text-sm·rounded-md·text-wrap with h-[80px]·w-full·text-wrap·rounded-md·border·border-[#DC2626]·bg-white·px-2·outline-0·placeholder:text-sm·placeholder:text-[#C2C2C2]

className="w-full h-[80px] border border-[#DC2626] outline-0 bg-white px-2 placeholder:text-[#C2C2C2] placeholder:text-sm rounded-md text-wrap"


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert

export default TextAreaField;


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Replace ⏎export·default·function·Index()·{⏎ with export·default·function·Index()·{

export default function Index() {


🚫 [eslint] <prettier/prettier> reported by reviewdog 🐶
Insert

app/components/bio/index.tsx Outdated Show resolved Hide resolved
};

export const defaultFormError: IFormError = {
[FormField.bio]: null,

Choose a reason for hiding this comment

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

🚫 [eslint] <unicorn/no-null> reported by reviewdog 🐶
Use undefined instead of null.

};

export const defaultAlert: { message: string | null; classType?: string } = {
message: null,

Choose a reason for hiding this comment

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

🚫 [eslint] <unicorn/no-null> reported by reviewdog 🐶
Use undefined instead of null.

placeholder?: string;
disabled?: boolean;
error?: string | null;
handleChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;

Choose a reason for hiding this comment

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

🚫 [eslint] <unicorn/prevent-abbreviations> reported by reviewdog 🐶
Please rename the variable e. Suggested names are: error, event_. A more descriptive name will do too.

itstolexy and others added 5 commits July 20, 2024 18:00
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
} else {
setFormError({
...formError,
[key]: null,

Choose a reason for hiding this comment

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

🚫 [eslint] <unicorn/no-null> reported by reviewdog 🐶
Use undefined instead of null.

name={FormField.bio}
value={formState[FormField.bio]}
error={formError[FormField.bio]}
handleChange={(e: React.ChangeEvent<HTMLTextAreaElement>) =>

Choose a reason for hiding this comment

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

🚫 [eslint] <unicorn/prevent-abbreviations> reported by reviewdog 🐶
Please rename the variable e. Suggested names are: error, event_. A more descriptive name will do too.

itstolexy and others added 16 commits July 20, 2024 18:02
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@shalomtaiwo shalomtaiwo self-requested a review July 21, 2024 20:24
Copy link
Contributor

@shalomtaiwo shalomtaiwo left a comment

Choose a reason for hiding this comment

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

Resolve conflicts

…remix into feat/HNG-124-Settings-Pages-Profile-Settings-implement-custom-extarea-with-validation-and-character-count
@itstolexy
Copy link
Collaborator Author

All resolved and fixed

@itstolexy itstolexy requested a review from shalomtaiwo July 22, 2024 08:27
@itstolexy itstolexy closed this Aug 16, 2024
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