-
Notifications
You must be signed in to change notification settings - Fork 61
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
Added links to workbench #46
Added links to workbench #46
Conversation
* DUGK-69 Workbench buttons added (no test) * DUGK-69 Fixed unit test after workbench remake * DUGK-69 Changes in correlation to PR review comments * Mark active menu * DUGK-69 envUtil is now dynamic * DUGK-69 Refactored LinkButtons It now maps icons to links enumorator. Size is now given as prop, but not working. envUtil provides interface. * fixed workbench test * DUGK-69 Excluded config from codecliamte Fixed bug in icon mathcing. * DUGK-69 Added link construction with User1 * add redux to menu state * formatting * make LinkButtons generate url from user name * formatting * update unit test for SignIn * format * DUGK-69 fixed eslint error. Operation is according to [documentation](https://redux-toolkit.js.org/usage/immer-reducers#linting-state-mutations) * removed client env from public * updated .gitignore to exclude client/public/env.js * DUGK-69 Moved domain logic to envUtil. Also added example of component documentation * DUGK-69 Renamed states * DUGK-69 clean up and documentation * DUGK-69 Fixed Auth Tests --------- Co-authored-by: Omar <[email protected]> Co-authored-by: Burnfarm <[email protected]>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## feature/distributed-demo #46 +/- ##
============================================================
+ Coverage 53.35% 56.95% +3.60%
============================================================
Files 25 34 +9
Lines 283 388 +105
Branches 7 11 +4
============================================================
+ Hits 151 221 +70
- Misses 126 158 +32
- Partials 6 9 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@SyntaxXeror and @Omarley7 , may be I'm doing something very wrong.
|
@prasadtalasila That is very strange. Can you verify the following behavior?
|
This it does. But the tooltip needs to show baseurl+specific suffix for each icon. Only then can we go to pages of the respective tools. I see that the username capture functionality seems to be in place. Do you use this username to compose relative urls? |
The tooltip is showing |
My mistake. The tooltip correctly shows the Is this PR complete with tests? or you are going to commit more before it can be potentially merged? |
I'm working on the lasts tests now. About commit unittest for the component. I'll move tests of utilities and Redux implementations to next PR |
Fixed codeclimate issue in menu. Included .ts files in test coverage
|
||
jest.deepUnmock('components/LinkButtons'); | ||
|
||
const buttons: KeyLinkPair[] = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar blocks of code found in 2 locations. Consider refactoring.
Hmm, E2E tests are still failing, I'm taking a look right now. |
Coverage is now above threshold. Fixed menu tests.
@prasadtalasila Should be ready to merge now. |
The code looks good. A few suggestions:
|
This is a bit tricky. Normally we would use
This was completely autogenerated. I've cleaned it up a bit and taken your correction into account. I've added tests for the redux store. We have another branch, where envUtil is tested, but it generates problems for the Auth tests. I'll bring that in the next PR. |
The new .codeclimate.yml is supposed to have removed this kind of warnings. Are any modifications required there? |
Code Climate has analyzed commit 865a6cd and detected 0 issues on this pull request. View more on Code Climate. |
The new configuration raised the mass from unknown to the correct default value of I've just raised it to |
af17f91
into
INTO-CPS-Association:feature/distributed-demo
- Updates the signin page to require username input. The user can't get into the site without a username. - Uses redux state management to keep track of logged in username and highlight the active menu option. This username is used to construct the workbench links. - Updates codeclimate.yml to increase duplication threshold. --------- Co-authored-by: Asger <[email protected]> Co-authored-by: Burnfarm <[email protected]> Co-authored-by: Omar <[email protected]>
- Updates the signin page to require username input. The user can't get into the site without a username. - Uses redux state management to keep track of logged in username and highlight the active menu option. This username is used to construct the workbench links. - Updates codeclimate.yml to increase duplication threshold. --------- Co-authored-by: Asger <[email protected]> Co-authored-by: Burnfarm <[email protected]> Co-authored-by: Omar <[email protected]>
- Updates the signin page to require username input. The user can't get into the site without a username. - Uses redux state management to keep track of logged in username and highlight the active menu option. This username is used to construct the workbench links. - Updates codeclimate.yml to increase duplication threshold. --------- Co-authored-by: Asger <[email protected]> Co-authored-by: Burnfarm <[email protected]> Co-authored-by: Omar <[email protected]>
Just a quick PR for feedback on the workbench.
ATTENTION: For now, there is no test.