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

Feature/save load subnet map #17

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

byroncollins
Copy link
Contributor

  • Modified the Import/Export modal to add two additional buttons Load and Save. This will enable users to load or save a submap JSON stored locally. (This could be within a git repository)
  • allow fallback for browsers that do not support the File System Access API
  • Imported the agv schema validator library https://ajv.js.org/
  • Added a json schema to validate any json to be imported.

This closes issue #7

@ckabalan The Json Schema validation might be overkill considering that the path to loading a json locally will likely be generated from the browser and saved locally and therefore valid. If you feel that validation adds value then there are also additional validations that could be added in the future and not just the Json Schema. I believe that the feature is complete enough for MVP.

I've tested the Json schema against various generated json subnet maps including invalid ones. The error messages generated from the AJV library aren't that user-friendly but they do highlight where the issue lies within the Json schema.

byroncollins and others added 10 commits June 24, 2024 08:52
* Feature/cloud (ckabalan#8)

* calc for cloud platforms

* updates after further testing

* remove debugging statements

---------

Co-authored-by: Caesar Kabalan <[email protected]>
Co-authored-by: Byron Collins <[email protected]>

* refactor cloud subnet sizes based on feedback

* added missing integrity SRI Hashes

* update set_popover_content

* Modify description to highlight  AWS and Azure capabilities.

---------

Co-authored-by: Caesar Kabalan <[email protected]>
Co-authored-by: Byron Collins <[email protected]>
* Want to keep Meta Description short for SEO purposes.
* Elected to use built-in Bootstrap mode highlighting versus changing
  the text style
* Removed the Usable IPs popovers in favor of tooltips + hyperlink
* No need to increase the config version. That is only for breaking
  changes. We can assume 'Standard' for all URLs that do not have a mode
  for backwards compatibility. Incrementing the config version is when
  we have a breaking change like changing existing key names or other
  edge cases we can't code around with high confidence.
* Changed the modals slightly to include more information and links to
  documentation.
* Fixed validation pattern for IP addresses in jQuery Validation. It was
  missing escape characters for the periods so "192.168." was showing as
  a fully valid address.
* Changed the validation error display to be Bootstrap tooltips instead
  of additional elements that shift the contents of the page.
* Added custom tooltip style for validation errors.
* Updated jQuery Validation dependencies.
@1oglop1
Copy link

1oglop1 commented Oct 13, 2024

@ckabalan is this still being worked on? This would be an awesome feature to have.

@ckabalan
Copy link
Owner

I'll take a deep look at this tonight. Thanks for keeping me accountable!

@DenisMkS
Copy link

DenisMkS commented Dec 5, 2024

Would be nice to have it

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.

4 participants