Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refined ux update a taxonomy by downloading and uploading (TEMP) #19

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4c22a0a
feat: refined ux update a taxonomy by downloading and uploading
rpenido Dec 7, 2023
63a1487
fix: eslint
rpenido Dec 7, 2023
1110979
fix: design adjustments
rpenido Dec 7, 2023
8eac9cb
fix: more design adjustments
rpenido Dec 7, 2023
830c991
test: fix tests
rpenido Dec 7, 2023
7a0a44c
test: fix api test
rpenido Dec 7, 2023
6a55c6f
refactor: move getFileSizeToClosestByte to root utils
rpenido Dec 8, 2023
1119041
fix: invalidate taxonomyDetail query
rpenido Dec 8, 2023
f56a05d
test: add testing-library/react-hooks and fix testing
rpenido Dec 8, 2023
cb52fd7
fix: rename files
rpenido Dec 8, 2023
94f1bf7
test: fix api test
rpenido Dec 8, 2023
b63147a
test: check invalidateQueries
rpenido Dec 8, 2023
3613f22
test: improve LoadingButton tests
rpenido Dec 8, 2023
2b8d534
test: fix LoadingButton test
rpenido Dec 8, 2023
895bbc4
test: add ImportTagsWizard tests
rpenido Dec 8, 2023
538d003
test: more ImportTagsWizard tests
rpenido Dec 8, 2023
1eea5d2
fix: types
rpenido Dec 8, 2023
d91716b
feat: add typings from code review
rpenido Dec 9, 2023
244b83b
refactor: typings and return of taxonomy import api
rpenido Dec 9, 2023
c85ebdc
fix: type import
rpenido Dec 9, 2023
707b1bd
Merge branch 'rpenido/fal-3532-import-taxonomy' into rpenido/fal-3539…
rpenido Dec 9, 2023
aa5fc4f
Merge branch 'rpenido/fal-3532-import-taxonomy' into rpenido/fal-3539…
rpenido Dec 15, 2023
9fce34b
fix: TaxonomyContext types
rpenido Dec 15, 2023
89f8116
feat: add toast and error message
rpenido Dec 15, 2023
5dd25a2
fix: layout alert message
rpenido Dec 15, 2023
676a636
fix: types and lint
rpenido Dec 15, 2023
23c28af
fix: lint
rpenido Dec 15, 2023
ad69e11
fix: error message
rpenido Dec 18, 2023
f6cfcf3
Merge branch 'rpenido/fal-3532-import-taxonomy' into rpenido/fal-3539…
rpenido Dec 18, 2023
2d3abe8
fix: use scss utility
rpenido Dec 18, 2023
cfa01b6
style: add PR in comment
rpenido Dec 18, 2023
e0f1a40
Merge branch 'rpenido/fal-3532-import-taxonomy' into rpenido/fal-3539…
rpenido Dec 19, 2023
8bcbb64
fix: missing }
rpenido Dec 19, 2023
a33aa8a
Merge branch 'rpenido/fal-3532-import-taxonomy' into rpenido/fal-3539…
rpenido Dec 19, 2023
7900876
fix: import taxonomy type
rpenido Dec 19, 2023
46b7b3e
revert: changes in package-lock.json
rpenido Dec 20, 2023
e54fd45
refactor: rename close -> onClose
rpenido Dec 20, 2023
a51bb40
test: change to getByText
rpenido Dec 20, 2023
9a35f1a
Merge branch 'rpenido/fal-3532-import-taxonomy' into rpenido/fal-3539…
rpenido Dec 21, 2023
4ffebda
fix(deps): update dependency @edx/frontend-lib-content-components to …
renovate[bot] Dec 21, 2023
ef20d55
fix: add a div over the dialog to prevent the user to interact while …
rpenido Dec 21, 2023
65ca5a9
fix: add title to dialog to remove console warning
rpenido Dec 26, 2023
ff234b4
fix: add title property to Stepper.Step to fix warning
rpenido Dec 26, 2023
72d82d6
fix: remove warning when toastMessage = null
rpenido Dec 26, 2023
2788621
feat: Add filter taxonomies by org (#755)
yusuf-musleh Jan 4, 2024
52b75e0
fix: uploading progress percentage (#763)
KristinAoki Jan 4, 2024
2e070c9
feat: error page on invalid course key (#761)
ArturGaspar Jan 4, 2024
2205506
chore: removed reported_content_email_notifications_flag dependency (…
ayesha-waris Jan 5, 2024
6c0fc09
feat: add import taxonomy feature [FC-0036] (#675)
rpenido Jan 8, 2024
138f1d2
feat: Add v2 lib components content tags support (#771)
yusuf-musleh Jan 8, 2024
3e5931d
Merge branch 'master' into rpenido/fal-3539-refined-ux-update-a-taxon…
rpenido Jan 8, 2024
67e0f7b
fix: merging errors
rpenido Jan 8, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 227 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion src/CourseAuthoringPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { StudioFooter } from '@edx/frontend-component-footer';
import Header from './header';
import { fetchCourseDetail } from './data/thunks';
import { useModel } from './generic/model-store';
import NotFoundAlert from './generic/NotFoundAlert';
import PermissionDeniedAlert from './generic/PermissionDeniedAlert';
import { getCourseAppsApiStatus } from './pages-and-resources/data/selectors';
import { RequestStatus } from './data/constants';
Expand Down Expand Up @@ -50,10 +51,16 @@ const CourseAuthoringPage = ({ courseId, children }) => {
const courseOrg = courseDetail ? courseDetail.org : null;
const courseTitle = courseDetail ? courseDetail.name : courseId;
const courseAppsApiStatus = useSelector(getCourseAppsApiStatus);
const inProgress = useSelector(state => state.courseDetail.status) === RequestStatus.IN_PROGRESS;
const courseDetailStatus = useSelector(state => state.courseDetail.status);
const inProgress = courseDetailStatus === RequestStatus.IN_PROGRESS;
const { pathname } = useLocation();
const showHeader = !pathname.includes('/editor');

if (courseDetailStatus === RequestStatus.NOT_FOUND) {
return (
<NotFoundAlert />
);
}
if (courseAppsApiStatus === RequestStatus.DENIED) {
return (
<PermissionDeniedAlert />
Expand Down
Loading