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.
Files changed (417) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.github/workflows/ci.yml +30 -0
  4. data/.gitignore +2 -0
  5. data/.ruby-version +1 -1
  6. data/CHANGELOG.md +85 -1
  7. data/Gemfile +1 -0
  8. data/Gemfile.lock +30 -25
  9. data/LICENSE +1 -1
  10. data/bin/build_assets +51 -0
  11. data/bin/release +6 -0
  12. data/config/locales/pro_errors.yml +18 -0
  13. data/docker-compose.yml +1 -1
  14. data/gulpfile.js +73 -0
  15. data/karafka-web.gemspec +2 -2
  16. data/lib/karafka/web/config.rb +9 -10
  17. data/lib/karafka/web/contracts/base.rb +2 -0
  18. data/lib/karafka/web/contracts/config.rb +2 -1
  19. data/lib/karafka/web/errors.rb +12 -0
  20. data/lib/karafka/web/inflector.rb +1 -1
  21. data/lib/karafka/web/management/actions/enable.rb +11 -0
  22. data/lib/karafka/web/management/migrations/consumers_metrics/0_set_initial.rb +39 -0
  23. data/lib/karafka/web/management/migrations/consumers_metrics/1699543515_fill_missing_received_and_sent_bytes.rb +28 -0
  24. data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_introduce_waiting.rb +26 -0
  25. data/lib/karafka/web/management/migrations/consumers_metrics/1700234522_remove_processing.rb +26 -0
  26. data/lib/karafka/web/management/migrations/consumers_metrics/1704722380_split_listeners_into_active_and_paused.rb +38 -0
  27. data/lib/karafka/web/management/migrations/consumers_metrics/1706607960_introduce_lag_total.rb +40 -0
  28. data/lib/karafka/web/management/migrations/consumers_metrics/1706611396_rename_lag_total_to_lag_hybrid.rb +38 -0
  29. data/lib/karafka/web/management/migrations/consumers_metrics/1716218393_populate_jobs_metrics.rb +26 -0
  30. data/lib/karafka/web/management/migrations/consumers_states/0_set_initial.rb +46 -0
  31. data/lib/karafka/web/management/migrations/consumers_states/1699543515_fill_missing_received_and_sent_bytes.rb +25 -0
  32. data/lib/karafka/web/management/migrations/consumers_states/1700234522_introduce_waiting.rb +22 -0
  33. data/lib/karafka/web/management/migrations/consumers_states/1700234522_remove_processing.rb +22 -0
  34. data/lib/karafka/web/management/migrations/consumers_states/1704722380_split_listeners_into_active_and_paused.rb +34 -0
  35. data/lib/karafka/web/management/migrations/consumers_states/1706607960_introduce_lag_total.rb +24 -0
  36. data/lib/karafka/web/management/migrations/consumers_states/1706611396_rename_lag_total_to_lag_hybrid.rb +23 -0
  37. data/lib/karafka/web/management/migrations/consumers_states/1716218393_add_jobs_counter.rb +24 -0
  38. data/lib/karafka/web/management/migrator.rb +5 -5
  39. data/lib/karafka/web/pro/commanding/commands/base.rb +8 -0
  40. data/lib/karafka/web/pro/commanding/commands/quiet.rb +4 -1
  41. data/lib/karafka/web/pro/commanding/commands/stop.rb +4 -1
  42. data/lib/karafka/web/pro/loader.rb +8 -0
  43. data/lib/karafka/web/pro/ui/app.rb +44 -7
  44. data/lib/karafka/web/pro/ui/controllers/dlq_controller.rb +1 -1
  45. data/lib/karafka/web/pro/ui/controllers/errors_controller.rb +1 -0
  46. data/lib/karafka/web/pro/ui/controllers/explorer_controller.rb +6 -14
  47. data/lib/karafka/web/pro/ui/controllers/messages_controller.rb +5 -4
  48. data/lib/karafka/web/pro/ui/controllers/search_controller.rb +73 -0
  49. data/lib/karafka/web/pro/ui/controllers/support_controller.rb +26 -0
  50. data/lib/karafka/web/pro/ui/controllers/topics_controller.rb +31 -0
  51. data/lib/karafka/web/pro/ui/controllers/ux_controller.rb +26 -0
  52. data/lib/karafka/web/pro/ui/lib/policies/config.rb +39 -0
  53. data/lib/karafka/web/pro/ui/lib/policies/contracts/config.rb +46 -0
  54. data/lib/karafka/web/pro/ui/lib/policies/messages.rb +76 -0
  55. data/lib/karafka/web/pro/ui/lib/policies/requests.rb +36 -0
  56. data/lib/karafka/web/pro/ui/lib/policies.rb +34 -0
  57. data/lib/karafka/web/pro/ui/lib/safe_runner.rb +98 -0
  58. data/lib/karafka/web/pro/ui/lib/search/config.rb +53 -0
  59. data/lib/karafka/web/pro/ui/lib/search/contracts/config.rb +101 -0
  60. data/lib/karafka/web/pro/ui/lib/search/contracts/form.rb +111 -0
  61. data/lib/karafka/web/pro/ui/lib/search/matchers/base.rb +59 -0
  62. data/lib/karafka/web/pro/ui/lib/search/matchers/raw_header_includes.rb +57 -0
  63. data/lib/karafka/web/pro/ui/lib/search/matchers/raw_key_includes.rb +41 -0
  64. data/lib/karafka/web/pro/ui/lib/search/matchers/raw_payload_includes.rb +45 -0
  65. data/lib/karafka/web/pro/ui/lib/search/normalizer.rb +47 -0
  66. data/lib/karafka/web/pro/ui/lib/search/runner.rb +230 -0
  67. data/lib/karafka/web/pro/ui/lib/search.rb +36 -0
  68. data/lib/karafka/web/pro/ui/views/cluster/_breadcrumbs.erb +4 -4
  69. data/lib/karafka/web/pro/ui/views/cluster/_tabs.erb +14 -24
  70. data/lib/karafka/web/pro/ui/views/cluster/index.erb +20 -22
  71. data/lib/karafka/web/pro/ui/views/cluster/show.erb +21 -25
  72. data/lib/karafka/web/pro/ui/views/commands/_backtrace.erb +4 -19
  73. data/lib/karafka/web/pro/ui/views/commands/_breadcrumbs.erb +3 -3
  74. data/lib/karafka/web/pro/ui/views/commands/_command.erb +6 -6
  75. data/lib/karafka/web/pro/ui/views/commands/_command_details.erb +1 -11
  76. data/lib/karafka/web/pro/ui/views/commands/_incompatible_schema.erb +3 -14
  77. data/lib/karafka/web/pro/ui/views/commands/_metadata.erb +33 -42
  78. data/lib/karafka/web/pro/ui/views/commands/_table.erb +9 -3
  79. data/lib/karafka/web/pro/ui/views/commands/index.erb +18 -12
  80. data/lib/karafka/web/pro/ui/views/commands/show.erb +24 -29
  81. data/lib/karafka/web/pro/ui/views/consumers/_breadcrumbs.erb +8 -8
  82. data/lib/karafka/web/pro/ui/views/consumers/_consumer.erb +13 -23
  83. data/lib/karafka/web/pro/ui/views/consumers/_consumer_controls.erb +51 -35
  84. data/lib/karafka/web/pro/ui/views/consumers/_consumer_performance.erb +1 -1
  85. data/lib/karafka/web/pro/ui/views/consumers/_tabs.erb +28 -30
  86. data/lib/karafka/web/pro/ui/views/consumers/consumer/_commands.erb +68 -28
  87. data/lib/karafka/web/pro/ui/views/consumers/consumer/_job.erb +1 -1
  88. data/lib/karafka/web/pro/ui/views/consumers/consumer/_metrics.erb +114 -133
  89. data/lib/karafka/web/pro/ui/views/consumers/consumer/_partition.erb +4 -4
  90. data/lib/karafka/web/pro/ui/views/consumers/consumer/_stopped.erb +6 -9
  91. data/lib/karafka/web/pro/ui/views/consumers/consumer/_subscription_group.erb +116 -126
  92. data/lib/karafka/web/pro/ui/views/consumers/consumer/_tabs.erb +26 -31
  93. data/lib/karafka/web/pro/ui/views/consumers/controls.erb +53 -57
  94. data/lib/karafka/web/pro/ui/views/consumers/details.erb +4 -17
  95. data/lib/karafka/web/pro/ui/views/consumers/index.erb +31 -34
  96. data/lib/karafka/web/pro/ui/views/consumers/pending_jobs.erb +41 -46
  97. data/lib/karafka/web/pro/ui/views/consumers/performance.erb +43 -47
  98. data/lib/karafka/web/pro/ui/views/consumers/running_jobs.erb +41 -46
  99. data/lib/karafka/web/pro/ui/views/consumers/subscriptions.erb +14 -17
  100. data/lib/karafka/web/pro/ui/views/dashboard/index.erb +67 -76
  101. data/lib/karafka/web/pro/ui/views/dlq/_breadcrumbs.erb +1 -1
  102. data/lib/karafka/web/pro/ui/views/dlq/_no_topics.erb +1 -7
  103. data/lib/karafka/web/pro/ui/views/dlq/_topic.erb +7 -10
  104. data/lib/karafka/web/pro/ui/views/dlq/index.erb +8 -10
  105. data/lib/karafka/web/pro/ui/views/errors/_breadcrumbs.erb +3 -3
  106. data/lib/karafka/web/pro/ui/views/errors/_error.erb +8 -5
  107. data/lib/karafka/web/pro/ui/views/errors/_selector.erb +12 -0
  108. data/lib/karafka/web/pro/ui/views/errors/_table.erb +5 -4
  109. data/lib/karafka/web/pro/ui/views/errors/index.erb +50 -15
  110. data/lib/karafka/web/pro/ui/views/errors/partition.erb +61 -14
  111. data/lib/karafka/web/pro/ui/views/errors/show.erb +28 -46
  112. data/lib/karafka/web/pro/ui/views/explorer/_breadcrumbs.erb +11 -3
  113. data/lib/karafka/web/pro/ui/views/explorer/_failed_deserialization.erb +8 -3
  114. data/lib/karafka/web/pro/ui/views/explorer/_message.erb +12 -6
  115. data/lib/karafka/web/pro/ui/views/explorer/_no_topics.erb +1 -5
  116. data/lib/karafka/web/pro/ui/views/explorer/_selector.erb +12 -0
  117. data/lib/karafka/web/pro/ui/views/explorer/_topic.erb +6 -8
  118. data/lib/karafka/web/pro/ui/views/explorer/index.erb +13 -15
  119. data/lib/karafka/web/pro/ui/views/explorer/message/_metadata.erb +68 -32
  120. data/lib/karafka/web/pro/ui/views/explorer/message/_payload.erb +17 -16
  121. data/lib/karafka/web/pro/ui/views/explorer/message/_resources_utilization.erb +127 -0
  122. data/lib/karafka/web/pro/ui/views/explorer/message/_too_big_to_be_displayed.erb +20 -0
  123. data/lib/karafka/web/pro/ui/views/explorer/messages/_detail.erb +1 -1
  124. data/lib/karafka/web/pro/ui/views/explorer/partition/_cleaned.erb +3 -5
  125. data/lib/karafka/web/pro/ui/views/explorer/partition/_empty.erb +3 -5
  126. data/lib/karafka/web/pro/ui/views/explorer/partition/_messages.erb +6 -3
  127. data/lib/karafka/web/pro/ui/views/explorer/partition.erb +67 -46
  128. data/lib/karafka/web/pro/ui/views/explorer/show.erb +85 -21
  129. data/lib/karafka/web/pro/ui/views/explorer/topic/_actions.erb +27 -0
  130. data/lib/karafka/web/pro/ui/views/explorer/topic/_empty.erb +3 -5
  131. data/lib/karafka/web/pro/ui/views/explorer/topic/_limited.erb +8 -10
  132. data/lib/karafka/web/pro/ui/views/explorer/topic.erb +24 -44
  133. data/lib/karafka/web/pro/ui/views/health/_breadcrumbs.erb +7 -7
  134. data/lib/karafka/web/pro/ui/views/health/_no_data.erb +1 -7
  135. data/lib/karafka/web/pro/ui/views/health/_partition.erb +3 -3
  136. data/lib/karafka/web/pro/ui/views/health/_partition_lags.erb +3 -3
  137. data/lib/karafka/web/pro/ui/views/health/_partition_offset.erb +2 -2
  138. data/lib/karafka/web/pro/ui/views/health/_partition_times.erb +3 -7
  139. data/lib/karafka/web/pro/ui/views/health/_table_metadata.erb +8 -0
  140. data/lib/karafka/web/pro/ui/views/health/_tabs.erb +32 -49
  141. data/lib/karafka/web/pro/ui/views/health/changes.erb +51 -51
  142. data/lib/karafka/web/pro/ui/views/health/cluster_lags.erb +28 -41
  143. data/lib/karafka/web/pro/ui/views/health/lags.erb +52 -52
  144. data/lib/karafka/web/pro/ui/views/health/offsets.erb +55 -55
  145. data/lib/karafka/web/pro/ui/views/health/overview.erb +60 -60
  146. data/lib/karafka/web/pro/ui/views/jobs/_job.erb +1 -1
  147. data/lib/karafka/web/pro/ui/views/jobs/_no_jobs.erb +1 -7
  148. data/lib/karafka/web/pro/ui/views/jobs/pending.erb +36 -38
  149. data/lib/karafka/web/pro/ui/views/jobs/running.erb +36 -38
  150. data/lib/karafka/web/pro/ui/views/routing/_consumer_group.erb +7 -12
  151. data/lib/karafka/web/pro/ui/views/routing/_topic.erb +13 -11
  152. data/lib/karafka/web/pro/ui/views/routing/index.erb +7 -9
  153. data/lib/karafka/web/pro/ui/views/routing/show.erb +41 -33
  154. data/lib/karafka/web/pro/ui/views/search/_fix_errors.erb +3 -0
  155. data/lib/karafka/web/pro/ui/views/search/_metadata.erb +71 -0
  156. data/lib/karafka/web/pro/ui/views/search/_no_results.erb +3 -0
  157. data/lib/karafka/web/pro/ui/views/search/_no_search_criteria.erb +5 -0
  158. data/lib/karafka/web/pro/ui/views/search/_search_criteria.erb +37 -0
  159. data/lib/karafka/web/pro/ui/views/search/_search_modal.erb +139 -0
  160. data/lib/karafka/web/pro/ui/views/search/_timeout.erb +3 -0
  161. data/lib/karafka/web/pro/ui/views/search/index.erb +29 -0
  162. data/lib/karafka/web/pro/ui/views/shared/_navigation.erb +80 -28
  163. data/lib/karafka/web/pro/ui/views/topics/_breadcrumbs.erb +14 -6
  164. data/lib/karafka/web/pro/ui/views/topics/_partition_offsets.erb +10 -0
  165. data/lib/karafka/web/pro/ui/views/topics/_tabs.erb +26 -32
  166. data/lib/karafka/web/pro/ui/views/topics/_topic.erb +7 -10
  167. data/lib/karafka/web/pro/ui/views/topics/config.erb +21 -25
  168. data/lib/karafka/web/pro/ui/views/topics/distribution/_badges.erb +10 -5
  169. data/lib/karafka/web/pro/ui/views/topics/distribution/_chart.erb +3 -1
  170. data/lib/karafka/web/pro/ui/views/topics/distribution/_limited.erb +1 -1
  171. data/lib/karafka/web/pro/ui/views/topics/distribution.erb +34 -39
  172. data/lib/karafka/web/pro/ui/views/topics/index.erb +13 -15
  173. data/lib/karafka/web/pro/ui/views/topics/offsets.erb +24 -0
  174. data/lib/karafka/web/pro/ui/views/topics/replication.erb +20 -24
  175. data/lib/karafka/web/processing/consumers/aggregators/metrics.rb +1 -1
  176. data/lib/karafka/web/processing/consumers/aggregators/state.rb +1 -1
  177. data/lib/karafka/web/processing/consumers/contracts/aggregated_stats.rb +1 -0
  178. data/lib/karafka/web/tracking/consumers/contracts/report.rb +6 -0
  179. data/lib/karafka/web/tracking/consumers/listeners/connections.rb +8 -6
  180. data/lib/karafka/web/tracking/consumers/listeners/processing.rb +2 -0
  181. data/lib/karafka/web/tracking/consumers/listeners/tags.rb +1 -1
  182. data/lib/karafka/web/tracking/consumers/reporter.rb +6 -8
  183. data/lib/karafka/web/tracking/consumers/sampler.rb +16 -5
  184. data/lib/karafka/web/ui/app.rb +20 -1
  185. data/lib/karafka/web/ui/base.rb +26 -20
  186. data/lib/karafka/web/ui/controllers/base_controller.rb +7 -5
  187. data/lib/karafka/web/ui/controllers/dashboard_controller.rb +8 -0
  188. data/lib/karafka/web/ui/controllers/requests/params.rb +16 -2
  189. data/lib/karafka/web/ui/controllers/support_controller.rb +17 -0
  190. data/lib/karafka/web/ui/controllers/ux_controller.rb +17 -0
  191. data/lib/karafka/web/ui/helpers/application_helper.rb +75 -42
  192. data/lib/karafka/web/ui/helpers/paths_helper.rb +24 -0
  193. data/lib/karafka/web/ui/helpers/tailwind_helper.rb +90 -0
  194. data/lib/karafka/web/ui/lib/sorter.rb +1 -1
  195. data/lib/karafka/web/ui/models/metrics/aggregated.rb +1 -0
  196. data/lib/karafka/web/ui/models/metrics/charts/topics.rb +36 -20
  197. data/lib/karafka/web/ui/models/status.rb +28 -1
  198. data/lib/karafka/web/ui/public/images/calendar.svg +3 -0
  199. data/lib/karafka/web/ui/public/javascripts/application.js +39 -15
  200. data/lib/karafka/web/ui/public/javascripts/application.min.js +64 -0
  201. data/lib/karafka/web/ui/public/javascripts/application.min.js.br +0 -0
  202. data/lib/karafka/web/ui/public/javascripts/application.min.js.gz +0 -0
  203. data/lib/karafka/web/ui/public/javascripts/charts/types/line.js +41 -9
  204. data/lib/karafka/web/ui/public/javascripts/components/btn_toggle_manager.js +37 -0
  205. data/lib/karafka/web/ui/public/javascripts/{live_poll.js → components/live_poll.js} +44 -8
  206. data/lib/karafka/web/ui/public/javascripts/{offset_datetime.js → components/offset_datetime.js} +1 -1
  207. data/lib/karafka/web/ui/public/javascripts/components/search.js +102 -0
  208. data/lib/karafka/web/ui/public/javascripts/components/tabs_manager.js +84 -0
  209. data/lib/karafka/web/ui/public/javascripts/components/theme_manager.js +59 -0
  210. data/lib/karafka/web/ui/public/javascripts/components/turbo_tracker.js +30 -0
  211. data/lib/karafka/web/ui/public/javascripts/libs/datepicker.js +2 -2
  212. data/lib/karafka/web/ui/public/javascripts/libs/turbo.js +6618 -0
  213. data/lib/karafka/web/ui/public/stylesheets/application.css +16 -113
  214. data/lib/karafka/web/ui/public/stylesheets/application.min.css +13 -0
  215. data/lib/karafka/web/ui/public/stylesheets/application.min.css.br +0 -0
  216. data/lib/karafka/web/ui/public/stylesheets/application.min.css.gz +0 -0
  217. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css +8 -0
  218. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.br +0 -0
  219. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_dark.min.css.gz +0 -0
  220. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.br +0 -0
  221. data/lib/karafka/web/ui/public/stylesheets/libs/highlight_light.min.css.gz +0 -0
  222. data/lib/karafka/web/ui/public/stylesheets/libs/tailwind.css +391 -0
  223. data/lib/karafka/web/ui/views/cluster/_breadcrumbs.erb +3 -3
  224. data/lib/karafka/web/ui/views/cluster/_tabs.erb +14 -24
  225. data/lib/karafka/web/ui/views/cluster/brokers.erb +20 -22
  226. data/lib/karafka/web/ui/views/cluster/replication.erb +28 -32
  227. data/lib/karafka/web/ui/views/consumers/_assignments_badges.erb +1 -1
  228. data/lib/karafka/web/ui/views/consumers/_breadcrumbs.erb +5 -0
  229. data/lib/karafka/web/ui/views/consumers/_consumer.erb +9 -13
  230. data/lib/karafka/web/ui/views/consumers/_no_consumers.erb +2 -8
  231. data/lib/karafka/web/ui/views/consumers/_summary.erb +34 -45
  232. data/lib/karafka/web/ui/views/consumers/_tabs.erb +35 -0
  233. data/lib/karafka/web/ui/views/consumers/index.erb +31 -33
  234. data/lib/karafka/web/ui/views/dashboard/_counters.erb +76 -0
  235. data/lib/karafka/web/ui/views/dashboard/_feature_pro.erb +6 -2
  236. data/lib/karafka/web/ui/views/dashboard/_not_enough_data.erb +3 -15
  237. data/lib/karafka/web/ui/views/dashboard/_ranges_selector.erb +12 -12
  238. data/lib/karafka/web/ui/views/dashboard/index.erb +78 -52
  239. data/lib/karafka/web/ui/views/errors/_breadcrumbs.erb +2 -2
  240. data/lib/karafka/web/ui/views/errors/_detail.erb +1 -3
  241. data/lib/karafka/web/ui/views/errors/_error.erb +3 -5
  242. data/lib/karafka/web/ui/views/errors/index.erb +34 -44
  243. data/lib/karafka/web/ui/views/errors/show.erb +29 -47
  244. data/lib/karafka/web/ui/views/jobs/_breadcrumbs.erb +3 -3
  245. data/lib/karafka/web/ui/views/jobs/_job.erb +1 -1
  246. data/lib/karafka/web/ui/views/jobs/_no_jobs.erb +1 -7
  247. data/lib/karafka/web/ui/views/jobs/_tabs.erb +14 -24
  248. data/lib/karafka/web/ui/views/jobs/pending.erb +30 -32
  249. data/lib/karafka/web/ui/views/jobs/running.erb +30 -32
  250. data/lib/karafka/web/ui/views/layout.erb +37 -21
  251. data/lib/karafka/web/ui/views/routing/_breadcrumbs.erb +2 -2
  252. data/lib/karafka/web/ui/views/routing/_consumer_group.erb +7 -12
  253. data/lib/karafka/web/ui/views/routing/_topic.erb +3 -5
  254. data/lib/karafka/web/ui/views/routing/index.erb +7 -9
  255. data/lib/karafka/web/ui/views/routing/show.erb +30 -22
  256. data/lib/karafka/web/ui/views/shared/_become_pro.erb +8 -8
  257. data/lib/karafka/web/ui/views/shared/_brand.erb +2 -2
  258. data/lib/karafka/web/ui/views/shared/_breadcrumbs.erb +23 -0
  259. data/lib/karafka/web/ui/views/shared/_content.erb +2 -28
  260. data/lib/karafka/web/ui/views/shared/_controls.erb +15 -0
  261. data/lib/karafka/web/ui/views/shared/_flashes.erb +5 -7
  262. data/lib/karafka/web/ui/views/shared/_header.erb +14 -19
  263. data/lib/karafka/web/ui/views/shared/_navigation.erb +84 -28
  264. data/lib/karafka/web/ui/views/shared/_no_paginated_data.erb +5 -9
  265. data/lib/karafka/web/ui/views/shared/_pagination.erb +11 -11
  266. data/lib/karafka/web/ui/views/shared/_tab_nav.erb +4 -5
  267. data/lib/karafka/web/ui/views/shared/_title.erb +5 -0
  268. data/lib/karafka/web/ui/views/shared/alerts/_box_error.erb +15 -0
  269. data/lib/karafka/web/ui/views/shared/alerts/_box_info.erb +15 -0
  270. data/lib/karafka/web/ui/views/shared/alerts/_box_primary.erb +15 -0
  271. data/lib/karafka/web/ui/views/shared/alerts/_box_secondary.erb +15 -0
  272. data/lib/karafka/web/ui/views/shared/alerts/_box_success.erb +15 -0
  273. data/lib/karafka/web/ui/views/shared/alerts/_box_warning.erb +15 -0
  274. data/lib/karafka/web/ui/views/shared/alerts/_error.erb +4 -0
  275. data/lib/karafka/web/ui/views/shared/alerts/_info.erb +5 -2
  276. data/lib/karafka/web/ui/views/shared/alerts/_primary.erb +4 -0
  277. data/lib/karafka/web/ui/views/shared/alerts/_secondary.erb +4 -0
  278. data/lib/karafka/web/ui/views/shared/alerts/_success.erb +4 -0
  279. data/lib/karafka/web/ui/views/shared/alerts/_warning.erb +4 -0
  280. data/lib/karafka/web/ui/views/shared/charts/_line.erb +1 -1
  281. data/lib/karafka/web/ui/views/shared/exceptions/not_allowed.erb +14 -19
  282. data/lib/karafka/web/ui/views/shared/exceptions/not_found.erb +16 -21
  283. data/lib/karafka/web/ui/views/shared/exceptions/pro_only.erb +16 -28
  284. data/lib/karafka/web/ui/views/shared/icons/_arrow_down_on_square.erb +3 -0
  285. data/lib/karafka/web/ui/views/shared/icons/_arrow_down_tray.erb +3 -0
  286. data/lib/karafka/web/ui/views/shared/icons/_arrow_on_squares.erb +3 -0
  287. data/lib/karafka/web/ui/views/shared/icons/_arrow_path_rounded.erb +3 -0
  288. data/lib/karafka/web/ui/views/shared/icons/_arrow_uturn_right.erb +3 -0
  289. data/lib/karafka/web/ui/views/shared/icons/_arrows_right_left.erb +3 -0
  290. data/lib/karafka/web/ui/views/shared/icons/_blocks.erb +3 -0
  291. data/lib/karafka/web/ui/views/shared/icons/_book_open.erb +3 -0
  292. data/lib/karafka/web/ui/views/shared/icons/_bug.erb +3 -0
  293. data/lib/karafka/web/ui/views/shared/icons/_burger.erb +14 -0
  294. data/lib/karafka/web/ui/views/shared/icons/_calendar_days.erb +3 -0
  295. data/lib/karafka/web/ui/views/shared/icons/_chart_bar.erb +3 -0
  296. data/lib/karafka/web/ui/views/shared/icons/_check_badge.erb +3 -0
  297. data/lib/karafka/web/ui/views/shared/icons/_check_circle.erb +3 -0
  298. data/lib/karafka/web/ui/views/shared/icons/_circle_stack.erb +3 -0
  299. data/lib/karafka/web/ui/views/shared/icons/_cpu.erb +3 -0
  300. data/lib/karafka/web/ui/views/shared/icons/_document_glass.erb +3 -0
  301. data/lib/karafka/web/ui/views/shared/icons/_exclamation_triangle.erb +3 -0
  302. data/lib/karafka/web/ui/views/shared/icons/_eye.erb +4 -0
  303. data/lib/karafka/web/ui/views/shared/icons/_gear.erb +4 -0
  304. data/lib/karafka/web/ui/views/shared/icons/_github.erb +13 -0
  305. data/lib/karafka/web/ui/views/shared/icons/_globe.erb +3 -0
  306. data/lib/karafka/web/ui/views/shared/icons/_heart.erb +3 -0
  307. data/lib/karafka/web/ui/views/shared/icons/_home.erb +3 -0
  308. data/lib/karafka/web/ui/views/shared/icons/_info_circle.erb +3 -0
  309. data/lib/karafka/web/ui/views/shared/icons/_lifebuoy.erb +3 -0
  310. data/lib/karafka/web/ui/views/shared/icons/_light_bulb.erb +3 -0
  311. data/lib/karafka/web/ui/views/shared/icons/_list_bullets.erb +3 -0
  312. data/lib/karafka/web/ui/views/shared/icons/_magnifying_glass.erb +3 -0
  313. data/lib/karafka/web/ui/views/shared/icons/_moon.erb +3 -0
  314. data/lib/karafka/web/ui/views/shared/icons/_offices.erb +3 -0
  315. data/lib/karafka/web/ui/views/shared/icons/_pause.erb +3 -0
  316. data/lib/karafka/web/ui/views/shared/icons/_pause_circle.erb +3 -0
  317. data/lib/karafka/web/ui/views/shared/icons/_play_circle.erb +4 -0
  318. data/lib/karafka/web/ui/views/shared/icons/_question_circle.erb +3 -0
  319. data/lib/karafka/web/ui/views/shared/icons/_queue_list.erb +3 -0
  320. data/lib/karafka/web/ui/views/shared/icons/_refresh.erb +3 -0
  321. data/lib/karafka/web/ui/views/shared/icons/_slack.erb +16 -0
  322. data/lib/karafka/web/ui/views/shared/icons/_stop.erb +3 -0
  323. data/lib/karafka/web/ui/views/shared/icons/_sun.erb +3 -0
  324. data/lib/karafka/web/ui/views/shared/icons/_x_circle.erb +3 -0
  325. data/lib/karafka/web/ui/views/shared/icons/_x_mark.erb +3 -0
  326. data/lib/karafka/web/ui/views/status/_breadcrumbs.erb +1 -1
  327. data/lib/karafka/web/ui/views/status/_failure.erb +2 -13
  328. data/lib/karafka/web/ui/views/status/_halted.erb +2 -10
  329. data/lib/karafka/web/ui/views/status/_info.erb +2 -13
  330. data/lib/karafka/web/ui/views/status/_success.erb +2 -10
  331. data/lib/karafka/web/ui/views/status/_warning.erb +2 -13
  332. data/lib/karafka/web/ui/views/status/failures/_connection.erb +2 -2
  333. data/lib/karafka/web/ui/views/status/failures/_consumers_reports.erb +3 -3
  334. data/lib/karafka/web/ui/views/status/failures/_consumers_reports_schema_state.erb +4 -4
  335. data/lib/karafka/web/ui/views/status/failures/_enabled.erb +2 -2
  336. data/lib/karafka/web/ui/views/status/failures/_initial_consumers_metrics.erb +6 -6
  337. data/lib/karafka/web/ui/views/status/failures/_initial_consumers_state.erb +6 -6
  338. data/lib/karafka/web/ui/views/status/failures/_live_reporting.erb +2 -2
  339. data/lib/karafka/web/ui/views/status/failures/_materializing_lag.erb +11 -0
  340. data/lib/karafka/web/ui/views/status/failures/_partitions.erb +3 -3
  341. data/lib/karafka/web/ui/views/status/failures/_state_calculation.erb +2 -2
  342. data/lib/karafka/web/ui/views/status/failures/_topics.erb +3 -3
  343. data/lib/karafka/web/ui/views/status/info/_components.erb +14 -41
  344. data/lib/karafka/web/ui/views/status/show.erb +165 -154
  345. data/lib/karafka/web/ui/views/status/warnings/_connection.erb +3 -3
  346. data/lib/karafka/web/ui/views/status/warnings/_pro_subscription.erb +2 -2
  347. data/lib/karafka/web/ui/views/status/warnings/_replication.erb +2 -2
  348. data/lib/karafka/web/ui/views/status/warnings/_routing_topics_presence.erb +1 -1
  349. data/lib/karafka/web/ui/views/support/_breadcrumbs.erb +5 -0
  350. data/lib/karafka/web/ui/views/support/show.erb +71 -0
  351. data/lib/karafka/web/ui/views/ux/_alerts.erb +25 -0
  352. data/lib/karafka/web/ui/views/ux/_badges.erb +21 -0
  353. data/lib/karafka/web/ui/views/ux/_breadcrumbs.erb +5 -0
  354. data/lib/karafka/web/ui/views/ux/_buttons.erb +47 -0
  355. data/lib/karafka/web/ui/views/ux/_card_detail.erb +15 -0
  356. data/lib/karafka/web/ui/views/ux/_card_metric.erb +123 -0
  357. data/lib/karafka/web/ui/views/ux/_card_summary.erb +72 -0
  358. data/lib/karafka/web/ui/views/ux/_card_support.erb +39 -0
  359. data/lib/karafka/web/ui/views/ux/_code.erb +9 -0
  360. data/lib/karafka/web/ui/views/ux/_data_table.erb +52 -0
  361. data/lib/karafka/web/ui/views/ux/_headers.erb +2 -0
  362. data/lib/karafka/web/ui/views/ux/_icons.erb +9 -0
  363. data/lib/karafka/web/ui/views/ux/_pagination.erb +32 -0
  364. data/lib/karafka/web/ui/views/ux/_row_table.erb +52 -0
  365. data/lib/karafka/web/ui/views/ux/_status_rows.erb +53 -0
  366. data/lib/karafka/web/ui/views/ux/_tabs.erb +14 -0
  367. data/lib/karafka/web/ui/views/ux/_text.erb +2 -0
  368. data/lib/karafka/web/ui/views/ux/_topic_tiles.erb +42 -0
  369. data/lib/karafka/web/ui/views/ux/show.erb +19 -0
  370. data/lib/karafka/web/version.rb +1 -1
  371. data/lib/karafka/web.rb +2 -0
  372. data/package-lock.json +4158 -0
  373. data/package.json +15 -0
  374. data/postcss.config.js +6 -0
  375. data/tailwind.config.js +16 -0
  376. data.tar.gz.sig +0 -0
  377. metadata +172 -47
  378. metadata.gz.sig +0 -0
  379. data/lib/karafka/web/management/migrations/0_set_initial_consumers_metrics.rb +0 -36
  380. data/lib/karafka/web/management/migrations/0_set_initial_consumers_state.rb +0 -43
  381. data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_metrics.rb +0 -26
  382. data/lib/karafka/web/management/migrations/1699543515_fill_missing_received_and_sent_bytes_in_consumers_state.rb +0 -23
  383. data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_metrics.rb +0 -24
  384. data/lib/karafka/web/management/migrations/1700234522_introduce_waiting_in_consumers_state.rb +0 -20
  385. data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_metrics.rb +0 -24
  386. data/lib/karafka/web/management/migrations/1700234522_remove_processing_from_consumers_state.rb +0 -20
  387. data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_metrics.rb +0 -36
  388. data/lib/karafka/web/management/migrations/1704722380_split_listeners_into_active_and_paused_in_states.rb +0 -32
  389. data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_metrics.rb +0 -38
  390. data/lib/karafka/web/management/migrations/1706607960_introduce_lag_total_in_states.rb +0 -22
  391. data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_metrics.rb +0 -36
  392. data/lib/karafka/web/management/migrations/1706611396_rename_lag_total_to_lag_hybrid_in_states.rb +0 -21
  393. data/lib/karafka/web/pro/ui/views/cluster/brokers.erb +0 -27
  394. data/lib/karafka/web/pro/ui/views/commands/_details.erb +0 -26
  395. data/lib/karafka/web/pro/ui/views/consumers/_counters.erb +0 -72
  396. data/lib/karafka/web/pro/ui/views/consumers/consumer/_title.erb +0 -5
  397. data/lib/karafka/web/pro/ui/views/errors/_title_with_select.erb +0 -31
  398. data/lib/karafka/web/pro/ui/views/explorer/message/_message_actions.erb +0 -18
  399. data/lib/karafka/web/pro/ui/views/explorer/message/_payload_actions.erb +0 -19
  400. data/lib/karafka/web/pro/ui/views/explorer/partition/_details.erb +0 -35
  401. data/lib/karafka/web/pro/ui/views/explorer/topic/_details.erb +0 -23
  402. data/lib/karafka/web/pro/ui/views/health/_consumer_group_header.erb +0 -14
  403. data/lib/karafka/web/ui/controllers/responses/deny.rb +0 -15
  404. data/lib/karafka/web/ui/helpers/alerts_helper.rb +0 -23
  405. data/lib/karafka/web/ui/lib/safe_runner.rb +0 -59
  406. data/lib/karafka/web/ui/models/visibility_filter.rb +0 -49
  407. data/lib/karafka/web/ui/public/javascripts/libs/bootstrap.min.js +0 -6
  408. data/lib/karafka/web/ui/public/javascripts/tabs_manager.js +0 -57
  409. data/lib/karafka/web/ui/public/stylesheets/libs/bootstrap.min.css +0 -6
  410. data/lib/karafka/web/ui/views/consumers/_counters.erb +0 -62
  411. data/lib/karafka/web/ui/views/errors/_watermark_offsets.erb +0 -10
  412. data/lib/karafka/web/ui/views/shared/_feature_pro.erb +0 -4
  413. data/lib/karafka/web/ui/views/shared/_footer.erb +0 -22
  414. data/lib/karafka/web/ui/views/shared/_live_poll.erb +0 -7
  415. /data/lib/karafka/web/management/migrations/{0_base.rb → base.rb} +0 -0
  416. /data/lib/karafka/web/ui/public/javascripts/{charts.js → components/charts.js} +0 -0
  417. /data/lib/karafka/web/ui/public/stylesheets/libs/{highlight.min.css → highlight_light.min.css} +0 -0
