Skip to content

Updates to terminal and stop change histories#1438

Merged
suvikankare merged 2 commits into
mainfrom
terminal-ch-test-observations
Jun 5, 2026
Merged

Updates to terminal and stop change histories#1438
suvikankare merged 2 commits into
mainfrom
terminal-ch-test-observations

Conversation

@suvikankare
Copy link
Copy Markdown
Member

@suvikankare suvikankare commented Jun 4, 2026

  • Extract common code for external links
  • Refactor external links diffing ui
  • Implement diffing external links in stops

This change is Reviewable

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 4, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@suvikankare suvikankare marked this pull request as ready for review June 4, 2026 10:56
Copy link
Copy Markdown
Contributor

@PasiVuohijoki PasiVuohijoki left a comment

Choose a reason for hiding this comment

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

@PasiVuohijoki made 3 comments.
Reviewable status: 0 of 13 files reviewed, 3 unresolved discussions (waiting on suvikankare).


ui/src/components/stop-registry/stops/change-history/utils/dataDiffers/diffExternalLinks.tsx line 19 at r1 (raw file):

  current: HistoricalStopData,
): Array<ChangedValue> {
  const formatLinks = (links: readonly (ExternalLink | null)[]) => {

Nit: Kun tuo ExternalLinksList ja formatExternalLinks on tuolla samassa moduulissa, niin tää funktiokin vois olla siellä. t-funktio sitte vaan parametrina menemään.


ui/src/components/stop-registry/stops/change-history/utils/dataDiffers/diffExternalLinks.tsx line 20 at r1 (raw file):

): Array<ChangedValue> {
  const formatLinks = (links: readonly (ExternalLink | null)[]) => {
    const formatted = formatExternalLinks(compact(links ?? []));

Nopeesti vilkaistuna tää compactin käyttö on tässä turha, kun tuo formatExternalLinks sisäisesti käyttää tota compact(links) asiaa.


ui/src/components/stop-registry/terminals/change-history/utils/diffTerminal.tsx line 308 at r1 (raw file):

): Array<ChangedValue> {
  const formatLinks = (links: readonly (ExternalLink | null)[]) => {
    const formatted = formatExternalLinks(compact(links ?? []));

Tässä sama homma ku aiemmin mainitsin. Compactin voi jättää veke.

@suvikankare suvikankare force-pushed the terminal-ch-test-observations branch from 53ac0da to 49ad016 Compare June 5, 2026 10:06
Copy link
Copy Markdown
Member Author

@suvikankare suvikankare left a comment

Choose a reason for hiding this comment

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

@suvikankare made 2 comments and resolved 1 discussion.
Reviewable status: 0 of 13 files reviewed, 2 unresolved discussions (waiting on PasiVuohijoki).


ui/src/components/stop-registry/stops/change-history/utils/dataDiffers/diffExternalLinks.tsx line 20 at r1 (raw file):

Previously, PasiVuohijoki (Pasi Vuohijoki) wrote…

Nopeesti vilkaistuna tää compactin käyttö on tässä turha, kun tuo formatExternalLinks sisäisesti käyttää tota compact(links) asiaa.

Done.


ui/src/components/stop-registry/terminals/change-history/utils/diffTerminal.tsx line 308 at r1 (raw file):

Previously, PasiVuohijoki (Pasi Vuohijoki) wrote…

Tässä sama homma ku aiemmin mainitsin. Compactin voi jättää veke.

Done.

Copy link
Copy Markdown
Contributor

@PasiVuohijoki PasiVuohijoki left a comment

Choose a reason for hiding this comment

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

@PasiVuohijoki reviewed 13 files and all commit messages, and resolved 2 discussions.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on suvikankare).

@suvikankare suvikankare merged commit 2f009f2 into main Jun 5, 2026
24 checks passed
@suvikankare suvikankare deleted the terminal-ch-test-observations branch June 5, 2026 10:27
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.

2 participants