foreman_theme_satellite 15.0.1 → 15.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57d1c10a945a4ca3a9acb424095ac0c06cc3c0e5ff80b81845fb70557bf407c4
4
- data.tar.gz: e6bdbe897bb42bf32c56ce145da297ae3f4a9c7ea8482ecfd1b7cdd2097c4855
3
+ metadata.gz: f25ab3f13ed0e2a3c20cfefe5a22544cbaa3cc76f67820531cf1c6f71879c278
4
+ data.tar.gz: fe23419ce5454691d1adddfd65823e326605b8dd195aa5731eaff93ff3077ba7
5
5
  SHA512:
6
- metadata.gz: 283e64a919a07d076d10cc48f29a7fe0b04c0e18b3cfe79e776776af8fc42e55ca222d90cee4a9de8b48796f32ad3e0fdb7b3ed40e23febb0b8c1352f0d3ff0d
7
- data.tar.gz: 53025f3274b9f40da49cc3e38e127c9aa006fe82af9abfde896fb75d30e0d897dca1a207fd1a74e9c3258ae23ea607d88653a743436a4a57156438f295972c48
6
+ metadata.gz: 4ddb7b971c78aea2d42901638e265d9de961d1a8833bf41fe80843063242fb7431f2e271af9fd37fcf5245fc733f44b5cf0c7722ff82a576d1b061af646c71ef
7
+ data.tar.gz: ec19b46e28efd50619923dcf409cb11a29cfee7c595fa4627a25c389421ba4f9d47127c579c1ad23c54d0d53c0f505a20ee8d880bb0c450341f5680b3fa2b057
@@ -29,6 +29,10 @@ module DocumentationControllerBranding
29
29
  documentation_url(section)
30
30
  end
31
31
 
32
+ def support_url
33
+ 'https://access.redhat.com/products/red-hat-satellite#get-support'
34
+ end
35
+
32
36
  # For new documentation at docs.theforeman.org
33
37
  # We do not use flavor downstream, but keeping it here for the same method signature
34
38
  # rubocop:disable Lint/UnusedMethodArgument
@@ -36,5 +40,14 @@ module DocumentationControllerBranding
36
40
  url = ForemanThemeSatellite::Documentation::DOCS_GUIDES_LINKS.dig(guide, chapter)
37
41
  url || "#{ForemanThemeSatellite.documentation_root}/#{guide.downcase}/#{chapter}"
38
42
  end
43
+
44
+ def upgrade_url(section)
45
+ case section
46
+ when 'documentation'
47
+ "#{ForemanThemeSatellite.unversioned_documentation_root}#Upgrade"
48
+ when 'helper'
49
+ 'https://access.redhat.com/labs/satelliteupgradehelper'
50
+ end
51
+ end
39
52
  # rubocop:enable Lint/UnusedMethodArgument
40
53
  end
@@ -51,7 +51,7 @@ module ForemanThemeSatellite
51
51
  'CreatingSCAPcontent' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/configuring_scap_contents_security-compliance",
52
52
 
53
53
  # Planning
54
- 'SmartProxies' => "#{ForemanThemeSatellite.documentation_root}/overview_concepts_and_deployment_considerations/major-satellite-components_planning#capsule-Overview_planning",
54
+ 'SmartProxies' => "#{ForemanThemeSatellite.documentation_root}/overview_concepts_and_deployment_considerations/satellite-overview-and-concepts#Major-Satellite-Components_planning",
55
55
  'Auditing' => "#{ForemanThemeSatellite.documentation_root}/overview_concepts_and_deployment_considerations/glossary-of-terms-used-in-satellite_planning#Audits",
56
56
 
57
57
  # Install
@@ -137,7 +137,13 @@ module ForemanThemeSatellite
137
137
 
138
138
  def self.documentation_root
139
139
  @documentation_root ||= begin
140
- "#{documentation_server}/documentation/en-us/red_hat_satellite/#{documentation_version}/html"
140
+ "#{unversioned_documentation_root}/#{documentation_version}/html"
141
+ end
142
+ end
143
+
144
+ def self.unversioned_documentation_root
145
+ @unversioned_documentation_root ||= begin
146
+ "#{documentation_server}/documentation/en-us/red_hat_satellite"
141
147
  end
