Skip to content

Commit 2a0355a

Browse files
⬆️ Upgrade example app dependencies
Updates the example dependency stacks through pnpm's release-age policy, aligns Dependabot cooldowns with pnpm, and fixes the Ember example for the upgraded stack. Validation: - pnpm install --frozen-lockfile - pnpm peers check - pnpm --filter example-storybook run build-storybook - pnpm --filter test-ember-app run build - pnpm --filter test-ember-app run lint - pnpm --filter fluffycloud-test-site run test - pnpm run lint - pnpm run build - pnpm run test:types - GitHub CI and SDK E2E checks passed
1 parent b84d376 commit 2a0355a

25 files changed

Lines changed: 1641 additions & 2230 deletions

.github/dependabot.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,4 @@ updates:
2323
cooldown:
2424
semver-major-days: 30
2525
semver-minor-days: 14
26-
semver-patch-days: 3
27-
reviewers:
28-
- "@dependabot"
26+
semver-patch-days: 7
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
export default {
22
extends: 'recommended',
3+
rules: {
4+
'no-forbidden-elements': false,
5+
'no-inline-styles': false,
6+
'no-invalid-interactive': false,
7+
},
38
};

clients/ember/test-app/app/components/alert.gjs

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,39 @@ import Component from '@glimmer/component';
22

