Skip to content

Commit 3de9ca2

Browse files
authored
Merge pull request #42 from merative/feature/1.1.0_releaseCandidate
Feature/1.1.0 release candidate
2 parents 2eb5d8c + 6fc5748 commit 3de9ca2

File tree

79 files changed

+9283
-3106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+9283
-3106
lines changed

CHANGELOG.md

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
# Changelog
2+
## 1.1.0 - 11/11/2021 ![SPM 8.0.2,SPM 8.0.1](https://img.shields.io/badge/-SPM_8.0.2-green)
3+
### Added
4+
5+
This release has the following improvements:
6+
- Better structure of the Apollo Client hooks for the sample addon component in the `carbon-addons-devenv` package.
7+
- Restructured documentation, now including an overview diagram. Improved guidance for customization, both for creating custom pages and for customizing the Case Overview. Improved guidance about creating GraphQL queries.
8+
- The provision of a lightweight mock GraphQL service that serves data from the file system and can be used within this sandboxed environment for testing purposes. You can use the mock GraphQL service to test your custom components before production GraphQL queries development is completed.
9+
- Enablement of the React Development Tools browser extension to view the composition of React JavaScript components on web page with iframes.
10+
- The provision of a tool that shows a breakdown of the generated JavaScript files in terms
11+
of how much footprint (size in KB) each third-party library contributes to their overall size.
12+
- The introduction of `index_latest` files as a mechanism to convey the most up-to-date-template for index files. You can diff `index_latest` files with your verion of the `index.js` or `index.scss` files to see any differences in the underlying directory structure.
13+
14+
15+
### Removed
16+
Not applicable
17+
18+
## More information
19+
For more information about the React Developer Tools browser extension, see [React Developer Tools](https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi?hl=en).
20+
21+
For more information about Merative™ Social Program Management, see the [documentation](https://curam-spm-devops.github.io/wh-support-docs/spm/pdf-documentation).
22+
23+
For more information about server-side changes, see the [Merative Social Program Management release notes](https://www-01.ibm.com/support/docview.wss?uid=swg27037963) for your version.
24+
25+
For more information about the IBM Carbon Design System v10, see [https://v10.carbondesignsystem.com/](https://v10.carbondesignsystem.com/).
226

327
## 1.0.0 - 26/11/2021 ![SPM 8.0.1](https://img.shields.io/badge/-SPM_8.0.1-green)
428
### Added
@@ -9,10 +33,4 @@ This initial release enables the rapid development of custom application pages b
933
### Removed
1034
Not applicable
1135

12-
## More Information
13-
14-
For more information about IBM Cúram Social Program Management, visit [IBM Docs](https://www.ibm.com/docs/en/spm/8.0.1).
15-
16-
For more information about server-side changes, see the [IBM Cúram Social Program Management release notes](https://www-01.ibm.com/support/docview.wss?uid=swg27037963) for your version.
1736

18-
For more information about the IBM Carbon Design System, see https://www.carbondesignsystem.com/

config/jest-setup.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
/*
2+
* Licensed Materials - Property of IBM
3+
*
4+
* PID 5725-H26
5+
*
6+
* Copyright IBM Corporation 2020. All Rights Reserved.
7+
*
8+
* US Government Users Restricted Rights - Use, duplication or disclosure
9+
* restricted by GSA ADP Schedule Contract with IBM Corp.
10+
*/
11+
12+
import Enzyme from 'enzyme';
13+
import Adapter from 'enzyme-adapter-react-16';
14+
15+
// Ensure any error output to console is flagged as a failing test
16+
global.console.error = (error) => {
17+
throw new Error(error);
18+
};
19+
20+
Enzyme.configure({ adapter: new Adapter() });

config/jest.config.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Licensed Materials - Property of IBM
3+
*
4+
* PID 5725-H26
5+
*
6+
* Copyright IBM Corporation 2020. All Rights Reserved.
7+
*
8+
* US Government Users Restricted Rights - Use, duplication or disclosure
9+
* restricted by GSA ADP Schedule Contract with IBM Corp.
10+
*/
11+
12+
module.exports = {
13+
rootDir: '../',
14+
collectCoverageFrom: [
15+
'<rootDir>/packages/**/src/**/*.js',
16+
'!<rootDir>/packages/**/src/apollo-client-hooks/**/*.js',
17+
'!<rootDir>/packages/**/index.js',
18+
'!<rootDir>/packages/**/*stories.js',
19+
'!<rootDir>/packages/**/*Exports.js'
20+
],
21+
transform: {
22+
'^.+\\.js|jsx$': 'babel-jest',
23+
},
24+
modulePathIgnorePatterns: [
25+
'<rootDir>/packages/carbon-addons-devenv/package.json',
26+
],
27+
setupFilesAfterEnv: [
28+
'<rootDir>/config/jest-setup.js',
29+
],
30+
coverageThreshold: {
31+
packages: {
32+
branches: 80,
33+
functions: 85,
34+
lines: 85,
35+
statements: 85,
36+
},
37+
},
38+
};

config/jsdoc-config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"source": {
3+
"include": ["packages/carbon-addons-devenv/src/react", "packages/custom-carbon-addons/src/react"],
4+
"includePattern": ".+\\.js(doc|x)?$",
5+
"excludePattern": "(^|\\/|\\\\)_"
6+
},
7+
"opts": {
8+
"destination": "docs",
9+
"recurse": true,
10+
"readme": "README.md"
11+
}
12+
}

cookbook/gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module.exports = {
77
siteMetadata: {
88
title: siteTitle,
99
description: 'Merative Social Program Management UI Addon Development Environment',
10-
keywords: 'merative,curam,containers,',
10+
keywords: 'merative,curam,containers',
1111
},
1212
pathPrefix: sitePrefix,
1313
plugins: [

cookbook/src/data/nav-items.yaml

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,50 @@
11
- title: Overview
22
pages:
3-
- path: /overview
4-
- title: Prerequisites
3+
- path: /overview
4+
- title: Setting up for development
55
pages:
66
- title: Prerequisites and supported software
77
path: /prerequisites
8-
- title: Setting up
9-
pages:
10-
- title: Setting up your development environment
8+
- title: Set up your development environment
119
path: /setup
12-
- title: Configuring
13-
pages:
14-
- title: Configuring your development environment
15-
path: /configuring-dev-env
16-
- title: Development Process
10+
- title: Development environment
11+
path: /development-environment
12+
hasDivider: true
13+
- title: Development
1714
pages:
18-
- title: Development Process
15+
- title: Development process
1916
path: /development-process
20-
- title: Creating custom components
21-
pages:
17+
- title: Building during development
18+
path: /build
19+
- title: Customization
20+
pages:
21+
- title: Overview of customization
22+
path: /overview-customization
23+
- title: Creating custom pages
24+
path: /custom-pages
2225
- title: Creating a custom Carbon add-on component
2326
path: /new-custom-component
24-
- title: Integrating with Java Renderers
25-
pages:
26-
- title: Integrating with the Java Renderer on a UIM page
27+
- title: Rendering components on a UIM page
2728
path: /spm-uim-integration
28-
- title: Integrating components with UIM
29-
pages:
30-
- title: Integrating components with the UIM page
31-
path: /integrate-addon-in-uim
32-
- title: Deploying components
33-
pages:
29+
- title: Implementing a GraphQL query
30+
path: /graphql-query
3431
- title: Deploying components
3532
path: /deployment
33+
- title: Customizing the Case Overview
34+
path: /extend-case-overview
35+
# - title: Integrating components with UIM
36+
# pages:
37+
# - title: Integrating components with the UIM page
38+
# path: /integrate-addon-in-uim
39+
hasDivider: true
40+
- title: Reference
41+
pages:
42+
- title: Environment variables
43+
path: /environment-variables
44+
- title: Command reference
45+
path: /command-reference
46+
- title: Samples reference
47+
path: /samples-reference
3648
hasDivider: true
3749
- title: Feedback
3850
pages:

cookbook/src/gatsby-theme-carbon/components/Footer.js

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313

1414
const Footer = ({ Content, links, Logo }) => {
1515
const { firstCol, secondCol } = links;
16+
// const currentYear = new Date().getFullYear();
1617
const { site } = useStaticQuery(graphql`
1718
query SHADOW_BUILD_TIME_QUERY {
1819
site {
@@ -67,22 +68,42 @@ const Footer = ({ Content, links, Logo }) => {
6768
);
6869
};
6970

70-
const IBMLogo = () => (
71+
const MerativeLogo = () => (
7172
<svg
7273
className={logo}
73-
width="81"
74-
height="32"
75-
xmlns="http://www.w3.org/2000/svg">
76-
<g fillRule="evenodd">
77-
<path d="M0 32h15.689v-2.038H0zM0 27.721h15.689v-2.038H0zM4.483 23.442h6.724v-2.037H4.483zM4.483 19.164h6.724v-2.038H4.483zM4.483 14.885h6.724v-2.037H4.483zM4.482 10.606h6.724V8.568H4.482zM0 6.327h15.689V4.29H0zM0 2.049h15.689V.011H0zM17.93 29.963V32h16.504a8.521 8.521 0 0 0 5.54-2.037H17.93zM17.93 25.683v2.038h23.914a8.535 8.535 0 0 0 .85-2.038H17.93zM22.412 23.442h6.724v-2.037h-6.724zM40.124 17.126H22.412v2.038H41.77a8.62 8.62 0 0 0-1.645-2.038M22.413 12.848v2.036h17.786a8.612 8.612 0 0 0 1.644-2.037h-19.43zM42.693 6.327a8.447 8.447 0 0 0-.85-2.037H17.93v2.037h24.763zM39.974 2.049a8.521 8.521 0 0 0-5.54-2.037H17.93v2.037h22.044zM22.412 10.606h6.724V8.568h-6.724zM35.453 10.606h7.29a8.603 8.603 0 0 0 .248-2.038h-7.538v2.038zM35.453 21.405v2.037h7.538c0-.703-.09-1.384-.248-2.037h-7.29zM57.457 0H44.825v2.038h13.34zM44.826 32h11.21v-2.038h-11.21zM44.826 27.72h11.21v-2.038h-11.21zM49.309 23.439h6.727v-2.038h-6.727zM49.309 19.159h6.727v-2.038h-6.727zM69.488 32h11.21v-2.038h-11.21zM69.488 27.72h11.21v-2.038h-11.21zM69.488 23.439h6.726v-2.038h-6.726zM69.487 19.159h6.726v-2.038h-6.726zM69.488 14.879h6.726V12.84H63.606l-.707 2.038h5.903l.686-1.94zM61.916 12.84H49.31v2.039h6.726v-1.94l.686 1.94h5.903zM76.213 8.56H65.091l-.707 2.038h11.83zM68.06 0l-.706 2.038h13.344V0zM62.757 32l.72-2.038h-1.432zM61.254 27.72h3.015l.72-2.038h-4.455zM59.743 23.44h6.037l.72-2.039h-7.476zM58.232 19.159h9.06l.719-2.038h-10.5zM49.309 10.598h11.83l-.707-2.038H49.309zM65.868 6.318h14.83V4.28H66.576zM58.947 4.28H44.826v2.038h14.828z" />
78-
</g>
74+
enable-background="new 0 0 425 205"
75+
viewBox="0 0 425 205"
76+
xmlns="http://www.w3.org/2000/svg"
77+
width="160"
78+
>
79+
<linearGradient
80+
id="a"
81+
gradientUnits="userSpaceOnUse"
82+
x1="207.7505"
83+
x2="318.9948"
84+
y1="71.0289"
85+
y2="71.0289"
86+
>
87+
<stop offset="0" stop-color="#90f" />
88+
<stop offset="1" stop-color="#fa1e32" />
89+
</linearGradient>
90+
<path
91+
d="m318.99 98.84c0-30.72-24.9-55.62-55.62-55.62s-55.62 24.9-55.62 55.62h7.46c0-26.6 21.56-48.17 48.17-48.17 26.6 0 48.17 21.56 48.17 48.17z"
92+
fill="url(#a)"
93+
/>
94+
<path
95+
d="m103.53 135.48v25.7h-7.24v-26c0-5.39-4.37-9.76-9.76-9.76-5.14 0-9.36 3.98-9.73 9.03v26.74h-7.17v-26.74c-.38-5.05-4.59-9.03-9.73-9.03-5.39 0-9.76 4.37-9.76 9.76v26h-7.24v-25.7c0-9.37 7.6-16.97 16.97-16.97 5.42 0 10.24 2.54 13.35 6.5 3.11-3.96 7.93-6.5 13.35-6.5 9.36.01 16.96 7.6 16.96 16.97zm79.43-16.1c-9.37-.03-16.97 7.6-16.97 16.97v24.83h7.24v-24.93c0-5.39 4.5-9.67 10.14-9.82 2.74-.08 5.76.13 5.76.13l.4-6.96s-2.25-.2-6.57-.22zm-33.02 5.58c3.85 4.3 5.78 9.47 5.78 15.51 0 1.05-.08 2.14-.25 3.24h-34.85c.72 3.72 2.43 6.6 5.12 8.65s6 3.08 9.94 3.08c5.49 0 9.48-2.02 11.98-6.07l6.15 3.49c-4.05 6.27-10.15 9.4-18.3 9.4-6.6 0-11.96-2.06-16.09-6.2-4.13-4.13-6.2-9.36-6.2-15.68 0-6.27 2.02-11.48 6.07-15.64s9.29-6.24 15.72-6.24c6.1.02 11.08 2.17 14.93 6.46zm-1.54 12.44c-.61-3.94-2.16-6.93-4.66-8.98s-5.41-3.08-8.73-3.08c-3.88 0-7.1 1.1-9.65 3.29s-4.13 5.12-4.74 8.77zm84.72-10.82h14.22v34.6h7.24v-34.6h14.14v-6.99h-35.6zm45.54 34.6h7.24v-41.58h-7.24zm103.38-17.46h-34.85c.72 3.72 2.42 6.6 5.12 8.65 2.69 2.05 6 3.08 9.94 3.08 5.49 0 9.48-2.02 11.98-6.07l6.15 3.49c-4.05 6.27-10.15 9.4-18.3 9.4-6.6 0-11.96-2.06-16.09-6.2-4.13-4.13-6.2-9.36-6.2-15.68 0-6.27 2.02-11.48 6.07-15.64s9.29-6.24 15.72-6.24c6.1 0 11.07 2.15 14.93 6.45 3.85 4.3 5.78 9.47 5.78 15.51 0 1.06-.08 2.14-.25 3.25zm-7.07-6.32c-.61-3.94-2.16-6.93-4.66-8.98-2.49-2.05-5.41-3.08-8.73-3.08-3.88 0-7.1 1.1-9.65 3.29s-4.13 5.12-4.74 8.77zm-184.56 23.78h7.82l13.06-33.76 13.06 33.76h7.82s-14.85-37.2-15.69-39.23c-.84-2.02-2.85-3.44-5.18-3.44s-4.37 1.41-5.18 3.44-15.71 39.23-15.71 39.23zm119.79-2.36c.81 2.03 2.85 3.44 5.18 3.44s4.35-1.41 5.18-3.44c.84-2.02 15.69-39.23 15.69-39.23h-7.82l-13.06 33.76-13.06-33.76h-7.82c.01.01 14.9 37.21 15.71 39.23z"
96+
fill="#fff"
97+
/>
7998
</svg>
8099
);
81100

82101
const DefaultContent = ({ buildTime }) => (
83102
<>
84103
<p>
85-
Last updated: {buildTime}
104+
Docs last updated: {buildTime}
105+
<br />
106+
&copy; Merative US L.P. 2021, 2022
86107
</p>
87108
</>
88109
);
@@ -93,7 +114,7 @@ Footer.defaultProps = {
93114
secondCol: [ ],
94115
},
95116
Content: DefaultContent,
96-
Logo: IBMLogo,
117+
Logo: MerativeLogo,
97118
};
98119

99120
Footer.propTypes = {

cookbook/src/gatsby-theme-carbon/components/Header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const Header = ({ children }) => {
7676

7777
const DefaultHeaderText = () => (
7878
<>
79-
IBM Cúram&nbsp;<span>SPM UI Addon Development Environment</span>
79+
Merative&nbsp;<span>SPM UI Addon Development Environment</span>
8080
</>
8181
);
8282

cookbook/src/gatsby-theme-carbon/components/LeftNav/ResourceLinks.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import ResourceLinks from 'gatsby-theme-carbon/src/components/LeftNav/ResourceLi
33

44
const links = [
55
{
6-
title: 'Github',
7-
href: 'https://github.com/IBM/spm-ui-addon-devenv',
6+
title: 'GitHub',
7+
href: 'https://github.com/merative/spm-ui-addon-devenv',
88
},
99
{
10-
title: 'IBM Documentation',
11-
href: 'https://www.ibm.com/docs/en/spm/8.0.1',
10+
title: 'Documentation',
11+
href: 'https://www.ibm.com/docs/en/spm/8.0.2',
1212
}
1313
];
1414

cookbook/src/images/SPM_Addons_IDE.svg

Lines changed: 76 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)