Skip to content

Commit

Permalink
Move project to algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
berrydenhartog committed Nov 13, 2024
1 parent 1393a5e commit 39176f6
Show file tree
Hide file tree
Showing 58 changed files with 1,530 additions and 1,412 deletions.
6 changes: 3 additions & 3 deletions amt/api/main.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from fastapi import APIRouter

from amt.api.routes import auth, health, pages, project, projects, root
from amt.api.routes import algorithm, algorithms, auth, health, pages, root

api_router = APIRouter()
api_router.include_router(root.router)
api_router.include_router(health.router, prefix="/health", tags=["health"])
api_router.include_router(pages.router, prefix="/pages", tags=["pages"])
api_router.include_router(projects.router, prefix="/algorithm-systems", tags=["algorithm-systems"])
api_router.include_router(project.router, prefix="/algorithm-system", tags=["algorithm-system"])
api_router.include_router(algorithms.router, prefix="/algorithm-systems", tags=["algorithm-systems"])
algorithmapi_router.include_router(algorithm.router, prefix="/algorithm-system", tags=["algorithm-system"])
api_router.include_router(auth.router, prefix="/auth", tags=["auth"])
23 changes: 12 additions & 11 deletions amt/api/navigation.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,39 +95,40 @@ class Navigation:
)
PROJECTS_OVERVIEW = BaseNavigationItem(display_text=DisplayText.OVERVIEW, url="/algorithm-systems/")
PROJECT_TASKS = BaseNavigationItem(
display_text=DisplayText.TASKS, url="/algorithm-system/{project_id}/details/tasks"
display_text=DisplayText.TASKS, url="/algorithm-system/{algorithm_id}/details/tasks"
)
PROJECT_DETAILS = BaseNavigationItem(
display_text=DisplayText.DETAILS, url="/algorithm-system/{project_id}/details/system_card"
display_text=DisplayText.DETAILS, url="/algorithm-system/{algorithm_id}/details/system_card"
)
PROJECT_MODEL = BaseNavigationItem(
display_text=DisplayText.MODEL, url="/algorithm-system/{project_id}/details/model/inference"
display_text=DisplayText.MODEL, url="/algorithm-system/{algorithm_id}/details/model/inference"
)
PROJECT_NEW = BaseNavigationItem(display_text=DisplayText.NEW, url="/algorithm-systems/new")
PROJECT_SYSTEM_INFO = BaseNavigationItem(
display_text=DisplayText.INFO, url="/algorithm-system/{project_id}/details"
display_text=DisplayText.INFO, url="/algorithm-system/{algorithm_id}/details"
)
PROJECT_SYSTEM_ALGORITHM_DETAILS = BaseNavigationItem(
display_text=DisplayText.ALGORITHM_DETAILS, url="/algorithm-system/{project_id}/details/system_card"
display_text=DisplayText.ALGORITHM_DETAILS, url="/algorithm-system/{algorithm_id}/details/system_card"
)
PROJECT_SYSTEM_CARD = BaseNavigationItem(
display_text=DisplayText.SYSTEMCARD, url="/algorithm-system/{project_id}/details/system_card"
display_text=DisplayText.SYSTEMCARD, url="/algorithm-system/{algorithm_id}/details/system_card"
)
PROJECT_DATA_CARD = BaseNavigationItem(
display_text=DisplayText.DATA, url="/algorithm-system/{project_id}/details/system_card/data"
display_text=DisplayText.DATA, url="/algorithm-system/{algorithm_id}/details/system_card/data"
)
PROJECT_MODEL_CARD = BaseNavigationItem(
display_text=DisplayText.MODELCARD, url="/algorithm-system/{project_id}/details/system_card/models/{model_card}"
display_text=DisplayText.MODELCARD,
url="/algorithm-system/{algorithm_id}/details/system_card/models/{model_card}",
)
PROJECT_ASSESSMENT_CARD = BaseNavigationItem(
display_text=DisplayText.ASSESSMENTCARD,
url="/algorithm-system/{project_id}/details/system_card/assessment/{assessment_card}",
url="/algorithm-system/{algorithm_id}/details/system_card/assessment/{assessment_card}",
)
PROJECT_REQUIREMENTS = BaseNavigationItem(
display_text=DisplayText.REQUIREMENTS, url="/algorithm-system/{project_id}/details/system_card/requirements"
display_text=DisplayText.REQUIREMENTS, url="/algorithm-system/{algorithm_id}/details/system_card/requirements"
)
PROJECT_SYSTEM_INSTRUMENTS = BaseNavigationItem(
display_text=DisplayText.INSTRUMENTS, url="/algorithm-system/{project_id}/details/system_card/instruments"
display_text=DisplayText.INSTRUMENTS, url="/algorithm-system/{algorithm_id}/details/system_card/instruments"
)


Expand Down
Loading

0 comments on commit 39176f6

Please sign in to comment.