@@ -1,31 +1,5 @@
1
- <div id="content">
2
- <div class="mb-4">
3
- <% if @breadcrumbs != false %>
4
- <div class="container mb-5">
5
- <nav aria-label="breadcrumb">
6
- <ol class="breadcrumb">
7
- <li class="breadcrumb-item">
8
- <a href="<%= root_path %>">
9
- Home
10
- </a>
11
- </li>
12
-
13
- <%== render_breadcrumbs %>
14
-
15
- <% if @current_page && @current_page > 1 %>
16
- <li class="breadcrumb-item">
17
- <a href="<%= current_path(page: @current_page) %>">
18
- Page <%= @current_page %>
19
- </a>
20
- </li>
21
- <% end %>
22
- </ol>
23
- </nav>
24
- </div>
25
- <% end %>
26
-
27
- <%== content %>
28
- </div>
1
+ <div id="content" class="col-span-12 mb-3">
2
+ <%== content %>
29
3
 
30
4
  <%== partial 'shared/pagination' %>
31
5
  </div>
@@ -0,0 +1,15 @@
1
+ <div>
2
+ <button class="py-1 px-3 rounded-md text-sm hover:bg-gray-200 active" title="Toggle theme" id="theme-selector">
3
+ <span id="theme-selector-light" class="hidden">
4
+ <%== icon(:sun) %>
5
+ </span>
6
+
7
+ <span id="theme-selector-dark" class="hidden">
8
+ <%== icon(:moon) %>
9
+ </span>
10
+ </button>
11
+
12
+ <button class="py-1 px-3 rounded-md text-sm hover:bg-gray-200" title="Toggle live poll" id="live-poll">
13
+ <%== icon(:refresh) %>
14
+ </button>
15
+ </div>
@@ -1,9 +1,7 @@
1
1
  <% flash.each do |name, message| %>
