chore(deps): update module github.com/chai2010/gettext-go to v1.0.3#929
Merged
Merged
Conversation
89c5821 to
a50358b
Compare
Skarlso
approved these changes
Sep 25, 2025
a50358b to
accf90d
Compare
fabianburth
approved these changes
Sep 25, 2025
accf90d to
ca26dd7
Compare
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 14, 2026
<!-- markdownlint-disable MD041 --> Adds a progress visualization system for the `ocm transfer component-version` command, providing real-time feedback during long-running transfers. **Terminal mode** (interactive TTY): - Animated spinner during resolve phase - Progress bar with scrolling item log during transfer execution - Color-coded status icons (✓/✗/⊘) and error formatting with spec dumps **Non-terminal mode** (piped output, CI): - Structured slog output for each operation phase and item-level events - Automatically selected by the tracker when stderr is not a TTY **Architecture:** - `progress` package: orchestrates operation lifecycle via `Tracker`, `Simple`, and `Tracked` factories. Owns the slog-based default visualizer for non-terminal mode. - `visualizers` package: terminal-specific rendering implementations (`basicVisualizer` for spinners, `barVisualizer` for progress bars). Decoupled from domain types. - Transfer command's `progress.go`: adapter layer mapping graph runtime events to progress events, with domain-specific error formatting. **Key design decisions:** - Tracker stores output writer and terminal flag; factory functions (`VisualizerFactory`, `EventVisualizerFactory`) receive these from the tracker, keeping the caller API minimal: `progress.Simple(visualizers.Simple)` and `progress.Tracked(visualizers.NewBarVisualizer(formatError), total, events, mapper)` - slog is intercepted and buffered during terminal rendering to prevent log output from corrupting the animated UI; buffered lines are drained between render frames - `SyncBuffer` provides thread-safe access to the shared log buffer between slog writers and visualizer render loops - Transfer command refactored: cobra handler delegates to `transferRunner` which separates resolve/build/execute phases from rendering concerns <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 16, 2026
<!-- markdownlint-disable MD041 --> Adds a progress rendering system for the `transfer component-version` command, replacing the previous generic tracker with a streamlined, operation-based API. **Progress package (`cli/internal/render/progress/`)** - `Tracker[T]` manages operation lifecycle and slog redirection during terminal rendering - `StartOperation` supports simple operations (spinner only) and event-tracked operations (progress bar) via `WithEvents` and `WithErrorFormatter` - `SlogVisualizer[T]` provides automatic fallback for non-terminal environments (CI, piped output) - slog is buffered during terminal rendering to prevent log output from corrupting the animated UI **Bar visualizer (`cli/internal/render/progress/bar/`)** - Single `NewVisualizer[T]` factory handles both simple (total=0, spinner header) and tracked (progress bar with scrolling item log) modes - Animated spinner with shimmer effect on header text - Failed items are listed with typed error formatting (spec dump for debugging) **Transfer command integration** - Three progress phases: loading transfer spec, resolving component versions, transferring - Events are fully typed as `Event[*graphPkg.Transformation]` throughout the pipeline - Error formatter renders transformation failures with error tree and framed spec JSON dump <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
1 task
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 16, 2026
<!-- markdownlint-disable MD041 --> Adds a progress rendering system for the `transfer component-version` command, replacing the previous generic tracker with a streamlined, operation-based API. **Progress package (`cli/internal/render/progress/`)** - `Tracker[T]` manages operation lifecycle and slog redirection during terminal rendering - `StartOperation` supports simple operations (spinner only) and event-tracked operations (progress bar) via `WithEvents` and `WithErrorFormatter` - `SlogVisualizer[T]` provides automatic fallback for non-terminal environments (CI, piped output) - slog is buffered during terminal rendering to prevent log output from corrupting the animated UI **Bar visualizer (`cli/internal/render/progress/bar/`)** - Single `NewVisualizer[T]` factory handles both simple (total=0, spinner header) and tracked (progress bar with scrolling item log) modes - Animated spinner with shimmer effect on header text - Failed items are listed with typed error formatting (spec dump for debugging) **Transfer command integration** - Three progress phases: loading transfer spec, resolving component versions, transferring - Events are fully typed as `Event[*graphPkg.Transformation]` throughout the pipeline - Error formatter renders transformation failures with error tree and framed spec JSON dump <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 16, 2026
<!-- markdownlint-disable MD041 --> Adds a progress rendering system for the `transfer component-version` command, replacing the previous generic tracker with a streamlined, operation-based API. **Progress package (`cli/internal/render/progress/`)** - `Tracker[T]` manages operation lifecycle and slog redirection during terminal rendering - `StartOperation` supports simple operations (spinner only) and event-tracked operations (progress bar) via `WithEvents` and `WithErrorFormatter` - `SlogVisualizer[T]` provides automatic fallback for non-terminal environments (CI, piped output) - slog is buffered during terminal rendering to prevent log output from corrupting the animated UI **Bar visualizer (`cli/internal/render/progress/bar/`)** - Single `NewVisualizer[T]` factory handles both simple (total=0, spinner header) and tracked (progress bar with scrolling item log) modes - Animated spinner with shimmer effect on header text - Failed items are listed with typed error formatting (spec dump for debugging) **Transfer command integration** - Three progress phases: loading transfer spec, resolving component versions, transferring - Events are fully typed as `Event[*graphPkg.Transformation]` throughout the pipeline - Error formatter renders transformation failures with error tree and framed spec JSON dump <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 16, 2026
<!-- markdownlint-disable MD041 --> Adds a progress visualization system for the `ocm transfer component-version` command, providing real-time feedback during long-running transfers. **Terminal mode** (interactive TTY): - Animated spinner during resolve phase - Progress bar with scrolling item log during transfer execution - Color-coded status icons (✓/✗/⊘) and error formatting with spec dumps **Non-terminal mode** (piped output, CI): - Structured slog output for each operation phase and item-level events - Automatically selected by the tracker when stderr is not a TTY **Architecture:** - `progress` package: orchestrates operation lifecycle via `Tracker`, `Simple`, and `Tracked` factories. Owns the slog-based default visualizer for non-terminal mode. - `visualizers` package: terminal-specific rendering implementations (`basicVisualizer` for spinners, `barVisualizer` for progress bars). Decoupled from domain types. - Transfer command's `progress.go`: adapter layer mapping graph runtime events to progress events, with domain-specific error formatting. **Key design decisions:** - Tracker stores output writer and terminal flag; factory functions (`VisualizerFactory`, `EventVisualizerFactory`) receive these from the tracker, keeping the caller API minimal: `progress.Simple(visualizers.Simple)` and `progress.Tracked(visualizers.NewBarVisualizer(formatError), total, events, mapper)` - slog is intercepted and buffered during terminal rendering to prevent log output from corrupting the animated UI; buffered lines are drained between render frames - `SyncBuffer` provides thread-safe access to the shared log buffer between slog writers and visualizer render loops - Transfer command refactored: cobra handler delegates to `transferRunner` which separates resolve/build/execute phases from rendering concerns <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 16, 2026
<!-- markdownlint-disable MD041 --> Adds a progress rendering system for the `transfer component-version` command, replacing the previous generic tracker with a streamlined, operation-based API. **Progress package (`cli/internal/render/progress/`)** - `Tracker[T]` manages operation lifecycle and slog redirection during terminal rendering - `StartOperation` supports simple operations (spinner only) and event-tracked operations (progress bar) via `WithEvents` and `WithErrorFormatter` - `SlogVisualizer[T]` provides automatic fallback for non-terminal environments (CI, piped output) - slog is buffered during terminal rendering to prevent log output from corrupting the animated UI **Bar visualizer (`cli/internal/render/progress/bar/`)** - Single `NewVisualizer[T]` factory handles both simple (total=0, spinner header) and tracked (progress bar with scrolling item log) modes - Animated spinner with shimmer effect on header text - Failed items are listed with typed error formatting (spec dump for debugging) **Transfer command integration** - Three progress phases: loading transfer spec, resolving component versions, transferring - Events are fully typed as `Event[*graphPkg.Transformation]` throughout the pipeline - Error formatter renders transformation failures with error tree and framed spec JSON dump <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
piotrjanik
added a commit
to piotrjanik/open-component-model
that referenced
this pull request
Apr 17, 2026
<!-- markdownlint-disable MD041 --> Adds a progress rendering system for the `transfer component-version` command, replacing the previous generic tracker with a streamlined, operation-based API. **Progress package (`cli/internal/render/progress/`)** - `Tracker[T]` manages operation lifecycle and slog redirection during terminal rendering - `StartOperation` supports simple operations (spinner only) and event-tracked operations (progress bar) via `WithEvents` and `WithErrorFormatter` - `SlogVisualizer[T]` provides automatic fallback for non-terminal environments (CI, piped output) - slog is buffered during terminal rendering to prevent log output from corrupting the animated UI **Bar visualizer (`cli/internal/render/progress/bar/`)** - Single `NewVisualizer[T]` factory handles both simple (total=0, spinner header) and tracked (progress bar with scrolling item log) modes - Animated spinner with shimmer effect on header text - Failed items are listed with typed error formatting (spec dump for debugging) **Transfer command integration** - Three progress phases: loading transfer spec, resolving component versions, transferring - Events are fully typed as `Event[*graphPkg.Transformation]` throughout the pipeline - Error formatter renders transformation failures with error tree and framed spec JSON dump <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Fixes: open-component-model#929 Signed-off-by: Piotr Janik <piotr.janik@sap.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
v1.0.2->v1.0.3Release Notes
chai2010/gettext-go (github.com/chai2010/gettext-go)
v1.0.3Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.