Skip to content

Commit a7232fc

Browse files
committed
clean up stories
1 parent ccce5ea commit a7232fc

5 files changed

Lines changed: 29 additions & 129 deletions

File tree

extensions/src/platform-get-resources/src/home.component.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { HomeItemDropdownMenu } from './home-item-menu';
2525
import ProjectResourceFilter, {
2626
FilterOption,
2727
ProjectResourceFilterValue,
28-
} from './projectResourceFilter.component';
28+
} from './project-resource-filter.component';
2929

3030
/**
3131
* Object containing all keys used for localization in this component. If you're using this

extensions/src/platform-get-resources/src/home.stories.tsx

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,23 @@ const staticLocalProjectsAndResources: LocalProjectInfo[] = [
5656
fullName: 'Resource 1',
5757
name: 'Res1',
5858
language: 'myLanguage',
59+
isResource: true,
5960
},
6061
{
6162
projectId: '2',
6263
isEditable: false,
6364
fullName: 'Resource 2',
6465
name: 'Res2',
6566
language: 'English',
67+
isResource: true,
6668
},
6769
{
6870
projectId: '13',
6971
isEditable: true,
7072
fullName: 'Project 4 - editable',
7173
name: 'Pr4',
7274
language: '2ndLanguage',
75+
isResource: false,
7376
},
7477
{
7578
projectId: '14',
@@ -78,20 +81,23 @@ const staticLocalProjectsAndResources: LocalProjectInfo[] = [
7881
'Project 3 - read-only This_is_a_project_with_a_very_long_name_01234567890_!/"§$%&/()=?_öäüß',
7982
name: 'Pr3',
8083
language: '2ndLanguage',
84+
isResource: false,
8185
},
8286
{
8387
projectId: '25',
8488
isEditable: true,
8589
fullName: 'Project 5 - editable',
8690
name: 'Pr5',
8791
language: 'German',
92+
isResource: false,
8893
},
8994
{
9095
projectId: '26',
9196
isEditable: false,
9297
fullName: 'SDBH/SDBG',
9398
name: 'SdDict',
9499
language: 'Hebrew/Greek',
100+
isResource: true,
95101
},
96102
];
97103

@@ -154,6 +160,26 @@ function DefaultHomeDecorator(Story: (update?: { args: HomeProps }) => ReactElem
154160
'%resources_sync%': 'Sync',
155161
'%resources_get%': 'Get',
156162
'%resources_shortNameText%': 'Name',
163+
'%resources_filter_all%': 'All',
164+
'%resources_paratextProjects_label%': 'Paratext Projects',
165+
'%resources_resources_label%': 'Resources',
166+
'%resources_noItemsFound%': 'No {0} found.',
167+
'%resources_items%': 'items',
168+
'%resources_language%': 'Language',
169+
'%resources_filterInput%': 'Search by name, language',
170+
'%resources_noSearchResults%': 'Nothing found.',
171+
'%resources_noProjects%': 'Nothing here.',
172+
'%resources_noProjectsInstruction%':
173+
'To get started, ask a teammate to add you to a project, or get resources.',
174+
'%resources_getStarted%': 'Get started',
175+
'%resources_getStartedDescription%': 'Expecting more items?',
176+
'%resources_getResources%': 'Get resources',
177+
'%resources_searchedFor%': 'Searched for',
178+
'%resources_clearSearch%': 'Clear Search',
179+
'%resources_clearFilters%': 'Clear Filters',
180+
'%resources_activity%': 'Activity',
181+
'%resources_action%': 'Action',
182+
'%resources_fullName%': 'Full Name',
157183
},
158184
false,
159185
],
@@ -198,6 +224,7 @@ function OnlyWebProjectDecorator(Story: (update?: { args: HomeProps }) => ReactE
198224
fullName: 'The WEB project',
199225
name: 'WEB',
200226
language: 'myLanguage',
227+
isResource: true,
201228
},
202229
];
203230

extensions/src/platform-get-resources/src/projectResourceFilter.component.tsx renamed to extensions/src/platform-get-resources/src/project-resource-filter.component.tsx

File renamed without changes.

extensions/src/platform-get-resources/src/stories/project-resource-filter.stories.tsx renamed to extensions/src/platform-get-resources/src/project-resource-filter.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { BookOpen, ScrollText } from 'lucide-react';
55
import ProjectResourceFilter, {
66
FilterOption,
77
ProjectResourceFilterProps,
8-
} from '../projectResourceFilter.component';
8+
} from './project-resource-filter.component';
99

1010
const options: FilterOption[] = [
1111
{

extensions/src/platform-get-resources/src/stories/home.stories.tsx

Lines changed: 0 additions & 127 deletions
This file was deleted.

0 commit comments

Comments
 (0)