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

Implementation of project page #50

Draft
wants to merge 12 commits into
base: development_2.0.0
Choose a base branch
from

Conversation

abdahmed22
Copy link

Description

Create routes for the website and Create a navigation bar to use the router.

Changes

  • Create main projects page
    search bar
    list of projects
    delete project
    update project
    recent activities ( create project, delete project )
  • Create project details page
    project statistics
    project team
    Incomplete test runs
    recent activity ( add components within a project)
  • Create new project form
    title
    description
    github repo link

Related Issues

@abdahmed22 abdahmed22 marked this pull request as draft August 12, 2024 09:26
@abdahmed22 abdahmed22 marked this pull request as ready for review August 15, 2024 10:51
client/src/App.vue Show resolved Hide resolved
client/src/api/userservice.ts Outdated Show resolved Hide resolved
@abdahmed22 abdahmed22 requested a review from zaelgohary August 22, 2024 07:41
Copy link
Collaborator

@Mahmoud-Emad Mahmoud-Emad left a 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

client/index.html Show resolved Hide resolved
client/src/App.vue Outdated Show resolved Hide resolved
client/src/api/clients.ts Outdated Show resolved Hide resolved
client/src/api/projectService.ts Outdated Show resolved Hide resolved
client/src/api/projectService.ts Outdated Show resolved Hide resolved
client/src/components.d.ts Outdated Show resolved Hide resolved
client/src/components/projects/ProjectForm.vue Outdated Show resolved Hide resolved
client/src/pages/projects/ProjectsView.vue Show resolved Hide resolved
client/src/types/types.ts Outdated Show resolved Hide resolved
server/test_tracker/views/project.py Outdated Show resolved Hide resolved
@@ -186,7 +186,7 @@ class ProjectMembersAPIView(GenericAPIView):
"""This class to return all project members"""

serializer_class = ProjectTeamSerializer
permission_classes = (HasProjectAccess,)
Copy link
Collaborator

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

Comment on lines +37 to +39
export type TestRun = {

}
Copy link
Collaborator

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

@@ -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') },
Copy link
Collaborator

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'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
let description = 'Can not search for projects'
let description = 'Unable to search for projects.'

})
.catch((err: any) => {
let description = 'Can not get projects'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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
Copy link
Collaborator

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'
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
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,
Copy link
Collaborator

Choose a reason for hiding this comment

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

also, you could do

Suggested change
description: response.data.message,
description: response.data.message || 'Project created Successfully',

@abdahmed22 abdahmed22 marked this pull request as draft September 8, 2024 09:09
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.

4 participants