Skip to content

Conversation

JosueOb
Copy link
Collaborator

@JosueOb JosueOb commented Sep 9, 2021

Description

The project sidebar presents some elements, depending on the group to which the user belongs, and a style is applied to the element (option) when it is selected. However, when the page is reloaded, the selected option is not presented with the active style.

Solution

When the page is reloaded, a comparison is made between the selected option and the route where it is located, to add the active style to the selected option in the sidebar.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 9, 2021

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

@JosueOb JosueOb changed the title fix: TT-334 keep the sidebar item selected when the page is refreshed fix: TT-334 Keep the sidebar item selected when the page is refreshed Sep 9, 2021
@codecov
Copy link

codecov bot commented Sep 9, 2021

Codecov Report

Merging #748 (f1c1035) into master (2b16e33) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #748   +/-   ##
=======================================
  Coverage   95.54%   95.55%           
=======================================
  Files         106      106           
  Lines        2247     2250    +3     
  Branches      169      169           
=======================================
+ Hits         2147     2150    +3     
  Misses         57       57           
  Partials       43       43           
Impacted Files Coverage Δ
...time-entries-table/time-entries-table.component.ts 77.77% <ø> (ø)
...e-toggle-general/feature-toggle-general.service.ts 100.00% <ø> (ø)
.../feature-toggles/feature-toggle-manager.service.ts 100.00% <ø> (ø)
...les/shared/components/sidebar/sidebar.component.ts 90.47% <100.00%> (ø)
...dules/time-entries/pages/time-entries.component.ts 88.99% <100.00%> (+0.31%) ⬆️

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 13fd98a...f1c1035. Read the comment docs.

@JosueOb JosueOb merged commit 704ba0e into master Sep 9, 2021
@JosueOb JosueOb deleted the TT-334-Current-item-menu branch September 9, 2021 20:31
JosueOb added a commit that referenced this pull request Sep 13, 2021
* style: TT-332 include Tailwind in global style file

* feat: TT-332 dark mode implementation

* style: TT-332 color palette

* test: TT-332 unit test on the dark mode component

* fix: TT-216 add tabIndex attribute to materialDatePicker and to Date divs (#747)

* chore(release): 1.50.5 [skip ci]nn

* refactor: TT-332 application of Azure toggle function to display dark mode

* style: TT-332 TW prefix added to the color palette

* refactor: TT-332 changes in sidebar and dark mode components

* fix: TT-334 keep the sidebar item selected when the page is refreshed (#748)

* chore(release): 1.50.6 [skip ci]nn

* refactor: TT-332 changes to the button to change the page theme

* test: TT-332 unit test to check if the user has the dark-mode feature toggle enabled

* style: TT-332 include Tailwind in global style file

* feat: TT-332 dark mode implementation

* style: TT-332 color palette

* test: TT-332 unit test on the dark mode component

* refactor: TT-332 application of Azure toggle function to display dark mode

* style: TT-332 TW prefix added to the color palette

* refactor: TT-332 changes in sidebar and dark mode components

* refactor: TT-332 changes to the button to change the page theme

* test: TT-332 unit test to check if the user has the dark-mode feature toggle enabled

* refactor: TT-332 changes in the unit test description of the dark mode component and style name of the sidebar component

Co-authored-by: Santiago Pozo Ruiz <[email protected]>
Co-authored-by: semantic-release-bot <[email protected]>
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