Skip to content

Conversation

@myarmolinsky
Copy link
Contributor

@myarmolinsky myarmolinsky commented Sep 23, 2025

@flowzone-app
Copy link
Contributor

flowzone-app bot commented Sep 23, 2025

Website deployed to CF Pages, 👀 preview link https://9c63c79a.balena-design-system.pages.dev

@myarmolinsky myarmolinsky force-pushed the drop-some-lodash-for-native-alternatives branch from 08973d1 to 2262746 Compare September 23, 2025 16:11
@myarmolinsky myarmolinsky requested a review from a team September 23, 2025 16:22
const InstructionsItem = ({ node, index }: InstructionsItemProps) => {
const hasChildren = has(node, 'children');
const hasChildren =
node != null && Object.hasOwnProperty.call(node, 'children');
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's fine to just use Object.hasOwn as it is supported by all browsers we support ATM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's not supported by our current module


const getKeyLabel = (schema: JSONSchema) => {
const s = find(schema.properties, { description: 'key' }) as JSONSchema;
const s = findValueByDescription(schema.properties, 'key');
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can remove these 2 find methods and reuse

export const findInObject = (obj: Record<string, any>, key: string): any => {

Copy link
Contributor Author

@myarmolinsky myarmolinsky Sep 24, 2025

Choose a reason for hiding this comment

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

Can you please explain why you think so? They do not appear alike to me

Copy link
Contributor

Choose a reason for hiding this comment

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

nvm sorry my bad 🙏
we can probably replace one of them but I'm also thinking that the fact that these 2 methods are only checking the first level was intentional for filters logic

@myarmolinsky myarmolinsky force-pushed the drop-some-lodash-for-native-alternatives branch from 2262746 to 2a30881 Compare September 24, 2025 13:07
@myarmolinsky myarmolinsky force-pushed the drop-some-lodash-for-native-alternatives branch 3 times, most recently from bfd9387 to 4770c1a Compare November 13, 2025 18:44
@myarmolinsky myarmolinsky force-pushed the drop-some-lodash-for-native-alternatives branch 3 times, most recently from 224236a to 2e2165e Compare November 14, 2025 13:40
@myarmolinsky
Copy link
Contributor Author

/rebase

@myarmolinsky myarmolinsky marked this pull request as ready for review November 18, 2025 15:43
@myarmolinsky
Copy link
Contributor Author

/rebase

@git-basejump git-basejump bot force-pushed the drop-some-lodash-for-native-alternatives branch from 2e2165e to f5c2dd6 Compare November 18, 2025 16:14
@flowzone-app flowzone-app bot merged commit c4c83a5 into master Nov 18, 2025
51 checks passed
@flowzone-app flowzone-app bot deleted the drop-some-lodash-for-native-alternatives branch November 18, 2025 16:20
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.

5 participants