dodil/boards-challenge
Dodil Boards Challenge: build the Trello replacement on Dodil. Instructions for you and your AI assistant.
A remix template · 18 remixes · Remix dodil/boards-challenge
app/boards/application/ports.py
"""What the use cases need from the outside world. infrastructure/ provides it; tests fake it."""
from typing import Optional, Protocol
from boards.domain.model import Board, Card
class BoardRepository(Protocol):
def get(self, board_id: str) -> Optional[Board]: ...
def boards_for(self, email: str) -> list: ...
def save_board(self, board: Board) -> None: ...
def get_card(self, card_id: str) -> Optional[Card]: ...
def cards_on(self, board_id: str) -> list: ...
def save_card(self, card: Card) -> None: ...
def log(self, board_id: str, card_id: Optional[str], actor: str, action: str) -> None: ...
class Assistant(Protocol):
def checklist(self, card_title: str) -> list: ...