2
- <div class="mb-4">
3
- <div class="container">
4
- <p class="alert alert-<%= name %>">
5
- <%= message %>
6
- </p>
7
- </div>
8
- </div>
2
+ <div class="col-span-12">
3
+ <p class="alert alert-<%= name %>">
4
+ <%= message %>
5
+ </p>
6
+ </div>
9
7
  <% end %>
@@ -3,30 +3,25 @@
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1">
4
4
  <meta name="description" content="Karafka application dashboard">
5
5
  <meta name="author" content="Maciej Mensfeld">
6
+ <meta name="turbo-cache-control" content="no-cache">
7
+ <meta name="turbo-prefetch" content="false">
6
8
 
7
9
  <title>Karafka Web UI</title>
8
10
 
9
- <link href="<%= asset_path('stylesheets/libs/bootstrap.min.css') %>" rel="stylesheet">
10
- <link href="<%= asset_path('stylesheets/libs/highlight.min.css') %>" rel="stylesheet">
11
- <link href="<%= asset_path('stylesheets/libs/datepicker.min.css') %>" rel="stylesheet">
11
+ <link
12
+ rel="stylesheet"
13
+ href="<%= asset_path('stylesheets/libs/highlight_light.min.css') %>"
14
+ id="highlight-light"
15
+ />
12
16
 
