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

Project/good practice updates 2024 01 #100

Merged
merged 4 commits into from
Feb 2, 2024

Conversation

puranban
Copy link
Contributor

@puranban puranban commented Jan 29, 2024

Addresses

Depends on

Changes

  • Remove the limitation of max 10,000 characters in 'Submit a new Good Practice' modal
  • Add a new filter 'Success factor' in the filter section of Global Repository of Good Practices

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • build works
  • eslint issues
  • typescript issues
  • codegen errors
  • console.log meant for debugging
  • typos
  • unwanted comments
  • conflict markers

@puranban puranban assigned tnagorra and unassigned tnagorra Jan 30, 2024
@puranban puranban marked this pull request as ready for review February 1, 2024 08:57
@puranban puranban force-pushed the project/good-practice-updates-2024-01 branch from 4543c34 to 95fe471 Compare February 1, 2024 10:37
@puranban puranban force-pushed the project/good-practice-updates-2024-01 branch from 95fe471 to 576d0bf Compare February 1, 2024 11:42
<div className={styles.textLengthSection}>
{lengthExceeded && (
{length >= textLimit && (
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
{length >= textLimit && (
{length > textLimit && (


const handleChange = useCallback((newText: string | undefined, editor) => {
const textLength = editor.getContent({ format: 'text' }).length;
if (textLength <= sizeLimit) {
if (isDefined(textLimit) && textLength <= textLimit) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if (isDefined(textLimit) && textLength <= textLimit) {
if (isNotDefined(textLimit) || textLength <= textLimit) {

@puranban puranban force-pushed the project/good-practice-updates-2024-01 branch from 576d0bf to 5acd404 Compare February 2, 2024 04:15
@tnagorra tnagorra merged commit 3e744a3 into develop Feb 2, 2024
4 checks passed
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