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

Prod #1553

Merged
merged 38 commits into from
May 30, 2024
Merged

Prod #1553

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
a112f5c
fix: issue template updated
Jenin82 May 14, 2024
25fb1ee
chore: update feature_form.yml
Jenin82 May 14, 2024
c465eab
chore: update feature_form.yml
Jenin82 May 14, 2024
1307691
chore: update feature_form.yml
Jenin82 May 14, 2024
d9a904c
chore: update feature_form.yml
Jenin82 May 14, 2024
01bbe16
chore: update feature_form.yml
Jenin82 May 14, 2024
3feb687
chore: update feature_form.yml
Jenin82 May 14, 2024
d4f8955
chore: update feature_form.yml
Jenin82 May 14, 2024
d1e01cc
fix(manageUser): Fixed as issue where editing users required mobile n…
karivarkey May 18, 2024
8fdd4bf
feat(donation): added the donation page
AFarHitman7 May 18, 2024
0e8a073
Merge pull request #1496 from karivarkey/dev
viraka May 19, 2024
1ba5c15
Merge pull request #1503 from AFarHitman7/dev
viraka May 19, 2024
18087e5
fix(donation): fixed build issue
AFarHitman7 May 19, 2024
3107c9d
Merge pull request #1508 from AFarHitman7/dev
viraka May 19, 2024
7092765
fix(wadhwani): fixed toast issue and loader added
arjuncvinod May 19, 2024
8687adb
Merge pull request #1515 from arjuncvinod/dev
viraka May 19, 2024
dd94de0
Merge pull request #1507 from gtech-mulearn/dev
viraka May 19, 2024
fd51027
fix(donation): integrated UI and logic
GeorgeET15 May 19, 2024
cfc0bdd
Merge pull request #1518 from GeorgeET15/dev
viraka May 19, 2024
d9b110d
fix(App): Removed test donation page.
viraka May 19, 2024
fdd6817
chore(donation): deleted test donation pages.
viraka May 19, 2024
5303c89
fix(donation): added organization field.
viraka May 19, 2024
360e69f
fix(refund): changed css import.
viraka May 19, 2024
56445ee
Merge pull request #1519 from gtech-mulearn/dev
viraka May 19, 2024
827ee1d
chore: added assets.
viraka May 19, 2024
7162c3e
chore: changed assets.
viraka May 19, 2024
3ca9f5a
fix(donation): changed modal color.
viraka May 19, 2024
9275719
Merge pull request #1520 from gtech-mulearn/dev
viraka May 19, 2024
f4e3e71
fix(donation): fixed refund styles
AFarHitman7 May 19, 2024
c5bffd5
Merge pull request #1521 from AFarHitman7/dev
viraka May 19, 2024
b1268c3
Merge pull request #1522 from gtech-mulearn/dev
viraka May 19, 2024
3558dbf
fix(donation): added hyperlinks
AFarHitman7 May 20, 2024
2b0cb27
Merge branch 'gtech-mulearn:dev' into dev
AFarHitman7 May 20, 2024
1b6a96c
Merge pull request #1532 from AFarHitman7/dev
viraka May 20, 2024
289c30a
fix(manageUser) : Fixed issue where mobile number was needed in manag…
karivarkey May 20, 2024
ca620df
Merge branch 'dev' of https://github.com/karivarkey/mulearn into dev
karivarkey May 20, 2024
31d77f6
Merge pull request #1529 from karivarkey/dev
viraka May 20, 2024
aeadb08
Merge pull request #1530 from gtech-mulearn/dev
viraka May 21, 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
60 changes: 0 additions & 60 deletions .github/ISSUE_TEMPLATE/feature.md

This file was deleted.

80 changes: 28 additions & 52 deletions .github/ISSUE_TEMPLATE/feature_form.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,46 @@
name: Mulearn Ticket Form
description: Create a new Ticket for MuLearn Community
title: "[MuLearn Community]: "
labels: ["New Login Page"]
name: Mulearn Feature Request
description: Create a new Feature Request for MuLearn Community
labels: ["enhancement"]
body:
- type: markdown
attributes:
value: |
Please fill out the sections below to properly describe the new feature you are suggesting.
- type: textarea
id: ticket-description
id: description
validations:
required: true
attributes:
label: Ticket Contents
value: |
## Description
[Provide a brief description of the feature, including why it is needed and what it will accomplish.]
label: Description
placeholder: |
A button in the screen X that allows to do Y
- type: textarea
id: ticket-goals
id: goals
validations:
required: true
attributes:
label: Goals
description: List the goals of the feature.
value: |
## Goals
- [ ] Goal 1
- [ ] Goal 2
- [ ] Goal 3
- type: textarea
id: ticket-expected-outcome
attributes:
label: Expected Outcome
description: Describe in detail what the final product or result should look like and how it should behave.

- type: textarea
id: ticket-acceptance-criteria
attributes:
label: Acceptance Criteria
description: List the acceptance criteria for this feature.
placeholder: |
- Goal 1
- Goal 2
- type: textarea
id: ticket-implementation-details
id: implementation-details
validations:
required: true
attributes:
label: Implementation Details
description: List any technical details about the proposed implementation, including any specific technologies that will be used.