13
- <link href="<%= asset_path('stylesheets/application.css') %>" rel="stylesheet">
17
+ <link
18
+ rel="stylesheet"
19
+ href="<%= asset_path('stylesheets/libs/highlight_dark.min.css') %>"
20
+ id="highlight-dark"
21
+ />
14
22
 
15
- <script type="text/javascript" src="<%= asset_path('javascripts/libs/chart.min.js') %>"></script>
16
- <script type="text/javascript" src="<%= asset_path('javascripts/libs/timeago.min.js') %>"></script>
17
- <script type="text/javascript" src="<%= asset_path('javascripts/libs/bootstrap.min.js') %>"></script>
18
- <script type="text/javascript" src="<%= asset_path('javascripts/libs/highlight.min.js') %>"></script>
19
- <script type="text/javascript" src="<%= asset_path('javascripts/libs/datepicker.js') %>"></script>
20
-
21
- <script type="text/javascript" src="<%= asset_path('javascripts/live_poll.js') %>"></script>
22
- <script type="text/javascript" src="<%= asset_path('javascripts/tabs_manager.js') %>"></script>
23
- <script type="text/javascript" src="<%= asset_path('javascripts/charts/dataset_state_manager.js') %>"></script>
24
- <script type="text/javascript" src="<%= asset_path('javascripts/charts/data_formatting_utility.js') %>"></script>
25
- <script type="text/javascript" src="<%= asset_path('javascripts/charts/types/line.js') %>"></script>
26
- <script type="text/javascript" src="<%= asset_path('javascripts/charts/types/bar.js') %>"></script>
27
- <script type="text/javascript" src="<%= asset_path('javascripts/charts.js') %>"></script>
28
- <script type="text/javascript" src="<%= asset_path('javascripts/offset_datetime.js') %>"></script>
29
- <script type="text/javascript" src="<%= asset_path('javascripts/application.js') %>"></script>
23
+ <link href="<%= asset_path('stylesheets/application.min.css') %>" rel="stylesheet">
24
+ <script type="text/javascript" src="<%= asset_path('javascripts/application.min.js') %>"></script>
30
25
 
