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

Ability to save data in Octopus (would be great to achieve that) #4

Open
SM-Type opened this issue Mar 14, 2024 · 1 comment
Open

Comments

@SM-Type
Copy link
Collaborator

SM-Type commented Mar 14, 2024

Currently, the program state is not being saved to the browser's memory or a file in JSON format – this method seems highly attractive due to its capability of storing and loading multiple saved program states.

Saving will include:

Individual

  • Column ID
  • Font size
  • Spacing
  • Leading
  • Language
  • Usage state of the OT function
  • Values for assigned VF
  • Text (conditionally)
  • Whether it was edited

Group

  • Session ID
  • Number of columns and rows in the interface
  • Type of information displayed above the text columns

Problematic data to save:

Data saving model for text with a large number of columns.

Introducing individual mode will individualize the content of each column. Each column will have its own unique key to store text. The problem arises with large files. Each column multiplying the text by its quantity will certainly affect the program's performance.

Saving font / file path

From the browser level, I'm not sure how to save the path to the selected font. This is an element that will likely need to be additionally uploaded with the JSON file. In the localStorage memory saving method, reloading the font will reset the saved settings of edited parameters."

@vikagrabowska vikagrabowska changed the title Problems saving data Ability to save data in Octopus (would be great to achieve that) Mar 15, 2024
@vikagrabowska
Copy link
Owner

The most essential points would be:

  • Data saving model for text with a large number of columns.
  • Saving font / file path

How to save the text in most optimal way when columns are in Individual mode, and how to save font in browser memory.
While entering the page https://vikagrabowska.github.io/OctopusProject/ we start a new session every time. Shall we import a path to the font or the browser should keep a font file?

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

No branches or pull requests

2 participants