diff --git a/CHANGELOG.md b/CHANGELOG.md index 47004554..8cf36809 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,11 @@ + +# v0.10.0 +## Features +- A new summit log entry is now added automatically when uploading a new GPX file for a new or existing trail +- GPX files can now be attached to summit logs +- Adds a new profile page with filterable statistics derived from summit log GPX data +- When importing a GPX file the filename will be used as a fallback + # v0.9.0 ## Features - Complete visual overhaul of the list page diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 47519f96..d5a496f3 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -49,6 +49,10 @@ export default defineConfig({ label: 'Lists', link: '/guides/lists/' }, + { + label: 'Statistics', + link: '/guides/statistics/' + }, { label: 'Custom categories', link: '/guides/custom-categories/' diff --git a/docs/package-lock.json b/docs/package-lock.json index b24652f0..155832f2 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1,12 +1,12 @@ { "name": "docs", - "version": "0.9.0", + "version": "0.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "docs", - "version": "0.9.0", + "version": "0.10.0", "dependencies": { "@astrojs/check": "^0.7.0", "@astrojs/node": "^8.2.6", diff --git a/docs/package.json b/docs/package.json index 56f256b1..556fecd1 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,7 +1,7 @@ { "name": "docs", "type": "module", - "version": "0.9.0", + "version": "0.10.0", "scripts": { "dev": "astro dev", "start": "astro dev", diff --git a/docs/src/assets/guides/wanderer_stats.gif b/docs/src/assets/guides/wanderer_stats.gif new file mode 100644 index 00000000..f19d71b8 Binary files /dev/null and b/docs/src/assets/guides/wanderer_stats.gif differ diff --git a/docs/src/components/footer.astro b/docs/src/components/footer.astro index 6738118b..25313254 100644 --- a/docs/src/components/footer.astro +++ b/docs/src/components/footer.astro @@ -111,7 +111,7 @@ const isNotHomepage = Astro.props.slug !== ""; class="fill-primary dark:fill-white" font-size="0.75rem" > - v0.9.0 + v0.10.0 diff --git a/docs/src/content/docs/api-reference/summit-log.md b/docs/src/content/docs/api-reference/summit-log.md index 2578d1da..8a105f65 100644 --- a/docs/src/content/docs/api-reference/summit-log.md +++ b/docs/src/content/docs/api-reference/summit-log.md @@ -32,8 +32,8 @@ GET /summit-log/{id} |HTTP Status Code |Meaning|Description|Data schema| |---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|OK|Inline| -|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Record Not Found|Inline| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| +|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|none|Inline| ### Responses Data Schema @@ -112,8 +112,8 @@ POST /summit-log/{id} |HTTP Status Code |Meaning|Description|Data schema| |---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|OK|Inline| -|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Record Not Found|Inline| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| +|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|none|Inline| ### Responses Data Schema @@ -173,8 +173,8 @@ DELETE /summit-log/{id} |HTTP Status Code |Meaning|Description|Data schema| |---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|OK|Inline| -|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|Record Not Found|Inline| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| +|404|[Not Found](https://tools.ietf.org/html/rfc7231#section-6.5.4)|none|Inline| ### Responses Data Schema @@ -204,6 +204,42 @@ HTTP Status Code **404** |»»» data|object|true|none||none| |» name|string|true|none||none| +## POST file + +POST /summit-log/{id}/file + +> Body Parameters + +```yaml +gpx: "" + +``` + +### Params + +|Name|Location|Type|Required|Description| +|---|---|---|---|---| +|id|path|string| yes |none| +|Content-Type|header|string| yes |none| +|body|body|object| no |none| +|» gpx|body|string(binary)| no |none| + +> Response Examples + +> 200 Response + +```json +{} +``` + +### Responses + +|HTTP Status Code |Meaning|Description|Data schema| +|---|---|---|---| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| + +### Responses Data Schema + ## GET list GET /summit-log @@ -230,7 +266,7 @@ GET /summit-log |HTTP Status Code |Meaning|Description|Data schema| |---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|OK|Inline| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| ### Responses Data Schema @@ -287,8 +323,8 @@ PUT /summit-log |HTTP Status Code |Meaning|Description|Data schema| |---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|OK|Inline| -|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|Bad Request|Inline| +|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| +|400|[Bad Request](https://tools.ietf.org/html/rfc7231#section-6.5.1)|none|Inline| ### Responses Data Schema @@ -323,3 +359,6 @@ HTTP Status Code **400** |»»» message|string|true|none||none| |»»» data|object|true|none||none| |» name|string|true|none||none| + +# Data Schema + diff --git a/docs/src/content/docs/getting-started/changelog.md b/docs/src/content/docs/getting-started/changelog.md index c58faa26..6894f8b4 100644 --- a/docs/src/content/docs/getting-started/changelog.md +++ b/docs/src/content/docs/getting-started/changelog.md @@ -3,6 +3,13 @@ title: Changelog description: What changed in the last patch? --- +## v0.10.0 +### Features +- A new summit log entry is now added automatically when uploading a new GPX file for a new or existing trail +- GPX files can now be attached to summit logs +- Adds a new profile page with filterable statistics derived from summit log GPX data +- When importing a GPX file the filename will be used as a fallback + ## v0.9.0 ### Features - Complete visual overhaul of the list page diff --git a/docs/src/content/docs/guides/statistics.md b/docs/src/content/docs/guides/statistics.md new file mode 100644 index 00000000..6f77dc00 --- /dev/null +++ b/docs/src/content/docs/guides/statistics.md @@ -0,0 +1,12 @@ +--- +title: Statistics +description: Where can I find statistics and how are they derived? +--- + +wanderer can you show you a wide range of useful statistics about your latest adventures. Head over to the profile page (`/profile`) to get started. wanderer derives the values for your statistics from the [summit books](guides/create-a-trail/#summit-book) of your trails. So make sure to add some entries with GPS data beofre proceeding. + +![Statistics](../../../assets/guides/wanderer_stats.gif) + +With the filters in the top right corner you can determine which acitivities should be included in the statistics. With the drop down menu above the activity bar chart you can determine which metric should be visualized in the time series graph. + +In the table at the bottom of the page you see an overview of all acitivities that match your selected filters. Clicking on the route preview at the beginning of each row will display the route on a more detailed map so you can take a closer at all the relevant data. \ No newline at end of file diff --git a/web/package-lock.json b/web/package-lock.json index d18c9380..ede3af1d 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,12 +1,12 @@ { "name": "wanderer", - "version": "0.9.0", + "version": "0.10.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wanderer", - "version": "0.9.0", + "version": "0.10.0", "dependencies": { "@fortawesome/fontawesome-free": "^6.5.1", "@sveltejs/adapter-node": "^4.0.1", diff --git a/web/package.json b/web/package.json index d3aaf39d..6dcb6d6f 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "wanderer", - "version": "0.9.0", + "version": "0.10.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/web/src/lib/components/logo/logo_text_light_with_version.svelte b/web/src/lib/components/logo/logo_text_light_with_version.svelte index 9433df8f..2ff017b6 100644 --- a/web/src/lib/components/logo/logo_text_light_with_version.svelte +++ b/web/src/lib/components/logo/logo_text_light_with_version.svelte @@ -95,5 +95,5 @@ d="M43.857 43.3045C44.0569 43.0652 44.4246 43.0652 44.6245 43.3045L46.6259 45.7008C46.8978 46.0263 46.6663 46.5213 46.2421 46.5213H42.2394C41.8152 46.5213 41.5837 46.0263 41.8556 45.7008L43.857 43.3045Z" fill="#242734" /> - v0.9.0 + v0.10.0