31
26
  <link rel="icon" href="<%= asset_path('images/favicon.ico') %>">
32
27
  </head>
@@ -1,73 +1,129 @@
1
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
2
- <span class="navbar-toggler-icon"></span>
3
- </button>
1
+ <nav class="sidebar-nav">
2
+ <%== partial 'shared/brand' %>
4
3
 
5
- <div class="collapse navbar-collapse" id="navbarNav">
6
- <ul class="navbar-nav">
7
- <li class="nav-item ms-3">
8
- <a class="nav-link <%= nav_class(start_with: '/dashboard') %>" href="<%= root_path('dashboard') %>">
4
+ <ul class="menu">
5
+ <li>
6
+ <a
7
+ class="sidebar-nav-item <%= nav_class(start_with: '/dashboard') %>"
8
+ href="<%= root_path('dashboard') %>"
9
+ >
10
+ <%== icon(:home) %>
9
11
  Dashboard
10
12
  </a>
11
13
  </li>
12
14
 
13
- <li class="nav-item ms-3">
14
- <a class="nav-link <%= nav_class(start_with: '/consumers') %>" href="<%= root_path('consumers') %>">
15
+ <li>
16
+ <a
17
+ class="sidebar-nav-item <%= nav_class(match: /\A\/(consumers|commands)/) %>"
18
+ href="<%= root_path('consumers') %>"
19
+ >
20
+ <%== icon(:cpu) %>
15
21
  Consumers
