treetracker-web-map-client icon indicating copy to clipboard operation
treetracker-web-map-client copied to clipboard

feat(cwn-dashboard): added a preview of the customizable navbar

Open andrewsu31098 opened this issue 2 years ago • 9 comments

Description

Fixes #1130

Type of change

  • [x ] New feature (non-breaking change which adds functionality)

Screenshots

before after

How Has This Been Tested?

  • [x ] Cypress integration

Checklist:

  • [ x] I have performed a self-review of my own code
  • [x ] I have commented my code, particularly in hard-to-understand areas
  • [x ] My changes generate no new warnings
  • [ x] I have added tests that prove my fix is effective or that my feature works

andrewsu31098 avatar Dec 30 '22 07:12 andrewsu31098

The 5 tests I added work locally but don't work on upload?

andrewsu31098 avatar Dec 30 '22 07:12 andrewsu31098

Great to see you working on the Customizable Web Map! I have to think about this because soon I am going to introduce a new config prop to the Navbar component when getting the data from the server instead of localstorage. I think that will simplify the "transport" of the data. I'll keep you posted when I got the new prop in place!

RubenSmn avatar Dec 30 '22 21:12 RubenSmn

@RubenSmn Yeah there are some details I noticed about the current implementation.

  • Changes made on the admin navbar are applied immediately to the live version (may not be preferrable)
  • Reactive updates on the navbar would require accessing the localStorage multiple times. Anyways, please do. Thanks!

andrewsu31098 avatar Dec 30 '22 21:12 andrewsu31098

@andrewsu31098 we can almost resume this feature. The new state management for the config on the web map has made some progress #1349.

Instead of introducing a new config prop we opt to go for a context. Meaning we can pass the config to the context and wrap it around the navbar which should take care of the rest!

RubenSmn avatar Feb 05 '23 11:02 RubenSmn

@RubenSmn Sounds good! I'll keep my eyes on #1349 and open up a new PR when I get the go ahead.

andrewsu31098 avatar Feb 07 '23 02:02 andrewsu31098

What should we do for this PR?

dadiorchen avatar Mar 18 '23 09:03 dadiorchen

@dadiorchen I talked to @andrewsu31098 about this over slack. Discussing that the data of the cwm can now be used via React context. This PR will be ready soon

RubenSmn avatar Mar 18 '23 22:03 RubenSmn

@andrewsu31098 do you need any help pushing this forward?

RubenSmn avatar May 25 '23 09:05 RubenSmn

@RubenSmn apologies for the absence. I intended to continue with this but i've picked up some new responsibilities that have taken up some my free time. Please feel free to ask me any questions or take any code instead as I can't guarantee a timeline.

andrewsu31098 avatar Jun 02 '23 20:06 andrewsu31098