142
148
  end
143
149
 
@@ -1,3 +1,3 @@
1
1
  module ForemanThemeSatellite
2
- VERSION = '15.0.1'.freeze
2
+ VERSION = '15.1.0'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_theme_satellite",
3
- "version": "15.0.1",
3
+ "version": "15.1.0",
4
4
  "description": "Satellite theme =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+
3
+ import { Card, CardBody, CardTitle, CardFooter, Button } from '@patternfly/react-core';
4
+ import { ExternalLinkSquareAltIcon } from '@patternfly/react-icons';
5
+
6
+ import { translate as __ } from 'foremanReact/common/I18n';
7
+ import { getUpgradeURL } from 'foremanReact/common/helpers';
8
+
9
+ const SatelliteUpgradeHelperCard = () => (
10
+ <Card ouiaId="upgrade-docs-satellite-helper" isFlat>
11
+ <CardTitle component="h4">{__('Satellite upgrade helper')}</CardTitle>
12
+ <CardBody>
13
+ {__('Generate a customized upgrade plan based on your current Satellite environment.' +
14
+ ' This tool will guide you through the upgrade process and provide additional steps to avoid known issues specific to your upgrade scenario.')}
15
+ </CardBody>
16
+ <CardFooter>
17
+ <Button
18
+ ouiaId="upgrade-helper-button"
19
+ component="a"
20
+ variant="link"
21
+ icon={<ExternalLinkSquareAltIcon />}
22
+ iconPosition="right"
23
+ target="_blank"
24
+ isInline
25
+ href={getUpgradeURL('helper')}
26
+ >
27
+ {__('Try the Satellite upgrade helper')}
28
+ </Button>
29
+ </CardFooter>
30
+ </Card>
31
+ );
32
+
33
+ export default SatelliteUpgradeHelperCard;
data/webpack/index.js CHANGED
@@ -1,5 +1,27 @@
1
+ import React from 'react';
2
+
1
3
  import componentRegistry from 'foremanReact/components/componentRegistry';
4
+ import { addGlobalFill } from 'foremanReact/components/common/Fill/GlobalFill';
5
+ import { translate as __ } from 'foremanReact/common/I18n';
2
6
  import { Helmet } from 'react-helmet';
3
7
 
8
+ import SatelliteUpgradeHelperCard from './components/fills/UpgradePage/SatelliteUpgradeHelperCard';
9
+
4
10
  // register components for erb mounting
5
11
  componentRegistry.register({ name: 'Helmet', type: Helmet });
12
+
13
+ addGlobalFill(
14
+ 'upgrade-page-additional-docs',
15
+ 'Satellite upgrade helper card',
16
+ <SatelliteUpgradeHelperCard key="satellite-upgrade-helper-card" />,
17
+ 1000,
18
+ );
19
+ addGlobalFill(
20
+ 'upgrade-page-footer',
21
+ 'Satellite upgrade page footer',
22
+ {
23
+ helpDesc: __('If you require assistance or encounter issues, reach out to Red Hat Support or explore the resources available in the Customer Portal for troubleshooting.'),
24
+ helpLinkText: __('Contact support'),
25
+ },
26
+ 1000,
27
+ );
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_theme_satellite
3
3
  version: !ruby/object:Gem::Version
4
- version: 15.0.1
4
+ version: 15.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shimon Stein
8
8
  - Eric Helms
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-08 00:00:00.000000000 Z
11
+ date: 1980-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -181,6 +181,7 @@ files:
181
181
  - locale/zh_CN/LC_MESSAGES/foreman_theme_satellite.mo
182
182
  - locale/zh_CN/foreman_theme_satellite.po
183
183
  - package.json
184
+ - webpack/components/fills/UpgradePage/SatelliteUpgradeHelperCard.js
184
185
  - webpack/index.js
185
186
  homepage: https://github.com/RedHatSatellite/foreman_theme_satellite
186
187
  licenses:
@@ -201,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
201
202
  - !ruby/object:Gem::Version
202
203
  version: '0'
203
204
  requirements: []
204
- rubygems_version: 3.6.2
205
+ rubygems_version: 3.6.7
205
206
  specification_version: 4
206
207
  summary: This is a plugin that enables building a theme for Foreman.
207
208
  test_files: []