16
22
  </a>
17
23
  </li>
18
24
 
19
- <li class="nav-item ms-3">
20
- <a class="nav-link <%= nav_class(start_with: '/jobs') %>" href="<%= root_path('jobs/running') %>">
25
+ <li>
26
+ <a
27
+ class="sidebar-nav-item <%= nav_class(start_with: '/jobs') %>"
28
+ href="<%= root_path('jobs/running') %>"
29
+ >
30
+ <%== icon(:arrow_on_squares) %>
21
31
  Jobs
22
32
  </a>
23
33
  </li>
24
34
 
25
- <li class="nav-item ms-3">
26
- <a class="nav-link text-muted" href="<%= root_path('health') %>" title="Pro feature">
35
+ <li>
36
+ <a
37
+ class="sidebar-nav-item disabled"
38
+ href="<%= root_path('health/overview') %>"
39
+ title="Pro Feature"
40
+ >
41
+ <%== icon(:heart) %>
27
42
  Health
28
43
  </a>
29
44
  </li>
30
45
 
31
- <li class="nav-item ms-3">
32
- <a class="nav-link <%= nav_class(start_with: '/routing') %>" href="<%= root_path('routing') %>">
46
+ <li>
47
+ <a
48
+ class="sidebar-nav-item <%= nav_class(start_with: '/routing') %>"
49
+ href="<%= root_path('routing') %>"
50
+ >
51
+ <%== icon(:queue_list) %>
33
52
  Routing
34
53
  </a>
35
54
  </li>
36
55
 
37
- <li class="nav-item ms-3">
38
- <a class="nav-link text-muted" href="<%= root_path('explorer') %>" title="Pro feature">
56
+ <li>
57
+ <a
58
+ class="sidebar-nav-item disabled <%= nav_class(start_with: '/explorer') %>"
59
+ href="<%= root_path('explorer') %>"
60
+ title="Pro Feature"
61
+ >
62
+ <%== icon(:document_glass) %>
39
63
  Explorer
