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

Fix Class Management #85

Open
wants to merge 19 commits into
base: development
Choose a base branch
from
Open

Fix Class Management #85

wants to merge 19 commits into from

Conversation

Fouz7
Copy link
Collaborator

@Fouz7 Fouz7 commented Nov 13, 2024

No description provided.

Fouz7 and others added 7 commits October 28, 2024 10:28
# Conflicts:
#	src/App.jsx
#	src/utils/axios/axiosConfig.js
* feat: responsive internship management (#68)

* feat: implementation coordinator api in select coordinator component on create internship

* feat: integration create internship api

* fix: solve null internship context at internship dashboard

* fix: direct user to login if token is expired

* refactor: remove unused file in program management component

* feat: responsive internship card component at internship dashboard

* feat: responsive internship header

* feat: responsive list internship at internship dashboard

* feat:responsive header dashboard component

* feat: responsive detail internship

* refactor: remove unnecessary file

* fix: header breadcumb component on all page

* fix: responsive internship card title on mobile phone

* feat: add limit chars for header dashboard component

* fix: limit breadcumb char on header dashboard component

* feat: dynamic path on header dashboard component

* feat: add collapses component on detail description internship

* style: change bg color on delete btn and modal

* feat: responsive header on 300-400px width

* feat: responsive internship card on screen less than 460

* refactor(Opportunity): refactor and standarize the code styles

* fix(Opportunity): fix text rich editor render method on update opportunity

* fix: payload empty after click submit at forgot password page (#69)
# Conflicts:
#	package-lock.json
#	src/App.jsx
#	src/components/components.js
#	src/enums/enums.js
#	src/hooks/hooks.js
#	src/pages/Auth/ForgotPassword.jsx
#	src/pages/Auth/Login.jsx
#	src/pages/Class/ClassDashboard.jsx
#	src/pages/Internship/libs/components/DetailInternship/DetailInternship.jsx
#	src/pages/Internship/libs/components/ListInternship/ListInternship.jsx
#	src/pages/Major/MajorDashboard.jsx
#	src/pages/School/SchoolDashboard.jsx
src/context/ClassContext.jsx Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassFilterButton.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassFilterButton.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassFilterButton.jsx Outdated Show resolved Hide resolved
…management

# Conflicts:
#	src/components/components.js
#	src/hooks/hooks.js
#	src/pages/Class/ClassDashboard.jsx
#	src/pages/Class/libs/components/ClassList/ClassColumns.jsx
#	src/pages/Class/libs/components/ClassList/ClassTable.jsx
import {createContext, useState, useCallback} from "react";
import {ClassApi} from "@/utils/axios/ApiService";
import { createContext, useMemo } from "react";
import useClass from "@/hooks/class/useClass.js";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@/hooks/hooks

src/hooks/class/useClass.js Outdated Show resolved Hide resolved
src/hooks/class/useClass.js Outdated Show resolved Hide resolved
@@ -0,0 +1,94 @@
import {useState, useEffect, useRef} from "@/hooks/hooks";
import {Button, Checkbox} from "antd";
import {CaretDownFilled} from "@ant-design/icons";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import {Button, Checkbox, CaretDownFilled} from @/components/components

src/pages/Class/libs/components/ClassList/ClassColumns.jsx Outdated Show resolved Hide resolved
@@ -0,0 +1,45 @@
import { Header } from "@/components/Dashboard/Header.jsx";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@/components/components

@@ -0,0 +1,45 @@
import { Header } from "@/components/Dashboard/Header.jsx";
import { useEffect, useState } from "react";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@/hooks/hooks

afterClose={() => setShowAlert(false)}
style={{
position: 'fixed',
width: '80%',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use tailwind className

src/context/ClassContext.jsx Outdated Show resolved Hide resolved
src/hooks/class/useClass.js Outdated Show resolved Hide resolved
src/pages/Class/ClassDashboard.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassList/ClassHeader.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassList/ClassHeader.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassList/ClassHeader.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassList/ClassHeader.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassList/ClassTable.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/ClassList/index.js Outdated Show resolved Hide resolved
@iqbalalayubbi
Copy link
Collaborator

Don't forget to solve your conflict

…ev-sp8-class-management

# Conflicts:
#	src/App.jsx
#	src/components/components.js
#	src/context/ClassContext.jsx
#	src/pages/Class/ClassDashboard.jsx
#	src/pages/Class/libs/components/ClassList/ClassTable.jsx
#	src/pages/Class/libs/components/modals/ClassDetail.jsx
#	src/pages/Dashboard/Dashboard.jsx
#	src/utils/axios/api/Class.js
@@ -0,0 +1,84 @@
import { useCallback, useState } from "react";
import { ClassApi } from "@/utils/axios/ApiService.js";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import { ClassApi } from "@/utils/utils";

<Header
pageName="Class Dashboard"
subPages={[
{ title: "Class Management", path: "/class-management" }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import { AppRoute } from "@/enums/enums";

path: AppRoute.CLASS_MANAGEMENT

src/pages/Class/libs/components/modals/ClassDetail.jsx Outdated Show resolved Hide resolved
import {ClassApi, MajorApi} from "@/utils/axios/ApiService.js";
import {fetchMajors} from "@/pages/Class/libs/components/utils.js";
import {ClassApi} from "@/utils/utils";
import {fetchMajors} from "@/utils/utils";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import {fetchMajors, ClassApi} from "@/utils/utils";

import {fetchClassData, fetchMajors} from "@/pages/Class/libs/components/utils.js";
import {ClassApi} from "@/utils/axios/ApiService.js";
import {fetchClassData, fetchMajors} from "@/utils/utils";
import {ClassApi} from "@/utils/utils";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import {fetchClassData, fetchMajors, ClassApi} from "@/utils/utils";

src/hooks/class/useClass.js Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this file is not imported in any file

src/pages/Class/libs/components/ClassList/ClassTable.jsx Outdated Show resolved Hide resolved
@@ -0,0 +1,79 @@
import {useState, useEffect, useRef} from "@/hooks/hooks.js";
import {Button, Checkbox, CaretDownFilled} from "@/components/components.js";
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove ".js" from import statement

src/pages/Class/libs/components/modals/ClassDetail.jsx Outdated Show resolved Hide resolved
src/pages/Class/libs/components/modals/UpdateClass.jsx Outdated Show resolved Hide resolved
@iqbalalayubbi
Copy link
Collaborator

I get this error when running your branch in my local. This error occur when user access school menu
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants