@openedx/frontend-app-instructor-dashboard 1.0.0-alpha.15 → 1.0.0-alpha.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/app.scss +4 -0
  2. package/dist/components/ActionCard.d.ts +2 -2
  3. package/dist/components/ActionCard.js +1 -1
  4. package/dist/components/ActionCard.js.map +1 -1
  5. package/dist/components/PendingTasks.d.ts +3 -1
  6. package/dist/components/PendingTasks.js +3 -2
  7. package/dist/components/PendingTasks.js.map +1 -1
  8. package/dist/components/SpecifyLearnerField.d.ts +4 -1
  9. package/dist/components/SpecifyLearnerField.js +18 -7
  10. package/dist/components/SpecifyLearnerField.js.map +1 -1
  11. package/dist/components/SpecifyProblemField.d.ts +13 -0
  12. package/dist/components/SpecifyProblemField.js +46 -0
  13. package/dist/components/SpecifyProblemField.js.map +1 -0
  14. package/dist/components/messages.d.ts +20 -0
  15. package/dist/components/messages.js +20 -0
  16. package/dist/components/messages.js.map +1 -1
  17. package/dist/data/api.d.ts +1 -0
  18. package/dist/data/api.js +7 -0
  19. package/dist/data/api.js.map +1 -1
  20. package/dist/data/apiHook.d.ts +1 -0
  21. package/dist/data/apiHook.js +10 -2
  22. package/dist/data/apiHook.js.map +1 -1
  23. package/dist/data/queryKeys.d.ts +4 -0
  24. package/dist/data/queryKeys.js +4 -0
  25. package/dist/data/queryKeys.js.map +1 -1
  26. package/dist/grading/GradingPage.js +5 -1
  27. package/dist/grading/GradingPage.js.map +1 -1
  28. package/dist/grading/components/GradingLearnerContent.d.ts +2 -1
  29. package/dist/grading/components/GradingLearnerContent.js +106 -4
  30. package/dist/grading/components/GradingLearnerContent.js.map +1 -1
  31. package/dist/grading/data/api.d.ts +5 -0
  32. package/dist/grading/data/api.js +42 -0
  33. package/dist/grading/data/api.js.map +1 -1
  34. package/dist/grading/data/apiHook.d.ts +5 -0
  35. package/dist/grading/data/apiHook.js +22 -2
  36. package/dist/grading/data/apiHook.js.map +1 -1
  37. package/dist/grading/data/queryKeys.d.ts +4 -0
  38. package/dist/grading/data/queryKeys.js +1 -0
  39. package/dist/grading/data/queryKeys.js.map +1 -1
  40. package/dist/grading/messages.d.ts +110 -0
  41. package/dist/grading/messages.js +110 -0
  42. package/dist/grading/messages.js.map +1 -1
  43. package/dist/grading/types.d.ts +10 -0
  44. package/dist/grading/types.js.map +1 -1
  45. package/dist/hooks/useDebouncedFilter.d.ts +1 -0
  46. package/dist/hooks/useDebouncedFilter.js +5 -0
  47. package/dist/hooks/useDebouncedFilter.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/components/SpecifyProblem.d.ts +0 -2
  50. package/dist/components/SpecifyProblem.js +0 -6
  51. package/dist/components/SpecifyProblem.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"useDebouncedFilter.js","sourceRoot":"","sources":["../../src/hooks/useDebouncedFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQlC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,WAAW,EACX,SAAS,EACT,KAAK,GAAG,GAAG,EACa,EAAE,EAAE;IAC5B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAEhE,0CAA0C;IAC1C,6GAA6G;IAC7G,uDAAuD;IACvD,MAAM,kBAAkB,GAAG,WAAW,CACpC,QAAQ,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EACpD,CAAC,SAAS,EAAE,KAAK,CAAC,CACnB,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE;QACrC,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO;QACL,UAAU;QACV,YAAY;KACb,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { debounce } from 'lodash';\n\ninterface UseDebouncedFilterProps {\n filterValue: string,\n setFilter: (value: string) => void,\n delay?: number,\n}\n\n/**\n * Hook for handling debounced filter input with automatic synchronization\n * @param filterValue - Current filter value from parent component\n * @param setFilter - Function to update the filter in parent component\n * @param delay - Debounce delay in milliseconds (default: 600ms)\n */\nexport const useDebouncedFilter = ({\n filterValue,\n setFilter,\n delay = 600\n}: UseDebouncedFilterProps) => {\n const [inputValue, setInputValue] = useState(filterValue || '');\n\n // Debounced function to update the filter\n // Added 600ms delay after testing on 3G network - good balance between responsiveness and reducing API calls\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const debouncedSetFilter = useCallback(\n debounce((value: string) => setFilter(value), delay),\n [setFilter, delay]\n );\n\n useEffect(() => {\n setInputValue(filterValue || '');\n }, [filterValue]);\n\n const handleChange = (value: string) => {\n setInputValue(value);\n debouncedSetFilter(value);\n };\n\n return {\n inputValue,\n handleChange,\n };\n};\n"]}