40
64
  </a>
41
65
  </li>
42
66
 
43
- <li class="nav-item ms-3">
44
- <a class="nav-link <%= nav_class(start_with: '/errors') %>" href="<%= root_path('errors') %>">
67
+ <li>
68
+ <a
69
+ class="sidebar-nav-item <%= nav_class(start_with: '/errors') %>"
70
+ href="<%= root_path('errors') %>"
71
+ >
72
+ <%== icon(:bug) %>
45
73
  Errors
46
74
  </a>
47
75
  </li>
48
76
 
49
- <li class="nav-item ms-3">
50
- <a class="nav-link text-muted" href="<%= root_path('dlq') %>" title="Pro feature">
77
+ <li>
78
+ <a
79
+ class="sidebar-nav-item disabled <%= nav_class(start_with: '/dlq') %>"
80
+ href="<%= root_path('dlq') %>"
81
+ title="Pro Feature"
82
+ >
83
+ <%== icon(:x_circle) %>
51
84
  Dead
52
85
  </a>
53
86
  </li>
54
87
 
55
- <li class="nav-item ms-3">
56
- <a class="nav-link <%= nav_class(start_with: '/cluster') %>" href="<%= root_path('cluster') %>">
88
+ <li>
89
+ <a
90
+ class="sidebar-nav-item <%= nav_class(start_with: '/cluster') %>"
91
+ href="<%= root_path('cluster') %>"
92
+ >
93
+ <%== icon(:blocks) %>
57
94
  Cluster
58
95
  </a>
59
96
  </li>
60
97
 
61
- <li class="nav-item ms-3">
62
- <a class="nav-link text-muted" href="<%= root_path('topics') %>" title="Pro feature">
98
+ <li>
99
+ <a
100
+ class="sidebar-nav-item disabled <%= nav_class(start_with: '/topics') %>"
101
+ href="<%= root_path('topics') %>"
102
+ title="Pro Feature"
103
+ >
104
+ <%== icon(:list_bullets) %>
63
105
  Topics
64
106
  </a>
65
107
  </li>
66
108
 
67
- <li class="nav-item ms-3">
68
- <a class="nav-link <%= nav_class(start_with: '/status') %>" href="<%= root_path('status') %>">
109
+ <li>
110
+ <a
111
+ class="sidebar-nav-item <%= nav_class(start_with: '/status') %>"
112
+ href="<%= root_path('status') %>"
113
+ >
114
+ <%== icon(:check_badge) %>
69
115
  Status
70
116
  </a>
71
117
  </li>
118
+
119
+ <li>
120
+ <a
121
+ class="sidebar-nav-item <%= nav_class(start_with: '/support') %>"
122
+ href="<%= root_path('support') %>"
123
+ >
124
+ <%== icon(:lifebuoy) %>
125
+ Support
126
+ </a>
127
+ </li>
72
128
  </ul>
73
- </div>
129
+ </nav>
@@ -1,9 +1,5 @@
1
- <div class="alert alert-info" role="alert">
2
- <p>
3
- This page does not contain any data.
4
- </p>
5
-
6
- <p class="mb-0">
7
- Try going to the previous or the first page to get meaningful results.
8
- </p>
9
- </div>
1
+ <%==
2
+ alert_info(
3
+ ' This page does not contain any data. Try going to the previous or the first page to get meaningful results.'
4
+ )
5
+ %>
@@ -1,23 +1,23 @@
1
1
  <% if @pagination && @pagination.paginate? %>
2
- <div id="pagination" class="container mb-4">
2
+ <div id="pagination" class="col-span-12 my-3 mb-10 mt-0">
3
3
  <div class="row">
4
- <nav>
5
- <ul class="pagination justify-content-center">
6
- <li class="page-item <%= 'disabled' unless @pagination.first_offset? %>">
7
- <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.first_offset || 1) %>">
4
+ <nav class="flex justify-center">
5
+ <ul class="pagination flex space-x-1">
6
+ <li class="<%= 'disabled' unless @pagination.first_offset? %>">
7
+ <a class="btn font-normal <%= 'btn-disabled' unless @pagination.first_offset? %>" href="<%= current_path(@pagination.offset_key => @pagination.first_offset || 1) %>">
8
8
  <span>&laquo;</span>
9
9
  </a>
10
10
  </li>
11
11
 
12
- <li class="page-item <%= 'disabled' unless @pagination.previous_offset? %>">
13
- <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.previous_offset) %>">
12
+ <li class="<%= 'disabled' unless @pagination.previous_offset? %>">
13
+ <a class="btn font-normal <%= 'btn-disabled' unless @pagination.previous_offset? %>" href="<%= current_path(@pagination.offset_key => @pagination.previous_offset) %>">
14
14
  <span>&lsaquo; Prev</span>
15
15
  </a>
16
16
  </li>
17
17
 
18
18
  <% if @pagination.current_offset? %>
19
- <li class="page-item active disabled">
20
- <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.current_offset) %>">
19
+ <li class="active">
20
+ <a class="btn btn-active font-normal" href="<%= current_path(@pagination.offset_key => @pagination.current_offset) %>">
21
21
  <span>
22
22
  <%= @pagination.current_label %>
23
23
  </span>
@@ -25,8 +25,8 @@
25
25
  </li>
26
26
  <% end %>
27
27
 
28
- <li class="page-item <%= 'disabled' unless @pagination.next_offset? %>">
29
- <a class="page-link" href="<%= current_path(@pagination.offset_key => @pagination.next_offset) %>">
28
+ <li class="<%= 'disabled' unless @pagination.next_offset? %>">
29
+ <a class="btn font-bold font-normal <%= 'btn-disabled' unless @pagination.next_offset? %>" href="<%= current_path(@pagination.offset_key => @pagination.next_offset) %>">
30
30
  <span>Next &rsaquo;</span>
31
31
  </a>
32
32
  </li>
@@ -1,7 +1,6 @@
1
1
  <% active ||= false %>
2
+ <% disabled ||= false %>
2
3
 
3
- <li class="nav-item" role="presentation">
4
- <button class="nav-link <%= 'active' if active %>" id="<%= id %>-tab" data-bs-toggle="tab" data-bs-target="#<%= id %>" type="button" role="tab">
5
- <%= title %>
6
- </button>
7
- </li>
4
+ <span class="custom-tab <%= 'active' if active %> <%= 'disabled' if disabled %>" id="<%= id %>-tab" data-target="<%= id %>">
5
+ <%= title %>
6
+ </span>
@@ -0,0 +1,5 @@
1
+ <div class="grow">
2
+ <h1 class="lg:text-2xl lg:font-light">
3
+ <%= content_for :title %>
4
+ </h1>
5
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="alert-box alert-box-error">
2
+ <div class="alert-box-header">
3
+ <div>
4
+ <%== icon(:x_circle) %>
5
+
6
+ <span>
7
+ <%= title %>
8
+ </span>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="alert-box-content">
13
+ <%== description %>
14
+ </div>
15
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="alert-box alert-box-info">
2
+ <div class="alert-box-header">
3
+ <div>
4
+ <%== icon(:info_circle) %>
5
+
6
+ <span>
7
+ <%= title %>
8
+ </span>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="alert-box-content">
13
+ <%== description %>
14
+ </div>
15
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="alert-box alert-box-primary">
2
+ <div class="alert-box-header">
3
+ <div>
4
+ <%== icon(:check_circle) %>
5
+
6
+ <span>
7
+ <%= title %>
8
+ </span>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="alert-box-content">
13
+ <%== description %>
14
+ </div>
15
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="alert-box alert-box-secondary">
2
+ <div class="alert-box-header">
3
+ <div>
4
+ <%== icon(:check_circle) %>
5
+
6
+ <span>
7
+ <%= title %>
8
+ </span>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="alert-box-content">
13
+ <%== description %>
14
+ </div>
15
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="alert-box alert-box-success">
2
+ <div class="alert-box-header">
3
+ <div>
4
+ <%== icon(:check_circle) %>
5
+
6
+ <span>
7
+ <%= title %>
8
+ </span>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="alert-box-content">
13
+ <%== description %>
14
+ </div>
15
+ </div>
@@ -0,0 +1,15 @@
1
+ <div class="alert-box alert-box-warning">
2
+ <div class="alert-box-header">
3
+ <div>
4
+ <%== icon(:exclamation_triangle) %>
5
+
6
+ <span>
7
+ <%= title %>
8
+ </span>
9
+ </div>
10
+ </div>
11
+
12
+ <div class="alert-box-content">
13
+ <%== description %>
14
+ </div>
15
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="alert alert-error" role="alert">
2
+ <%== icon :x_circle %>
3
+ <%= message %>
4
+ </div>
@@ -1,3 +1,6 @@
1
- <div class="alert alert-info" role="alert">
2
- <%= message %>
1
+ <div class="alert alert-info">
2
+ <%== icon :info_circle %>
3
+ <span>
4
+ <%= message %>
5
+ </span>
3
6
  </div>
