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

add custom validation #707

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

AllanOXDi
Copy link
Member

@AllanOXDi AllanOXDi commented Jul 30, 2024

Description

Issue addressed

Addresses #PR# HERE

Before/after screenshots

Changelog

Steps to test

  1. Step 1
  2. Step 2
  3. ...

(optional) Implementation notes

At a high level, how did you implement this?

Does this introduce any tech-debt items?

Testing checklist

  • Contributor has fully tested the PR manually
  • If there are any front-end changes, before/after screenshots are included
  • Critical and brittle code paths are covered by unit tests
  • The change is described in the changelog section above

Reviewer guidance

  • Is the code clean and well-commented?
  • Are there tests for this change?
  • Are all UI components LTR and RTL compliant (if applicable)?
  • Add other things to check for here

After review

  • The changelog item has been pasted to the CHANGELOG.md

Comments

@MisRob MisRob self-assigned this Jul 30, 2024
@AllanOXDi AllanOXDi marked this pull request as ready for review July 31, 2024 14:56
@AllanOXDi AllanOXDi requested review from MisRob and AlexVelezLl July 31, 2024 14:56
LARGE: 'large'
};

function cardValidator(allowedValues, propName) {
Copy link
Member

Choose a reason for hiding this comment

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

Neat :)

Copy link
Member

@MisRob MisRob left a comment

Choose a reason for hiding this comment

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

Thanks @AllanOXDi. I left one note that would be nice to have before merge, and also lint and changelog checks will need to pass. After that, feel free to merge.

},
thumbnailDisplay: {
type: String,
default: Thumbnail_Displays.NONE,
Copy link
Member

@MisRob MisRob Jul 31, 2024

Choose a reason for hiding this comment

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

It'd be ideal if we could use constants as default values, but unfortunately there's limitation regarding our documentation generation that can't pick it up:

Screenshot from 2024-07-31 21-27-36

Would you please revert to default: 'none' on this line? Same applies to default: Layouts .HORIZONTAL,

This will ensure that consumers will understand what values, previously mentioned in the prop description, are used as defaults

lib/KCard/index.vue Outdated Show resolved Hide resolved
@@ -4,15 +4,17 @@ Changelog is rather internal in nature. See release notes for the public overvie

## Upcoming version 5.x.x (`develop` branch)

[#709]
Copy link
Member

Choose a reason for hiding this comment

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

Seems like a merge conflict? I think this change should stay here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yep! resolving it

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed now!

@AllanOXDi AllanOXDi force-pushed the Custom-validations branch from f4f45ab to 3f3f9d6 Compare August 1, 2024 14:06
@AllanOXDi AllanOXDi merged commit 22e1758 into learningequality:develop Aug 1, 2024
8 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