-
Notifications
You must be signed in to change notification settings - Fork 2
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
Implementation of project page #50
base: development_2.0.0
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good job ya 3obad
@@ -186,7 +186,7 @@ class ProjectMembersAPIView(GenericAPIView): | |||
"""This class to return all project members""" | |||
|
|||
serializer_class = ProjectTeamSerializer | |||
permission_classes = (HasProjectAccess,) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why you removed the permission classes? please return them back and apply it on all classes
export type TestRun = { | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Design this, check the serializer class to get familiar with the response
client/src/router/index.ts
Outdated
@@ -10,7 +10,6 @@ import { createRouter, createWebHistory } from 'vue-router/auto' | |||
const router = createRouter({ | |||
history: createWebHistory(import.meta.env.BASE_URL), | |||
routes: [ | |||
{ path: '/', component: () => import('@/pages/DashboardView.vue') }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need the DashboardView
anymore?
@@ -132,14 +135,17 @@ | |||
.then((response: any) => { | |||
}) | |||
.catch((err: any) => { | |||
let description = 'Can not search for projects' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let description = 'Can not search for projects' | |
let description = 'Unable to search for projects.' |
}) | ||
.catch((err: any) => { | ||
let description = 'Can not get projects' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let description = 'Can not get projects' | |
let description = 'Unable to get projects.' |
@@ -103,17 +103,20 @@ | |||
const getPage = async (page: number) => { | |||
getProjects(page).then((response: any) => { | |||
projects.value = response.data.results | |||
// count.value = response.body.total_count | |||
count.value = response.data.total_count |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if you want to use pagination, let's do it
showProgressBar: true, | ||
timeout: 7_000, | ||
type: 'success', | ||
}) | ||
}) | ||
.catch((err: any) => { | ||
let description = 'Can not create project' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let description = 'Can not create project' | |
let description = 'Unable to create a new project.' |
@@ -90,21 +90,24 @@ | |||
.then((response: any) => { | |||
notifier.notify({ | |||
title: 'Success', | |||
description: 'Project created Successfully', | |||
description: response.data.message, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, you could do
description: response.data.message, | |
description: response.data.message || 'Project created Successfully', |
Description
Create routes for the website and Create a navigation bar to use the router.
Changes
search bar
list of projects
delete project
update project
recent activities ( create project, delete project )
project statistics
project team
Incomplete test runs
recent activity ( add components within a project)
title
description
github repo link
Related Issues