@@ -0,0 +1,4 @@
1
+ <div role="alert" class="alert alert-primary">
2
+ <%== icon(:info_circle) %>
3
+ <span><%= message %></span>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div role="alert" class="alert alert-secondary">
2
+ <%== icon(:pause_circle) %>
3
+ <span><%= message %></span>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div role="alert" class="alert alert-success">
2
+ <%== icon(:check_circle) %>
3
+ <span><%= message %></span>
4
+ </div>
@@ -0,0 +1,4 @@
1
+ <div class="alert alert-warning" role="alert">
2
+ <%== icon :exclamation_triangle %>
3
+ <%= message %>
4
+ </div>
@@ -3,7 +3,7 @@
3
3
  label_type_y ||= 'numerical'
4
4
  label_type_x ||= 'date'
5
5
  %>
6
- <div class="mt-4 chartjs-wrapper">
6
+ <div class="chartjs-wrapper">
7
7
  <canvas
8
8
  id="<%= id %>-chart"
9
9
  class="chartjs chartjs-line <%= 'blurred' if blurred %>"
@@ -1,34 +1,29 @@
1
- <main>
2
- <div id="content">
3
- <div class="d-flex align-items-center justify-content-center vh-100">
4
- <div class="error-message text-center">
5
- <h1 class="display-1 fw-bold">403</h1>
1
+ <main class="flex items-center justify-center min-h-screen">
2
+ <div id="content" class="max-w-2xl w-full mx-auto">
3
+ <div class="flex items-center justify-center vh-100">
4
+ <div class="text-center">
5
+ <h1 class="text-8xl font-bold">403</h1>
6
6
 
7
- <p class="fs-3 md-5">
8
- <span class="text-danger">
9
- Oops!
10
- </span>
11
- Not permitted.
7
+ <p class="text-3xl mt-5">
8
+ <span class="text-red-500">Oops!</span> Not permitted.
12
9
  </p>
13
10
 
14
- <div class="lead">
15
- <p class="mb-5">
11
+ <div class="mt-5">
12
+ <p class="mb-10 text-lg font-light">
16
13
  You don't have permission to view this page.
17
14
  </p>
18
15
 
19
- <p>
20
- Please make sure, that:
21
- </p>
16
+ <p class="text-lg font-light mb-5">Please make sure, that:</p>
22
17
 
23
- <ul class="mb-5 text-start">
24
- <li>You have visited the <a href="<%= root_path('status') %>">Status</a> page to troubleshoot any potential issues</li>
18
+ <ul class="list-disc text-left text-lg mb-10 pl-5 font-light">
19
+ <li>You have visited the <a href="<%= root_path('status') %>" class="text-blue-500 underline">Status</a> page to troubleshoot any potential issues</li>
25
20
  <li>You are authorized to access the resource you requested</li>
26
21
  <li>Web UI configuration permits the action you requested</li>
27
22
  </ul>
28
23
 
29
24
  <p>
30
- <a href="<%= root_path %>" class="btn btn-primary">Go Home</a>
31
- <a href="<%= root_path('status') %>" class="btn btn-success">Status page</a>
25
+ <a href="<%= root_path %>" class="btn btn-primary mr-2 rounded-md py-1">Go Home</a>
26
+ <a href="<%= root_path('status') %>" class="btn btn-success text-white rounded-md">Status page</a>
32
27
  </p>
33
28
  </div>
34
29
  </div>
@@ -1,40 +1,35 @@
1
- <main>
2
- <div id="content">
3
- <div class="d-flex align-items-center justify-content-center vh-100">
4
- <div class="error-message text-center">
5
- <h1 class="display-1 fw-bold">404</h1>
1
+ <main class="flex items-center justify-center min-h-screen">
2
+ <div id="content" class="max-w-2xl w-full mx-auto">
3
+ <div class="flex items-center justify-center vh-100">
4
+ <div class="text-center">
5
+ <h1 class="text-8xl font-bold">404</h1>
6
6
 
7
- <p class="fs-3 md-5">
8
- <span class="text-danger">
9
- Oops!
10
- </span>
11
- Page not found.
7
+ <p class="text-3xl mt-5">
8
+ <span class="text-red-500">Oops!</span> Page not found.
12
9
  </p>
13
10
 
14
- <div class="lead">
15
- <p class="mb-5">
11
+ <div class="mt-5">
12
+ <p class="mb-10 text-lg font-light">
16
13
  The page you're looking for doesn't exist.
17
14
  </p>
18
15
 
19
- <p>
20
- Please make sure, that:
21
- </p>
16
+ <p class="text-lg font-light mb-5">Please make sure, that:</p>
22
17
 
23
- <ul class="mb-5 text-start">
24
- <li>You have visited the <a href="<%= root_path('status') %>">Status</a> page to troubleshoot any potential issues</li>
18
+ <ul class="list-disc text-left text-lg mb-10 pl-5 font-light">
19
+ <li>You have visited the <a href="<%= root_path('status') %>" class="text-blue-500 underline">Status</a> page to troubleshoot any potential issues</li>
25
20
  <li>All the topics required by Karafka Web exist</li>
26
- <li>You have used <code>bundle exec karafka-web migrate</code> to initialize the Web UI</li>
21
+ <li>You have used <code class="bg-gray-100 px-1 py-0.5 rounded">bundle exec karafka-web migrate</code> to initialize the Web UI</li>
27
22
  <li>You have a working connection with your Kafka cluster</li>
28
23
  <li>The resource you requested exists</li>
29
24
  </ul>
30
25
 
31
- <p class="mb-5">
26
+ <p class="mb-10 text-lg font-light">
32
27
  If you were looking for a given process or other real-time information, the state might have changed, and the information you are looking for no longer exists.
33
28
  </p>
34
29
 
35
30
  <p>
36
- <a href="<%= root_path %>" class="btn btn-primary">Go Home</a>
37
- <a href="<%= root_path('status') %>" class="btn btn-success">Status page</a>
31
+ <a href="<%= root_path %>" class="btn btn-primary mr-2 rounded-md py-1">Go Home</a>
32
+ <a href="<%= root_path('status') %>" class="btn btn-success text-white rounded-md">Status page</a>
38
33
  </p>
39
34
  </div>
40
35
  </div>