Skip to content

Commit 4bbd8b6

Browse files
release: v0.50.1 (#283)
* fix(perf): Improve code splitting (#282) * perf: Improve code splitting Lazily import views to the main page instead of lazily import components to each view.
1 parent c8cbadd commit 4bbd8b6

37 files changed

Lines changed: 455 additions & 239 deletions

CHANGELOG.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## [0.50.1](https://github.com/upb-code-labs/react-client/compare/v0.50.0...v0.50.1) (2024-02-06)
2+
3+
4+
### Bug Fixes
5+
6+
* **perf:** Improve code splitting ([#282](https://github.com/upb-code-labs/react-client/issues/282)) ([48f2d4d](https://github.com/upb-code-labs/react-client/commit/48f2d4d4cd93b3cc46d00835d72773b4581926ad))
7+
8+
9+
110
# [0.50.0](https://github.com/upb-code-labs/react-client/compare/v0.49.1...v0.50.0) (2024-02-02)
211

312

@@ -34,12 +43,3 @@
3443

3544

3645

37-
## [0.48.1](https://github.com/upb-code-labs/react-client/compare/v0.48.0...v0.48.1) (2024-01-26)
38-
39-
40-
### Bug Fixes
41-
42-
* **ui:** Increase bar chart height according to the number of students ([#270](https://github.com/upb-code-labs/react-client/issues/270)) ([5c3dec5](https://github.com/upb-code-labs/react-client/commit/5c3dec5a232ff6ec3f44a509ba0c03f114c0bf84))
43-
44-
45-

e2e/rubrics/EditRubric.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ test.describe.serial("Rubrics edition workflow", () => {
9595
await page.getByLabel(`Edit ${rubricName}`).click();
9696

9797
// Wait for the input with the rubric name to be visible
98-
await expect(page.getByLabel("Name")).toBeVisible();
98+
await expect(page.getByLabel("Rubric name", {exact: true})).toBeVisible();
9999

100100
// Create objectives with their criteria
101101
const { objectives } = rubricData;
@@ -161,7 +161,7 @@ test.describe.serial("Rubrics edition workflow", () => {
161161
await page.getByLabel(`Edit ${rubricName}`).click();
162162

163163
// Wait for the input with the rubric name to be visible
164-
await expect(page.getByLabel("Name")).toBeVisible();
164+
await expect(page.getByLabel("Rubric name", {exact: true})).toBeVisible();
165165

166166
// Update the objective description
167167
const objectiveIndex = 1;
@@ -201,7 +201,7 @@ test.describe.serial("Rubrics edition workflow", () => {
201201
await page.getByLabel(`Edit ${rubricName}`).click();
202202

203203
// Wait for the input with the rubric name to be visible
204-
await expect(page.getByLabel("Name")).toBeVisible();
204+
await expect(page.getByLabel("Rubric name", {exact: true})).toBeVisible();
205205

206206
// Update the criteria
207207
const objectiveIndex = 1;
@@ -260,7 +260,7 @@ test.describe.serial("Rubrics edition workflow", () => {
260260
await page.getByLabel(`Edit ${rubricName}`).click();
261261

262262
// Wait for the input with the rubric name to be visible
263-
await expect(page.getByLabel("Name")).toBeVisible();
263+
await expect(page.getByLabel("Rubric name", {exact: true})).toBeVisible();
264264

265265
// Open the confirmation modal
266266
const objectiveIndex = 8;
@@ -303,7 +303,7 @@ test.describe.serial("Rubrics edition workflow", () => {
303303
await page.getByLabel(`Edit ${rubricName}`).click();
304304

305305
// Wait for the input with the rubric name to be visible
306-
await expect(page.getByLabel("Name")).toBeVisible();
306+
await expect(page.getByLabel("Rubric name", {exact: true})).toBeVisible();
307307

308308
// Open the confirmation modal
309309
const objectiveIndex = 8;

e2e/rubrics/rubric.json

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
{
55
"description": "Definición de la situación problema",
66
"criteria": [
7+
{
8+
"description": "No plantea la situación, necesidad, u oportunidad, que da origen al proyecto que intenta llevar a cabo.",
9+
"weight": 0
10+
},
711
{
812
"description": "Plantea en forma poco clara y no concisa la situación, necesidad, u oportunidad, que da origen al proyecto que intenta llevar a cabo; carece de la formulación de la pregunta de investigación.",
913
"weight": 0.05625
@@ -25,6 +29,10 @@
2529
{
2630
"description": "Marco tecnológico y conceptual",
2731
"criteria": [
32+
{
33+
"description": "No se evidencia indagación de fundamentos conceptuales de las temáticas o áreas asociadas a la situación problema planteada.",
34+
"weight": 0
35+
},
2836
{
2937
"description": "Se demuestra indagación de muy pocos fundamentos conceptuales de las temáticas o áreas asociadas a la situación problema planteada. Las aseveraciones y conceptos presentados carecen de validación por referentes referentes apropiados.",
3038
"weight": 0.05625
@@ -46,6 +54,10 @@
4654
{
4755
"description": "Objetivos",
4856
"criteria": [
57+
{
58+
"description": "No plantea los objetivos general y específicos.",
59+
"weight": 0
60+
},
4961
{
5062
"description": "Plantea los objetivos general y específicos; aunque los objetivos específicos no permiten evidenciar la consecución del objetivo general.",
5163
"weight": 0.1125
@@ -67,6 +79,10 @@
6779
{
6880
"description": "Justificación",
6981
"criteria": [
82+
{
83+
"description": "No sustenta la importancia de realizar el proyecto.",
84+
"weight": 0
85+
},
7086
{
7187
"description": "La justificación carece de un sustento claro de la importancia de realizar el proyecto.",
7288
"weight": 0.01875
@@ -88,6 +104,10 @@
88104
{
89105
"description": "Metodología",
90106
"criteria": [
107+
{
108+
"description": "No se presenta una metodología.",
109+
"weight": 0
110+
},
91111
{
92112
"description": "Aunque se presenta una metodología, la misma no refleja orden en las actividades o tareas que permitan el cumplimiento de los objetivos general y específicos.",
93113
"weight": 0.075
@@ -111,7 +131,7 @@
111131
"criteria": [
112132
{
113133
"description": "No presenta una lista de requisitos funcionales.",
114-
"weight": 0.1125
134+
"weight": 0
115135
},
116136
{
117137
"description": "Presenta requisitos funcionales que no describen las características del sistema.",
@@ -132,7 +152,7 @@
132152
"criteria": [
133153
{
134154
"description": "No se evidencian referentes pertinentes en el documento.",
135-
"weight": 0.0375
155+
"weight": 0
136156
},
137157
{
138158
"description": "Se incluyen menos 8 referentes pertinentes en el documento. 100% de referentes en español.",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "react-client",
33
"private": true,
4-
"version": "0.50.0",
4+
"version": "0.50.1",
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { InputWithLabelSkeleton } from "@/components/Skeletons/InputWithLabelSkeleton";
2+
import { Skeleton } from "@/components/ui/skeleton";
3+
4+
interface GenericFormSkeletonProps {
5+
inputCount: number;
6+
}
7+
8+
export const GenericFormSkeleton = ({
9+
inputCount
10+
}: GenericFormSkeletonProps) => {
11+
const inputsIndex = [...Array(inputCount)].map((_, index) => index);
12+
13+
return (
14+
<div className="mx-auto my-4 max-w-md space-y-4 border p-4 shadow-sm">
15+
{/* Title */}
16+
<Skeleton className="mx-auto h-9 w-3/4" />
17+
{inputsIndex.map((index) => (
18+
<InputWithLabelSkeleton key={`input-group-skeleton-${index}`} />
19+
))}
20+
{/* Submit button */}
21+
<Skeleton className="h-10 w-full" />
22+
</div>
23+
);
24+
};

src/components/Skeletons/HighlightableRubricSkeleton.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { RubricObjectivesSkeleton } from "@/screens/edit-rubric/skeletons/Rubric
33
export const HighlightableRubricSkeleton = () => {
44
return (
55
<div className="flex max-w-[calc(100vw-2rem)] flex-col gap-4 md:col-span-3">
6-
{/* rubric skeleton */}
76
<RubricObjectivesSkeleton />
87
</div>
98
);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { Skeleton } from "../ui/skeleton";
2+
3+
export const InputWithLabelSkeleton = () => {
4+
return (
5+
<div className="space-y-2">
6+
<Skeleton className="h-4 w-16" />
7+
<Skeleton className="h-10 w-full" />
8+
</div>
9+
);
10+
};

0 commit comments

Comments
 (0)