Skip to content

Adding New Features

Conner Groth edited this page Jun 29, 2025 · 1 revision

Adding New Features

1. Adding New File Format Support

// In store.js, extend loadSBOL function
case FILE_TYPES.NEW_FORMAT:
    showErrorNotification("New Format Error", 
        "Custom error message for new format");
    break;

2. Adding New API Endpoints

# In app.py
@app.post("/api/newEndpoint")
def new_endpoint():
    data = request.get_json()
    # Process data
    return {"result": "success"}

3. Adding New UI Components

// Create component in components/
import { useStore } from '../modules/store'

export default function NewComponent() {
    const someData = useStore(s => s.someData)
    return <div>{/* Component JSX */}</div>
}

Clone this wiki locally