- type: textarea
id: ticket-mockups
attributes:
label: Mockups/Wireframes
description: Include links to any visual aids, mockups, wireframes, or diagrams that help illustrate what the final product should look like. This is not always necessary, but can be very helpful in many cases.

- type: input
id: ticket-product
attributes:
label: Product Name
placeholder: Enter Product Name
validations:
required: true

- type: input
id: ticket-governance-domain
attributes:
label: Domain
placeholder: Enter Area of Governance
placeholder: |
- Implementation Detail 1
- Implementation Detail 2
- also add images is possible
- type: dropdown
id: ticket-technical-skills-required
id: skills-required
attributes:
label: Tech Skills Needed
description: Select the technologies needed for this ticket (use Ctrl or Command to select multiple)
Expand Down Expand Up @@ -163,6 +136,8 @@ body:
attributes:
label: Mentor(s)
description: Please tag relevant mentors for the ticket
placeholder: |
@Jenin82
validations:
required: true

Expand All @@ -180,21 +155,22 @@ body:
required: true

- type: dropdown
id: ticket-category
id: category
attributes:
label: Category
description: Choose the categories that best describe your ticket
multiple: true
options:
- API
- Analytics
- Accessibility
- Backend
- Database
- Documentation
- Delpoyment
- Frontend
- Testing
- Bot
- UI
- UX
- Other
validations:
required: true
Expand Down
36 changes: 0 additions & 36 deletions .github/ISSUE_TEMPLATE/new-feature.yml

This file was deleted.

4 changes: 2 additions & 2 deletions package-lock.json

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

Binary file added public/assets/µLearn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ import DiscordModeration from "./modules/Dashboard/modules/DiscordModeration/Dis
import Test from "./modules/Dashboard/modules/Test/Test";
import Analytics from "./modules/Dashboard/modules/UrlShortener/Pages/Analytics";
import Donation from "./modules/Public/Donation/Donation";
import Refund from "./modules/Public/Donation/pages/Refund";

const Profile = lazy(
() => import("./modules/Dashboard/modules/Profile/pages/Profile")
);
Expand Down Expand Up @@ -266,6 +268,10 @@ function App() {
path: "donation",
element: <Donation />
},
{
path: "donation/refund",
element: <Refund />
},
{
path: "/",
element: <AuthRoutes />,
Expand Down
4 changes: 2 additions & 2 deletions src/modules/Dashboard/modules/ManageUsers/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type InitialLocationData = {
state: { label: string; value: string };
district: { label: string; value: string };
} | null;
const requiredFields = ["full_name", "email", "mobile"];
const requiredFields = ["full_name", "email"];
const UserForm = forwardRef(
(props: Props & { closeModal: () => void }, ref: any) => {
const [initialData, setInitialData] =
Expand Down Expand Up @@ -378,7 +378,7 @@ const UserForm = forwardRef(
placeholder="Mobile"
value={data.mobile}
onChange={handleChange}
onBlur={handleBlur}

/>
{errors.mobile && (
<div style={{ color: "red" }}>
Expand Down
7 changes: 6 additions & 1 deletion src/modules/Dashboard/modules/Wadhwani/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ import {
} from "./services/api";
import toast from "react-hot-toast";
import styles from "./index.module.css";
import MuLoader from "@/MuLearnComponents/MuLoader/MuLoader";


const Wadhwani = () => {
const [data, setData] = useState<wadhwaniCourseResponse[]>([]);
const [clientToken, setClientToken] = useState("");
const [isLoading,setIsLoading]=useState(true)

useEffect(() => {
fetchData();
Expand All @@ -29,6 +32,7 @@ const Wadhwani = () => {
} else if (courses) {
setData(courses);
}
setIsLoading(false)
}
};

Expand All @@ -48,7 +52,8 @@ const Wadhwani = () => {
<div className={styles.wrapper}>
<h1>Wadhwani Foundation Courses</h1>
<div className={styles.container}>
{data.map(course => (
{isLoading?<MuLoader/>:
data.map(course => (
<div
key={course.courseId}
className={styles.card}
Expand Down
9 changes: 7 additions & 2 deletions src/modules/Dashboard/modules/Wadhwani/services/api.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { privateGateway } from "@/MuLearnServices/apiGateways";
import { dashboardRoutes } from "@/MuLearnServices/urls";
import { AxiosError } from "axios";

import toast from "react-hot-toast";
export const getWadhwaniClientToken = async () => {
try {
const response = await privateGateway.post(
Expand Down Expand Up @@ -47,6 +47,7 @@ export const getWadhwaniCourseLink = async (
clientToken: string,
courseId: string
) => {
const toastId=toast.loading("Fetching course link...")
try {
const response = await privateGateway.post(
dashboardRoutes.getWadhwaniCourseLink,
Expand All @@ -61,12 +62,16 @@ export const getWadhwaniCourseLink = async (
const message: wadhwaniCourseRedirectResponse = response?.data?.response;
if (message.data?.error?.code) {
return { response: null, error: message.data.error.description };
}else{
toast.success("Course link opened successfully!",{id:toastId})
}
return { response: message, error: null };
} catch (err: unknown) {
} catch (err: unknown) {
toast.error("Please try again later.",{id:toastId})
const error = err as AxiosError;
if (error?.response) {
throw error;

} else {
return { response: null, error: error.message };
}
Expand Down
Loading
Loading