Skip to content

new UI - #130

Merged
jkralik merged 24 commits into
mainfrom
pm/new-design
Jul 19, 2023
Merged

new UI#130
jkralik merged 24 commits into
mainfrom
pm/new-design

Conversation

@PatrikMatiasko

@PatrikMatiasko PatrikMatiasko commented Jul 8, 2023 •

Copy link
Copy Markdown
Contributor

Revamp UI to align with the latest design.

@PatrikMatiasko
PatrikMatiasko requested a review from jkralik July 8, 2023 19:42
@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as outdated.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@PatrikMatiasko

PatrikMatiasko commented Jul 17, 2023 •

Copy link
Copy Markdown
Contributor Author

> 3 co

We have a condition for display in the tree. Row is visible, whew: canBeResourceEdited(endpointInformations) || isOwned
from the past. Can I change it?

export const canBeResourceEdited = (endpoints?: { endpoint: string }[]) => endpoints && endpoints.some( (e: { endpoint: string }) => e.endpoint.indexOf('coap://') > -1 || e.endpoint.indexOf('coap+tcp://') > -1 )

UPDATE: I have solution, you can check with new commit

@jkralik

This comment was marked as resolved.

@jkralik

This comment was marked as resolved.

@jkralik

jkralik commented Jul 18, 2023

Copy link
Copy Markdown
Member

> 3 co

We have a condition for display in the tree. Row is visible, whew: canBeResourceEdited(endpointInformations) || isOwned from the past. Can I change it?

export const canBeResourceEdited = (endpoints?: { endpoint: string }[]) => endpoints && endpoints.some( (e: { endpoint: string }) => e.endpoint.indexOf('coap://') > -1 || e.endpoint.indexOf('coap+tcp://') > -1 )

UPDATE: I have solution, you can check with new commit

Yes it works :)

When I look to function canBeResourceEdited is see it in two places:

web/src/containers/Devices/utils.ts:36
web/packages/shared-ui/src/stories/Table/TreeTable.stories.jsx:27

pls could you deduplicate it ?

@PatrikMatiasko

Copy link
Copy Markdown
Contributor Author

> 3 co
We have a condition for display in the tree. Row is visible, whew: canBeResourceEdited(endpointInformations) || isOwned from the past. Can I change it?
export const canBeResourceEdited = (endpoints?: { endpoint: string }[]) => endpoints && endpoints.some( (e: { endpoint: string }) => e.endpoint.indexOf('coap://') > -1 || e.endpoint.indexOf('coap+tcp://') > -1 )
UPDATE: I have solution, you can check with new commit

Yes it works :)

When I look to function canBeResourceEdited is see it in two places:

web/src/containers/Devices/utils.ts:36 web/packages/shared-ui/src/stories/Table/TreeTable.stories.jsx:27

pls could you deduplicate it ?

It should work as it is. :)

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@jkralik
jkralik merged commit 4731477 into main Jul 19, 2023
@jkralik
jkralik deleted the pm/new-design branch July 19, 2023 15:26
@jkralik jkralik changed the title Pm/new design new UI Jul 19, 2023
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