-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: follow existing structure for reactQuery/APIs
- Loading branch information
1 parent
b3ac452
commit d1d1ee0
Showing
17 changed files
with
513 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
module.exports = { | ||
id: 'block-v1:SampleTaxonomyOrg1+STC1+2023_1+type@vertical+block@7f47fe2dbcaf47c5a071671c741fe1ab', | ||
displayName: 'Unit 1.1.2', | ||
category: 'vertical', | ||
hasChildren: true, | ||
editedOn: 'Nov 12, 2023 at 09:53 UTC', | ||
published: false, | ||
publishedOn: null, | ||
studioUrl: '/container/block-v1:SampleTaxonomyOrg1+STC1+2023_1+type@vertical+block@7f47fe2dbcaf47c5a071671c741fe1ab', | ||
releasedToStudents: false, | ||
releaseDate: null, | ||
visibilityState: 'needs_attention', | ||
hasExplicitStaffLock: false, | ||
start: '2030-01-01T00:00:00Z', | ||
graded: false, | ||
dueDate: '', | ||
due: null, | ||
relativeWeeksDue: null, | ||
format: null, | ||
courseGraders: [ | ||
'Homework', | ||
'Lab', | ||
'Midterm Exam', | ||
'Final Exam', | ||
], | ||
hasChanges: true, | ||
actions: { | ||
deletable: true, | ||
draggable: true, | ||
childAddable: true, | ||
duplicable: true, | ||
}, | ||
explanatoryMessage: null, | ||
groupAccess: {}, | ||
userPartitions: [ | ||
{ | ||
id: 50, | ||
name: 'Enrollment Track Groups', | ||
scheme: 'enrollment_track', | ||
groups: [ | ||
{ | ||
id: 1, | ||
name: 'Audit', | ||
selected: false, | ||
deleted: false, | ||
}, | ||
], | ||
}, | ||
], | ||
showCorrectness: 'always', | ||
discussionEnabled: true, | ||
ancestorHasStaffLock: false, | ||
taxonomyTagsWidgetUrl: 'http://localhost:2001/tagging/components/widget/', | ||
staffOnlyMessage: false, | ||
enableCopyPasteUnits: true, | ||
useTaggingTaxonomyListPage: true, | ||
hasPartitionGroupComponents: false, | ||
userPartitionInfo: { | ||
selectablePartitions: [], | ||
selectedPartitionIndex: -1, | ||
selectedGroupsLabel: '', | ||
}, | ||
}; |
50 changes: 50 additions & 0 deletions
50
src/content-tags-drawer/__mocks__/contentTaxonomyTagsMock.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
module.exports = { | ||
'block-v1:SampleTaxonomyOrg1+STC1+2023_1+type@vertical+block@aaf8b8eb86b54281aeeab12499d2cb0b': { | ||
taxonomies: [ | ||
{ | ||
name: 'FlatTaxonomy', | ||
taxonomyId: 3, | ||
editable: true, | ||
tags: [ | ||
{ | ||
value: 'flat taxonomy tag 3856', | ||
lineage: [ | ||
'flat taxonomy tag 3856', | ||
], | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'HierarchicalTaxonomy', | ||
taxonomyId: 4, | ||
editable: true, | ||
tags: [ | ||
{ | ||
value: 'hierarchical taxonomy tag 1.7.59', | ||
lineage: [ | ||
'hierarchical taxonomy tag 1', | ||
'hierarchical taxonomy tag 1.7', | ||
'hierarchical taxonomy tag 1.7.59', | ||
], | ||
}, | ||
{ | ||
value: 'hierarchical taxonomy tag 2.13.46', | ||
lineage: [ | ||
'hierarchical taxonomy tag 2', | ||
'hierarchical taxonomy tag 2.13', | ||
'hierarchical taxonomy tag 2.13.46', | ||
], | ||
}, | ||
{ | ||
value: 'hierarchical taxonomy tag 3.4.50', | ||
lineage: [ | ||
'hierarchical taxonomy tag 3', | ||
'hierarchical taxonomy tag 3.4', | ||
'hierarchical taxonomy tag 3.4.50', | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default as taxonomyTagsMock } from './taxonomyTagsMock'; | ||
export { default as contentTaxonomyTagsMock } from './contentTaxonomyTagsMock'; | ||
export { default as contentDataMock } from './contentDataMock'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
module.exports = { | ||
next: null, | ||
previous: null, | ||
count: 4, | ||
numPages: 1, | ||
currentPage: 1, | ||
start: 0, | ||
results: [ | ||
{ | ||
value: 'tag 1', | ||
externalId: null, | ||
childCount: 16, | ||
depth: 0, | ||
parentValue: null, | ||
id: 635951, | ||
subTagsUrl: 'http://localhost:18010/api/content_tagging/v1/taxonomies/4/tags/?parent_tag=tag%201', | ||
}, | ||
{ | ||
value: 'tag 2', | ||
externalId: null, | ||
childCount: 16, | ||
depth: 0, | ||
parentValue: null, | ||
id: 636992, | ||
subTagsUrl: 'http://localhost:18010/api/content_tagging/v1/taxonomies/4/tags/?parent_tag=tag%202', | ||
}, | ||
{ | ||
value: 'tag 3', | ||
externalId: null, | ||
childCount: 16, | ||
depth: 0, | ||
parentValue: null, | ||
id: 638033, | ||
subTagsUrl: 'http://localhost:18010/api/content_tagging/v1/taxonomies/4/tags/?parent_tag=tag%203', | ||
}, | ||
{ | ||
value: 'tag 4', | ||
externalId: null, | ||
childCount: 16, | ||
depth: 0, | ||
parentValue: null, | ||
id: 639074, | ||
subTagsUrl: 'http://localhost:18010/api/content_tagging/v1/taxonomies/4/tags/?parent_tag=tag%204', | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.