33
export default class Alert extends Component {
44
<template>
5-
<div class="alert {{if @variant @variant 'info'}}" role="alert" data-test-alert={{@testId}}>
5+
<div
6+
class="alert {{if @variant @variant 'info'}}"
7+
role="alert"
8+
data-test-alert={{@testId}}
9+
>
610
<div class="alert-icon">
711
{{#if (this.isSuccess @variant)}}
812
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
9-
<path d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" fill="currentColor"/>
13+
<path
14+
d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
15+
fill="currentColor"
16+
/>
1017
</svg>
1118
{{else if (this.isError @variant)}}
1219
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
13-
<path d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z" fill="currentColor"/>
20+
<path
21+
d="M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z"
22+
fill="currentColor"
23+
/>
1424
</svg>
1525
{{else if (this.isWarning @variant)}}
1626
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
17-
<path d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" fill="currentColor"/>
27+
<path
28+
d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z"
29+
fill="currentColor"
30+
/>
1831
</svg>
1932
{{else}}
2033
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
21-
<path d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z" fill="currentColor"/>
34+
<path
35+
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z"
36+
fill="currentColor"
37+
/>
2238
</svg>
2339
{{/if}}
2440
</div>

clients/ember/test-app/app/components/button.gjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export default class Button extends Component {
55
<template>
66
<button
77
type={{if @type @type "button"}}
8-
class="button {{if @variant @variant 'primary'}} {{if @size @size 'medium'}}"
8+
class="button
9+
{{if @variant @variant 'primary'}}
10+
{{if @size @size 'medium'}}"
911
disabled={{@disabled}}
1012
data-test-button={{@testId}}
1113
{{on "click" (if @onClick @onClick this.noop)}}
@@ -15,7 +17,10 @@ export default class Button extends Component {
1517

1618
<style>
1719
.button {
18-
font-family: system-ui, -apple-system, sans-serif;
20+
font-family:
21+
system-ui,
22+
-apple-system,
23+
sans-serif;
1924
font-weight: 500;
2025
border: none;
2126
border-radius: 6px;

clients/ember/test-app/app/components/card.gjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ export default class Card extends Component {
3434
}
3535
3636
.card.elevated {
37-
box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
37+
box-shadow:
38+
0 4px 6px -1px rgb(0 0 0 / 0.1),
39+
0 2px 4px -2px rgb(0 0 0 / 0.1);
3840
border: none;
3941
}
4042

clients/ember/test-app/app/components/form-field.gjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ import { on } from '@ember/modifier';
33

44
export default class FormField extends Component {
55
<template>
6-
<div class="form-field {{if @error 'has-error'}}" data-test-form-field={{@name}}>
6+
<div
7+
class="form-field {{if @error 'has-error'}}"
8+
data-test-form-field={{@name}}
9+
>
710
{{#if @label}}
811
<label class="form-label" for={{@name}}>
912
{{@label}}
@@ -69,7 +72,9 @@ export default class FormField extends Component {
6972
border: 1px solid #d1d5db;
7073
border-radius: 6px;
7174
background: white;
72-
transition: border-color 0.15s ease, box-shadow 0.15s ease;
75+
transition:
76+
border-color 0.15s ease,
77+
box-shadow 0.15s ease;
7378
}
7479
7580
.form-input:focus {

clients/ember/test-app/app/components/modal.gjs

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,33 @@ import { on } from '@ember/modifier';
44
export default class Modal extends Component {
55
<template>
66
{{#if @isOpen}}
7-
<div class="modal-backdrop" data-test-modal={{@testId}} {{on "click" this.handleBackdropClick}}>
8-
<div class="modal {{if @size @size 'medium'}}" role="dialog" aria-modal="true" {{on "click" this.stopPropagation}}>
7+
<div
8+
class="modal-backdrop"
9+
data-test-modal={{@testId}}
10+
{{on "click" this.handleBackdropClick}}
11+
>
12+
<div
13+
class="modal {{if @size @size 'medium'}}"
14+
role="dialog"
15+
aria-modal="true"
16+
{{on "click" this.stopPropagation}}
17+
>
918
<div class="modal-header">
1019
<h2 class="modal-title">{{@title}}</h2>
1120
{{#if @onClose}}
12-
<button type="button" class="modal-close" aria-label="Close" {{on "click" @onClose}}>
21+
<button
22+
type="button"
23+
class="modal-close"
24+
aria-label="Close"
25+
{{on "click" @onClose}}
26+
>
1327
<svg width="20" height="20" viewBox="0 0 20 20" fill="none">
14-
<path d="M15 5L5 15M5 5L15 15" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>
28+
<path
29+
d="M15 5L5 15M5 5L15 15"
30+
stroke="currentColor"
31+
stroke-width="2"
32+
stroke-linecap="round"
33+
/>
1534
</svg>
1635
</button>
1736
{{/if}}

clients/ember/test-app/app/components/nav-bar.gjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ export default class NavBar extends Component {
7777
color: #6b7280;
7878
text-decoration: none;
7979
border-radius: 6px;
80-
transition: color 0.15s ease, background 0.15s ease;
80+
transition:
81+
color 0.15s ease,
82+
background 0.15s ease;
8183
}
8284
8385
.nav-link:hover {

clients/ember/test-app/app/templates/application.gjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ import Button from '../components/button';
2424
2525
body {
2626
margin: 0;
27-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
27+
font-family:
28+
system-ui,
29+
-apple-system,
30+
BlinkMacSystemFont,
31+
"Segoe UI",
32+
Roboto,
33+
sans-serif;
2834
background: #f3f4f6;
2935
color: #111827;
3036
line-height: 1.5;

clients/ember/test-app/app/templates/components.gjs

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ const state = new ComponentsPageState();
3737
<h3 class="showcase-label">Variants</h3>
3838
<div class="button-row">
3939
<Button @variant="primary" @testId="btn-primary">Primary</Button>
40-
<Button @variant="secondary" @testId="btn-secondary">Secondary</Button>
40+
<Button
41+
@variant="secondary"
42+
@testId="btn-secondary"
43+
>Secondary</Button>
4144
<Button @variant="danger" @testId="btn-danger">Danger</Button>
4245
<Button @variant="ghost" @testId="btn-ghost">Ghost</Button>
4346
</div>
@@ -46,17 +49,33 @@ const state = new ComponentsPageState();
4649
<div class="showcase-item">
4750
<h3 class="showcase-label">Sizes</h3>
4851
<div class="button-row">
49-
<Button @variant="primary" @size="small" @testId="btn-small">Small</Button>
50-
<Button @variant="primary" @size="medium" @testId="btn-medium">Medium</Button>
51-
<Button @variant="primary" @size="large" @testId="btn-large">Large</Button>
52+
<Button
53+
@variant="primary"
54+
@size="small"
55+
@testId="btn-small"
56+
>Small</Button>
57+
<Button
58+
@variant="primary"
59+
@size="medium"
60+
@testId="btn-medium"
61+
>Medium</Button>
62+
<Button
63+
@variant="primary"
64+
@size="large"
65+
@testId="btn-large"
66+
>Large</Button>
5267
</div>
5368
</div>
5469

5570
<div class="showcase-item">
5671
<h3 class="showcase-label">States</h3>
5772
<div class="button-row">
5873
<Button @variant="primary" @testId="btn-enabled">Enabled</Button>
59-
<Button @variant="primary" @disabled={{true}} @testId="btn-disabled">Disabled</Button>
74+
<Button
75+
@variant="primary"
76+
@disabled={{true}}
77+
@testId="btn-disabled"
78+
>Disabled</Button>
6079
</div>
6180
</div>
6281
</div>
@@ -95,13 +114,25 @@ const state = new ComponentsPageState();
95114
Click the buttons below to open modals of different sizes.
96115
</p>
97116
<div class="button-row">
98-
<Button @variant="primary" @onClick={{fn state.openModal "small"}} @testId="open-modal-small">
117+
<Button
118+
@variant="primary"
119+
@onClick={{fn state.openModal "small"}}
120+
@testId="open-modal-small"
121+
>
99122
Small Modal
100123
</Button>
101-
<Button @variant="primary" @onClick={{fn state.openModal "medium"}} @testId="open-modal-medium">
124+
<Button
125+
@variant="primary"
126+
@onClick={{fn state.openModal "medium"}}
127+
@testId="open-modal-medium"
128+
>
102129
Medium Modal
103130
</Button>
104-
<Button @variant="primary" @onClick={{fn state.openModal "large"}} @testId="open-modal-large">
131+
<Button
132+
@variant="primary"
133+
@onClick={{fn state.openModal "large"}}
134+
@testId="open-modal-large"
135+
>
105136
Large Modal
106137
</Button>
107138
</div>
@@ -115,13 +146,21 @@ const state = new ComponentsPageState();
115146
@testId="demo-modal"
116147
>
117148
<:default>
118-
<p>This is a {{state.modalSize}} modal dialog. You can put any content here.</p>
149+
<p>This is a
150+
{{state.modalSize}}
151+
modal dialog. You can put any content here.</p>
119152
<p>Click the close button or outside the modal to dismiss it.</p>
120153
</:default>
121154

122155
<:footer>
123-
<Button @variant="secondary" @onClick={{state.closeModal}}>Cancel</Button>
124-
<Button @variant="primary" @onClick={{state.closeModal}}>Confirm</Button>
156+
<Button
157+
@variant="secondary"
158+
@onClick={{state.closeModal}}
159+
>Cancel</Button>
160+
<Button
161+
@variant="primary"
162+
@onClick={{state.closeModal}}
163+
>Confirm</Button>
125164
</:footer>
126165
</Modal>
127166
</section>

0 commit comments

Comments
 (0)