1
+ {"version":3,"file":"useDebouncedFilter.js","sourceRoot":"","sources":["../../src/hooks/useDebouncedFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAQlC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EACjC,WAAW,EACX,SAAS,EACT,KAAK,GAAG,GAAG,EACa,EAAE,EAAE;IAC5B,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IAEhE,0CAA0C;IAC1C,6GAA6G;IAC7G,uDAAuD;IACvD,MAAM,kBAAkB,GAAG,WAAW,CACpC,QAAQ,CAAC,CAAC,KAAa,EAAE,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,EACpD,CAAC,SAAS,EAAE,KAAK,CAAC,CACnB,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACb,aAAa,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;IACnC,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,MAAM,YAAY,GAAG,CAAC,KAAa,EAAE,EAAE;QACrC,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,aAAa,CAAC,EAAE,CAAC,CAAC;QAClB,SAAS,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC,CAAC;IAEF,OAAO;QACL,UAAU;QACV,YAAY;QACZ,WAAW;KACZ,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport { debounce } from 'lodash';\n\ninterface UseDebouncedFilterProps {\n filterValue: string,\n setFilter: (value: string) => void,\n delay?: number,\n}\n\n/**\n * Hook for handling debounced filter input with automatic synchronization\n * @param filterValue - Current filter value from parent component\n * @param setFilter - Function to update the filter in parent component\n * @param delay - Debounce delay in milliseconds (default: 600ms)\n */\nexport const useDebouncedFilter = ({\n filterValue,\n setFilter,\n delay = 600\n}: UseDebouncedFilterProps) => {\n const [inputValue, setInputValue] = useState(filterValue || '');\n\n // Debounced function to update the filter\n // Added 600ms delay after testing on 3G network - good balance between responsiveness and reducing API calls\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const debouncedSetFilter = useCallback(\n debounce((value: string) => setFilter(value), delay),\n [setFilter, delay]\n );\n\n useEffect(() => {\n setInputValue(filterValue || '');\n }, [filterValue]);\n\n const handleChange = (value: string) => {\n setInputValue(value);\n debouncedSetFilter(value);\n };\n\n const resetFilter = () => {\n setInputValue('');\n setFilter('');\n };\n\n return {\n inputValue,\n handleChange,\n resetFilter,\n };\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/frontend-app-instructor-dashboard",
3
- "version": "1.0.0-alpha.15",
3
+ "version": "1.0.0-alpha.17",
4
4
  "description": "The Open edX Instructor Dashboard",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,2 +0,0 @@
1
- declare const SpecifyProblem: () => import("react/jsx-runtime").JSX.Element;
2
- export default SpecifyProblem;
@@ -1,6 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- const SpecifyProblem = () => {
3
- return _jsx("div", { children: "Specify Problem" });
4
- };
5
- export default SpecifyProblem;
6
- //# sourceMappingURL=SpecifyProblem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SpecifyProblem.js","sourceRoot":"","sources":["../../src/components/SpecifyProblem.tsx"],"names":[],"mappings":";AAAA,MAAM,cAAc,GAAG,GAAG,EAAE;IAC1B,OAAO,4CAA0B,CAAC;AACpC,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC","sourcesContent":["const SpecifyProblem = () => {\n return <div>Specify Problem</div>;\n};\n\nexport default SpecifyProblem;\n"]}