pseuco-ide issueshttps://dgit.cs.uni-saarland.de/pseuco/pseuco-ide/-/issues2018-08-30T10:48:17+02:00https://dgit.cs.uni-saarland.de/pseuco/pseuco-ide/-/issues/32Example files2018-08-30T10:48:17+02:00Konstantin KopperExample filesWhen starting the IDE for the first time, a user would love to have some initial files to play with.
Since pseuCo.com offers a similar feature (by providing templates on the creation of a new file), the IDE should make use of it. In par...When starting the IDE for the first time, a user would love to have some initial files to play with.
Since pseuCo.com offers a similar feature (by providing templates on the creation of a new file), the IDE should make use of it. In particular, these files are available using an API call to https://pseuco.com/api/templates/get?type=pseuco, which offers the possibility for the IDE to include the same templates.
I see two possibilities how this may be realized:
1. A distinct `Download templates` button, which would query the API and write the files to the local file system such that they are available within the IDE to be opened by the user. As a variation, a dialog may appear, in which the user can choose which templates he wants to download.
2. Mimic the behavior of pseuCo.com, which means offering the templates to chose from whenever a new file should be created.
In my opinion, both options are feasible. However, the second option may become annoying as soon as a user is more experienced and does not want to rely on some initial examples. As a consequence, I would prefer the first solution with the mentioned variation in place.
Since this is an explicit wish of @harmonie, I would love to hear from you about it. @fefrei If you have anything to add, you are invited to do so.2.1Konstantin KopperKonstantin Kopperhttps://dgit.cs.uni-saarland.de/pseuco/pseuco-ide/-/issues/31Add 'Check for updates' functionality2018-09-06T20:08:15+02:00Konstantin KopperAdd 'Check for updates' functionalitySince the IDE is now officially released (see #30), there is currently no possibility for users to check whether a new version was released beside manually checking at either [pseuCo.com](https://pseuco.com/#/pseuco-ide) or the [releases...Since the IDE is now officially released (see #30), there is currently no possibility for users to check whether a new version was released beside manually checking at either [pseuCo.com](https://pseuco.com/#/pseuco-ide) or the [releases](../tags) page.
In order to enhance the user experience, the IDE should provide some *Check for updates* mechanism, which can be triggered manually but also automatically during startup.
While thinking about it, I decided the following to be the best and easiest solution:
Since all releases correspond to tags in the repository, the check can be realized by comparing tags against each other. To do so, all available tags are queried using the GitLab API (https://dgit.cs.uni-saarland.de/api/v4/projects/16/repository/tags) and compared to the tag name the official release is build on. This makes use of the fact that all release tags follow a simple, yet consistent, scheme: `^v\d+\.\d+(\.\d+)?$`.
If a new version is available, there are two possibilities:
1. The correspondent download link is presented to the user, such that he can easily pass it to his browser.
2. The user is redirected to the [IDE site](https://pseuco.com/#/pseuco-ide) of pseuCo.com, which then includes the download link to the newest version.2.1Konstantin KopperKonstantin Kopper