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

feat: expand/collapse domain settings section #358

Merged
merged 4 commits into from
Apr 8, 2022

Conversation

olga-union
Copy link
Contributor

@olga-union olga-union commented Apr 7, 2022

Signed-off-by: Olga Nad [email protected]

Type

  • Bug Fix
  • Feature
  • Plugin

Are all requirements met?

  • Code completed
  • Smoke tested
  • Unit tests added
  • Code documentation added
  • Any pending items have an associated Issue

Complete description

  1. Added toggle to expand/collapse Domain Settings section.
  2. Updated BarChart component to include title, so its styles are consistent across the app.
  3. Renamed BarChart component used in the Timeline tab as TimelineChart to avoid confusion with the above mentioned component.
  4. Adjusted styles of Domain Settings title to match similar titles on the page.

Tracking Issue

fixes flyteorg/flyte#356

Demos

  1. https://user-images.githubusercontent.com/101579322/162307496-5af14bcf-c79a-4b91-ab0e-b0da75b768c2.mov

Screen Shot 2022-04-07 at 12 58 40 PM

Screen Shot 2022-04-07 at 12 59 22 PM

@codecov
Copy link

codecov bot commented Apr 7, 2022

Codecov Report

Merging #358 (b11c6b0) into master (4bbc71f) will increase coverage by 0.01%.
The diff coverage is 90.32%.

@@            Coverage Diff             @@
##           master     #358      +/-   ##
==========================================
+ Coverage   65.99%   66.01%   +0.01%     
==========================================
  Files         402      402              
  Lines        8952     8962      +10     
  Branches     1574     1579       +5     
==========================================
+ Hits         5908     5916       +8     
- Misses       3044     3046       +2     
Impacted Files Coverage Δ
src/components/Entities/strings.ts 66.66% <ø> (ø)
...cutionDetails/Timeline/TimelineChart/barOptions.ts 50.00% <ø> (ø)
...ecutionDetails/Timeline/TimelineChart/chartData.ts 17.50% <ø> (ø)
...s/ExecutionDetails/Timeline/TimelineChart/utils.ts 95.74% <ø> (ø)
src/components/Project/ProjectDashboard.tsx 98.57% <ø> (-0.03%) ⬇️
src/components/common/BarChart.tsx 88.88% <83.33%> (-3.12%) ⬇️
src/components/common/DomainSettingsSection.tsx 93.93% <88.23%> (-6.07%) ⬇️
src/basics/LocalCache/defaultConfig.ts 100.00% <100.00%> (ø)
...c/components/Entities/EntityExecutionsBarChart.tsx 66.66% <100.00%> (ø)
...ns/ExecutionDetails/Timeline/ExecutionTimeline.tsx 62.82% <100.00%> (ø)
... and 4 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 a0a6625...b11c6b0. Read the comment docs.

Copy link
Contributor

@anrusina anrusina left a comment

Choose a reason for hiding this comment

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

Overall looks good.
Two comments:

  • The easy way to see bar chart jumping - is applying filter to executions.
  • It looks like you connected wrong Task issue in your PR description, it probably should be a flyteconsole #356 one?

@@ -69,6 +70,8 @@ describe('ProjectDashboard', () => {
[sortQueryKeys.key]: executionSortFields.createdAt,
};

jest.spyOn(LocalCache, 'useLocalCache');
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this needed? don't see where the function return or isCalled checked or mocked.
Looks like without it tests should also pass

Copy link
Contributor Author

Choose a reason for hiding this comment

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

useLocalCache was added to a child component DomainSettingsSection and tests fail when parent tries to render a child

paddingLeft: theme.spacing(1),
paddingRight: theme.spacing(3),
paddingTop: theme.spacing(1),
minHeight: '135px',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

added min height, so the chart is rendered inside the reserved space without any shifts of the content below it

@flyte-bot
Copy link
Collaborator

🎉 This PR is included in version 0.50.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

3 participants