Giter Club home page Giter Club logo

Comments (7)

Alberix89 avatar Alberix89 commented on July 22, 2024 2

Not sure if this belongs here, but I would also have my two cents ;-)

My problem: I have Optolith on several computers (PC and laptop) and move the characters back and forth with export and import. Of course, sometimes I forget to synchronize the character with the other Optolith right after a change. So I'm not sure anymore if I did the last adjustment now on the PC or on the laptop.
Also, I had once imported a current character and the old version but not yet deleted. Since the characters have the same name, I could no longer distinguish them from each other. So I no longer knew which one I could delete.
As a basis, even a simple "last modified" date and time stamp directly in the character overview would be helpful.

from optolith-client.

soulflyman avatar soulflyman commented on July 22, 2024 1

I would need to get the file for each commit, read it and then diff them manually to create a diff representation I can use

Correct, checkout the file from a specific commit, parse it and compare it with the existing one. You are right that this is a bit of work but I think it could be easier maintained in the future.

And cloud sync would be easy to, just add a remote repository and you don't have to worry about file versions conflicts like "Is the version in the cloud newer or older then the local file".

But maybe that's just me looking at Optolith through my rose-colored glasses. 😉
You have a much better project overview then any one else and I'm sure you'll find a solution that fits the project best. And I don't care how it will be implemented as long as it does work 😄

from optolith-client.

Kallimeister avatar Kallimeister commented on July 22, 2024 1

Maybe, when at it, add the option to insert a comment when adding AP (or editing a character), so you can see for what the character got the AP (why the change was made) in the history.
Would be useful to remember planned skills for the next time when the AP amount isn't sufficient at the time.

from optolith-client.

elyukai avatar elyukai commented on July 22, 2024

It would probably be better to create a "session protocol", combining all the changes made on save.

from optolith-client.

soulflyman avatar soulflyman commented on July 22, 2024

Just adding my two cents...

If the TypeScript does allow it, I would recommend to create a local git repository for the character file(s).

  • Title = commit message
  • Optional description = extended commit message
  • Date = does git add automatically
  • Changes between the current hero and the hero at the last commit = this can also be done by git

And for all other features like marking of RCP-Selection done and Character creation done, etc. we can use tags.

from optolith-client.

elyukai avatar elyukai commented on July 22, 2024

There is an npm package for that (since TypeScript is JavaScript), but how would you display the changes? I can't just display the diffs so I would need to get the file for each commit, read it and then diff them manually to create a diff representation I can use – which would need a bit of work together with the Git implementation itself. Also, what if I need to change internal representations? I mean, sure, I could just rewrite the Git history, but that's not what Git is meant to solve … 😅🙈🙈🙈

I'm also not quite sure how this could work together with cloud syncing. 🤔 'd need to think about that.

I love Git but I'm not yet sure if this would be a viable solution. 🤔

from optolith-client.

elyukai avatar elyukai commented on July 22, 2024

Thanks for your input!

If you do manual synchronization then yes, this will contribute. There are upcoming features, though, that will reduce the need to sync all of this manually.

Displaying a timestamp would be a useful enhancement nonetheless, I think. 🤔

from optolith-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.