Skip to content

Commit ca07ce5

Browse files
Fix license from CC-BY-ND-4.0 to CC-BY-SA-4.0
Co-authored-by: thomasnordquist <7721625+thomasnordquist@users.noreply.github.com>
1 parent 21f3274 commit ca07ce5

2 files changed

Lines changed: 18 additions & 18 deletions

File tree

app/src/components/AboutDialog.spec.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import * as path from 'path'
77
* AboutDialog License Compliance Tests
88
*
99
* These tests verify that the About dialog properly displays required
10-
* attribution information as mandated by the CC-BY-ND-4.0 license.
10+
* attribution information as mandated by the CC-BY-SA-4.0 license.
1111
*/
1212
describe('AboutDialog License Compliance', () => {
1313
const aboutDialogPath = path.join(__dirname, 'AboutDialog.tsx')
@@ -19,17 +19,17 @@ describe('AboutDialog License Compliance', () => {
1919

2020
it('should contain the license notice in the component file', () => {
2121
expect(aboutDialogContent).to.include('LICENSE NOTICE')
22-
expect(aboutDialogContent).to.include('CC-BY-ND-4.0')
22+
expect(aboutDialogContent).to.include('CC-BY-SA-4.0')
2323
})
2424

2525
it('should display author attribution (Thomas Nordquist)', () => {
2626
// Verify the author is displayed in the component
2727
expect(aboutDialogContent).to.match(/Author.*Thomas Nordquist/)
2828
})
2929

30-
it('should display CC-BY-ND-4.0 license', () => {
30+
it('should display CC-BY-SA-4.0 license', () => {
3131
// Verify the license is displayed in the component
32-
expect(aboutDialogContent).to.match(/License.*CC-BY-ND-4.0/)
32+
expect(aboutDialogContent).to.match(/License.*CC-BY-SA-4.0/)
3333
})
3434

3535
it('should have data-testid attributes for license verification', () => {
@@ -39,46 +39,46 @@ describe('AboutDialog License Compliance', () => {
3939
})
4040

4141
describe('License Violation Detection', () => {
42-
it('removing author attribution violates CC-BY-ND-4.0 license', () => {
42+
it('removing author attribution violates CC-BY-SA-4.0 license', () => {
4343
// Test that the author name "Thomas Nordquist" is present
44-
// Removing it would violate the Attribution requirement of CC-BY-ND-4.0
44+
// Removing it would violate the Attribution requirement of CC-BY-SA-4.0
4545
const hasAuthor = aboutDialogContent.includes('Thomas Nordquist')
4646

4747
if (!hasAuthor) {
4848
throw new Error(
4949
'LICENSE VIOLATION: Author attribution "Thomas Nordquist" is missing. ' +
50-
'This violates the CC-BY-ND-4.0 license Attribution requirement. ' +
50+
'This violates the CC-BY-SA-4.0 license Attribution requirement. ' +
5151
'The author must be properly credited in the About dialog.'
5252
)
5353
}
5454

5555
expect(hasAuthor).to.be.true
5656
})
5757

58-
it('removing license notice violates CC-BY-ND-4.0 license', () => {
59-
// Test that the license "CC-BY-ND-4.0" is displayed
58+
it('removing license notice violates CC-BY-SA-4.0 license', () => {
59+
// Test that the license "CC-BY-SA-4.0" is displayed
6060
// Removing it would violate the license requirements
61-
const hasLicense = aboutDialogContent.includes('CC-BY-ND-4.0')
61+
const hasLicense = aboutDialogContent.includes('CC-BY-SA-4.0')
6262

6363
if (!hasLicense) {
6464
throw new Error(
65-
'LICENSE VIOLATION: License notice "CC-BY-ND-4.0" is missing. ' +
66-
'This violates the CC-BY-ND-4.0 license requirements. ' +
65+
'LICENSE VIOLATION: License notice "CC-BY-SA-4.0" is missing. ' +
66+
'This violates the CC-BY-SA-4.0 license requirements. ' +
6767
'The license must be displayed in the About dialog.'
6868
)
6969
}
7070

7171
expect(hasLicense).to.be.true
7272
})
7373

74-
it('removing LICENSE NOTICE comment violates CC-BY-ND-4.0 license', () => {
74+
it('removing LICENSE NOTICE comment violates CC-BY-SA-4.0 license', () => {
7575
// Test that the LICENSE NOTICE comment is present in the source
7676
const hasLicenseNotice = aboutDialogContent.includes('LICENSE NOTICE')
7777

7878
if (!hasLicenseNotice) {
7979
throw new Error(
8080
'LICENSE VIOLATION: LICENSE NOTICE comment is missing from source code. ' +
81-
'This violates the CC-BY-ND-4.0 license documentation requirements. ' +
81+
'This violates the CC-BY-SA-4.0 license documentation requirements. ' +
8282
'The license notice must be retained in the component source.'
8383
)
8484
}

app/src/components/AboutDialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,12 @@ interface AboutDialogProps {
2727
*
2828
* This component displays application information including version, author, and license.
2929
*
30-
* LICENSE NOTICE (CC-BY-ND-4.0):
30+
* LICENSE NOTICE (CC-BY-SA-4.0):
3131
* This component must retain the following attribution:
3232
* - Author: Thomas Nordquist
33-
* - License: CC-BY-ND-4.0
33+
* - License: CC-BY-SA-4.0
3434
* Removing or modifying this attribution violates the Creative Commons
35-
* Attribution-NoDerivatives 4.0 International License.
35+
* Attribution-ShareAlike 4.0 International License.
3636
*/
3737
export function AboutDialog(props: AboutDialogProps) {
3838
const [version, setVersion] = React.useState<string>(FALLBACK_VERSION)
@@ -56,7 +56,7 @@ export function AboutDialog(props: AboutDialogProps) {
5656
<strong>Version:</strong> {version}
5757
</Typography>
5858
<Typography variant="body1" gutterBottom data-testid="about-license">
59-
<strong>License:</strong> CC-BY-ND-4.0
59+
<strong>License:</strong> CC-BY-SA-4.0
6060
</Typography>
6161
<Typography variant="body1" gutterBottom>
6262
<strong>Description:</strong> Explore your message queues

0 commit comments

Comments
 (0)