Skip to content

Conversation

@jorgkv
Copy link
Contributor

@jorgkv jorgkv commented Nov 7, 2025

Husk å rebase denne jevnlig så vi ikke får så mye konflikter til slutt.
Hvis du vil teste import av GPX-spor, kan du bruke f.eks. https://gpx.studio/ til å lage GPS-filer. https://geojson.io/ kan brukes til å lage GeoJSON-filer.

TODO

  • Vi støtter bare lat/lon i appen, trenger vi sjekke om importerte geojson-filer har koordinater som ligner på andre ting? (gpx støtter bare lat lon)
  • Beregne lengde på tur under import / lagring?
  • Fjern hardkodede turer i kartet (de som ligger i Asker)
  • Fjerne logging vi ikke trenger lengre (men som kan være nyttig å ha der under testing)
  • Kjøre copilot-review
  • Sjekke hvor mye plass vi bruker i LocalStorage med 4-5 kladder + en god del turer importert. Hvis vi nærmer oss grensa på 5 mb? så burde vi kanskje hatt en slags håndtering av det, at vi melder i fra om at maks antall turer er importert. Tipper at det skal mye til for å nå den grensa, men siden dette med turer potensielt kan overskrive kladder dersom man når plassgrensa ? så burde vi undersøke det.
  • Gjøre det lettere å velge et spor i kartet, for å se navn og beskrivelse. Det virker som "hover-området" for sporet er for smalt (fikses i Mer musevennlig visning av navn og beskrivelse #903)
  • Detaljsida for tur er ikke veldig tilpassa for web, kartet kunne tatt opp (nesten) hele skjermen, og tur-metadata bare tatt opp en liten bit på siden av kartet.
  • Oppdatere til siste versjon av designsystemet
  • det er noe rart med punkt-ikonene:
image - [ ] Vise feilmelding hvis vi ikke får til å importere en fil

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

1 similar comment
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@jorgkv jorgkv force-pushed the feature/RO-13-turplaner branch from c705c23 to 7e6f93c Compare November 7, 2025 14:12
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

2 similar comments
@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

github-actions bot commented Nov 7, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@gruble gruble force-pushed the feature/RO-13-turplaner branch from d8df8b1 to b75d8f7 Compare November 13, 2025 11:12
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

3 similar comments
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@gruble gruble changed the title RO-13: Turplanlegging RO-13: Planlegging Nov 21, 2025
@github-actions
Copy link

github-actions bot commented Dec 5, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 8, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@gruble gruble force-pushed the feature/RO-13-turplaner branch from 50872a6 to 63052cc Compare December 15, 2025 14:30
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

3 similar comments
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements "RO-13: Planlegging" - a new feature for importing, managing, and displaying GPS tracks (GPX and GeoJSON files) in the application. It adds a "Plans" tab where users can upload track files, view them on the map, and manage metadata like names and descriptions.

Key Changes

  • Added new "Plans" tab with file import functionality supporting GPX and GeoJSON formats
  • Integrated NVE Design System components for UI consistency
  • Implemented GeoJSON storage service with IndexedDB persistence
  • Enhanced map component to display multiple imported tracks with click interactions
  • Added Source Sans Pro fonts to support the NVE Design System

Reviewed changes

Copilot reviewed 25 out of 38 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tsconfig.json Updated TypeScript target to es2023 and module to esnext
src/main.ts Added registration for NVE Design System icon library
src/global.scss Added NVE Design System theme and Source Sans Pro font imports
src/assets/icon/*.svg Added new SVG icons for plans feature (tour, input, delete, check, calendar, etc.)
src/assets/i18n/*.json Added Norwegian and English translations for plans feature
src/app/pages/tabs/* Updated tabs infrastructure to include new "Plans" tab
src/app/pages/plans/* New pages for plan list and detail views with file upload functionality
src/app/core/services/geojson/* New service for managing GeoJSON storage and metadata
src/app/modules/map/* Enhanced map component to display imported tracks with metadata
package.json Added dependencies for GeoJSON processing (@tmcw/togeojson, @Turf packages, nve-designsystem)

IonMenuButton,
IonTitle,
TranslatePipe,
TranslatePipe,
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The TranslatePipe is imported twice in the imports array. This is redundant and should be removed to keep the code clean.

Suggested change
TranslatePipe,

Copilot uses AI. Check for mistakes.
[label]="'PLANS.COMMENT' | translate"
></nve-textarea>
<div class="button-group">
<nve-button variant="primary" type="submit" (click)="onSave()">Lagre</nve-button>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dette med egen lagre-knapp per skjema er noe nytt i appen. Selv syns jeg ikke brukeropplevelsen er så god nå, med lagreknappen. Jeg prøvde feks å toggle en tur på bare med togglen, men glemte å trykke lagre fordi det er uvant og litt uvanlig sammenligna med appen ellers.

Tenker vi bør skrive om skjemaet til å lagre oppdateringene fortløpende så vi kan fjerne lagre-knappen. Eventuelt burde vi kanskje hatt to visninger av skjemaet, for å gjøre det tydeligere at "nå redigerer du". Feks at det var en helt statisk visning uten inputs / toggle, men med en rediger-knapp som åpner redigeringsvisning.

Copy link
Contributor

@amish1188 amish1188 Dec 18, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vi har jo submit knapper noen steder (se bildet under). Å ikke ha en dedikert submit-knapp i et skjema gir lite mening med tanke på universell utforming. Uten en submit-knapp har vi ingen måte å informere brukeren om at noe faktisk er lagret. hvordan vil du informere skjermleser brukere at data var lagret? Nå som vi skal bruke designsystemet, må vi også ta vare på uu, syns jeg, og bruke best praksis.
Jeg merker vi ikke har submit knapper i underskjemaer (tror dette kan diskuteres), men når du faktisk vil sende et skjema klikker du på en knapp som lagrer det for deg. Akkurat som her. Det er kun et skjema i detaljside. Derfor submit knapp gir mening.
image

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vi har også fjernet switch fra skjemaet. switch er ment til å lagre endring med en gang du trykker på den uten noe ekstra lagre knapp. men vi trodde også at switch vi har er forvirrende og vi fjernet den. det kan også diskuteres senere

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@gruble gruble requested a review from Copilot December 19, 2025 09:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 26 out of 39 changed files in this pull request and generated 3 comments.

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

2 similar comments
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@gruble gruble force-pushed the feature/RO-13-turplaner branch from 1f31ea8 to e299446 Compare December 19, 2025 16:22
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@gruble gruble force-pushed the feature/RO-13-turplaner branch from e299446 to e878b4a Compare December 19, 2025 16:29
@github-actions
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

@github-actions
Copy link

github-actions bot commented Jan 9, 2026

Azure Static Web Apps: Your stage site is ready! Visit it here: https://victorious-water-056410803-857.westeurope.azurestaticapps.net

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