Skip to content

Commit 673af2a

Browse files
committed
Renaming realm to workspace
1 parent 9cd4cbc commit 673af2a

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

packages/base/catalog-entry.gts

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class CatalogEntry extends CardDef {
106106
<FieldContainer @label='Ref' data-test-field='ref'>
107107
<@fields.ref />
108108
</FieldContainer>
109-
<FieldContainer @label='Realm Name' data-test-field='realmName'>
109+
<FieldContainer @label='Workspace Name' data-test-field='realmName'>
110110
<@fields.realmName />
111111
</FieldContainer>
112112
<FieldContainer @vertical={{true}} @label='Demo' data-test-field='demo'>

packages/host/app/components/card-catalog/filters.gts

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class CardCatalogFilters extends Component<Signature> {
5858
disabled={{@disableRealmFilter}}
5959
data-test-realm-filter-button
6060
>
61-
Realm:
61+
Workspace:
6262
{{this.realmFilterSummary}}
6363
</button>
6464
</:trigger>

packages/host/app/components/operator-mode/edit-field-modal.gts

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export default class EditFieldModal extends Component<Signature> {
377377
<:ready as |realmInfo|>
378378
<img
379379
src={{realmInfo.iconURL}}
380-
alt='Realm icon'
380+
alt='Workspace icon'
381381
data-test-realm-icon-url={{realmInfo.iconURL}}
382382
/>
383383
</:ready>

packages/host/app/components/operator-mode/realm-icon.gts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export default class RealmIcon extends Component<Signature> {
1212
<template>
1313
<img
1414
src={{@realmIconURL}}
15-
alt='Icon for realm {{@realmName}}'
15+
alt='Icon for workspace {{@realmName}}'
1616
data-test-realm-icon-url={{@realmIconURL}}
1717
...attributes
1818
/>

packages/host/app/components/realm-dropdown.gts

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export default class RealmDropdown extends Component<Signature> {
6262
{{this.selectedRealm.name}}
6363
</div>
6464
{{else}}
65-
Select a realm
65+
Select a workspace
6666
{{/if}}
6767
<DropdownArrowDown class='arrow-icon' width='22px' height='22px' />
6868
</Button>

packages/host/tests/integration/components/card-catalog-test.gts

+6-6
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ module('Integration | card-catalog', function (hooks) {
170170
assert
171171
.dom('[data-test-realm="Base Workspace"] [data-test-card-catalog-item]')
172172
.exists({ count: 1 });
173-
assert.dom('[data-test-realm-filter-button]').hasText('Realm: All');
173+
assert.dom('[data-test-realm-filter-button]').hasText('Workspace: All');
174174

175175
let localResults = [
176176
...document.querySelectorAll(
@@ -194,7 +194,7 @@ module('Integration | card-catalog', function (hooks) {
194194
await click(`[data-test-boxel-menu-item-text="Base Workspace"]`); // base realm is selected
195195
assert
196196
.dom('[data-test-realm-filter-button]')
197-
.hasText(`Realm: Base Workspace`, 'Only base realm is selected');
197+
.hasText(`Workspace: Base Workspace`, 'Only base realm is selected');
198198
assert
199199
.dom(`[data-test-realm="Base Workspace"] [data-test-card-catalog-item]`)
200200
.exists({ count: 1 });
@@ -216,7 +216,7 @@ module('Integration | card-catalog', function (hooks) {
216216

217217
assert
218218
.dom('[data-test-realm-filter-button]')
219-
.hasText(`Realm: ${realmName}, Base Workspace`);
219+
.hasText(`Workspace: ${realmName}, Base Workspace`);
220220
assert
221221
.dom('[data-test-realm]')
222222
.exists({ count: 2 }, 'Both realms are selected');
@@ -241,7 +241,7 @@ module('Integration | card-catalog', function (hooks) {
241241

242242
assert
243243
.dom('[data-test-realm-filter-button]')
244-
.hasText(`Realm: Base Workspace`);
244+
.hasText(`Workspace: Base Workspace`);
245245
assert.dom(`[data-test-realm="${realmName}"]`).doesNotExist();
246246
assert
247247
.dom('[data-test-realm="Base Workspace"] [data-test-card-catalog-item]')
@@ -260,13 +260,13 @@ module('Integration | card-catalog', function (hooks) {
260260
await click(`[data-test-boxel-menu-item-text="Base Workspace"]`);
261261
assert
262262
.dom('[data-test-realm-filter-button]')
263-
.hasText(`Realm: ${realmName}, Base Workspace`); // all realms selected
263+
.hasText(`Workspace: ${realmName}, Base Workspace`); // all realms selected
264264
await click('[data-test-realm-filter-button]');
265265
await click(`[data-test-boxel-menu-item-text="Base Workspace"]`);
266266
await click('[data-test-realm-filter-button]');
267267
await click(`[data-test-boxel-menu-item-text="${realmName}"]`); // all realms unselected
268268

269-
assert.dom('[data-test-realm-filter-button]').hasText('Realm: All');
269+
assert.dom('[data-test-realm-filter-button]').hasText('Workspace: All');
270270
assert
271271
.dom('[data-test-realm]')
272272
.exists(

0 commit comments

Comments
 (0)