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

Add Presets to result page. #400

Closed
sboivinsystra opened this issue Aug 4, 2023 · 2 comments · Fixed by #402
Closed

Add Presets to result page. #400

sboivinsystra opened this issue Aug 4, 2023 · 2 comments · Fixed by #402
Assignees
Milestone

Comments

@sboivinsystra
Copy link
Contributor

  • styles.json in root dir (with inputs/ and outputs/)

  • its a list of pressets with layer name. selected features, colorsmaps. size, etc.

  • can save a preset in settings

  • change save for apply (in settings).

  • need a trash to delete them. in the selection menu.

  • select preset. in side panel. over the layer selector

when saving a preset. ask for the name in a dialog. reuse loaded preset name as default name. that way you can overwrite a preset with your modification or create a new one.

@sboivinsystra sboivinsystra linked a pull request Aug 14, 2023 that will close this issue
@sboivinsystra
Copy link
Contributor Author

  • add styles.json to the root directory.
  • its an array [ { name ,layer, displaySettings: {...} } ]
  • can create or modify presets.
  • can chose a preset
  • can delete a preset.

for now. you cannot upload a preset in import. it it working with the zip and S3 import. it is also export in zip format if needed.
I dont know if we want to have the possibility to import a styles.json. it is a quenedi file, it is create by quenedi

NOTE: quetzal backend copy the file in a folder ./ . this doesnt create any problem. but it should not do that.

@sboivinsystra
Copy link
Contributor Author

A dialog asking for a name is open to create a new one (save option in the option right panel) and when you delete one, a dialog ask to confirm

image

@sboivinsystra sboivinsystra added this to the 4.9 milestone Aug 18, 2023
@sboivinsystra sboivinsystra self-assigned this Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant