karafka-web 0.9.1 → 0.10.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.github/workflows/ci.yml +30 -0
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +85 -1
- data/Gemfile +1 -0
- data/Gemfile.lock +30 -25
- data/LICENSE +1 -1
- data/bin/build_assets +51 -0
- data/bin/release +6 -0
- data/config/locales/pro_errors.yml +18 -0
- data/docker-compose.yml +1 -1
- data/gulpfile.js +73 -0
- data/karafka-web.gemspec +2 -2
- data/lib/karafka/web/config.rb +9 -10
- data/lib/karafka/web/contracts/base.rb +2 -0
- data/lib/karafka/web/contracts/config.rb +2 -1
- data/lib/karafka/web/errors.rb +12 -0
- data/lib/karafka/web/inflector.rb +1 -1
- data/lib/karafka/web/management/actions/enable.rb +11 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/0_set_initial.rb +39 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1699543515_fill_missing_received_and_sent_bytes.rb +28 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb +26 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_remove_processing.rb +26 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1704722380_split_listeners_into_active_and_paused.rb +38 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1706607960_introduce_lag_total.rb +40 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1706611396_rename_lag_total_to_lag_hybrid.rb +38 -0
- data/lib/karafka/web/management/migrations/consumers_metrics/1716218393_populate_jobs_metrics.rb +26 -0
- data/lib/karafka/web/management/migrations/consumers_states/0_set_initial.rb +46 -0
- data/lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb +25 -0
- data/lib/karafka/web/management/migrations/consumers_states/1700234522_introduce_waiting.rb +22 -0
- data/lib/karafka/web/management/migrations/consumers_states/1700234522_remove_processing.rb +22 -0
- data/lib/karafka/web/management/migrations/consumers_states/1704722380_split_listeners_into_active_and_paused.rb +34 -0
- data/lib/karafka/web/management/migrations/consumers_states/1706607960_introduce_lag_total.rb +24 -0
- data/lib/karafka/web/management/migrations/consumers_states/1706611396_rename_lag_total_to_lag_hybrid.rb +23 -0
- data/lib/karafka/web/management/migrations/consumers_states/1716218393_add_jobs_counter.rb +24 -0
- data/lib/karafka/web/management/migrator.rb +5 -5
- data/lib/karafka/web/pro/commanding/commands/base.rb +8 -0
- data/lib/karafka/web/pro/commanding/commands/quiet.rb +4 -1
- data/lib/karafka/web/pro/commanding/commands/stop.rb +4 -1
- data/lib/karafka/web/pro/loader.rb +8 -0
- data/lib/karafka/web/pro/ui/app.rb +44 -7
- data/lib/karafka/web/pro/ui/controllers/dlq_controller.rb +1 -1
- data/lib/karafka/web/pro/ui/controllers/errors_controller.rb +1 -0
- data/lib/karafka/web/pro/ui/controllers/explorer_controller.rb +6 -14
- data/lib/karafka/web/pro/ui/controllers/messages_controller.rb +5 -4
- data/lib/karafka/web/pro/ui/controllers/search_controller.rb +73 -0
- data/lib/karafka/web/pro/ui/controllers/support_controller.rb +26 -0
- data/lib/karafka/web/pro/ui/controllers/topics_controller.rb +31 -0
- data/lib/karafka/web/pro/ui/controllers/ux_controller.rb +26 -0
- data/lib/karafka/web/pro/ui/lib/policies/config.rb +39 -0
- data/lib/karafka/web/pro/ui/lib/policies/contracts/config.rb +46 -0
- data/lib/karafka/web/pro/ui/lib/policies/messages.rb +76 -0
- data/lib/karafka/web/pro/ui/lib/policies/requests.rb +36 -0
- data/lib/karafka/web/pro/ui/lib/policies.rb +34 -0
- data/lib/karafka/web/pro/ui/lib/safe_runner.rb +98 -0
- data/lib/karafka/web/pro/ui/lib/search/config.rb +53 -0
- data/lib/karafka/web/pro/ui/lib/search/contracts/config.rb +101 -0
- data/lib/karafka/web/pro/ui/lib/search/contracts/form.rb +111 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/base.rb +59 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/raw_header_includes.rb +57 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb +41 -0
- data/lib/karafka/web/pro/ui/lib/search/matchers/raw_payload_includes.rb +45 -0
- data/lib/karafka/web/pro/ui/lib/search/normalizer.rb +47 -0
- data/lib/karafka/web/pro/ui/lib/search/runner.rb +230 -0
- data/lib/karafka/web/pro/ui/lib/search.rb +36 -0
- data/lib/karafka/web/pro/ui/views/cluster/_breadcrumbs.erb +4 -4
- data/lib/karafka/web/pro/ui/views/cluster/_tabs.erb +14 -24
- data/lib/karafka/web/pro/ui/views/cluster/index.erb +20 -22
- data/lib/karafka/web/pro/ui/views/cluster/show.erb +21 -25
- data/lib/karafka/web/pro/ui/views/commands/_backtrace.erb +4 -19
- data/lib/karafka/web/pro/ui/views/commands/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/pro/ui/views/commands/_command.erb +6 -6
- data/lib/karafka/web/pro/ui/views/commands/_command_details.erb +1 -11
- data/lib/karafka/web/pro/ui/views/commands/_incompatible_schema.erb +3 -14
- data/lib/karafka/web/pro/ui/views/commands/_metadata.erb +33 -42
- data/lib/karafka/web/pro/ui/views/commands/_table.erb +9 -3
- data/lib/karafka/web/pro/ui/views/commands/index.erb +18 -12
- data/lib/karafka/web/pro/ui/views/commands/show.erb +24 -29
- data/lib/karafka/web/pro/ui/views/consumers/_breadcrumbs.erb +8 -8
- data/lib/karafka/web/pro/ui/views/consumers/_consumer.erb +13 -23
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +51 -35
- data/lib/karafka/web/pro/ui/views/consumers/_consumer_performance.erb +1 -1
- data/lib/karafka/web/pro/ui/views/consumers/_tabs.erb +28 -30
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +68 -28
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_job.erb +1 -1
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_metrics.erb +114 -133
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_partition.erb +4 -4
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_stopped.erb +6 -9
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_subscription_group.erb +116 -126
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_tabs.erb +26 -31
- data/lib/karafka/web/pro/ui/views/consumers/controls.erb +53 -57
- data/lib/karafka/web/pro/ui/views/consumers/details.erb +4 -17
- data/lib/karafka/web/pro/ui/views/consumers/index.erb +31 -34
- data/lib/karafka/web/pro/ui/views/consumers/pending_jobs.erb +41 -46
- data/lib/karafka/web/pro/ui/views/consumers/performance.erb +43 -47
- data/lib/karafka/web/pro/ui/views/consumers/running_jobs.erb +41 -46
- data/lib/karafka/web/pro/ui/views/consumers/subscriptions.erb +14 -17
- data/lib/karafka/web/pro/ui/views/dashboard/index.erb +67 -76
- data/lib/karafka/web/pro/ui/views/dlq/_breadcrumbs.erb +1 -1
- data/lib/karafka/web/pro/ui/views/dlq/_no_topics.erb +1 -7
- data/lib/karafka/web/pro/ui/views/dlq/_topic.erb +7 -10
- data/lib/karafka/web/pro/ui/views/dlq/index.erb +8 -10
- data/lib/karafka/web/pro/ui/views/errors/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/pro/ui/views/errors/_error.erb +8 -5
- data/lib/karafka/web/pro/ui/views/errors/_selector.erb +12 -0
- data/lib/karafka/web/pro/ui/views/errors/_table.erb +5 -4
- data/lib/karafka/web/pro/ui/views/errors/index.erb +50 -15
- data/lib/karafka/web/pro/ui/views/errors/partition.erb +61 -14
- data/lib/karafka/web/pro/ui/views/errors/show.erb +28 -46
- data/lib/karafka/web/pro/ui/views/explorer/_breadcrumbs.erb +11 -3
- data/lib/karafka/web/pro/ui/views/explorer/_failed_deserialization.erb +8 -3
- data/lib/karafka/web/pro/ui/views/explorer/_message.erb +12 -6
- data/lib/karafka/web/pro/ui/views/explorer/_no_topics.erb +1 -5
- data/lib/karafka/web/pro/ui/views/explorer/_selector.erb +12 -0
- data/lib/karafka/web/pro/ui/views/explorer/_topic.erb +6 -8
- data/lib/karafka/web/pro/ui/views/explorer/index.erb +13 -15
- data/lib/karafka/web/pro/ui/views/explorer/message/_metadata.erb +68 -32
- data/lib/karafka/web/pro/ui/views/explorer/message/_payload.erb +17 -16
- data/lib/karafka/web/pro/ui/views/explorer/message/_resources_utilization.erb +127 -0
- data/lib/karafka/web/pro/ui/views/explorer/message/_too_big_to_be_displayed.erb +20 -0
- data/lib/karafka/web/pro/ui/views/explorer/messages/_detail.erb +1 -1
- data/lib/karafka/web/pro/ui/views/explorer/partition/_cleaned.erb +3 -5
- data/lib/karafka/web/pro/ui/views/explorer/partition/_empty.erb +3 -5
- data/lib/karafka/web/pro/ui/views/explorer/partition/_messages.erb +6 -3
- data/lib/karafka/web/pro/ui/views/explorer/partition.erb +67 -46
- data/lib/karafka/web/pro/ui/views/explorer/show.erb +85 -21
- data/lib/karafka/web/pro/ui/views/explorer/topic/_actions.erb +27 -0
- data/lib/karafka/web/pro/ui/views/explorer/topic/_empty.erb +3 -5
- data/lib/karafka/web/pro/ui/views/explorer/topic/_limited.erb +8 -10
- data/lib/karafka/web/pro/ui/views/explorer/topic.erb +24 -44
- data/lib/karafka/web/pro/ui/views/health/_breadcrumbs.erb +7 -7
- data/lib/karafka/web/pro/ui/views/health/_no_data.erb +1 -7
- data/lib/karafka/web/pro/ui/views/health/_partition.erb +3 -3
- data/lib/karafka/web/pro/ui/views/health/_partition_lags.erb +3 -3
- data/lib/karafka/web/pro/ui/views/health/_partition_offset.erb +2 -2
- data/lib/karafka/web/pro/ui/views/health/_partition_times.erb +3 -7
- data/lib/karafka/web/pro/ui/views/health/_table_metadata.erb +8 -0
- data/lib/karafka/web/pro/ui/views/health/_tabs.erb +32 -49
- data/lib/karafka/web/pro/ui/views/health/changes.erb +51 -51
- data/lib/karafka/web/pro/ui/views/health/cluster_lags.erb +28 -41
- data/lib/karafka/web/pro/ui/views/health/lags.erb +52 -52
- data/lib/karafka/web/pro/ui/views/health/offsets.erb +55 -55
- data/lib/karafka/web/pro/ui/views/health/overview.erb +60 -60
- data/lib/karafka/web/pro/ui/views/jobs/_job.erb +1 -1
- data/lib/karafka/web/pro/ui/views/jobs/_no_jobs.erb +1 -7
- data/lib/karafka/web/pro/ui/views/jobs/pending.erb +36 -38
- data/lib/karafka/web/pro/ui/views/jobs/running.erb +36 -38
- data/lib/karafka/web/pro/ui/views/routing/_consumer_group.erb +7 -12
- data/lib/karafka/web/pro/ui/views/routing/_topic.erb +13 -11
- data/lib/karafka/web/pro/ui/views/routing/index.erb +7 -9
- data/lib/karafka/web/pro/ui/views/routing/show.erb +41 -33
- data/lib/karafka/web/pro/ui/views/search/_fix_errors.erb +3 -0
- data/lib/karafka/web/pro/ui/views/search/_metadata.erb +71 -0
- data/lib/karafka/web/pro/ui/views/search/_no_results.erb +3 -0
- data/lib/karafka/web/pro/ui/views/search/_no_search_criteria.erb +5 -0
- data/lib/karafka/web/pro/ui/views/search/_search_criteria.erb +37 -0
- data/lib/karafka/web/pro/ui/views/search/_search_modal.erb +139 -0
- data/lib/karafka/web/pro/ui/views/search/_timeout.erb +3 -0
- data/lib/karafka/web/pro/ui/views/search/index.erb +29 -0
- data/lib/karafka/web/pro/ui/views/shared/_navigation.erb +80 -28
- data/lib/karafka/web/pro/ui/views/topics/_breadcrumbs.erb +14 -6
- data/lib/karafka/web/pro/ui/views/topics/_partition_offsets.erb +10 -0
- data/lib/karafka/web/pro/ui/views/topics/_tabs.erb +26 -32
- data/lib/karafka/web/pro/ui/views/topics/_topic.erb +7 -10
- data/lib/karafka/web/pro/ui/views/topics/config.erb +21 -25
- data/lib/karafka/web/pro/ui/views/topics/distribution/_badges.erb +10 -5
- data/lib/karafka/web/pro/ui/views/topics/distribution/_chart.erb +3 -1
- data/lib/karafka/web/pro/ui/views/topics/distribution/_limited.erb +1 -1
- data/lib/karafka/web/pro/ui/views/topics/distribution.erb +34 -39
- data/lib/karafka/web/pro/ui/views/topics/index.erb +13 -15
- data/lib/karafka/web/pro/ui/views/topics/offsets.erb +24 -0
- data/lib/karafka/web/pro/ui/views/topics/replication.erb +20 -24
- data/lib/karafka/web/processing/consumers/aggregators/metrics.rb +1 -1
- data/lib/karafka/web/processing/consumers/aggregators/state.rb +1 -1
- data/lib/karafka/web/processing/consumers/contracts/aggregated_stats.rb +1 -0
- data/lib/karafka/web/tracking/consumers/contracts/report.rb +6 -0
- data/lib/karafka/web/tracking/consumers/listeners/connections.rb +8 -6
- data/lib/karafka/web/tracking/consumers/listeners/processing.rb +2 -0
- data/lib/karafka/web/tracking/consumers/listeners/tags.rb +1 -1
- data/lib/karafka/web/tracking/consumers/reporter.rb +6 -8
- data/lib/karafka/web/tracking/consumers/sampler.rb +16 -5
- data/lib/karafka/web/ui/app.rb +20 -1
- data/lib/karafka/web/ui/base.rb +26 -20
- data/lib/karafka/web/ui/controllers/base_controller.rb +7 -5
- data/lib/karafka/web/ui/controllers/dashboard_controller.rb +8 -0
- data/lib/karafka/web/ui/controllers/requests/params.rb +16 -2
- data/lib/karafka/web/ui/controllers/support_controller.rb +17 -0
- data/lib/karafka/web/ui/controllers/ux_controller.rb +17 -0
- data/lib/karafka/web/ui/helpers/application_helper.rb +75 -42
- data/lib/karafka/web/ui/helpers/paths_helper.rb +24 -0
- data/lib/karafka/web/ui/helpers/tailwind_helper.rb +90 -0
- data/lib/karafka/web/ui/lib/sorter.rb +1 -1
- data/lib/karafka/web/ui/models/metrics/aggregated.rb +1 -0
- data/lib/karafka/web/ui/models/metrics/charts/topics.rb +36 -20
- data/lib/karafka/web/ui/models/status.rb +28 -1
- data/lib/karafka/web/ui/public/images/calendar.svg +3 -0
- data/lib/karafka/web/ui/public/javascripts/application.js +39 -15
- data/lib/karafka/web/ui/public/javascripts/application.min.js +64 -0
- data/lib/karafka/web/ui/public/javascripts/application.min.js.br +0 -0
- data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
- data/lib/karafka/web/ui/public/javascripts/charts/types/line.js +41 -9
- data/lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js +37 -0
- data/lib/karafka/web/ui/public/javascripts/{live_poll.js → components/live_poll.js} +44 -8
- data/lib/karafka/web/ui/public/javascripts/{offset_datetime.js → components/offset_datetime.js} +1 -1
- data/lib/karafka/web/ui/public/javascripts/components/search.js +102 -0
- data/lib/karafka/web/ui/public/javascripts/components/tabs_manager.js +84 -0
- data/lib/karafka/web/ui/public/javascripts/components/theme_manager.js +59 -0
- data/lib/karafka/web/ui/public/javascripts/components/turbo_tracker.js +30 -0
- data/lib/karafka/web/ui/public/javascripts/libs/datepicker.js +2 -2
- data/lib/karafka/web/ui/public/javascripts/libs/turbo.js +6618 -0
- data/lib/karafka/web/ui/public/stylesheets/application.css +16 -113
- data/lib/karafka/web/ui/public/stylesheets/application.min.css +13 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css +8 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.br +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.gz +0 -0
- data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +391 -0
- data/lib/karafka/web/ui/views/cluster/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/ui/views/cluster/_tabs.erb +14 -24
- data/lib/karafka/web/ui/views/cluster/brokers.erb +20 -22
- data/lib/karafka/web/ui/views/cluster/replication.erb +28 -32
- data/lib/karafka/web/ui/views/consumers/_assignments_badges.erb +1 -1
- data/lib/karafka/web/ui/views/consumers/_breadcrumbs.erb +5 -0
- data/lib/karafka/web/ui/views/consumers/_consumer.erb +9 -13
- data/lib/karafka/web/ui/views/consumers/_no_consumers.erb +2 -8
- data/lib/karafka/web/ui/views/consumers/_summary.erb +34 -45
- data/lib/karafka/web/ui/views/consumers/_tabs.erb +35 -0
- data/lib/karafka/web/ui/views/consumers/index.erb +31 -33
- data/lib/karafka/web/ui/views/dashboard/_counters.erb +76 -0
- data/lib/karafka/web/ui/views/dashboard/_feature_pro.erb +6 -2
- data/lib/karafka/web/ui/views/dashboard/_not_enough_data.erb +3 -15
- data/lib/karafka/web/ui/views/dashboard/_ranges_selector.erb +12 -12
- data/lib/karafka/web/ui/views/dashboard/index.erb +78 -52
- data/lib/karafka/web/ui/views/errors/_breadcrumbs.erb +2 -2
- data/lib/karafka/web/ui/views/errors/_detail.erb +1 -3
- data/lib/karafka/web/ui/views/errors/_error.erb +3 -5
- data/lib/karafka/web/ui/views/errors/index.erb +34 -44
- data/lib/karafka/web/ui/views/errors/show.erb +29 -47
- data/lib/karafka/web/ui/views/jobs/_breadcrumbs.erb +3 -3
- data/lib/karafka/web/ui/views/jobs/_job.erb +1 -1
- data/lib/karafka/web/ui/views/jobs/_no_jobs.erb +1 -7
- data/lib/karafka/web/ui/views/jobs/_tabs.erb +14 -24
- data/lib/karafka/web/ui/views/jobs/pending.erb +30 -32
- data/lib/karafka/web/ui/views/jobs/running.erb +30 -32
- data/lib/karafka/web/ui/views/layout.erb +37 -21
- data/lib/karafka/web/ui/views/routing/_breadcrumbs.erb +2 -2
- data/lib/karafka/web/ui/views/routing/_consumer_group.erb +7 -12
- data/lib/karafka/web/ui/views/routing/_topic.erb +3 -5
- data/lib/karafka/web/ui/views/routing/index.erb +7 -9
- data/lib/karafka/web/ui/views/routing/show.erb +30 -22
- data/lib/karafka/web/ui/views/shared/_become_pro.erb +8 -8
- data/lib/karafka/web/ui/views/shared/_brand.erb +2 -2
- data/lib/karafka/web/ui/views/shared/_breadcrumbs.erb +23 -0
- data/lib/karafka/web/ui/views/shared/_content.erb +2 -28
- data/lib/karafka/web/ui/views/shared/_controls.erb +15 -0
- data/lib/karafka/web/ui/views/shared/_flashes.erb +5 -7
- data/lib/karafka/web/ui/views/shared/_header.erb +14 -19
- data/lib/karafka/web/ui/views/shared/_navigation.erb +84 -28
- data/lib/karafka/web/ui/views/shared/_no_paginated_data.erb +5 -9
- data/lib/karafka/web/ui/views/shared/_pagination.erb +11 -11
- data/lib/karafka/web/ui/views/shared/_tab_nav.erb +4 -5
- data/lib/karafka/web/ui/views/shared/_title.erb +5 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_error.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_info.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_primary.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_secondary.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_success.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_box_warning.erb +15 -0
- data/lib/karafka/web/ui/views/shared/alerts/_error.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_info.erb +5 -2
- data/lib/karafka/web/ui/views/shared/alerts/_primary.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_secondary.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_success.erb +4 -0
- data/lib/karafka/web/ui/views/shared/alerts/_warning.erb +4 -0
- data/lib/karafka/web/ui/views/shared/charts/_line.erb +1 -1
- data/lib/karafka/web/ui/views/shared/exceptions/not_allowed.erb +14 -19
- data/lib/karafka/web/ui/views/shared/exceptions/not_found.erb +16 -21
- data/lib/karafka/web/ui/views/shared/exceptions/pro_only.erb +16 -28
- data/lib/karafka/web/ui/views/shared/icons/_arrow_down_on_square.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_down_tray.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_on_squares.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_path_rounded.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrow_uturn_right.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_arrows_right_left.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_blocks.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_book_open.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_bug.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_burger.erb +14 -0
- data/lib/karafka/web/ui/views/shared/icons/_calendar_days.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_chart_bar.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_check_badge.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_check_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_circle_stack.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_cpu.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_document_glass.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_exclamation_triangle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_eye.erb +4 -0
- data/lib/karafka/web/ui/views/shared/icons/_gear.erb +4 -0
- data/lib/karafka/web/ui/views/shared/icons/_github.erb +13 -0
- data/lib/karafka/web/ui/views/shared/icons/_globe.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_heart.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_home.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_info_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_lifebuoy.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_light_bulb.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_list_bullets.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_magnifying_glass.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_moon.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_offices.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_pause.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_pause_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_play_circle.erb +4 -0
- data/lib/karafka/web/ui/views/shared/icons/_question_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_queue_list.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_refresh.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_slack.erb +16 -0
- data/lib/karafka/web/ui/views/shared/icons/_stop.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_sun.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_x_circle.erb +3 -0
- data/lib/karafka/web/ui/views/shared/icons/_x_mark.erb +3 -0
- data/lib/karafka/web/ui/views/status/_breadcrumbs.erb +1 -1
- data/lib/karafka/web/ui/views/status/_failure.erb +2 -13
- data/lib/karafka/web/ui/views/status/_halted.erb +2 -10
- data/lib/karafka/web/ui/views/status/_info.erb +2 -13
- data/lib/karafka/web/ui/views/status/_success.erb +2 -10
- data/lib/karafka/web/ui/views/status/_warning.erb +2 -13
- data/lib/karafka/web/ui/views/status/failures/_connection.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_consumers_reports.erb +3 -3
- data/lib/karafka/web/ui/views/status/failures/_consumers_reports_schema_state.erb +4 -4
- data/lib/karafka/web/ui/views/status/failures/_enabled.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_initial_consumers_metrics.erb +6 -6
- data/lib/karafka/web/ui/views/status/failures/_initial_consumers_state.erb +6 -6
- data/lib/karafka/web/ui/views/status/failures/_live_reporting.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_materializing_lag.erb +11 -0
- data/lib/karafka/web/ui/views/status/failures/_partitions.erb +3 -3
- data/lib/karafka/web/ui/views/status/failures/_state_calculation.erb +2 -2
- data/lib/karafka/web/ui/views/status/failures/_topics.erb +3 -3
- data/lib/karafka/web/ui/views/status/info/_components.erb +14 -41
- data/lib/karafka/web/ui/views/status/show.erb +165 -154
- data/lib/karafka/web/ui/views/status/warnings/_connection.erb +3 -3
- data/lib/karafka/web/ui/views/status/warnings/_pro_subscription.erb +2 -2
- data/lib/karafka/web/ui/views/status/warnings/_replication.erb +2 -2
- data/lib/karafka/web/ui/views/status/warnings/_routing_topics_presence.erb +1 -1
- data/lib/karafka/web/ui/views/support/_breadcrumbs.erb +5 -0
- data/lib/karafka/web/ui/views/support/show.erb +71 -0
- data/lib/karafka/web/ui/views/ux/_alerts.erb +25 -0
- data/lib/karafka/web/ui/views/ux/_badges.erb +21 -0
- data/lib/karafka/web/ui/views/ux/_breadcrumbs.erb +5 -0
- data/lib/karafka/web/ui/views/ux/_buttons.erb +47 -0
- data/lib/karafka/web/ui/views/ux/_card_detail.erb +15 -0
- data/lib/karafka/web/ui/views/ux/_card_metric.erb +123 -0
- data/lib/karafka/web/ui/views/ux/_card_summary.erb +72 -0
- data/lib/karafka/web/ui/views/ux/_card_support.erb +39 -0
- data/lib/karafka/web/ui/views/ux/_code.erb +9 -0
- data/lib/karafka/web/ui/views/ux/_data_table.erb +52 -0
- data/lib/karafka/web/ui/views/ux/_headers.erb +2 -0
- data/lib/karafka/web/ui/views/ux/_icons.erb +9 -0
- data/lib/karafka/web/ui/views/ux/_pagination.erb +32 -0
- data/lib/karafka/web/ui/views/ux/_row_table.erb +52 -0
- data/lib/karafka/web/ui/views/ux/_status_rows.erb +53 -0
- data/lib/karafka/web/ui/views/ux/_tabs.erb +14 -0
- data/lib/karafka/web/ui/views/ux/_text.erb +2 -0
- data/lib/karafka/web/ui/views/ux/_topic_tiles.erb +42 -0
- data/lib/karafka/web/ui/views/ux/show.erb +19 -0
- data/lib/karafka/web/version.rb +1 -1
- data/lib/karafka/web.rb +2 -0
- data/package-lock.json +4158 -0
- data/package.json +15 -0
- data/postcss.config.js +6 -0
- data/tailwind.config.js +16 -0
- data.tar.gz.sig +0 -0
- metadata +172 -47
- metadata.gz.sig +0 -0
- data/lib/karafka/web/management/migrations/0_set_initial_consumers_metrics.rb +0 -36
- data/lib/karafka/web/management/migrations/0_set_initial_consumers_state.rb +0 -43
- data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_metrics.rb +0 -26
- data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_state.rb +0 -23
- data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_metrics.rb +0 -24
- data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_state.rb +0 -20
- data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_metrics.rb +0 -24
- data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_state.rb +0 -20
- data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_metrics.rb +0 -36
- data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_states.rb +0 -32
- data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_metrics.rb +0 -38
- data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_states.rb +0 -22
- data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_metrics.rb +0 -36
- data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_states.rb +0 -21
- data/lib/karafka/web/pro/ui/views/cluster/brokers.erb +0 -27
- data/lib/karafka/web/pro/ui/views/commands/_details.erb +0 -26
- data/lib/karafka/web/pro/ui/views/consumers/_counters.erb +0 -72
- data/lib/karafka/web/pro/ui/views/consumers/consumer/_title.erb +0 -5
- data/lib/karafka/web/pro/ui/views/errors/_title_with_select.erb +0 -31
- data/lib/karafka/web/pro/ui/views/explorer/message/_message_actions.erb +0 -18
- data/lib/karafka/web/pro/ui/views/explorer/message/_payload_actions.erb +0 -19
- data/lib/karafka/web/pro/ui/views/explorer/partition/_details.erb +0 -35
- data/lib/karafka/web/pro/ui/views/explorer/topic/_details.erb +0 -23
- data/lib/karafka/web/pro/ui/views/health/_consumer_group_header.erb +0 -14
- data/lib/karafka/web/ui/controllers/responses/deny.rb +0 -15
- data/lib/karafka/web/ui/helpers/alerts_helper.rb +0 -23
- data/lib/karafka/web/ui/lib/safe_runner.rb +0 -59
- data/lib/karafka/web/ui/models/visibility_filter.rb +0 -49
- data/lib/karafka/web/ui/public/javascripts/libs/bootstrap.min.js +0 -6
- data/lib/karafka/web/ui/public/javascripts/tabs_manager.js +0 -57
- data/lib/karafka/web/ui/public/stylesheets/libs/bootstrap.min.css +0 -6
- data/lib/karafka/web/ui/views/consumers/_counters.erb +0 -62
- data/lib/karafka/web/ui/views/errors/_watermark_offsets.erb +0 -10
- data/lib/karafka/web/ui/views/shared/_feature_pro.erb +0 -4
- data/lib/karafka/web/ui/views/shared/_footer.erb +0 -22
- data/lib/karafka/web/ui/views/shared/_live_poll.erb +0 -7
- /data/lib/karafka/web/management/migrations/{0_base.rb → base.rb} +0 -0
- /data/lib/karafka/web/ui/public/javascripts/{charts.js → components/charts.js} +0 -0
- /data/lib/karafka/web/ui/public/stylesheets/libs/{highlight.min.css → highlight_light.min.css} +0 -0
@@ -0,0 +1,391 @@
|
|
1
|
+
@tailwind base;
|
2
|
+
@tailwind components;
|
3
|
+
@tailwind utilities;
|
4
|
+
|
5
|
+
@layer components {
|
6
|
+
.badge {
|
7
|
+
@apply rounded-md whitespace-nowrap mb-1;
|
8
|
+
}
|
9
|
+
|
10
|
+
.breadcrumbs-wrapper {
|
11
|
+
@apply col-span-12 mb-3;
|
12
|
+
}
|
13
|
+
|
14
|
+
.breadcrumbs {
|
15
|
+
@apply text-sm pt-0;
|
16
|
+
}
|
17
|
+
|
18
|
+
.custom-tab {
|
19
|
+
@apply border-b-2 py-4 px-2 text-sm hover:text-primary md:text-base;
|
20
|
+
}
|
21
|
+
|
22
|
+
.custom-tab.active {
|
23
|
+
@apply text-primary border-primary;
|
24
|
+
}
|
25
|
+
|
26
|
+
.custom-tab:hover {
|
27
|
+
@apply no-underline;
|
28
|
+
}
|
29
|
+
|
30
|
+
.custom-tab.disabled {
|
31
|
+
@apply text-gray-500;
|
32
|
+
}
|
33
|
+
|
34
|
+
.tab-container-wrapper {
|
35
|
+
@apply col-span-12 mb-9;
|
36
|
+
}
|
37
|
+
|
38
|
+
.tab-container {
|
39
|
+
@apply mb-3 flex flex-wrap gap-5 border-b sm:gap-10;
|
40
|
+
}
|
41
|
+
|
42
|
+
.tab-container span {
|
43
|
+
@apply hover:cursor-pointer;
|
44
|
+
}
|
45
|
+
|
46
|
+
.alert {
|
47
|
+
@apply rounded-md;
|
48
|
+
}
|
49
|
+
|
50
|
+
.alert-box {
|
51
|
+
@apply border rounded-md;
|
52
|
+
}
|
53
|
+
|
54
|
+
.alert-box-header {
|
55
|
+
@apply p-4 flex items-center justify-between rounded-t-md;
|
56
|
+
}
|
57
|
+
|
58
|
+
.alert-box-header span {
|
59
|
+
@apply ml-4;
|
60
|
+
}
|
61
|
+
|
62
|
+
.alert-box-header div {
|
63
|
+
@apply flex items-center;
|
64
|
+
}
|
65
|
+
|
66
|
+
.alert-box-content {
|
67
|
+
@apply p-4 rounded-b-lg bg-base-100;
|
68
|
+
}
|
69
|
+
|
70
|
+
.alert-box-warning {
|
71
|
+
@apply border-warning;
|
72
|
+
}
|
73
|
+
|
74
|
+
.alert-box-warning .alert-box-header {
|
75
|
+
@apply bg-warning;
|
76
|
+
}
|
77
|
+
|
78
|
+
.alert-box-success {
|
79
|
+
@apply border-success;
|
80
|
+
}
|
81
|
+
|
82
|
+
.alert-box-success .alert-box-header {
|
83
|
+
@apply bg-success;
|
84
|
+
}
|
85
|
+
|
86
|
+
.alert-box-info {
|
87
|
+
@apply border-info;
|
88
|
+
}
|
89
|
+
|
90
|
+
.alert-box-info .alert-box-header {
|
91
|
+
@apply bg-info;
|
92
|
+
}
|
93
|
+
|
94
|
+
.alert-box-error {
|
95
|
+
@apply border-error;
|
96
|
+
}
|
97
|
+
|
98
|
+
.alert-box-error .alert-box-header {
|
99
|
+
@apply bg-error;
|
100
|
+
}
|
101
|
+
|
102
|
+
.sidebar-nav {
|
103
|
+
@apply flex min-h-screen w-72 flex-col gap-2 overflow-y-auto bg-gray-800 text-white px-6 py-10;
|
104
|
+
}
|
105
|
+
|
106
|
+
.sidebar-nav-item {
|
107
|
+
@apply text-white visited:text-white active:text-white focus:text-white hover:bg-gray-700;
|
108
|
+
}
|
109
|
+
|
110
|
+
.sidebar-nav-item-active {
|
111
|
+
@apply text-primary border-primary;
|
112
|
+
}
|
113
|
+
|
114
|
+
.sidebar-nav-item.disabled {
|
115
|
+
@apply text-gray-500;
|
116
|
+
}
|
117
|
+
|
118
|
+
.data-table {
|
119
|
+
@apply table w-full bg-base-100 border border-gray-300 rounded rounded-md mb-5;
|
120
|
+
}
|
121
|
+
|
122
|
+
.data-table .badge {
|
123
|
+
@apply mt-1 badge-sm;
|
124
|
+
}
|
125
|
+
|
126
|
+
.data-table-wrapper {
|
127
|
+
@apply col-span-12 mb-3 overflow-x-auto;
|
128
|
+
}
|
129
|
+
|
130
|
+
[data-theme="corporate"] .data-table thead {
|
131
|
+
@apply bg-gray-100;
|
132
|
+
}
|
133
|
+
|
134
|
+
.data-table thead th {
|
135
|
+
@apply border border-gray-300 p-2;
|
136
|
+
}
|
137
|
+
|
138
|
+
.data-table thead tr {
|
139
|
+
@apply align-middle;
|
140
|
+
}
|
141
|
+
|
142
|
+
.data-table tbody tr {
|
143
|
+
@apply hover:bg-base-200;
|
144
|
+
}
|
145
|
+
|
146
|
+
[data-theme="corporate"] .data-table tbody tr {
|
147
|
+
@apply even:bg-gray-50;
|
148
|
+
}
|
149
|
+
|
150
|
+
.data-table tbody td {
|
151
|
+
@apply border border-gray-300 p-2;
|
152
|
+
}
|
153
|
+
|
154
|
+
.data-table td:has(.btn) {
|
155
|
+
@apply text-center;
|
156
|
+
}
|
157
|
+
|
158
|
+
.row-table {
|
159
|
+
@apply table w-full bg-base-100 border border-gray-300 rounded-md mb-5;
|
160
|
+
}
|
161
|
+
|
162
|
+
.row-table-wrapper {
|
163
|
+
@apply col-span-12 mb-3 overflow-x-auto;
|
164
|
+
}
|
165
|
+
|
166
|
+
[data-theme="corporate"] .row-table thead {
|
167
|
+
@apply bg-gray-100;
|
168
|
+
}
|
169
|
+
|
170
|
+
.row-table thead th {
|
171
|
+
@apply border border-gray-300 p-2;
|
172
|
+
}
|
173
|
+
|
174
|
+
.row-table thead tr {
|
175
|
+
@apply align-middle;
|
176
|
+
}
|
177
|
+
|
178
|
+
.row-table tbody tr {
|
179
|
+
@apply even:bg-base-200 hover:bg-base-300;
|
180
|
+
}
|
181
|
+
|
182
|
+
.row-table tbody td {
|
183
|
+
@apply border border-y-gray-300 p-2 border-x-gray-100;
|
184
|
+
}
|
185
|
+
|
186
|
+
.row-table tbody td:first-child {
|
187
|
+
@apply border-l-gray-300;
|
188
|
+
}
|
189
|
+
|
190
|
+
.row-table tbody td:last-child {
|
191
|
+
@apply border-r-gray-300;
|
192
|
+
}
|
193
|
+
|
194
|
+
.row-table .badge {
|
195
|
+
@apply mt-1 badge-sm;
|
196
|
+
}
|
197
|
+
|
198
|
+
.row-table td:has(.btn) {
|
199
|
+
@apply text-center;
|
200
|
+
}
|
201
|
+
|
202
|
+
.table_metadata {
|
203
|
+
@apply text-end text-gray-500 mb-3 text-sm;
|
204
|
+
}
|
205
|
+
|
206
|
+
.table_metadata .badge {
|
207
|
+
@apply badge-sm
|
208
|
+
}
|
209
|
+
|
210
|
+
.topic-tiles {
|
211
|
+
@apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4;
|
212
|
+
}
|
213
|
+
|
214
|
+
.topic-tile {
|
215
|
+
@apply bg-base-100 rounded-md border border-gray-300;
|
216
|
+
}
|
217
|
+
|
218
|
+
.topic-tile-body {
|
219
|
+
@apply p-2;
|
220
|
+
}
|
221
|
+
|
222
|
+
.topic-tile-text {
|
223
|
+
@apply mb-0 p-2;
|
224
|
+
}
|
225
|
+
|
226
|
+
.topic-tile-link {
|
227
|
+
@apply text-blue-500 hover:underline;
|
228
|
+
}
|
229
|
+
|
230
|
+
.btn {
|
231
|
+
@apply font-normal;
|
232
|
+
}
|
233
|
+
|
234
|
+
[data-theme="corporate"]
|
235
|
+
.btn-info, .btn-primary, .btn-error, .btn-success,
|
236
|
+
.alert-info, .alert-error, .alert-success,
|
237
|
+
.badge-info, .badge-primary, .badge-error, .badge-success, .badge-secondary,
|
238
|
+
.alert-box-info .alert-box-header, .alert-box-primary .alert-box-header,
|
239
|
+
.alert-box-error .alert-box-header, .alert-box-success .alert-box-header,
|
240
|
+
.alert-box-secondary .alert-box-header,
|
241
|
+
.btn-outline.btn-active.btn-primary, .btn-outline.btn-active.btn-secondary,
|
242
|
+
.btn-outline.btn-active.btn-info, .btn-outline.btn-active.btn-success,
|
243
|
+
.btn-outline.btn-active.btn-error {
|
244
|
+
@apply text-base-100;
|
245
|
+
}
|
246
|
+
|
247
|
+
[data-theme="corporate"]
|
248
|
+
.btn-outline.btn-primary, .btn-outline.btn-secondary, .btn-outline.btn-info,
|
249
|
+
.btn-outline.btn-success, .btn-outline.btn-error {
|
250
|
+
@apply hover:text-base-100;
|
251
|
+
}
|
252
|
+
|
253
|
+
.actions {
|
254
|
+
@apply flex items-center text-end text-gray-700 mb-6;
|
255
|
+
}
|
256
|
+
|
257
|
+
.btn-action {
|
258
|
+
@apply py-1 px-3 rounded-md text-sm hover:bg-gray-200 text-gray-500 hover:cursor-pointer;
|
259
|
+
}
|
260
|
+
|
261
|
+
.btn-action.active {
|
262
|
+
@apply text-base-content;
|
263
|
+
}
|
264
|
+
|
265
|
+
.h2 {
|
266
|
+
@apply text-xl text-left text-base-content mb-4 lg:font-light
|
267
|
+
}
|
268
|
+
|
269
|
+
.h3 {
|
270
|
+
@apply text-lg text-left text-base-content mb-4 lg:font-light
|
271
|
+
}
|
272
|
+
|
273
|
+
.grid-default {
|
274
|
+
@apply grid grid-cols-12 grid-rows-[min-content] gap-y-6 p-4 lg:gap-x-12 lg:p-10;
|
275
|
+
}
|
276
|
+
|
277
|
+
.grid-sub-5 {
|
278
|
+
@apply grid grid-cols-5 grid-rows-[min-content] gap-y-6 p-4 lg:gap-x-10 lg:p-10 lg:pb-0;
|
279
|
+
}
|
280
|
+
|
281
|
+
.text-muted {
|
282
|
+
@apply text-gray-500;
|
283
|
+
}
|
284
|
+
|
285
|
+
table .status-row-quiet td:first-child {
|
286
|
+
@apply border-l border-l-warning;
|
287
|
+
}
|
288
|
+
|
289
|
+
table .status-row-quieting td:first-child {
|
290
|
+
@apply border-l border-l-warning;
|
291
|
+
}
|
292
|
+
|
293
|
+
table .status-row-stopping td:first-child {
|
294
|
+
@apply border-l border-l-error;
|
295
|
+
}
|
296
|
+
|
297
|
+
table .status-row-stopped td:first-child {
|
298
|
+
@apply border-l border-l-error;
|
299
|
+
}
|
300
|
+
|
301
|
+
pre.code {
|
302
|
+
@apply text-sm border border-gray-300;
|
303
|
+
}
|
304
|
+
|
305
|
+
.card-metric {
|
306
|
+
@apply bg-base-100 p-3 border border-gray-300 rounded-md;
|
307
|
+
}
|
308
|
+
|
309
|
+
.card-metric h3 {
|
310
|
+
@apply text-lg mb-2;
|
311
|
+
}
|
312
|
+
|
313
|
+
.card-metric li {
|
314
|
+
@apply flex justify-between text-sm;
|
315
|
+
}
|
316
|
+
|
317
|
+
.card-metric .badge {
|
318
|
+
@apply badge-sm;
|
319
|
+
}
|
320
|
+
|
321
|
+
.card-support {
|
322
|
+
@apply bg-base-100 rounded-lg p-6 border border-gray-300;
|
323
|
+
}
|
324
|
+
|
325
|
+
.card-support h3 {
|
326
|
+
@apply text-2xl mb-4 flex items-center;
|
327
|
+
}
|
328
|
+
|
329
|
+
.card-support h3 span {
|
330
|
+
@apply ml-2;
|
331
|
+
}
|
332
|
+
|
333
|
+
.card-support a {
|
334
|
+
@apply text-blue-500 hover:underline;
|
335
|
+
}
|
336
|
+
|
337
|
+
.card-support p {
|
338
|
+
@apply mb-4;
|
339
|
+
}
|
340
|
+
|
341
|
+
.card-detail-container {
|
342
|
+
@apply grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-4 text-center;
|
343
|
+
}
|
344
|
+
|
345
|
+
.card-detail {
|
346
|
+
@apply card bg-base-100 border border-gray-300 rounded-md;
|
347
|
+
}
|
348
|
+
|
349
|
+
.card-detail-body {
|
350
|
+
@apply card-body flex flex-col items-center justify-center p-3;
|
351
|
+
}
|
352
|
+
|
353
|
+
.card-detail-body badge {
|
354
|
+
@apply mt-1 mb-1;
|
355
|
+
}
|
356
|
+
|
357
|
+
.card-summary-container {
|
358
|
+
@apply flex justify-center;
|
359
|
+
}
|
360
|
+
|
361
|
+
.card-summary {
|
362
|
+
@apply card bg-base-100 border border-gray-300 rounded-md p-1 w-full max-w-xs;
|
363
|
+
}
|
364
|
+
|
365
|
+
.card-summary-body {
|
366
|
+
@apply card-body p-2;
|
367
|
+
}
|
368
|
+
|
369
|
+
.card-summary-value {
|
370
|
+
@apply mb-0 text-lg;
|
371
|
+
}
|
372
|
+
|
373
|
+
.card-summary-title {
|
374
|
+
@apply text-gray-500;
|
375
|
+
}
|
376
|
+
|
377
|
+
.drawer-content a:hover:not(.btn):not(.custom-tab) {
|
378
|
+
@apply link;
|
379
|
+
}
|
380
|
+
|
381
|
+
.drawer-side > .drawer-overlay {
|
382
|
+
transition-duration: 0ms;
|
383
|
+
}
|
384
|
+
.drawer-side > *:not(.drawer-overlay) {
|
385
|
+
transition-duration: 0ms;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
|
389
|
+
[data-theme="corporate"] .bg-base-200 {
|
390
|
+
background: #f5f6fe;
|
391
|
+
}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
<li
|
1
|
+
<li>
|
2
2
|
<a href="<%= root_path('cluster') %>">
|
3
3
|
Cluster informations
|
4
4
|
</a>
|
5
5
|
</li>
|
6
6
|
|
7
7
|
<% if current_path.include?('/brokers') %>
|
8
|
-
<li
|
8
|
+
<li>
|
9
9
|
<a href="<%= root_path('cluster', 'brokers') %>">
|
10
10
|
Brokers
|
11
11
|
</a>
|
@@ -13,7 +13,7 @@
|
|
13
13
|
<% end %>
|
14
14
|
|
15
15
|
<% if current_path.include?('/replication') %>
|
16
|
-
<li
|
16
|
+
<li>
|
17
17
|
<a href="<%= root_path('cluster', 'replication') %>">
|
18
18
|
Replication
|
19
19
|
</a>
|
@@ -1,27 +1,17 @@
|
|
1
|
-
<div class="container">
|
2
|
-
<div class="
|
3
|
-
<
|
1
|
+
<div class="tab-container-wrapper">
|
2
|
+
<div class="tab-container">
|
3
|
+
<a
|
4
|
+
href="<%= root_path('cluster', 'brokers') %>"
|
5
|
+
class="custom-tab <%= nav_class(include: 'brokers') %>"
|
6
|
+
>
|
7
|
+
Brokers
|
8
|
+
</a>
|
4
9
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
Brokers
|
12
|
-
</a>
|
13
|
-
</li>
|
14
|
-
|
15
|
-
<li class="nav-item">
|
16
|
-
<a
|
17
|
-
class="nav-link <%= nav_class(include: 'replication') %>"
|
18
|
-
href="<%= root_path('cluster', 'replication') %>"
|
19
|
-
>
|
20
|
-
Replication
|
21
|
-
</a>
|
22
|
-
</li>
|
23
|
-
</ul>
|
24
|
-
|
25
|
-
</div>
|
10
|
+
<a
|
11
|
+
href="<%= root_path('cluster', 'replication') %>"
|
12
|
+
class="custom-tab <%= nav_class(include: 'replication') %>"
|
13
|
+
>
|
14
|
+
Replication
|
15
|
+
</a>
|
26
16
|
</div>
|
27
17
|
</div>
|
@@ -1,27 +1,25 @@
|
|
1
|
-
|
1
|
+
<% view_title 'Cluster Informations' %>
|
2
2
|
|
3
3
|
<%== partial 'cluster/tabs' %>
|
4
4
|
|
5
|
-
<div class="
|
6
|
-
<div class="
|
7
|
-
<
|
8
|
-
<
|
9
|
-
<
|
10
|
-
<
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
</table>
|
25
|
-
</div>
|
5
|
+
<div class="col-span-12 mb-3">
|
6
|
+
<div class="data-table-wrapper">
|
7
|
+
<table class="data-table">
|
8
|
+
<thead>
|
9
|
+
<tr>
|
10
|
+
<th><%== sort_link(:id) %></th>
|
11
|
+
<th><%== sort_link(:name) %></th>
|
12
|
+
<th><%== sort_link(:port) %></th>
|
13
|
+
</tr>
|
14
|
+
</thead>
|
15
|
+
<tbody>
|
16
|
+
<%==
|
17
|
+
each_partial(
|
18
|
+
@brokers,
|
19
|
+
'cluster/broker'
|
20
|
+
)
|
21
|
+
%>
|
22
|
+
</tbody>
|
23
|
+
</table>
|
26
24
|
</div>
|
27
25
|
</div>
|
@@ -1,37 +1,33 @@
|
|
1
|
-
|
1
|
+
<% view_title 'Cluster Informations' %>
|
2
2
|
|
3
3
|
<%== partial 'cluster/tabs' %>
|
4
4
|
|
5
|
-
<div class="
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<
|
14
|
-
<
|
15
|
-
<
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
</tbody>
|
32
|
-
</table>
|
33
|
-
</div>
|
34
|
-
<% end %>
|
5
|
+
<div class="col-span-12 mb-3">
|
6
|
+
<% if @partitions.empty? && params.current_page <= 1 %>
|
7
|
+
<%== partial 'cluster/no_partitions' %>
|
8
|
+
<% elsif @partitions.empty? %>
|
9
|
+
<%== partial 'shared/no_paginated_data' %>
|
10
|
+
<% else %>
|
11
|
+
<div class="data-table-wraper">
|
12
|
+
<table class="data-table">
|
13
|
+
<thead>
|
14
|
+
<tr>
|
15
|
+
<th><%== sort_link(:topic_name) %></th>
|
16
|
+
<th><%== sort_link(:partition_id) %></th>
|
17
|
+
<th><%== sort_link(:leader) %></th>
|
18
|
+
<th><%== sort_link(:replica_count) %></th>
|
19
|
+
<th><%== sort_link('In sync brokers', :in_sync_replica_brokers) %></th>
|
20
|
+
</tr>
|
21
|
+
</thead>
|
22
|
+
<tbody>
|
23
|
+
<%==
|
24
|
+
each_partial(
|
25
|
+
@partitions,
|
26
|
+
'cluster/partition'
|
27
|
+
)
|
28
|
+
%>
|
29
|
+
</tbody>
|
30
|
+
</table>
|
35
31
|
</div>
|
36
|
-
|
32
|
+
<% end %>
|
37
33
|
</div>
|
@@ -10,7 +10,7 @@
|
|
10
10
|
<% sg_topics.each do |topic_name, partitions| %>
|
11
11
|
<% partitions_list = partitions.join(', ') %>
|
12
12
|
<span
|
13
|
-
class="badge
|
13
|
+
class="badge badge-secondary"
|
14
14
|
title="Consumer group: <%= consumer_group.id %>, partitions: <%= partitions_list%>"
|
15
15
|
>
|
16
16
|
<%= topic_name %>:
|
@@ -1,18 +1,16 @@
|
|
1
1
|
<tr class="status-row-<%= process.status %>">
|
2
2
|
<td>
|
3
|
-
<
|
4
|
-
<%= process.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
<%== truncate(process.id, strategy: :middle) %>
|
9
|
-
</a>
|
3
|
+
<p>
|
4
|
+
<a href="<%= root_path('consumers', process.id, 'subscriptions') %>">
|
5
|
+
<%== truncate(process.id, strategy: :middle) %>
|
6
|
+
</a>
|
7
|
+
</p>
|
10
8
|
|
11
|
-
<p class="mt-
|
9
|
+
<p class="mt-1">
|
12
10
|
<%== partial 'consumers/assignments_badges', locals: { process: process } %>
|
13
11
|
</p>
|
14
12
|
|
15
|
-
<p
|
13
|
+
<p>
|
16
14
|
<%== tags(process.tags) %>
|
17
15
|
</p>
|
18
16
|
</td>
|
@@ -22,13 +20,11 @@
|
|
22
20
|
</td>
|
23
21
|
|
24
22
|
<td>
|
25
|
-
|
26
|
-
<%= format_memory process.memory_usage %>
|
27
|
-
</span>
|
23
|
+
<%== badge_primary_sm format_memory process.memory_usage %>
|
28
24
|
</td>
|
29
25
|
|
30
26
|
<td>
|
31
|
-
<span class="badge
|
27
|
+
<span class="badge badge-primary">
|
32
28
|
<%= process.workers %> /
|
33
29
|
<%= process.busy %>
|
34
30
|
</span>
|
@@ -1,9 +1,3 @@
|
|
1
|
-
|
2
|
-
<p>
|
3
|
-
There are no Karafka consumer processes actively reporting to the Web UI.
|
4
|
-
</p>
|
5
|
-
|
6
|
-
<p class="mb-0">
|
1
|
+
<% alert_box_info 'There are no Karafka consumer processes actively reporting to the Web UI.' do %>
|
7
2
|
If you are sure you are running at least one <code>karafka server</code> instance, please make sure that it can report to the <code><%= Karafka::Web.config.topics.consumers.reports %></code> topic.
|
8
|
-
|
9
|
-
</div>
|
3
|
+
<% end %>
|