Skip to content

Plasma UI typecov #1099

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Plasma UI typecov #1099

wants to merge 2 commits into from

Conversation

didolf-sber
Copy link

@didolf-sber didolf-sber commented Feb 16, 2022

📦 Published PR as canary version: Canary Versions

✨ Test out this PR locally via:

npm install @sberdevices/demo-canvas-app@0.60.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
npm install @sberdevices/plasma-temple@1.32.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
npm install @sberdevices/plasma-ui@1.83.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
npm install @sberdevices/showcase@0.98.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
npm install @sberdevices/plasma-ui-docs@0.44.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
# or 
yarn add @sberdevices/demo-canvas-app@0.60.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
yarn add @sberdevices/plasma-temple@1.32.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
yarn add @sberdevices/plasma-ui@1.83.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
yarn add @sberdevices/showcase@0.98.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0
yarn add @sberdevices/plasma-ui-docs@0.44.0-canary.1099.86a7bb4fb5e97b43bafe6743c81d7e8c74413928.0

@SberDevices-Eva
Copy link
Collaborator

Demo canvas app deployed!

http://plasma.sberdevices.ru/demo-canvas-app-pr-1099/

@codecov
Copy link

codecov bot commented Feb 16, 2022

Codecov Report

Merging #1099 (ff1dd31) into master (d3f12f6) will decrease coverage by 2.06%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1099      +/-   ##
==========================================
- Coverage   88.14%   86.08%   -2.07%     
==========================================
  Files         341      309      -32     
  Lines        4489     4046     -443     
  Branches     1338     1194     -144     
==========================================
- Hits         3957     3483     -474     
- Misses        531      563      +32     
+ Partials        1        0       -1     
Flag Coverage Δ
plasma-b2c 11.90% <ø> (-83.93%) ⬇️
plasma-core 93.29% <100.00%> (-1.49%) ⬇️
plasma-temple 73.81% <ø> (-0.41%) ⬇️
plasma-ui 94.47% <100.00%> (+0.12%) ⬆️
plasma-web 95.41% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...lasma-ui/src/components/Device/DeviceDetection.tsx 100.00% <ø> (+13.33%) ⬆️
...ckages/plasma-ui/src/components/Grid/Container.tsx 100.00% <ø> (ø)
...es/plasma-ui/src/components/Header/HeaderArrow.tsx 100.00% <ø> (ø)
...ges/plasma-ui/src/components/Header/HeaderRoot.tsx 100.00% <ø> (ø)
...es/plasma-ui/src/components/Header/HeaderTitle.tsx 100.00% <ø> (ø)
packages/plasma-ui/src/components/Pickers/types.ts 100.00% <ø> (ø)
packages/plasma-ui/src/components/Grid/Col.tsx 100.00% <100.00%> (ø)
...plasma-ui/src/components/Header/HeaderSubtitle.tsx 100.00% <100.00%> (ø)
...es/plasma-ui/src/components/Pickers/DatePicker.tsx 85.54% <100.00%> (ø)
...es/plasma-ui/src/components/Pickers/TimePicker.tsx 98.91% <100.00%> (ø)
... and 56 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dedde1d...ff1dd31. Read the comment docs.

@SberDevices-Eva
Copy link
Collaborator

@SberDevices-Eva
Copy link
Collaborator

Demo canvas app deployed!

http://plasma.sberdevices.ru/demo-canvas-app-pr-1099/

@SberDevices-Eva
Copy link
Collaborator

@SberDevices-Eva
Copy link
Collaborator

Demo canvas app deployed!

http://plasma.sberdevices.ru/demo-canvas-app-pr-1099/

@SberDevices-Eva
Copy link
Collaborator

@@ -160,27 +160,27 @@ export const DatePicker: React.FC<DatePickerProps> = ({
);

const onYearChange = React.useCallback(
({ value: y }) => {
({ value: y }: PickerItem) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

мне кажется надо либо тип PickerItem как-то сузить, либо

({ value: y }: {value: number})

вместо явного приведения через as

});
},
[getNextDay, getNextMonth],
);
const onMonthChange = React.useCallback(
({ value: m }) => {
({ value: m }: PickerItem) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

тот же коммент, что и выше

packages/plasma-ui/src/components/Pickers/DatePicker.tsx Outdated Show resolved Hide resolved
[],
);
const onSecondsChange = React.useCallback(
({ value: s }: PickerItem) => setState(([h, m]) => [h, m, s as number]),
Copy link
Contributor

Choose a reason for hiding this comment

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

раз это много где повторяется, мб заведем новый тип TimePickerItem в types?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants