A modern platform for visual, flexible, and extensible graph-based investigations. For cybersecurity analysts and investigators.
feat: right panel for node details
dextmorgn0b41783f48a7
diff --git a/docker-compose.yml b/docker-compose.ymlindex 95003c8d..e69c6b26 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -9,14 +9,14 @@ services:- "--api.insecure=true"- "--providers.docker"- "--entrypoints.ws.address=:80"- - "--providers.file.watch=true"- - "--entryPoints.websecure.address=:443"+ - "--entrypoints.websecure.address=:443"- "--entrypoints.websecure.http.tls.certresolver=myresolver"- "--providers.file.filename=/etc/traefik/dynamic.yml"+ - "--providers.file.watch=true"ports:- "80:80"- "443:443"- - "8080:8080"+ - "8080:8080" # Dashboard Traefikrestart: unless-stoppedvolumes:- ./certs:/etc/traefik/certs@@ -24,6 +24,7 @@ services:- /var/run/docker.sock:/var/run/docker.socknetworks:- traefik+# PostgreSQL databasepostgres:image: postgres:15@@ -34,36 +35,37 @@ services:POSTGRES_PASSWORD: flowsintPOSTGRES_DB: flowsintports:- - "5433:5432"+ - "5433:5432" # 5433 sur l'hôte pour éviter conflit localvolumes:- pg_data:/var/lib/postgresql/datanetworks:- traefik+ # Frontend Electron/Vite+ # web:+ # build:+ # context: flowsint-app+ # dockerfile: Dockerfile+ # container_name: flowsint-app+ # ports:+ # - "3000:3000"+ # env_file:+ # - .env+ # networks:+ # - traefik+ # labels:+ # - "traefik.enable=true"+ # - "traefik.http.routers.web.rule=Host(`app.flowsint.localhost`)"+ # - "traefik.http.services.web.loadbalancer.server.port=3000"+ # - "traefik.http.routers.web.entrypoints=websecure"- # Next.js application- web:- build:- context: flowsint-web- dockerfile: Dockerfile- container_name: flowsint-web- ports:- - "3000:3000"- env_file:- - .env- networks:- - traefik- labels:- - "traefik.enable=true"- - "traefik.http.routers.nextjs.rule=Host(`app.flowsint.localhost`)"- - "traefik.http.services.nextjs.loadbalancer.server.port=3000"- - "traefik.http.routers.nextjs.entrypoints=websecure"-- # FastAPI application with Celery+ # FastAPI backendapi:build:context: flowsint-apidockerfile: Dockerfile+ args:+ GITHUB_TOKEN: ${GITHUB_TOKEN}container_name: flowsint-apiports:- "5000:5000"@@ -79,14 +81,17 @@ services:- traefiklabels:- "traefik.enable=true"- - "traefik.http.routers.app.rule=Host(`api.flowsint.localhost`)"- - "traefik.http.services.app.loadbalancer.server.port=5000"- - "traefik.http.routers.app.entrypoints=websecure"+ - "traefik.http.routers.api.rule=Host(`api.flowsint.localhost`)"+ - "traefik.http.services.api.loadbalancer.server.port=5000"+ - "traefik.http.routers.api.entrypoints=websecure"+ # Celery workercelery:build:context: flowsint-apidockerfile: Dockerfile+ args:+ GITHUB_TOKEN: ${GITHUB_TOKEN}container_name: celery-workerdepends_on:- redis@@ -100,14 +105,16 @@ services:networks:- traefik+ # Redis for Celery & cacheredis:- image: "redis:alpine"+ image: redis:alpinecontainer_name: redis-cacheports:- "6379:6379"networks:- traefik+ # Neo4j graph databaseneo4j:image: neo4j:5container_name: flowsint-neo4j@@ -134,16 +141,14 @@ services:- "traefik.http.services.neo4j.loadbalancer.server.port=7474"- "traefik.http.routers.neo4j.entrypoints=websecure"-networks:traefik:name: traefikdriver: bridgevolumes:- db-config:+ pg_data:neo4j_data:neo4j_logs:neo4j_import:neo4j_plugins:- pg_data:diff --git a/flowsint-api/Dockerfile b/flowsint-api/Dockerfileindex 48c8bfa5..f74ce2ae 100644--- a/flowsint-api/Dockerfile+++ b/flowsint-api/Dockerfile@@ -2,9 +2,19 @@ FROM python:3.10WORKDIR /app+# Install git and configure SSH for private repos+RUN apt-get update && \+ apt-get install -y git openssh-client && \+ rm -rf /var/lib/apt/lists/*++# Create SSH directory and configure git to use SSH+RUN mkdir -p /root/.ssh && \+ ssh-keyscan github.com >> /root/.ssh/known_hosts+COPY . .-RUN pip install --no-cache-dir -r requirements.txt git+https://github.com/soxoj/maigret ghunt+# Use SSH for git operations during pip install+RUN pip install --no-cache-dir -r requirements.txtRUN apt-get update && \apt-get install -y git whois dnsutils curl && \diff --git a/flowsint-api/app/api/routes/analysis.py b/flowsint-api/app/api/routes/analysis.pyindex a9b3f512..0999d5b8 100644--- a/flowsint-api/app/api/routes/analysis.py+++ b/flowsint-api/app/api/routes/analysis.py@@ -82,4 +82,4 @@ def delete_analysis(analysis_id: UUID, db: Session = Depends(get_db), current_usraise HTTPException(status_code=404, detail="Analysis not found")db.delete(analysis)db.commit()- return None\ No newline at end of file+ return Nonediff --git a/flowsint-api/app/api/routes/sketches.py b/flowsint-api/app/api/routes/sketches.pyindex 8efa9591..a226803e 100644--- a/flowsint-api/app/api/routes/sketches.py+++ b/flowsint-api/app/api/routes/sketches.py@@ -138,12 +138,12 @@ async def get_sketch_nodes(rels = [{"id": str(record["id"]),- "type": "straight",+ "type": "custom","source": str(record["source"]),"target": str(record["target"]),"data": record["data"],"caption": record["type"],- "label": record["type"].lower(),+ "label": record["type"],}for record in rels_result]diff --git a/flowsint-api/app/api/routes/transforms.py b/flowsint-api/app/api/routes/transforms.pyindex 0376f1b5..f4f3f7cc 100644--- a/flowsint-api/app/api/routes/transforms.py+++ b/flowsint-api/app/api/routes/transforms.py@@ -73,7 +73,8 @@ async def get_material_list():"category": scanner.get("category"),"name": scanner.get("name"),"module": scanner.get("module"),- "doc": scanner.get("doc"),+ "documentation": scanner.get("documentation"),+ "description": scanner.get("description"),"inputs": scanner.get("inputs"),"outputs": scanner.get("outputs"),"type": "scanner",diff --git a/flowsint-api/app/api/routes/types.py b/flowsint-api/app/api/routes/types.pyindex bcc291a7..eb0c818e 100644--- a/flowsint-api/app/api/routes/types.py+++ b/flowsint-api/app/api/routes/types.py@@ -188,7 +188,6 @@ async def get_types_list():def extract_input_schema(model: Type[BaseModel], label_key:str, icon: Optional[str]=None) -> Dict[str, Any]:adapter = TypeAdapter(model)- print(model.__name__)schema = adapter.json_schema()# Use the main schema properties, not the $defstype_name = model.__name__diff --git a/flowsint-api/app/scanners/base.py b/flowsint-api/app/scanners/base.pyindex 16b475a2..15d73722 100644--- a/flowsint-api/app/scanners/base.py+++ b/flowsint-api/app/scanners/base.py@@ -185,6 +185,16 @@ class Scanner(ABC):"""Primary key on which the scanner operates (e.g. domain, IP, etc.)"""pass+ @classmethod+ def documentation(cls) -> str:+ """+ Return formatted markdown documentation for this scanner.+ Override this method to provide custom documentation.+ Falls back to cleaned docstring if not overridden.+ """+ import inspect+ return inspect.cleandoc(cls.__doc__ or "No documentation available.")+@classmethoddef input_schema(cls) -> Dict[str, Any]:"""@@ -321,3 +331,42 @@ class Scanner(ABC):Logger.error(self.sketch_id, {"message": f"Scanner {self.name()} errored: '{str(e)}'."})return []+ def create_node(self, node_type: str, key_prop: str, key_value: str, **properties) -> None:+ """Simple helper to create a single Neo4j node."""+ if not self.neo4j_conn:+ return++ properties['sketch_id'] = self.sketch_id+ properties['label'] = properties.get('label', key_value)++ set_clauses = [f"n.{prop} = ${prop}" for prop in properties.keys()]+ params = {key_prop: key_value, **properties}++ query = f"""+ MERGE (n:{node_type} {{{key_prop}: ${key_prop}}})+ SET {', '.join(set_clauses)}+ """+ self.neo4j_conn.query(query, params)++ def create_relationship(self, from_type: str, from_key: str, from_value: str,+ to_type: str, to_key: str, to_value: str, rel_type: str) -> None:+ """Simple helper to create a relationship between two nodes."""+ if not self.neo4j_conn:+ return++ query = f"""+ MATCH (from:{from_type} {{{from_key}: $from_value}})+ MATCH (to:{to_type} {{{to_key}: $to_value}})+ MERGE (from)-[:{rel_type} {{sketch_id: $sketch_id}}]->(to)+ """++ self.neo4j_conn.query(query, {+ 'from_value': from_value,+ 'to_value': to_value,+ 'sketch_id': self.sketch_id+ })++ def log_graph_message(self, message: str) -> None:+ """Simple helper to log a graph message."""+ Logger.graph_append(self.sketch_id, {"message": message})+diff --git a/flowsint-api/app/scanners/crypto/wallet_to_nfts.py b/flowsint-api/app/scanners/crypto/wallet_to_nfts.pyindex 325318ca..1bdc1089 100644--- a/flowsint-api/app/scanners/crypto/wallet_to_nfts.py+++ b/flowsint-api/app/scanners/crypto/wallet_to_nfts.py@@ -37,6 +37,10 @@ class CryptoWalletAddressToNFTs(Scanner):def required_params(cls) -> bool:return True+ @classmethod+ def icon(cls) -> str | None:+ return "cryptowallet"+@classmethoddef get_params_schema(cls) -> List[Dict[str, Any]]:"""Declare required parameters for this scanner"""@@ -136,55 +140,24 @@ class CryptoWalletAddressToNFTs(Scanner):for nfts in results:for nft in nfts:# Create or update wallet node- wallet_query = """- MERGE (cryptowallet:cryptowallet {wallet: $wallet_address})- SET cryptowallet.sketch_id = $sketch_id,- cryptowallet.label = $wallet_address,- cryptowallet.caption = $wallet_address,- cryptowallet.type = "cryptowallet"- """- self.neo4j_conn.query(wallet_query, {- "wallet_address": nft.wallet.address,- "sketch_id": self.sketch_id- })+ self.create_node('cryptowallet', 'wallet', nft.wallet.address,+ caption=nft.wallet.address, type='cryptowallet')- # Create or update NFT node- nft_query = """- MERGE (nft:nft {contract_address: $contract_address, token_id: $token_id})- SET nft.collection_name = $collection_name,- nft.metadata_url = $metadata_url,- nft.image_url = $image_url,- nft.name = $name,- nft.sketch_id = $sketch_id,- nft.label = $name,- nft.caption = $name,- nft.type = "nft"- """- self.neo4j_conn.query(nft_query, {- "contract_address": nft.contract_address,- "token_id": nft.token_id,- "collection_name": nft.collection_name,- "metadata_url": nft.metadata_url,- "image_url": nft.image_url,- "name": nft.name,- "sketch_id": self.sketch_id- })+ # Create or update NFT node+ nft_key = f"{nft.contract_address}_{nft.token_id}"+ self.create_node('nft', 'nft_id', nft_key,+ contract_address=nft.contract_address,+ token_id=nft.token_id,+ collection_name=nft.collection_name,+ metadata_url=nft.metadata_url,+ image_url=nft.image_url,+ name=nft.name,+ caption=nft.name, type='nft')# Create relationship from wallet to NFT- owns_query = """- MATCH (wallet:wallet {wallet: $wallet_address})- MATCH (nft:nft {contract_address: $contract_address, token_id: $token_id})- MERGE (wallet)-[r:OWNS]->(nft)- SET r.sketch_id = $sketch_id- """- self.neo4j_conn.query(owns_query, {- "wallet_address": nft.wallet.address,- "contract_address": nft.contract_address,- "token_id": nft.token_id,- "sketch_id": self.sketch_id- })- Logger.graph_append(self.sketch_id, {"message": f"Found NFT for {nft.wallet.address}: {nft.contract_address} - {nft.token_id}"})-+ self.create_relationship('cryptowallet', 'wallet', nft.wallet.address,+ 'nft', 'nft_id', nft_key, 'OWNS')+ self.log_graph_message(f"Found NFT for {nft.wallet.address}: {nft.contract_address} - {nft.token_id}")return resultsdiff --git a/flowsint-api/app/scanners/crypto/wallet_to_transactions.py b/flowsint-api/app/scanners/crypto/wallet_to_transactions.pyindex 6beb1eb4..83792a5c 100644--- a/flowsint-api/app/scanners/crypto/wallet_to_transactions.py+++ b/flowsint-api/app/scanners/crypto/wallet_to_transactions.py@@ -179,26 +179,13 @@ class CryptoWalletAddressToTransactions(Scanner):for transactions in results:for tx in transactions:- # Create or update both wallet nodes in a single operation- wallets_query = """- MERGE (source:cryptowallet {wallet: $source_address})- MERGE (target:cryptowallet {wallet: $target_address})- SET source.sketch_id = $sketch_id,- source.label = $source_address,- source.caption = $source_address,- source.type = "cryptowallet",- target.sketch_id = $sketch_id,- target.label = $target_address,- target.caption = $target_address,- target.type = "cryptowallet"- """- self.neo4j_conn.query(wallets_query, {- "source_address": tx.source.address,- "target_address": tx.target.address,- "sketch_id": self.sketch_id- })+ # Create or update both wallet nodes+ self.create_node('cryptowallet', 'wallet', tx.source.address,+ caption=tx.source.address, type="cryptowallet")+ self.create_node('cryptowallet', 'wallet', tx.target.address,+ caption=tx.target.address, type="cryptowallet")- # Create transaction as an edge between wallets+ # Create transaction as an edge between wallets (keeping complex query for transaction properties)tx_query = """MATCH (source:cryptowallet {wallet: $source})MATCH (target:cryptowallet {wallet: $target})@@ -238,7 +225,9 @@ class CryptoWalletAddressToTransactions(Scanner):"contract_address": tx.contract_address,"sketch_id": self.sketch_id})- Logger.graph_append(self.sketch_id, {"message": f"Transaction on {datetime.fromtimestamp(int(tx.timestamp)).strftime('%Y-%m-%d %H:%M:%S') if tx.timestamp else 'Unknown time'}: {tx.source.address} -> {tx.target.address}"})++ timestamp_str = datetime.fromtimestamp(int(tx.timestamp)).strftime('%Y-%m-%d %H:%M:%S') if tx.timestamp else 'Unknown time'+ self.log_graph_message(f"Transaction on {timestamp_str}: {tx.source.address} -> {tx.target.address}")return resultsdiff --git a/flowsint-api/app/scanners/domains/resolve.py b/flowsint-api/app/scanners/domains/resolve.pyindex a5e4ec1a..0f75969b 100644--- a/flowsint-api/app/scanners/domains/resolve.py+++ b/flowsint-api/app/scanners/domains/resolve.py@@ -28,6 +28,238 @@ class ResolveScanner(Scanner):def key(cls) -> str:return "domain"+ @classmethod+ def documentation(cls) -> str:+ """Return formatted markdown documentation for the domain resolver scanner."""+ return """+# Domain Resolver Scanner++Resolve domain names to their corresponding IP addresses using DNS queries. This scanner performs forward DNS resolution to discover the IP addresses associated with domain names and subdomains.++## Overview++The Domain Resolver Scanner takes domain names as input and returns their resolved IP addresses. It automatically handles different input formats and validates domains before attempting resolution.++## Input/Output Types++- **Input**: `List[Domain]` - Array of domain objects to resolve+- **Output**: `List[Ip]` - Array of resolved IP addresses++## Input Format Support++The scanner accepts multiple input formats and automatically converts them:++### String Format++```python+["example.com", "subdomain.example.com"]+```++### Dictionary Format++```python+[+ {"domain": "example.com"},+ {"domain": "subdomain.example.com"}+]+```++### Domain Object Format++```python+[+ Domain(domain="example.com", root=True),+ Domain(domain="subdomain.example.com", root=False)+]+```++## Resolution Process++### 1. Input Validation++- Validates domain format using built-in validation+- Determines if domain is root domain or subdomain+- Filters out invalid domains++### 2. DNS Resolution++- Uses Python's `socket.gethostbyname()` for DNS queries+- Resolves each domain to its primary A record+- Handles resolution errors gracefully++### 3. Result Storage++- Stores domain-to-IP relationships in Neo4j graph database+- Creates nodes for both domains and IP addresses+- Establishes `RESOLVES_TO` relationships++## Example Usage++### Basic Domain Resolution++**Input:**+```json+[+ "google.com",+ "github.com",+ "stackoverflow.com"+]+```++**Expected Output:**+```json+[+ {"address": "142.250.191.14"},+ {"address": "140.82.113.4"},+ {"address": "151.101.193.69"}+]+```++### Mixed Input Types++**Input:**+```json+[+ "example.com",+ {"domain": "subdomain.example.com"},+ {"domain": "api.example.com", "root": false}+]+```++## Graph Database Storage++### Node Creation++**Domain Node:**+```cypher+MERGE (d:domain {domain: "example.com"})+SET d.sketch_id = "sketch-uuid",+ d.label = "example.com",+ d.type = "domain" // or "subdomain"+```++**IP Node:**+```cypher+MERGE (ip:ip {address: "93.184.216.34"})+SET ip.sketch_id = "sketch-uuid",+ ip.label = "93.184.216.34",+ ip.type = "ip"+```++### Relationship Creation++```cypher+MERGE (d)-[:RESOLVES_TO {sketch_id: "sketch-uuid"}]->(ip)+```++## Domain Type Classification++The scanner automatically classifies domains:++- **Root Domain**: `example.com` → `type: "domain"`+- **Subdomain**: `api.example.com` → `type: "subdomain"`++## Error Handling++### Resolution Failures++When DNS resolution fails, the scanner:++- Logs the error with domain name+- Continues processing remaining domains+- Does not create nodes for failed resolutions++Common resolution failures:++- **NXDOMAIN**: Domain does not exist+- **Timeout**: DNS server not responding+- **Network errors**: Connectivity issues++### Invalid Input Handling++The scanner filters out:++- Malformed domain names+- Empty strings+- Non-string, non-dict, non-Domain inputs++## Performance Considerations++### Resolution Speed++- Sequential DNS queries (not parallelized)+- Typical resolution time: 10-100ms per domain+- Consider batch size for large domain lists++### DNS Caching++- Relies on system DNS cache+- Results may vary based on TTL values+- Fresh queries may take longer than cached ones++## Use Cases++### Investigation Scenarios++1. **Domain Enumeration**: Resolve discovered subdomains to find active hosts+2. **Infrastructure Mapping**: Map domain-to-IP relationships for target organization+3. **CDN Detection**: Identify content delivery network usage patterns+4. **IP Pivoting**: Find shared hosting infrastructure across domains++### Workflow Integration++```+[Domain Discovery] → [Domain Resolver] → [IP Geolocation]+ → [Port Scanner]+ → [ASN Lookup]+```++## Security Considerations++- **DNS Leakage**: Resolution queries may be logged by DNS providers+- **Rate Limiting**: Some DNS servers may rate limit queries+- **Privacy**: Consider using secure DNS (DoH/DoT) for sensitive investigations++## Limitations++- **IPv4 Only**: Currently resolves only A records (IPv4)+- **Single IP**: Returns only the first resolved IP address+- **No CNAME Following**: Does not follow CNAME chains+- **No Cache Control**: Cannot force fresh DNS queries++## Troubleshooting++### Common Issues++1. **No Results**: Check domain validity and DNS configuration+2. **Timeouts**: Verify network connectivity and DNS server availability+3. **Partial Results**: Some domains may fail while others succeed++### Debug Information++The scanner provides logging for:+- Input validation results+- DNS resolution attempts+- Graph database operations+- Error conditions++Check FlowSint logs for detailed resolution information.++## Technical Details++### DNS Query Method++- Uses Python's standard library `socket.gethostbyname()`+- Follows system DNS configuration+- Respects `/etc/hosts` file entries on Unix systems++### Graph Integration++- Creates typed nodes in Neo4j+- Maintains investigation context via `sketch_id`+- Supports graph traversal for relationship analysis+"""+def preprocess(self, data: Union[List[str], List[dict], InputType]) -> InputType:cleaned: InputType = []for item in data:@@ -55,55 +287,10 @@ class ResolveScanner(Scanner):def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:for domain_obj, ip_obj in zip(original_input, results):- query = """- MERGE (d:domain {domain: $domain})- SET d.sketch_id = $sketch_id,- d.label = $domain,- d.type = $type- MERGE (ip:ip {address: $ip})- SET ip.sketch_id = $sketch_id,- ip.label = $label,- ip.type = "ip"- MERGE (d)-[:RESOLVES_TO {sketch_id: $sketch_id}]->(ip)- """- if self.neo4j_conn:- self.neo4j_conn.query(query, {- "domain": domain_obj.domain,- "ip": ip_obj.address,- "sketch_id": self.sketch_id,- "label": ip_obj.address,- "type": "domain" if domain_obj.root else "subdomain"- })- nodes = [Node(- id=str(uuid.uuid4()),- data={- "label": ip_obj.address,- "type": "ip"- },- position={- "x": 0,- "y": 0,- },- type="ip"- )]- edges =[Edge(- id=str(uuid.uuid4()),- source="",- target="",- data={- "label": "RESOLVES_TO",- },- )]- nodes=[node.model_dump_json() for node in nodes]- edges=[edge.model_dump_json() for edge in edges]- payload:Dict = {- "message": f"IP found for domain {domain_obj.domain} -> {ip_obj.address}"- # "nodes": nodes,- # "edges": edges- }- Logger.graph_append(self.sketch_id, payload)--+ self.create_node('domain', 'domain', domain_obj.domain, type='domain' if domain_obj.root else 'subdomain')+ self.create_node('ip', 'address', ip_obj.address, type='ip')+ self.create_relationship('domain', 'domain', domain_obj.domain, 'ip', 'address', ip_obj.address, 'RESOLVES_TO')+ self.log_graph_message(f"IP found for domain {domain_obj.domain} -> {ip_obj.address}")return results# Make types available at module level for easy accessdiff --git a/flowsint-api/app/scanners/domains/subdomains.py b/flowsint-api/app/scanners/domains/subdomains.pyindex a64ad77e..ade37523 100644--- a/flowsint-api/app/scanners/domains/subdomains.py+++ b/flowsint-api/app/scanners/domains/subdomains.py@@ -103,21 +103,16 @@ class SubdomainScanner(Scanner):for subdomain in domain_obj["subdomains"]:output.append(Domain(domain=subdomain))Logger.info(self.sketch_id, {"message": f"{domain_obj['domain']} -> {subdomain}"})- self.neo4j_conn.query("""- MERGE (sub:domain {domain: $subdomain})- SET sub.sketch_id = $sketch_id,- sub.label = $label,- sub.type = $type- MERGE (d:domain {domain: $domain})- MERGE (d)-[:HAS_SUBDOMAIN {sketch_id: $sketch_id}]->(sub)- """, {- "domain": domain_obj["domain"],- "subdomain": subdomain,- "sketch_id": self.sketch_id,- "label": subdomain,- "type": "subdomain"- })- Logger.graph_append(self.sketch_id, {"message":f"{domain_obj['domain']} -> {len(domain_obj['subdomains'])} subdomain(s) found."})++ # Create subdomain node+ self.create_node('domain', 'domain', subdomain,+ type='domain')++ # Create relationship from parent domain to subdomain+ self.create_relationship('domain', 'domain', domain_obj["domain"],+ 'domain', 'domain', subdomain, 'HAS_SUBDOMAIN')++ self.log_graph_message(f"{domain_obj['domain']} -> {len(domain_obj['subdomains'])} subdomain(s) found.")return outputdiff --git a/flowsint-api/app/scanners/domains/to_website.py b/flowsint-api/app/scanners/domains/to_website.pyindex a23acea7..4d4731a1 100644--- a/flowsint-api/app/scanners/domains/to_website.py+++ b/flowsint-api/app/scanners/domains/to_website.py@@ -1,10 +1,9 @@-from typing import List, Dict, Any, Union+from typing import List, Unionimport requests-from app.utils import is_valid_domain, resolve_type+from app.utils import is_valid_domainfrom app.scanners.base import Scannerfrom app.types.domain import Domainfrom app.types.website import Website-from pydantic import TypeAdapterfrom app.core.logger import Loggerclass DomainToWebsiteScanner(Scanner):@@ -51,7 +50,7 @@ class DomainToWebsiteScanner(Scanner):https_url = f"https://{domain.domain}"response = requests.head(https_url, timeout=10, allow_redirects=True)if response.status_code < 400:- results.append(Website(url=https_url))+ results.append(Website(url=https_url, domain=domain))continueexcept requests.RequestException:pass@@ -61,18 +60,18 @@ class DomainToWebsiteScanner(Scanner):http_url = f"http://{domain.domain}"response = requests.head(http_url, timeout=10, allow_redirects=True)if response.status_code < 400:- results.append(Website(url=http_url))+ results.append(Website(url=http_url, domain=domain))continueexcept requests.RequestException:pass# If both fail, still add HTTPS URL as default- results.append(Website(url=f"https://{domain.domain}"))+ results.append(Website(url=f"https://{domain.domain}", domain=domain))except Exception as e:Logger.error(self.sketch_id, {"message": f"Error converting domain {domain.domain} to website: {e}"})# Add HTTPS URL as fallback- results.append(Website(url=f"https://{domain.domain}"))+ results.append(Website(url=f"https://{domain.domain}", domain=domain))return results@@ -87,36 +86,25 @@ class DomainToWebsiteScanner(Scanner):}Logger.info(self.sketch_id, redirect_payload)- query = """- MERGE (d:domain {domain: $domain})- SET d.sketch_id = $sketch_id,- d.label = $domain,- d.type = "domain"- MERGE (w:website {url: $url})- SET w.sketch_id = $sketch_id,- w.label = $label,- w.active = $active,- w.redirects = $redirects,- w.type = "website"- MERGE (d)-[:HAS_WEBSITE {sketch_id: $sketch_id}]->(w)- """if self.neo4j_conn:- self.neo4j_conn.query(query, {- "domain": website.domain.domain,- "sketch_id": self.sketch_id,- "label": str(website.url),- "active": website.active,- "url": str(website.url),- "redirects": [str(redirect) for redirect in website.redirects] if website.redirects else [],- })+ # Create domain node+ self.create_node('domain', 'domain', website.domain.domain, type="domain")++ # Create website node+ self.create_node('website', 'url', str(website.url),+ active=website.active,+ redirects=[str(redirect) for redirect in website.redirects] if website.redirects else [],+ type="website")++ # Create relationship+ self.create_relationship('domain', 'domain', website.domain.domain,+ 'website', 'url', str(website.url), 'HAS_WEBSITE')is_active_str = "active" if website.active else "inactive"redirects_str = f" (redirects: {len(website.redirects)})" if website.redirects else ""- payload:Dict = {- "message": f"{website.domain.domain} -> {str(website.url)} ({is_active_str}){redirects_str}"- }- Logger.graph_append(self.sketch_id, payload)-+ self.log_graph_message(f"{website.domain.domain} -> {str(website.url)} ({is_active_str}){redirects_str}")++ return results# Make types available at module level for easy accessdiff --git a/flowsint-api/app/scanners/domains/whois.py b/flowsint-api/app/scanners/domains/whois.pyindex 007fc3cf..233e7ba1 100644--- a/flowsint-api/app/scanners/domains/whois.py+++ b/flowsint-api/app/scanners/domains/whois.py@@ -1,12 +1,11 @@import json-from typing import List, Dict, Any, Union+from typing import List, Unionimport whois-from app.utils import is_valid_domain, resolve_type+from app.utils import is_valid_domainfrom app.scanners.base import Scannerfrom app.types.domain import Domain, Domainfrom app.types.whois import Whoisfrom app.types.email import Email-from pydantic import TypeAdapterfrom app.core.logger import Loggerclass WhoisScanner(Scanner):@@ -58,14 +57,30 @@ class WhoisScanner(Scanner):else:emails = [Email(email=whois_info.emails)]+ # Convert datetime objects to ISO format strings+ creation_date_str = None+ if whois_info.creation_date:+ if isinstance(whois_info.creation_date, list):+ creation_date_str = whois_info.creation_date[0].isoformat() if whois_info.creation_date else None+ else:+ creation_date_str = whois_info.creation_date.isoformat()++ expiration_date_str = None+ if whois_info.expiration_date:+ if isinstance(whois_info.expiration_date, list):+ expiration_date_str = whois_info.expiration_date[0].isoformat() if whois_info.expiration_date else None+ else:+ expiration_date_str = whois_info.expiration_date.isoformat()+whois_obj = Whois(domain=domain.domain,registrar=str(whois_info.registrar) if whois_info.registrar else None,- creation_date=whois_info.creation_date,- expiration_date=whois_info.expiration_date,- name_servers=whois_info.name_servers if whois_info.name_servers else [],- emails=emails,- raw_text=str(whois_info)+ org=str(whois_info.org) if whois_info.org else None,+ city=str(whois_info.city) if whois_info.city else None,+ country=str(whois_info.country) if whois_info.country else None,+ email=emails[0] if emails else None,+ creation_date=creation_date_str,+ expiration_date=expiration_date_str)results.append(whois_obj)@@ -76,92 +91,50 @@ class WhoisScanner(Scanner):return resultsdef postprocess(self, results: OutputType, original_input: InputType) -> OutputType:- for domain in results:+ for whois_obj in results:if not self.neo4j_conn:continue- whois_obj = domain["whois"]- Logger.graph_append(self.sketch_id, {"message": f"WHOIS for {domain['domain']} -> registrar: {whois_obj.registrar} org: {whois_obj.org} city: {whois_obj.city} country: {whois_obj.country} creation_date: {whois_obj.creation_date} expiration_date: {whois_obj.expiration_date}"})- props = {- "domain": domain["domain"],- "registrar": whois_obj.registrar,- "org": whois_obj.org,- "city": whois_obj.city,- "country": whois_obj.country,- "creation_date": whois_obj.creation_date,- "expiration_date": whois_obj.expiration_date,- "email": whois_obj.email.email if whois_obj.email else None,- "sketch_id": self.sketch_id- }-- query = """- MERGE (d:domain {domain: $domain})- SET d.sketch_id = $sketch_id,- d.label = $domain,- d.type = "domain"- MERGE (w:whois {domain: $domain, sketch_id: $sketch_id})- SET w.registrar = $registrar,- w.org = $org,- w.type = "whois",- w.label = "Whois",- w.city = $city,- w.country = $country,- w.creation_date = $creation_date,- w.expiration_date = $expiration_date,- w.email = $email- MERGE (d)-[:HAS_WHOIS {sketch_id: $sketch_id}]->(w)- """- self.neo4j_conn.query(query, props)++ # Create domain node+ self.create_node('domain', 'domain', whois_obj.domain, type='domain')++ # Create whois node+ whois_key = f"{whois_obj.domain}_{self.sketch_id}"+ self.create_node('whois', 'whois_id', whois_key,+ domain=whois_obj.domain,+ registrar=whois_obj.registrar,+ org=whois_obj.org,+ city=whois_obj.city,+ country=whois_obj.country,+ creation_date=whois_obj.creation_date,+ expiration_date=whois_obj.expiration_date,+ email=whois_obj.email.email if whois_obj.email else None,+ label="Whois", type="whois")++ # Create relationship between domain and whois+ self.create_relationship('domain', 'domain', whois_obj.domain,+ 'whois', 'whois_id', whois_key, 'HAS_WHOIS')# Create organization node if org information is availableif whois_obj.org:- org_query = """- MERGE (o:organization {name: $org_name})- SET o.country = $country,- o.founding_date = $creation_date,- o.description = $description,- o.label = $label,- o.caption = $caption,- o.type = $type,- o.sketch_id = $sketch_id- """- self.neo4j_conn.query(org_query, {- "org_name": whois_obj.org,- "country": whois_obj.country,- "creation_date": whois_obj.creation_date,- "description": f"Organization from WHOIS data for {domain['domain']}",- "label": whois_obj.org,- "caption": whois_obj.org,- "type": "organization",- "sketch_id": self.sketch_id,- })+ self.create_node('organization', 'name', whois_obj.org,+ country=whois_obj.country,+ founding_date=whois_obj.creation_date,+ description=f"Organization from WHOIS data for {whois_obj.domain}",+ caption=whois_obj.org, type="organization")- # Create relationship between domain and organization- self.neo4j_conn.query("""- MERGE (d:domain {domain: $domain})- MERGE (o:organization {name: $org_name})- MERGE (o)-[:HAS_DOMAIN {sketch_id: $sketch_id}]->(d)- """, {- "domain": domain["domain"],- "org_name": whois_obj.org,- "sketch_id": self.sketch_id,- })+ # Create relationship between organization and domain+ self.create_relationship('organization', 'name', whois_obj.org,+ 'domain', 'domain', whois_obj.domain, 'HAS_DOMAIN')- Logger.graph_append(self.sketch_id, {"message": f"{domain['domain']} -> {whois_obj.org} (organization)"})+ self.log_graph_message(f"{whois_obj.domain} -> {whois_obj.org} (organization)")if whois_obj.email:- email_query = """- MERGE (e:email {email: $email})- SET e.sketch_id = $sketch_id,- e.type = "email",- e.label = $email- MERGE (w:whois {domain: $domain, sketch_id: $sketch_id})- MERGE (w)-[:REGISTERED_BY {sketch_id: $sketch_id}]->(e)- """- self.neo4j_conn.query(email_query, {- "email": whois_obj.email.email,- "domain": domain["domain"],- "sketch_id": self.sketch_id- })+ self.create_node('email', 'email', whois_obj.email.email, type="email")+ self.create_relationship('whois', 'whois_id', whois_key,+ 'email', 'email', whois_obj.email.email, 'REGISTERED_BY')++ self.log_graph_message(f"WHOIS for {whois_obj.domain} -> registrar: {whois_obj.registrar} org: {whois_obj.org} city: {whois_obj.city} country: {whois_obj.country} creation_date: {whois_obj.creation_date} expiration_date: {whois_obj.expiration_date}")return resultsdiff --git a/flowsint-api/app/scanners/emails/to_gravatar.py b/flowsint-api/app/scanners/emails/to_gravatar.pyindex e043a71f..99997f61 100644--- a/flowsint-api/app/scanners/emails/to_gravatar.py+++ b/flowsint-api/app/scanners/emails/to_gravatar.py@@ -56,10 +56,10 @@ class EmailToGravatarScanner(Scanner):profile_response = requests.get(profile_url, timeout=10)gravatar_data = {- "email": email.email,+ "src": gravatar_url,"hash": email_hash,- "avatar_url": gravatar_url,- "profile_url": profile_url+ "profile_url": profile_url,+ "exists": True}if profile_response.status_code == 200:@@ -69,7 +69,7 @@ class EmailToGravatarScanner(Scanner):gravatar_data.update({"display_name": entry.get("displayName"),"about_me": entry.get("aboutMe"),- "current_location": entry.get("currentLocation")+ "location": entry.get("currentLocation")})gravatar = Gravatar(**gravatar_data)@@ -81,7 +81,32 @@ class EmailToGravatarScanner(Scanner):return results- def postprocess(self, results: OutputType, input_data: InputType = None) -> OutputType:+ def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:+ for email_obj, gravatar_obj in zip(original_input, results):+ if not self.neo4j_conn:+ continue++ # Create email node+ self.create_node('email', 'email', email_obj.email, type='email')++ # Create gravatar node+ gravatar_key = f"{email_obj.email}_{self.sketch_id}"+ self.create_node('gravatar', 'gravatar_id', gravatar_key,+ email=email_obj.email,+ hash=gravatar_obj.hash,+ src=str(gravatar_obj.src),+ display_name=gravatar_obj.display_name,+ location=gravatar_obj.location,+ about_me=gravatar_obj.about_me,+ exists=gravatar_obj.exists,+ label="Gravatar", type="gravatar")++ # Create relationship between email and gravatar+ self.create_relationship('email', 'email', email_obj.email,+ 'gravatar', 'gravatar_id', gravatar_key, 'HAS_GRAVATAR')++ self.log_graph_message(f"Gravatar found for email {email_obj.email} -> hash: {gravatar_obj.hash}")+return results# Make types available at module level for easy accessdiff --git a/flowsint-api/app/scanners/emails/to_leaks.py b/flowsint-api/app/scanners/emails/to_leaks.pyindex 24ff06a2..cd58fbf9 100644--- a/flowsint-api/app/scanners/emails/to_leaks.py+++ b/flowsint-api/app/scanners/emails/to_leaks.py@@ -1,5 +1,5 @@import os-from typing import Any, Dict, List, Union+from typing import Any, Dict, List, Optional, Unionimport requestsfrom urllib.parse import urljoinfrom app.scanners.base import Scanner@@ -7,6 +7,7 @@ from app.core.logger import Loggerfrom app.types.email import Emailfrom app.types.breach import Breachfrom dotenv import load_dotenv+from app.core.graph_db import Neo4jConnection# Load environment variablesload_dotenv()@@ -17,7 +18,24 @@ class EmailToBreachesScanner(Scanner):"""From email to breaches using Have I Been Pwned API."""InputType = List[Email]- OutputType = List[Breach]+ OutputType = List[tuple] # List of (email, breach) tuples++ def __init__(+ self,+ sketch_id: Optional[str] = None,+ scan_id: Optional[str] = None,+ neo4j_conn: Optional[Neo4jConnection] = None,+ vault=None,+ params: Optional[Dict[str, Any]] = None+ ):+ super().__init__(+ sketch_id=sketch_id,+ scan_id=scan_id,+ neo4j_conn=neo4j_conn,+ params_schema=self.get_params_schema(),+ vault=vault,+ params=params+ )@classmethoddef name(cls) -> str:@@ -70,8 +88,9 @@ class EmailToBreachesScanner(Scanner):async def scan(self, data: InputType) -> OutputType:results: OutputType = []- api_key = self.resolve_params()["HIBP_API_KEY"]- api_url = self.resolve_params()["HIBP_API_URL"]+ print(self.get_params())+ api_key = self.get_params().get("HIBP_API_KEY", None)+ api_url = self.get_params().get("HIBP_API_URL", None)if not api_key:Logger.error(self.sketch_id, {"message": "A valid HIBP_API_KEY is required to scan for breaches."})if not api_url:@@ -80,35 +99,38 @@ class EmailToBreachesScanner(Scanner):"hibp-api-key": api_key,"User-Agent": "FlowsInt-Scanner"}- Logger.info(self.sketch_id, {"message": f"HIBP API key: {api_key}"})Logger.info(self.sketch_id, {"message": f"HIBP API URL: {api_url}"})for email in data:try:# Query Have I Been Pwned API- full_url = urljoin(api_url, email.email)+ full_url = urljoin(api_url, f"{email.email}?truncateResponse=false")+ Logger.error(self.sketch_id, {"message": f"full url: {full_url}"})response = requests.get(full_url, headers=headers, timeout=10)Logger.info(self.sketch_id, {"message": f"HIBP API response: {response.json()}"})if response.status_code == 200:breaches_data = response.json()+ Logger.info(self.sketch_id, {"message": f"Found {len(breaches_data)} breaches for {email.email}"})for breach_data in breaches_data:breach = Breach(name=breach_data.get("Name", ""),title=breach_data.get("Title", ""),domain=breach_data.get("Domain", ""),- breach_date=breach_data.get("BreachDate", ""),- added_date=breach_data.get("AddedDate", ""),- modified_date=breach_data.get("ModifiedDate", ""),- pwn_count=breach_data.get("PwnCount", 0),+ breachdate=breach_data.get("BreachDate", ""),+ addeddate=breach_data.get("AddedDate", ""),+ modifieddate=breach_data.get("ModifiedDate", ""),+ pwncount=breach_data.get("PwnCount", 0),description=breach_data.get("Description", ""),- data_classes=breach_data.get("DataClasses", []),- is_verified=breach_data.get("IsVerified", False),- is_fabricated=breach_data.get("IsFabricated", False),- is_sensitive=breach_data.get("IsSensitive", False),- is_retired=breach_data.get("IsRetired", False),- is_spam_list=breach_data.get("IsSpamList", False),- logo_path=breach_data.get("LogoPath", "")+ dataclasses=breach_data.get("DataClasses", []),+ isverified=breach_data.get("IsVerified", False),+ isfabricated=breach_data.get("IsFabricated", False),+ issensitive=breach_data.get("IsSensitive", False),+ isretired=breach_data.get("IsRetired", False),+ isspamlist=breach_data.get("IsSpamList", False),+ logopath=breach_data.get("LogoPath", ""))- results.append(breach)+ # Store email and breach as a tuple+ results.append((email.email, breach))+ Logger.info(self.sketch_id, {"message": f"Added breach: {breach.name} for email: {email.email}"})elif response.status_code == 404:# No breaches found for this email@@ -123,9 +145,39 @@ class EmailToBreachesScanner(Scanner):Logger.error(self.sketch_id, {"message": f"Error checking breaches for email {email.email}: {e}"})continue+ Logger.info(self.sketch_id, {"message": f"Scan completed. Total results: {len(results)}"})return results- def postprocess(self, results: OutputType, input_data: InputType = None) -> OutputType:+ def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:+ Logger.info(self.sketch_id, {"message": f"Postprocess started. Results count: {len(results)}, Original input count: {len(original_input)}"})++ # Create email nodes first+ for email_obj in original_input:+ if not self.neo4j_conn:+ continue+ # Create email node+ self.create_node('email', 'email', email_obj.email, type='email')+ Logger.info(self.sketch_id, {"message": f"Created email node: {email_obj.email}"})++ # Process all breaches+ for email_address, breach_obj in results:+ if not self.neo4j_conn:+ continue++ # Create breach node+ breach_key = f"{breach_obj.name}_{self.sketch_id}"+ self.create_node(+ 'breach', 'breach_id', breach_key,+ **breach_obj.dict(),+ label=breach_obj.name, type="breach"+ )+ Logger.info(self.sketch_id, {"message": f"Created breach node: {breach_key}"})++ # Create relationship between the specific email and this breach+ self.create_relationship('email', 'email', email_address,+ 'breach', 'breach_id', breach_key, 'FOUND_IN_BREACH')+ self.log_graph_message(f"Breach found for email {email_address} -> {breach_obj.name} ({breach_obj.title})")+return results# Make types available at module level for easy accessdiff --git a/flowsint-api/app/scanners/individuals/to_org.py b/flowsint-api/app/scanners/individuals/to_org.pyindex 12938af9..c219afad 100644--- a/flowsint-api/app/scanners/individuals/to_org.py+++ b/flowsint-api/app/scanners/individuals/to_org.py@@ -227,29 +227,18 @@ class IndividualToOrgScanner(Scanner):for org in results:# Create or update the organization node with all SIRENE properties- self.neo4j_conn.query("""- MERGE (o:Organization {name: $name, country: $country})- SET o.siren = $siren,- o.siege_siret = $siret,- o.nom_complet = $nom_complet,- o.nom_raison_sociale = $nom_raison_sociale,- o.sigle = $sigle,- o.sketch_id = $sketch_id,- o.label = $name,- o.caption = $name,- o.type = 'organization'- """, {- "name": org.name,- "country": "FR",- "siren": org.siren,- "siret": org.siege_siret,- "nom_complet": org.nom_complet,- "nom_raison_sociale": org.nom_raison_sociale,- "sigle": org.sigle,- "sketch_id": self.sketch_id,- })+ org_key = f"{org.name}_FR"+ self.create_node('Organization', 'org_id', org_key,+ name=org.name,+ country="FR",+ siren=org.siren,+ siege_siret=org.siege_siret,+ nom_complet=org.nom_complet,+ nom_raison_sociale=org.nom_raison_sociale,+ sigle=org.sigle,+ caption=org.name, type='organization')- Logger.graph_append(self.sketch_id, {"message": f"Found organization: {org.name}"})+ self.log_graph_message(f"Found organization: {org.name}")return resultsdiff --git a/flowsint-api/app/scanners/ips/asn_to_cidrs.py b/flowsint-api/app/scanners/ips/asn_to_cidrs.pyindex 33cf2d2a..0cbb79c4 100644--- a/flowsint-api/app/scanners/ips/asn_to_cidrs.py+++ b/flowsint-api/app/scanners/ips/asn_to_cidrs.py@@ -23,6 +23,10 @@ class AsnToCidrsScanner(Scanner):@classmethoddef category(cls) -> str:return "Asn"++ @classmethod+ def key(cls) -> str:+ return 'network'def preprocess(self, data: Union[List[str], List[int], List[dict], InputType]) -> InputType:cleaned: InputType = []@@ -120,65 +124,37 @@ class AsnToCidrsScanner(Scanner):if str(cidr.network) == "0.0.0.0/0":continue # Skip default CIDR for unknown ASNif self.neo4j_conn:- query = """- MERGE (asn:asn {number: $asn_number})- SET asn.sketch_id = $sketch_id,- asn.name = $asn_name,- asn.country = $asn_country,- asn.label = $asn_label,- asn.caption = $asn_caption,- asn.type = "asn"+ self.create_node('asn', 'number', asn.number,+ name=asn.name or "Unknown",+ country=asn.country or "Unknown",+ label=f"AS{asn.number}",+ caption=f"AS{asn.number} - {asn.name or 'Unknown'}",+ type='asn')- MERGE (cidr:cidr {network: $cidr_network})- SET cidr.sketch_id = $sketch_id,- cidr.label = $cidr_network,- cidr.caption = $cidr_network,- cidr.type = "cidr"+ self.create_node('cidr', 'network', str(cidr.network),+ caption=str(cidr.network), type='cidr')- MERGE (asn)-[:ANNOUNCES {sketch_id: $sketch_id}]->(cidr)- """- self.neo4j_conn.query(query, {- "asn_number": asn.number,- "asn_name": asn.name or "Unknown",- "asn_country": asn.country or "Unknown",- "asn_label": f"AS{asn.number}",- "asn_caption": f"AS{asn.number} - {asn.name or 'Unknown'}",- "cidr_network": str(cidr.network),- "sketch_id": self.sketch_id,- })+ self.create_relationship('asn', 'number', asn.number,+ 'cidr', 'network', str(cidr.network), 'ANNOUNCES')else:# Fallback: original behavior (one-to-one zip)for asn, cidr in zip(original_input, results):if str(cidr.network) == "0.0.0.0/0":continue # Skip default CIDR for unknown ASN- Logger.graph_append(self.sketch_id, {"message": f"ASN {asn.number} -> {cidr.network}"})+ self.log_graph_message(f"ASN {asn.number} -> {cidr.network}")if self.neo4j_conn:- query = """- MERGE (asn:ASN {number: $asn_number})- SET asn.sketch_id = $sketch_id,- asn.name = $asn_name,- asn.country = $asn_country,- asn.label = $asn_label,- asn.caption = $asn_caption,- asn.type = "asn"+ self.create_node('ASN', 'number', asn.number,+ name=asn.name or "Unknown",+ country=asn.country or "Unknown",+ label=f"AS{asn.number}",+ caption=f"AS{asn.number} - {asn.name or 'Unknown'}",+ type='asn')- MERGE (cidr:CIDR {network: $cidr_network})- SET cidr.sketch_id = $sketch_id,- cidr.label = $cidr_network,- cidr.caption = $cidr_network,- cidr.type = "cidr"+ self.create_node('CIDR', 'network', str(cidr.network),+ caption=str(cidr.network), type='cidr')- MERGE (asn)-[:ANNOUNCES {sketch_id: $sketch_id}]->(cidr)- """- self.neo4j_conn.query(query, {- "asn_number": asn.number,- "asn_name": asn.name or "Unknown",- "asn_country": asn.country or "Unknown",- "asn_label": f"AS{asn.number}",- "asn_caption": f"AS{asn.number} - {asn.name or 'Unknown'}",- "cidr_network": str(cidr.network),- "sketch_id": self.sketch_id,- })+ self.create_relationship('ASN', 'number', asn.number,+ 'CIDR', 'network', str(cidr.network), 'ANNOUNCES')return results# Make types available at module level for easy accessdiff --git a/flowsint-api/app/scanners/ips/cidr_to_ips.py b/flowsint-api/app/scanners/ips/cidr_to_ips.pyindex d77a4ec4..29199d6d 100644--- a/flowsint-api/app/scanners/ips/cidr_to_ips.py+++ b/flowsint-api/app/scanners/ips/cidr_to_ips.py@@ -79,28 +79,20 @@ class CidrToIpsScanner(Scanner):def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:# Create Neo4j relationships between CIDRs and their corresponding IPsfor cidr, ip in zip(original_input, results):- Logger.graph_append(self.sketch_id, {"message": f"Found {len(results)} IPs for CIDR {cidr.network}"})if self.neo4j_conn:- query = """- MERGE (cidr:cidr {network: $cidr_network})- SET cidr.sketch_id = $sketch_id,- cidr.label = $cidr_network,- cidr.caption = $cidr_network,- cidr.type = "cidr"+ # Create CIDR node+ self.create_node('cidr', 'network', str(cidr.network),+ caption=str(cidr.network), type="cidr")- MERGE (ip:ip {address: $ip_address})- SET ip.sketch_id = $sketch_id,- ip.label = $ip_address,- ip.caption = $ip_address,- ip.type = "ip"+ # Create IP node+ self.create_node('ip', 'address', ip.address,+ caption=ip.address, type="ip")- MERGE (cidr)-[:CONTAINS {sketch_id: $sketch_id}]->(ip)- """- self.neo4j_conn.query(query, {- "cidr_network": str(cidr.network),- "ip_address": ip.address,- "sketch_id": self.sketch_id,- })+ # Create relationship+ self.create_relationship('cidr', 'network', str(cidr.network),+ 'ip', 'address', ip.address, 'CONTAINS')++ self.log_graph_message(f"Found {len(results)} IPs for CIDR {cidr.network}")return results# Make types available at module level for easy accessdiff --git a/flowsint-api/app/scanners/ips/geolocation.py b/flowsint-api/app/scanners/ips/geolocation.pyindex de335e59..7dac10ea 100644--- a/flowsint-api/app/scanners/ips/geolocation.py+++ b/flowsint-api/app/scanners/ips/geolocation.py@@ -91,25 +91,10 @@ class GeolocationScanner(Scanner):"""Update IP nodes in Neo4j with geolocation information."""if self.neo4j_conn:for ip in results:- Logger.graph_append(self.sketch_id, {"message": f"Geolocated {ip.address} to {ip.city}, {ip.country} (lat: {ip.latitude}, lon: {ip.longitude})"})- query = """- MATCH (ip:ip {address: $ip_address})- SET ip.latitude = $latitude,- ip.longitude = $longitude,- ip.country = $country,- ip.city = $city,- ip.isp = $isp,- ip.sketch_id = $sketch_id- """- self.neo4j_conn.query(query, {- "ip_address": ip.address,- "latitude": ip.latitude,- "longitude": ip.longitude,- "country": ip.country,- "city": ip.city,- "isp": ip.isp,- "sketch_id": self.sketch_id- })+ self.create_node('ip', 'address', ip.address,+ latitude=ip.latitude, longitude=ip.longitude,+ country=ip.country, city=ip.city, isp=ip.isp, type='ip')+ self.log_graph_message(f"Geolocated {ip.address} to {ip.city}, {ip.country} (lat: {ip.latitude}, lon: {ip.longitude})")return resultsdef get_location_data(self, address: str) -> Dict[str, Any]:diff --git a/flowsint-api/app/scanners/leaks/hibp.py b/flowsint-api/app/scanners/leaks/hibp.pyindex 90428fdd..8147458f 100644--- a/flowsint-api/app/scanners/leaks/hibp.py+++ b/flowsint-api/app/scanners/leaks/hibp.py@@ -82,37 +82,18 @@ class HibpScanner(Scanner):email = result["email"]# Create email node- email_query = """- MERGE (email:email {address: $address})- SET email.sketch_id = $sketch_id,- email.label = $address,- email.caption = $address,- email.type = "email"- """- self.neo4j_conn.query(email_query, {- "address": email,- "sketch_id": self.sketch_id- })+ self.create_node('email', 'address', email,+ caption=email, type='email')# Create breach relationshipsfor breach in result.get("breaches", []):if breach and isinstance(breach, dict):breach_name = breach.get("Name", "Unknown")- self.neo4j_conn.query("""- MERGE (breach:breach {name: $name})- SET breach.sketch_id = $sketch_id,- breach.label = $name,- breach.caption = $name,- breach.type = "breach"- WITH breach- MATCH (email:email {address: $email_address})- MERGE (email)-[:FOUND_IN_BREACH {sketch_id: $sketch_id}]->(breach)- """, {- "name": breach_name,- "email_address": email,- "sketch_id": self.sketch_id- })- Logger.graph_append(self.sketch_id, {"message": f"Email {email} found in breach: {breach_name}"})+ self.create_node('breach', 'name', breach_name,+ caption=breach_name, type='breach')+ self.create_relationship('email', 'address', email,+ 'breach', 'name', breach_name, 'FOUND_IN_BREACH')+ self.log_graph_message(f"Email {email} found in breach: {breach_name}")return resultsdiff --git a/flowsint-api/app/scanners/n8n/connector.py b/flowsint-api/app/scanners/n8n/connector.pyindex 68512040..cfddd386 100644--- a/flowsint-api/app/scanners/n8n/connector.py+++ b/flowsint-api/app/scanners/n8n/connector.py@@ -8,17 +8,6 @@ from app.core.graph_db import Neo4jConnectionclass N8nConnector(Scanner):"""Connect to your custom n8n workflows to process data through webhooks.-- ## Setup instructions:- 1. In your n8n workflow, add a **Webhook** trigger node as the starting node- 2. In the Webhook node, set **Respond** to `"Using 'Respond to Webhook' node"`- 3. Add a **Respond to Webhook** node at the end of your workflow to return processed data- 4. Use the webhook URL from your n8n workflow in the `webhook_url` parameter-- The connector will send your input data as JSON to the webhook and expect JSON response.- Types are not validated by this connector, so ensure your n8n workflow handles the expected data types correctly.-- For more details on webhook responses, see: [Respond to Webhook documentation](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook/)"""# Define types as class attributes - base class handles schema generation automatically@@ -42,6 +31,187 @@ class N8nConnector(Scanner):params=params)+ @classmethod+ def documentation(cls) -> str:+ """Return formatted markdown documentation for the n8n connector."""+ return """+# n8n Connector++Connect to your custom n8n workflows to process data through webhooks. This connector allows you to leverage n8n's powerful automation capabilities within your FlowSint investigations.++## Setup Instructions++### 1. Configure n8n Workflow++Create a new workflow in n8n with the following structure:++```+[Webhook Trigger] → [Your Processing Nodes] → [Respond to Webhook]+```++### 2. Configure Webhook Trigger Node++In your n8n workflow, add a **Webhook** trigger node as the starting node:++```json+{+ "httpMethod": "POST",+ "path": "your-webhook-path",+ "responseMode": "responseNode"+}+```++**Important**: Set **Respond** to `"Using 'Respond to Webhook' node"`++### 3. Add Processing Logic++Add your custom processing nodes between the webhook trigger and response node. Your workflow will receive the following JSON payload:++```json+{+ "sketch_id": "sketch-uuid",+ "type": "input-data-type",+ "inputs": [+ // Your input data array+ ]+}+```++### 4. Configure Respond to Webhook Node++Add a **Respond to Webhook** node at the end of your workflow to return processed data:++```json+{+ "respondWith": "json",+ "responseBody": "{{ $json.processedData }}"+}+```++## Configuration Parameters++### Required Parameters++- **webhook_url** (url): The n8n webhook URL to send data to+ ```+ Example: https://your-n8n-instance.com/webhook/your-webhook-id+ ```++### Optional Parameters++- **auth_token** (vaultSecret): Authentication token for the webhook+ ```+ Used as: Authorization: Bearer <token>+ ```++- **extra_payload** (string): Additional JSON data to include in the payload+ ```json+ {+ "custom_field": "value",+ "metadata": {+ "source": "flowsint"+ }+ }+ ```++## Input/Output Types++- **Input**: `List[Any]` - Array of data to be processed+- **Output**: `List[Any]` - Array of processed results from n8n++## Example Usage++### Basic Setup++```json+{+ "webhook_url": "https://n8n.example.com/webhook/abc123"+}+```++### With Authentication++```json+{+ "webhook_url": "https://n8n.example.com/webhook/abc123",+ "auth_token": "your-secret-token"+}+```++### With Extra Payload++```json+{+ "webhook_url": "https://n8n.example.com/webhook/abc123",+ "extra_payload": "{\"priority\": \"high\", \"source\": \"investigation\"}"+}+```++## Sample n8n Workflow Response++Your n8n workflow should return data in this format:++```json+[+ {+ "id": "processed-item-1",+ "result": "processed data",+ "metadata": {+ "processed_at": "2024-01-01T12:00:00Z"+ }+ }+]+```++## Error Handling++The connector handles various error scenarios:++- **Non-200 HTTP responses**: Logs error and raises exception+- **Invalid JSON responses**: Returns error object with raw response+- **Network errors**: Logs error and re-raises exception++Example error response:+```json+[+ {+ "raw_response": "Server Error",+ "error": "Response was not valid JSON"+ }+]+```++## Security Considerations++- Use HTTPS URLs for webhook endpoints+- Store sensitive tokens in the vault system+- Validate and sanitize data in your n8n workflow+- Consider rate limiting in your n8n instance++## Troubleshooting++### Common Issues++1. **Webhook not responding**: Check n8n workflow is active and webhook URL is correct+2. **Authentication errors**: Verify auth_token is valid and properly stored in vault+3. **JSON parsing errors**: Ensure n8n workflow returns valid JSON++### Debug Logging++The connector provides detailed logging:+- Request payload sent to webhook+- Response status and content+- Processing results++Check FlowSint logs for detailed debugging information.++## Resources++- [n8n Webhook Documentation](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/)+- [Respond to Webhook Documentation](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.respondtowebhook/)+- [n8n HTTP Request Node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.httprequest/)+"""+@classmethoddef icon(cls) -> str | None:return "n8n"diff --git a/flowsint-api/app/scanners/organizations/org_to_asn.py b/flowsint-api/app/scanners/organizations/org_to_asn.pyindex 71701de9..40511551 100644--- a/flowsint-api/app/scanners/organizations/org_to_asn.py+++ b/flowsint-api/app/scanners/organizations/org_to_asn.py@@ -108,35 +108,24 @@ class OrgToAsnScanner(Scanner):if result_asn.number == 0:continue- query = """- MERGE (org:organization {name: $org_name})- SET org.sketch_id = $sketch_id,- org.label = $org_name,- org.caption = $org_name,- org.type = "organization"-- MERGE (asn:asn {number: $asn_number})- SET asn.sketch_id = $sketch_id,- asn.name = $asn_name,- asn.country = $asn_country,- asn.label = $asn_label,- asn.caption = $asn_caption,- asn.type = "asn"-- MERGE (org)-[:BELONGS_TO {sketch_id: $sketch_id}]->(asn)- """-if self.neo4j_conn:- self.neo4j_conn.query(query, {- "org_name": input_org.name,- "asn_number": result_asn.number,- "asn_name": result_asn.name,- "asn_country": result_asn.country,- "asn_label": f"AS{result_asn.number}",- "asn_caption": f"AS{result_asn.number} - {result_asn.name}",- "sketch_id": self.sketch_id,- })- Logger.graph_append(self.sketch_id, {"message": f"Found for {input_org.name} -> ASN {result_asn.number}"})+ # Create organization node+ self.create_node('organization', 'name', input_org.name,+ caption=input_org.name, type="organization")++ # Create ASN node+ self.create_node('asn', 'number', result_asn.number,+ name=result_asn.name,+ country=result_asn.country,+ label=f"AS{result_asn.number}",+ caption=f"AS{result_asn.number} - {result_asn.name}",+ type="asn")++ # Create relationship+ self.create_relationship('organization', 'name', input_org.name,+ 'asn', 'number', result_asn.number, 'BELONGS_TO')++ self.log_graph_message(f"Found for {input_org.name} -> ASN {result_asn.number}")return resultsdiff --git a/flowsint-api/app/scanners/organizations/to_infos.py b/flowsint-api/app/scanners/organizations/to_infos.pyindex a4147bd7..07082e33 100644--- a/flowsint-api/app/scanners/organizations/to_infos.py+++ b/flowsint-api/app/scanners/organizations/to_infos.py@@ -221,164 +221,99 @@ class OrgToInfosScanner(Scanner):for org in results:# Create or update the organization node with all SIRENE properties- self.neo4j_conn.query("""- MERGE (o:Organization {name: $name, country: $country})- SET o.siren = $siren,- o.siege_siret = $siret,- o.nom_complet = $nom_complet,- o.nom_raison_sociale = $nom_raison_sociale,- o.sigle = $sigle,- o.nombre_etablissements = $nombre_etablissements,- o.nombre_etablissements_ouverts = $nombre_etablissements_ouverts,- o.activite_principale = $activite_principale,- o.section_activite_principale = $section_activite_principale,- o.categorie_entreprise = $categorie_entreprise,- o.annee_categorie_entreprise = $annee_categorie_entreprise,- o.caractere_employeur = $caractere_employeur,- o.tranche_effectif_salarie = $tranche_effectif_salarie,- o.annee_tranche_effectif_salarie = $annee_tranche_effectif_salarie,- o.date_creation = $date_creation,- o.date_fermeture = $date_fermeture,- o.date_mise_a_jour = $date_mise_a_jour,- o.date_mise_a_jour_insee = $date_mise_a_jour_insee,- o.date_mise_a_jour_rne = $date_mise_a_jour_rne,- o.nature_juridique = $nature_juridique,- o.etat_administratif = $etat_administratif,- o.statut_diffusion = $statut_diffusion,- o.sketch_id = $sketch_id,- o.label = $name,- o.caption = $name,- o.type = 'organization'- """, {- "name": org.name,- "country": "FR",- "siren": org.siren,- "siret": org.siege_siret,- "nom_complet": org.nom_complet,- "nom_raison_sociale": org.nom_raison_sociale,- "sigle": org.sigle,- "nombre_etablissements": org.nombre_etablissements,- "nombre_etablissements_ouverts": org.nombre_etablissements_ouverts,- "activite_principale": org.activite_principale,- "section_activite_principale": org.section_activite_principale,- "categorie_entreprise": org.categorie_entreprise,- "annee_categorie_entreprise": org.annee_categorie_entreprise,- "caractere_employeur": org.caractere_employeur,- "tranche_effectif_salarie": org.tranche_effectif_salarie,- "annee_tranche_effectif_salarie": org.annee_tranche_effectif_salarie,- "date_creation": org.date_creation,- "date_fermeture": org.date_fermeture,- "date_mise_a_jour": org.date_mise_a_jour,- "date_mise_a_jour_insee": org.date_mise_a_jour_insee,- "date_mise_a_jour_rne": org.date_mise_a_jour_rne,- "nature_juridique": org.nature_juridique,- "etat_administratif": org.etat_administratif,- "statut_diffusion": org.statut_diffusion,- "sketch_id": self.sketch_id,- })+ org_key = f"{org.name}_FR"+ self.create_node('Organization', 'org_id', org_key,+ name=org.name,+ country="FR",+ siren=org.siren,+ siege_siret=org.siege_siret,+ nom_complet=org.nom_complet,+ nom_raison_sociale=org.nom_raison_sociale,+ sigle=org.sigle,+ nombre_etablissements=org.nombre_etablissements,+ nombre_etablissements_ouverts=org.nombre_etablissements_ouverts,+ activite_principale=org.activite_principale,+ section_activite_principale=org.section_activite_principale,+ categorie_entreprise=org.categorie_entreprise,+ annee_categorie_entreprise=org.annee_categorie_entreprise,+ caractere_employeur=org.caractere_employeur,+ tranche_effectif_salarie=org.tranche_effectif_salarie,+ annee_tranche_effectif_salarie=org.annee_tranche_effectif_salarie,+ date_creation=org.date_creation,+ date_fermeture=org.date_fermeture,+ date_mise_a_jour=org.date_mise_a_jour,+ date_mise_a_jour_insee=org.date_mise_a_jour_insee,+ date_mise_a_jour_rne=org.date_mise_a_jour_rne,+ nature_juridique=org.nature_juridique,+ etat_administratif=org.etat_administratif,+ statut_diffusion=org.statut_diffusion,+ caption=org.name, type='organization')if org.siren:- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: SIREN {org.siren} -> {org.name}"})+ self.log_graph_message(f"{org.name}: SIREN {org.siren} -> {org.name}")# Add SIRET as identifier if availableif org.siege_siret:- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: SIRET {org.siege_siret} -> {org.name}"})+ self.log_graph_message(f"{org.name}: SIRET {org.siege_siret} -> {org.name}")# Add dirigeants (leaders) as Individual nodes with relationshipsif org.dirigeants:for dirigeant in org.dirigeants:- self.neo4j_conn.query("""- MERGE (i:Individual {full_name: $full_name})- SET i.first_name = $first_name,- i.last_name = $last_name,- i.birth_date = $birth_date,- i.gender = $gender,- i.sketch_id = $sketch_id,- i.label = $full_name,- i.caption = $full_name,- i.type = 'individual'- WITH i- MATCH (o:Organization {name: $org_name, country: $org_country})- MERGE (o)-[:HAS_LEADER {sketch_id: $sketch_id}]->(i)- """, {- "full_name": dirigeant.full_name,- "first_name": dirigeant.first_name,- "last_name": dirigeant.last_name,- "birth_date": dirigeant.birth_date,- "gender": dirigeant.gender,- "sketch_id": self.sketch_id,- "org_name": org.name,- "org_country": "FR",- })- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: HAS_LEADER -> {dirigeant.full_name}"})+ self.create_node('Individual', 'full_name', dirigeant.full_name,+ first_name=dirigeant.first_name,+ last_name=dirigeant.last_name,+ birth_date=dirigeant.birth_date,+ gender=dirigeant.gender,+ caption=dirigeant.full_name, type='individual')++ self.create_relationship('Organization', 'org_id', org_key,+ 'Individual', 'full_name', dirigeant.full_name, 'HAS_LEADER')+ self.log_graph_message(f"{org.name}: HAS_LEADER -> {dirigeant.full_name}")# Add siege address as PhysicalAddress node if availableif org.siege_geo_adresse:address = org.siege_geo_adresse- self.neo4j_conn.query("""- MERGE (a:PhysicalAddress {address: $address, city: $city, country: $country})- SET a.zip = $zip,- a.latitude = $latitude,- a.longitude = $longitude,- a.sketch_id = $sketch_id,- a.label = $label,- a.caption = $caption,- a.type = 'location'- WITH a- MATCH (o:Organization {name: $org_name, country: $org_country})- MERGE (o)-[:HAS_ADDRESS {sketch_id: $sketch_id}]->(a)- """, {- "address": address.address,- "city": address.city,- "country": address.country,- "zip": address.zip,- "latitude": address.latitude,- "longitude": address.longitude,- "sketch_id": self.sketch_id,- "label": f"{address.address}, {address.city}",- "caption": f"{address.address}, {address.city}",- "org_name": org.name,- "org_country": "FR",- })- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: HAS_ADDRESS -> {address.address}, {address.city}"})+ address_key = f"{address.address}_{address.city}_{address.country}"+ self.create_node('PhysicalAddress', 'address_id', address_key,+ address=address.address,+ city=address.city,+ country=address.country,+ zip=address.zip,+ latitude=address.latitude,+ longitude=address.longitude,+ label=f"{address.address}, {address.city}",+ caption=f"{address.address}, {address.city}",+ type='location')++ self.create_relationship('Organization', 'org_id', org_key,+ 'PhysicalAddress', 'address_id', address_key, 'HAS_ADDRESS')+ self.log_graph_message(f"{org.name}: HAS_ADDRESS -> {address.address}, {address.city}")# Add siege location as Location node if coordinates are available but no PhysicalAddresselif org.siege_latitude and org.siege_longitude:- self.neo4j_conn.query("""- MERGE (l:Location {latitude: $latitude, longitude: $longitude})- SET l.address = $address,- l.city = $city,- l.country = $country,- l.zip = $zip,- l.sketch_id = $sketch_id,- l.label = $label,- l.caption = $caption,- l.type = 'location'- WITH l- MATCH (o:Organization {name: $org_name, country: $org_country})- MERGE (o)-[:LOCATED_AT {sketch_id: $sketch_id}]->(l)- """, {- "latitude": float(org.siege_latitude),- "longitude": float(org.siege_longitude),- "address": org.siege_adresse,- "city": org.siege_libelle_commune,- "country": "FR",- "zip": org.siege_code_postal,- "sketch_id": self.sketch_id,- "label": f"{org.siege_adresse or 'Unknown'}, {org.siege_libelle_commune or 'Unknown'}",- "caption": f"{org.siege_adresse or 'Unknown'}, {org.siege_libelle_commune or 'Unknown'}",- "org_name": org.name,- "org_country": "FR",- })- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: LOCATED_AT -> {org.siege_libelle_commune or 'Unknown'}"})+ location_key = f"{org.siege_latitude}_{org.siege_longitude}"+ self.create_node('Location', 'location_id', location_key,+ latitude=float(org.siege_latitude),+ longitude=float(org.siege_longitude),+ address=org.siege_adresse,+ city=org.siege_libelle_commune,+ country="FR",+ zip=org.siege_code_postal,+ label=f"{org.siege_adresse or 'Unknown'}, {org.siege_libelle_commune or 'Unknown'}",+ caption=f"{org.siege_adresse or 'Unknown'}, {org.siege_libelle_commune or 'Unknown'}",+ type='location')++ self.create_relationship('Organization', 'org_id', org_key,+ 'Location', 'location_id', location_key, 'LOCATED_AT')+ self.log_graph_message(f"{org.name}: LOCATED_AT -> {org.siege_libelle_commune or 'Unknown'}")# Add activity codes as Activity nodesif org.activite_principale:- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: HAS_ACTIVITY -> {org.activite_principale}"})+ self.log_graph_message(f"{org.name}: HAS_ACTIVITY -> {org.activite_principale}")# Add legal nature as LegalNature nodeif org.nature_juridique:- Logger.graph_append(self.sketch_id, {"message": f"{org.name}: HAS_LEGAL_NATURE -> {org.nature_juridique}"})+ self.log_graph_message(f"{org.name}: HAS_LEGAL_NATURE -> {org.nature_juridique}")return resultsdiff --git a/flowsint-api/app/scanners/phones/ignorant.py b/flowsint-api/app/scanners/phones/ignorant.pyindex c08811e6..71109752 100644--- a/flowsint-api/app/scanners/phones/ignorant.py+++ b/flowsint-api/app/scanners/phones/ignorant.py@@ -97,24 +97,14 @@ class IgnorantScanner(Scanner):for result in results:if "error" not in result and "platforms" in result:- # Create phone number node- phone_query = """- MERGE (phone:phone {number: $number})- SET phone.sketch_id = $sketch_id,- phone.label = $number,- phone.caption = $number,- phone.type = "phone"- """- self.neo4j_conn.query(phone_query, {- "number": result["number"],- "sketch_id": self.sketch_id- })+ self.create_node('phone', 'number', result["number"],+ caption=result["number"], type='phone')# Create platform relationshipsfor platform_result in result["platforms"]:if platform_result and isinstance(platform_result, dict):platform_name = platform_result.get("platform", "unknown")- Logger.graph_append(self.sketch_id, {"message": f"Phone {result['number']} found on {platform_name}"})+ self.log_graph_message(f"Phone {result['number']} found on {platform_name}")return resultsdiff --git a/flowsint-api/app/scanners/registry.py b/flowsint-api/app/scanners/registry.pyindex 2d9ff0ec..6cd1edae 100644--- a/flowsint-api/app/scanners/registry.py+++ b/flowsint-api/app/scanners/registry.py@@ -1,4 +1,5 @@-from typing import Dict, Type+import inspect+from typing import Dict, Type, Listfrom app.scanners.base import Scannerfrom app.scanners.domains.subdomains import SubdomainScannerfrom app.scanners.domains.whois import WhoisScanner@@ -15,6 +16,7 @@ from app.scanners.crypto.wallet_to_transactions import CryptoWalletAddressToTranfrom app.scanners.crypto.wallet_to_nfts import CryptoWalletAddressToNFTsfrom app.scanners.domains.to_website import DomainToWebsiteScannerfrom app.scanners.websites.to_crawler import WebsiteToCrawler+from app.scanners.websites.to_links import WebsiteToLinksfrom app.scanners.websites.to_domain import WebsiteToDomainScannerfrom app.scanners.emails.to_gravatar import EmailToGravatarScannerfrom app.scanners.emails.to_leaks import EmailToBreachesScanner@@ -33,88 +35,63 @@ class ScannerRegistry:@classmethoddef scanner_exists(cls, name: str) -> bool:- if name not in cls._scanners:- return False- return True+ return name in cls._scanners@classmethod- def get_scanner(cls, name: str, sketch_id:str, scan_id: str, **kwargs) -> Scanner:+ def get_scanner(cls, name: str, sketch_id: str, scan_id: str, **kwargs) -> Scanner:if name not in cls._scanners:raise Exception(f"Scanner '{name}' not found")return cls._scanners[name](sketch_id=sketch_id, scan_id=scan_id, **kwargs)+ @classmethod+ def _create_scanner_metadata(cls, scanner: Type[Scanner]) -> Dict[str, str]:+ """Helper method to create scanner metadata dictionary."""+ return {+ "class_name": scanner.__name__,+ "name": scanner.name(),+ "module": scanner.__module__,+ "description": scanner.__doc__,+ "documentation": inspect.cleandoc(scanner.documentation()),+ "category": scanner.category(),+ "inputs": scanner.input_schema(),+ "outputs": scanner.output_schema(),+ "params": {},+ "params_schema": scanner.get_params_schema(),+ "required_params": scanner.required_params(),+ "icon": scanner.icon(),+ }+@classmethoddef list(cls) -> Dict[str, Dict[str, str]]:return {- name: {- "class_name": scanner.__name__,- "name": scanner.name(),- "module": scanner.__module__,- "doc": scanner.__doc__,- "category": scanner.category(),- "inputs": scanner.input_schema(),- "outputs": scanner.output_schema(),- "params": {},- "params_schema": scanner.get_params_schema(),- "required_params": scanner.required_params(),- "icon": scanner.icon(),- }- for name, scanner in cls._scanners.items()+ name: cls._create_scanner_metadata(scanner)+ for name, scanner in cls._scanners.items()}@classmethod- def list_by_categories(cls) -> Dict[str, Dict[str, str]]:+ def list_by_categories(cls) -> Dict[str, List[Dict[str, str]]]:scanners_by_category = {}for _, scanner in cls._scanners.items():category = scanner.category()if category not in scanners_by_category:scanners_by_category[category] = []- scanners_by_category[category].append({- "class_name": scanner.__name__,- "name": scanner.name(),- "module": scanner.__module__,- "doc": scanner.__doc__,- "category": category,- "inputs": scanner.input_schema(),- "outputs": scanner.output_schema(),- "params": {},- "params_schema": scanner.get_params_schema(),- "required_params": scanner.required_params(),- "icon": scanner.icon(),- })+ scanners_by_category[category].append(cls._create_scanner_metadata(scanner))return scanners_by_category@classmethod- def list_by_input_type(cls, input_type: str) -> Dict[str, Dict[str, str]]:- if input_type.lower() == "any":- return [{- "class_name": scanner.__name__,- "name": scanner.name(),- "module": scanner.__module__,- "doc": scanner.__doc__,- "category": scanner.category(),- "inputs": scanner.input_schema(),- "outputs": scanner.output_schema(),- "params": {},- "params_schema": scanner.get_params_schema(),- "required_params": scanner.required_params(),- "icon": scanner.icon(),- } for _, scanner in cls._scanners.items()]+ def list_by_input_type(cls, input_type: str) -> List[Dict[str, str]]:+ input_type_lower = input_type.lower()++ if input_type_lower == "any":+ return [cls._create_scanner_metadata(scanner) for scanner in cls._scanners.values()]- return [{- "class_name": scanner.__name__,- "name": scanner.name(),- "module": scanner.__module__,- "doc": scanner.__doc__,- "category": scanner.category(),- "inputs": scanner.input_schema(),- "outputs": scanner.output_schema(),- "params": {},- "params_schema": scanner.get_params_schema(),- "required_params": scanner.required_params(),- "icon": scanner.icon(),- } for _, scanner in cls._scanners.items() if scanner.input_schema()["type"].lower() in ["any", input_type.lower()]]+ return [+ cls._create_scanner_metadata(scanner)+ for scanner in cls._scanners.values()+ if scanner.input_schema()["type"].lower() in ["any", input_type_lower]+ ]+# Register all scannersScannerRegistry.register(ReverseResolveScanner)ScannerRegistry.register(ResolveScanner)ScannerRegistry.register(SubdomainScanner)@@ -130,12 +107,12 @@ ScannerRegistry.register(CryptoWalletAddressToTransactions)ScannerRegistry.register(CryptoWalletAddressToNFTs)ScannerRegistry.register(DomainToWebsiteScanner)ScannerRegistry.register(WebsiteToCrawler)+ScannerRegistry.register(WebsiteToLinks)ScannerRegistry.register(WebsiteToDomainScanner)ScannerRegistry.register(EmailToGravatarScanner)ScannerRegistry.register(EmailToBreachesScanner)ScannerRegistry.register(IndividualToOrgScanner)ScannerRegistry.register(OrgToInfosScanner)-ScannerRegistry.register(IndividualToOrgScanner)ScannerRegistry.register(WebsiteToWebtrackersScanner)ScannerRegistry.register(N8nConnector)diff --git a/flowsint-api/app/scanners/socials/maigret.py b/flowsint-api/app/scanners/socials/maigret.pyindex 29441207..d54327d7 100644--- a/flowsint-api/app/scanners/socials/maigret.py+++ b/flowsint-api/app/scanners/socials/maigret.py@@ -121,40 +121,28 @@ class MaigretScanner(Scanner):return resultsfor profile in results:- Logger.graph_append(self.sketch_id, {"message": f"{profile.username} -> account found on {profile.platform}"})- self.neo4j_conn.query("""- MERGE (p:social_profile {profile_url: $profile_url})- SET p.username = $username,- p.platform = $platform,- p.profile_picture_url = $picture,- p.bio = $bio,- p.followers_count = $followers,- p.following_count = $following,- p.posts_count = $posts,- p.label = $label,- p.caption = $caption,- p.color = $color,- p.type = $type,- p.sketch_id = $sketch_id-- MERGE (i:username {username: $username})- SET i.sketch_id = $sketch_id- MERGE (i)-[:HAS_SOCIAL_ACCOUNT {sketch_id: $sketch_id}]->(p)- """, {- "profile_url": profile.profile_url,- "username": profile.username,- "platform": profile.platform,- "picture": profile.profile_picture_url,- "bio": profile.bio,- "followers": profile.followers_count,- "following": profile.following_count,- "posts": profile.posts_count,- "label": f"{profile.platform}:{profile.username}",- "caption": f"{profile.platform}:{profile.username}",- "color": "#1DA1F2",- "type": "social_profile",- "sketch_id": self.sketch_id- })+ # Create social profile node+ self.create_node('social_profile', 'profile_url', profile.profile_url,+ username=profile.username,+ platform=profile.platform,+ profile_picture_url=profile.profile_picture_url,+ bio=profile.bio,+ followers_count=profile.followers_count,+ following_count=profile.following_count,+ posts_count=profile.posts_count,+ label=f"{profile.platform}:{profile.username}",+ caption=f"{profile.platform}:{profile.username}",+ color="#1DA1F2",+ type="social_profile")++ # Create username node+ self.create_node('username', 'username', profile.username, type='username')++ # Create relationship+ self.create_relationship('username', 'username', profile.username,+ 'social_profile', 'profile_url', profile.profile_url, 'HAS_SOCIAL_ACCOUNT')++ self.log_graph_message(f"{profile.username} -> account found on {profile.platform}")return resultsdiff --git a/flowsint-api/app/scanners/socials/sherlock.py b/flowsint-api/app/scanners/socials/sherlock.pyindex e8c86e9a..873705bb 100644--- a/flowsint-api/app/scanners/socials/sherlock.py+++ b/flowsint-api/app/scanners/socials/sherlock.py@@ -94,22 +94,10 @@ class SherlockScanner(Scanner):return resultsfor social in results:- # Create or update social account node- social_query = """- MERGE (social:social {username: $username, platform: $platform})- SET social.url = $url,- social.sketch_id = $sketch_id,- social.label = $username,- social.caption = $platform,- social.type = "social"- """- self.neo4j_conn.query(social_query, {- "username": social.username,- "platform": social.platform,- "url": social.url,- "sketch_id": self.sketch_id- })- Logger.graph_append(self.sketch_id, {"message": f"Found social account: {social.username} on {social.platform}"})+ self.create_node('social', 'username', social.username,+ platform=social.platform, url=social.url,+ caption=social.platform, type='social')+ self.log_graph_message(f"Found social account: {social.username} on {social.platform}")return resultsdiff --git a/flowsint-api/app/scanners/websites/to_crawler.py b/flowsint-api/app/scanners/websites/to_crawler.pyindex edd6133f..916de7e6 100644--- a/flowsint-api/app/scanners/websites/to_crawler.py+++ b/flowsint-api/app/scanners/websites/to_crawler.py@@ -105,59 +105,25 @@ class WebsiteToCrawler(Scanner):website_url = str(input_website.url)# Create website node- website_query = """- MERGE (website:website {url: $website_url})- SET website.sketch_id = $sketch_id,- website.label = $website_url,- website.caption = $website_url,- website.type = "website"- """-if self.neo4j_conn:- self.neo4j_conn.query(website_query, {- "website_url": website_url,- "sketch_id": self.sketch_id,- })+ self.create_node('website', 'url', website_url,+ caption=website_url, type='website')# Create email nodes and relationshipsfor email in result["emails"]:- email_query = """- MERGE (email:email {email: $email_address})- SET email.sketch_id = $sketch_id,- email.label = $email_address,- email.caption = $email_address,- email.type = "email"-- MERGE (website:website {url: $website_url})- MERGE (website)-[:HAS_EMAIL {sketch_id: $sketch_id}]->(email)- """-- self.neo4j_conn.query(email_query, {- "email_address": email.email,- "website_url": website_url,- "sketch_id": self.sketch_id,- })- Logger.graph_append(self.sketch_id, {"message": f"Found email {email.email} for website {website_url}"})+ self.create_node('email', 'email', email.email,+ caption=email.email, type='email')+ self.create_relationship('website', 'url', website_url,+ 'email', 'email', email.email, 'HAS_EMAIL')+ self.log_graph_message(f"Found email {email.email} for website {website_url}")# Create phone nodes and relationshipsfor phone in result["phones"]:- phone_query = """- MERGE (phone:phone {number: $phone_number})- SET phone.sketch_id = $sketch_id,- phone.label = $phone_number,- phone.caption = $phone_number,- phone.type = "phone"-- MERGE (website:website {url: $website_url})- MERGE (website)-[:HAS_PHONE {sketch_id: $sketch_id}]->(phone)- """-- self.neo4j_conn.query(phone_query, {- "phone_number": phone.number,- "website_url": website_url,- "sketch_id": self.sketch_id,- })- Logger.graph_append(self.sketch_id, {"message": f"Found phone {phone.number} for website {website_url}"})+ self.create_node('phone', 'number', phone.number,+ caption=phone.number, type='phone')+ self.create_relationship('website', 'url', website_url,+ 'phone', 'number', phone.number, 'HAS_PHONE')+ self.log_graph_message(f"Found phone {phone.number} for website {website_url}")return resultsdiff --git a/flowsint-api/app/scanners/websites/to_links.py b/flowsint-api/app/scanners/websites/to_links.pynew file mode 100644index 00000000..c67347cf--- /dev/null+++ b/flowsint-api/app/scanners/websites/to_links.py@@ -0,0 +1,200 @@+from typing import List, Union+from urllib.parse import urlparse+from app.scanners.base import Scanner+from app.types.website import Website+from app.core.logger import Logger+from reconspread import Crawler++class WebsiteToLinks(Scanner):+ """From website to spread crawler that extracts domains and internal/external links."""++ # Define types as class attributes - base class handles schema generation automatically+ InputType = List[Website]+ OutputType = List[Website]++ @classmethod+ def name(cls) -> str:+ return "to_links"++ @classmethod+ def category(cls) -> str:+ return "Website"++ @classmethod+ def key(cls) -> str:+ return "url"++ def extract_domain(self, url: str) -> str:+ """Extract domain from URL."""+ try:+ parsed_url = urlparse(url)+ return parsed_url.netloc+ except Exception:+ return ""++ def preprocess(self, data: Union[List[str], List[dict], InputType]) -> InputType:+ cleaned: InputType = []+ for item in data:+ website_obj = None+ if isinstance(item, str):+ website_obj = Website(url=item)+ elif isinstance(item, dict) and "url" in item:+ website_obj = Website(url=item["url"])+ elif isinstance(item, Website):+ website_obj = item+ if website_obj:+ cleaned.append(website_obj)+ return cleaned++ async def scan(self, data: InputType) -> OutputType:+ """Crawl websites using reconspread to extract internal and external links."""+ results = []++ for website in data:+ try:+ Logger.info(self.sketch_id, {"message": f"Starting reconspread crawl of {str(website.url)}"})++ # Extract main domain from input website (needed in callback)+ main_domain = self.extract_domain(str(website.url))++ # Create main website and domain nodes upfront+ if self.neo4j_conn:+ self.create_node('website', 'url', str(website.url),+ caption=str(website.url), type='website')+ if main_domain:+ self.create_node('domain', 'name', main_domain,+ caption=main_domain, type='domain')+ self.create_relationship('website', 'url', str(website.url),+ 'domain', 'name', main_domain, 'BELONGS_TO_DOMAIN')+ self.log_graph_message(f"Website {str(website.url)} belongs to domain {main_domain}")++ # Store discovered URLs+ internal_urls = []+ external_urls = []+ external_domains = set()++ def url_handler(url, is_external=False):+ """Custom callback to handle URLs as they're discovered."""+ if is_external:+ external_urls.append(url)+ domain = self.extract_domain(url)+ if domain:+ external_domains.add(domain)+ # Create external website node immediately+ if self.neo4j_conn:+ self.create_node('website', 'url', url,+ caption=url, type='website')+ self.create_relationship('website', 'url', str(website.url),+ 'website', 'url', url, 'LINKS_TO')+ self.log_graph_message(f"Website {str(website.url)} links to external website {url}")++ # Create external domain node and link external website to its domain+ if domain != main_domain:+ self.create_node('domain', 'name', domain,+ caption=domain, type='domain')+ self.create_relationship('website', 'url', url,+ 'domain', 'name', domain, 'BELONGS_TO_DOMAIN')+ self.create_relationship('website', 'url', str(website.url),+ 'domain', 'name', domain, 'LINKS_TO_DOMAIN')+ self.log_graph_message(f"External website {url} belongs to domain {domain}")+ self.log_graph_message(f"Website {str(website.url)} links to external domain {domain}")+ Logger.info(self.sketch_id, {"message": f"[EXTERNAL] Found: {url} -> Domain: {domain}"})+ else:+ internal_urls.append(url)+ # Create internal website node immediately+ if self.neo4j_conn and url != str(website.url): # Don't create duplicate of main website+ self.create_node('website', 'url', url,+ caption=url, type='website')+ self.create_relationship('website', 'url', str(website.url),+ 'website', 'url', url, 'LINKS_TO')+ self.log_graph_message(f"Website {str(website.url)} links to internal website {url}")++ # Also link internal websites to main domain+ if main_domain:+ self.create_relationship('website', 'url', url,+ 'domain', 'name', main_domain, 'BELONGS_TO_DOMAIN')+ Logger.info(self.sketch_id, {"message": f"[INTERNAL] Found: {url}"})++ # Create crawler with custom callback+ crawler = Crawler(+ url=str(website.url),+ recursive=True,+ same_domain_only=False,+ verbose=False, # Disable default verbose output+ _on_result_callback=url_handler # Use our custom handler+ )++ # Perform the crawl+ crawler.fetch()+ crawler.extract_urls()++ # Get final results (backup in case callback missed anything)+ crawl_results = crawler.get_results()++ # Ensure we have all internal URLs+ for url in crawl_results.internal:+ if url not in internal_urls:+ internal_urls.append(url)++ # Ensure we have all external URLs and domains+ for url in crawl_results.external:+ if url not in external_urls:+ external_urls.append(url)+ domain = self.extract_domain(url)+ if domain:+ external_domains.add(domain)++ website_result = {+ "website": str(website.url),+ "main_domain": main_domain,+ "internal_urls": internal_urls,+ "external_urls": external_urls,+ "external_domains": list(external_domains)+ }++ # Log results+ Logger.info(self.sketch_id, {+ "message": f"Spread crawl completed for {str(website.url)}: "+ f"Main domain: {main_domain}, "+ f"{len(internal_urls)} internal URLs, "+ f"{len(external_urls)} external URLs, "+ f"{len(external_domains)} external domains found."+ })++ results.append(website_result)++ except Exception as e:+ # Log error but continue with other websites+ Logger.error(self.sketch_id, {"message": f"Error crawling {str(website.url)}: {str(e)}"})++ # Still create main website and domain nodes even on error+ main_domain = self.extract_domain(str(website.url))+ if self.neo4j_conn:+ self.create_node('website', 'url', str(website.url),+ caption=str(website.url), type='website')+ if main_domain:+ self.create_node('domain', 'name', main_domain,+ caption=main_domain, type='domain')+ self.create_relationship('website', 'url', str(website.url),+ 'domain', 'name', main_domain, 'BELONGS_TO_DOMAIN')+ self.log_graph_message(f"Website {str(website.url)} belongs to domain {main_domain}")++ # Add empty result for failed website+ results.append({+ "website": str(website.url),+ "main_domain": main_domain,+ "internal_urls": [],+ "external_urls": [],+ "external_domains": []+ })+ continue++ return results++ def postprocess(self, results: OutputType, original_input: InputType) -> OutputType:+ # Neo4j nodes and relationships are created in real-time during the callback+ # No additional processing needed here+ return results++InputType = WebsiteToLinks.InputType+OutputType = WebsiteToLinks.OutputType\ No newline at end of filediff --git a/flowsint-api/app/types/whois.py b/flowsint-api/app/types/whois.pyindex 92c03619..98ee8580 100644--- a/flowsint-api/app/types/whois.py+++ b/flowsint-api/app/types/whois.py@@ -4,6 +4,7 @@ from app.types.email import Emailclass Whois(BaseModel):"""Represents WHOIS domain registration information."""+ domain: str = Field(..., description="Domain name", title="Domain")registrar: Optional[str] = Field(None, description="Domain registrar name", title="Registrar")org: Optional[str] = Field(None, description="Organization name associated with the domain", title="Organization")city: Optional[str] = Field(None, description="City where the domain is registered", title="City")diff --git a/flowsint-api/app/utils.py b/flowsint-api/app/utils.pyindex 40f6bf19..b1e02a8e 100644--- a/flowsint-api/app/utils.py+++ b/flowsint-api/app/utils.py@@ -7,8 +7,11 @@ from urllib.parse import urlparseimport reimport sslimport socket-from typing import Dict, Any, List, Optional, Type-from pydantic import BaseModel, ValidationError, Field, create_model+from typing import Dict, Any, List, Type+from pydantic import BaseModel+import inspect+from typing import Any, Dict, Type+from pydantic import BaseModel, TypeAdapterdef is_valid_ip(address: str) -> bool:try:@@ -146,7 +149,7 @@ def extract_input_schema_transform(model: Type[BaseModel]) -> Dict[str, Any]:"class_name": model.__name__,"name": model.__name__,"module": model.__module__,- "doc": model.__doc__ or "",+ "description": inspect.cleandoc(model.__doc__ or ""),"outputs": {"type": type_name,"properties": [diff --git a/flowsint-api/requirements.txt b/flowsint-api/requirements.txtindex f8f94848..64d792da 100644--- a/flowsint-api/requirements.txt+++ b/flowsint-api/requirements.txt@@ -32,4 +32,6 @@ dockergit+https://github.com/soxoj/maigretgit+https://github.com/reconurge/recontrack.gitgit+https://github.com/reconurge/reconcrawl.git-pytest-asyncio\ No newline at end of file+git+https://github.com/reconurge/reconspread.git+pytest-asyncio+stix2\ No newline at end of filediff --git a/flowsint-api/tests/insert_command.py b/flowsint-api/tests/insert_command.pynew file mode 100644index 00000000..f6cf9185--- /dev/null+++ b/flowsint-api/tests/insert_command.py@@ -0,0 +1,28 @@++import sys+import os+import asyncio++if __name__ == "__main__":+ sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))++from app.types.domain import Domain+from app.types.ip import Ip+from app.scanners.domains.resolve import ResolveScanner+++async def main():+ # Create test data+ domains = [Domain(domain="adaltas.com")]+ ips = [Ip(address='12.23.34.45'), Ip(address='56.67.78.89')]++ # Test the scanner+ scanner = ResolveScanner("sketch_123", "scan_123")++ # Test the new KISS postprocess method+ scanner.postprocess(ips[:1], domains) # Only use first IP to match domains length++ print("Postprocess test completed successfully!")++if __name__ == "__main__":+ asyncio.run(main())\ No newline at end of filediff --git a/flowsint-api/tests/scanners/domains/resolve.py b/flowsint-api/tests/scanners/domains/resolve.pyindex 0dc39ae5..19338714 100644--- a/flowsint-api/tests/scanners/domains/resolve.py+++ b/flowsint-api/tests/scanners/domains/resolve.py@@ -87,7 +87,7 @@ def test_schemas():class TestResolveInputOutputTypes:- """Test the new InputType/OutputType functionality for ResolveScanner"""+ """Test the InputType/OutputType functionality for ResolveScanner"""def test_input_output_types_are_defined(self):"""Test that InputType and OutputType are properly defined"""diff --git a/flowsint-api/tests/scanners/websites/to_links.py b/flowsint-api/tests/scanners/websites/to_links.pynew file mode 100644index 00000000..59ff0cf1--- /dev/null+++ b/flowsint-api/tests/scanners/websites/to_links.py@@ -0,0 +1,162 @@+import pytest+from unittest.mock import Mock, patch, call+from app.scanners.websites.to_links import WebsiteToLinks+from app.types.website import Website+++class MockCrawlResults:+ def __init__(self, internal=None, external=None):+ self.internal = internal or []+ self.external = external or []+++class MockCrawler:+ def __init__(self, url, recursive=True, verbose=False, _on_result_callback=None):+ self.url = url+ self.callback = _on_result_callback++ def fetch(self):+ pass++ def extract_urls(self):+ # Simulate callback calls+ if self.callback:+ self.callback("https://example.com/page1", is_external=False)+ self.callback("https://example.com/page2", is_external=False)+ self.callback("https://external.com/page", is_external=True)+ self.callback("https://another-external.org/resource", is_external=True)++ def get_results(self):+ return MockCrawlResults(+ internal=["https://example.com/page1", "https://example.com/page2"],+ external=["https://external.com/page", "https://another-external.org/resource"]+ )+++async def test_website_to_links_real_time_neo4j_creation():+ """Test that Neo4j nodes are created in real-time during the callback."""+ scanner = WebsiteToLinks(sketch_id="test", scan_id="test")++ # Mock neo4j connection and methods+ scanner.neo4j_conn = Mock()+ scanner.create_node = Mock()+ scanner.create_relationship = Mock()+ scanner.log_graph_message = Mock()++ # Test input+ websites = [Website(url="https://example.com")]++ with patch('app.scanners.websites.to_links.Crawler', MockCrawler):+ results = await scanner.scan(websites)++ # Verify main website and domain nodes were created upfront+ scanner.create_node.assert_any_call('website', 'url', 'https://example.com',+ caption='https://example.com', type='website')+ scanner.create_node.assert_any_call('domain', 'name', 'example.com',+ caption='example.com', type='domain')++ # Verify main website to domain relationship+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'domain', 'name', 'example.com', 'BELONGS_TO_DOMAIN')++ # Verify internal website nodes were created in callback+ scanner.create_node.assert_any_call('website', 'url', 'https://example.com/page1',+ caption='https://example.com/page1', type='website')+ scanner.create_node.assert_any_call('website', 'url', 'https://example.com/page2',+ caption='https://example.com/page2', type='website')++ # Verify internal website relationships+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'website', 'url', 'https://example.com/page1', 'LINKS_TO')+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'website', 'url', 'https://example.com/page2', 'LINKS_TO')++ # Verify external website nodes were created in callback+ scanner.create_node.assert_any_call('website', 'url', 'https://external.com/page',+ caption='https://external.com/page', type='website')+ scanner.create_node.assert_any_call('website', 'url', 'https://another-external.org/resource',+ caption='https://another-external.org/resource', type='website')++ # Verify external domain nodes were created in callback+ scanner.create_node.assert_any_call('domain', 'name', 'external.com',+ caption='external.com', type='domain')+ scanner.create_node.assert_any_call('domain', 'name', 'another-external.org',+ caption='another-external.org', type='domain')++ # Verify main website to external website relationships+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'website', 'url', 'https://external.com/page', 'LINKS_TO')+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'website', 'url', 'https://another-external.org/resource', 'LINKS_TO')++ # Verify external website to domain relationships+ scanner.create_relationship.assert_any_call('website', 'url', 'https://external.com/page',+ 'domain', 'name', 'external.com', 'BELONGS_TO_DOMAIN')+ scanner.create_relationship.assert_any_call('website', 'url', 'https://another-external.org/resource',+ 'domain', 'name', 'another-external.org', 'BELONGS_TO_DOMAIN')++ # Verify main website to external domain relationships+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'domain', 'name', 'external.com', 'LINKS_TO_DOMAIN')+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'domain', 'name', 'another-external.org', 'LINKS_TO_DOMAIN')+++async def test_website_to_links_error_handling_with_neo4j():+ """Test that main nodes are still created even when crawling fails."""+ scanner = WebsiteToLinks(sketch_id="test", scan_id="test")++ # Mock neo4j connection and methods+ scanner.neo4j_conn = Mock()+ scanner.create_node = Mock()+ scanner.create_relationship = Mock()+ scanner.log_graph_message = Mock()++ # Mock crawler that raises an exception+ def mock_crawler_error(*args, **kwargs):+ raise Exception("Test error")++ websites = [Website(url="https://example.com")]++ with patch('app.scanners.websites.to_links.Crawler', mock_crawler_error):+ results = await scanner.scan(websites)++ # Verify main website and domain nodes were still created despite error+ scanner.create_node.assert_any_call('website', 'url', 'https://example.com',+ caption='https://example.com', type='website')+ scanner.create_node.assert_any_call('domain', 'name', 'example.com',+ caption='example.com', type='domain')++ # Verify main website to domain relationship was created+ scanner.create_relationship.assert_any_call('website', 'url', 'https://example.com',+ 'domain', 'name', 'example.com', 'BELONGS_TO_DOMAIN')++ # Verify result structure+ assert len(results) == 1+ result = results[0]+ assert result["website"] == "https://example.com"+ assert result["main_domain"] == "example.com"+ assert result["internal_urls"] == []+ assert result["external_urls"] == []+ assert result["external_domains"] == []+++def test_postprocess_simplified():+ """Test that postprocess now just returns results as-is."""+ scanner = WebsiteToLinks(sketch_id="test", scan_id="test")++ original_input = [Website(url="https://example.com")]+ results = [{+ "website": "https://example.com",+ "main_domain": "example.com",+ "internal_urls": ["https://example.com/page1"],+ "external_urls": ["https://external.com/page"],+ "external_domains": ["external.com"]+ }]++ processed_results = scanner.postprocess(results, original_input)++ # Should just return the same results since Neo4j work is done in real-time+ assert processed_results == results\ No newline at end of filediff --git a/flowsint-app/Dockerfile b/flowsint-app/Dockerfilenew file mode 100644index 00000000..dfdddce8--- /dev/null+++ b/flowsint-app/Dockerfile@@ -0,0 +1,52 @@+# Étape 1 – Build Vite + Electron+FROM node:20 AS builder++WORKDIR /app++# Copie et install+COPY package*.json ./+RUN npm install++COPY . .++# Vérification de type + build+RUN npm run typecheck+RUN npm run build -y++# Build de l'app avec electron-builder (non packagée)+RUN npm run build:unpack++# Étape 2 – Image finale avec l'app prête+FROM node:20-slim++# Dépendances d'Electron requises pour s'exécuter dans un conteneur+RUN apt-get update && apt-get install -y \+ libgtk-3-0 \+ libx11-xcb1 \+ libnss3 \+ libxcomposite1 \+ libxrandr2 \+ libasound2 \+ libatk1.0-0 \+ libatk-bridge2.0-0 \+ libcups2 \+ libdrm2 \+ libgbm1 \+ libxdamage1 \+ libxext6 \+ libxfixes3 \+ libxkbcommon0 \+ libxshmfence1 \+ libglu1-mesa \+ x11-xserver-utils \+ --no-install-recommends && \+ apt-get clean && rm -rf /var/lib/apt/lists/*++WORKDIR /app++COPY --from=builder /app/dist ./dist+COPY --from=builder /app/out ./out+COPY --from=builder /app/node_modules ./node_modules+COPY --from=builder /app/package.json ./package.json++CMD ["npx", "electron", "."]diff --git a/flowsint-app/electron.vite.config.ts b/flowsint-app/electron.vite.config.tsindex bbd1388f..f516f63b 100644--- a/flowsint-app/electron.vite.config.ts+++ b/flowsint-app/electron.vite.config.ts@@ -26,7 +26,12 @@ export default defineConfig({}),enforce: 'pre'},- react(),+ react({+ babel: {+ // plugins: ["babel-plugin-react-compiler"]+ }+ }+ ),tailwindcss()],resolve: {diff --git a/flowsint-app/package.json b/flowsint-app/package.jsonindex 68071c50..7105db4a 100644--- a/flowsint-app/package.json+++ b/flowsint-app/package.json@@ -11,7 +11,7 @@"icon": "build/icon.icns"},"author": "DexterMorgan",- "homepage": "https://www.flowsint.fr/",+ "homepage": "https://www.flowsint.io/","scripts": {"format": "prettier --write .","lint": "eslint . --ext .js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",@@ -61,7 +61,8 @@"@radix-ui/react-tooltip": "^1.2.7","@react-sigma/core": "^5.0.4","@react-sigma/layout-forceatlas2": "^5.0.4",- "@tailwindcss/vite": "^3.4.1",+ "@tailwindcss/typography": "^0.5.16",+ "@tailwindcss/vite": "^4.1.11","@tanstack/react-query": "^5.79.0","@tanstack/react-table": "^8.21.3","@tanstack/react-virtual": "^3.13.9",@@ -87,12 +88,14 @@"@tiptap/react": "^2.12.0","@tiptap/starter-kit": "^2.12.0","@xyflow/react": "^12.6.4",+ "babel-plugin-react-compiler": "^19.1.0-rc.2","class-variance-authority": "^0.7.1","clsx": "^2.1.1","cmdk": "^1.1.1","cytoscape": "^3.32.0","d3-force": "^3.0.0",- "date-fns": "^4.1.0",+ "dagre-d3-react": "^0.2.4",+ "date-fns": "^3.6.0","electron-updater": "^6.1.7","embla-carousel-react": "^8.6.0","graphology": "^0.26.0",@@ -112,6 +115,7 @@"react-medium-image-zoom": "^5.2.14","react-resizable-panels": "^3.0.2","react-syntax-highlighter": "^15.6.1",+ "reagraph": "^4.25.0","recharts": "^2.15.3","remark-gfm": "^4.0.1","sigma": "^3.0.2",diff --git a/flowsint-app/src/main/index.ts b/flowsint-app/src/main/index.tsindex 65dcdd5d..5d12cc30 100644--- a/flowsint-app/src/main/index.ts+++ b/flowsint-app/src/main/index.ts@@ -1,6 +1,6 @@import { electronApp, optimizer } from '@electron-toolkit/utils'-import { app } from 'electron'-import { initializeMainWindow } from './main-window'+import { app, ipcMain } from 'electron'+import { initializeMainWindow, getMainWindow } from './main-window'app.whenReady().then(() => {electronApp.setAppUserModelId('com.electron')@@ -20,3 +20,14 @@ app.on('window-all-closed', () => {app.quit()}})++// IPC handlers for window state+ipcMain.handle('get-window-state', () => {+ const mainWindow = getMainWindow()+ if (!mainWindow) return { isFullscreen: false, isMaximized: false }++ return {+ isFullscreen: mainWindow.isFullScreen(),+ isMaximized: mainWindow.isMaximized()+ }+})diff --git a/flowsint-app/src/main/main-window.ts b/flowsint-app/src/main/main-window.tsindex bb03a9a3..fca09517 100644--- a/flowsint-app/src/main/main-window.ts+++ b/flowsint-app/src/main/main-window.ts@@ -18,12 +18,16 @@ export async function initializeMainWindow() {height: 770,show: false,autoHideMenuBar: true,- titleBarOverlay: true,+ titleBarOverlay: {+ color: '#292524',+ symbolColor: '#ffffff',+ height: 48+ },frame: false,titleBarStyle: 'hiddenInset',trafficLightPosition: {- x: 9,- y: 9+ x: 12,+ y: 14},backgroundColor: '#292524',webPreferences: {diff --git a/flowsint-app/src/preload/index.d.ts b/flowsint-app/src/preload/index.d.tsindex 22bd4453..7fb70da2 100644--- a/flowsint-app/src/preload/index.d.ts+++ b/flowsint-app/src/preload/index.d.ts@@ -3,7 +3,12 @@ import { ElectronAPI } from '@electron-toolkit/preload'declare global {interface Window {electron: ElectronAPI- api: unknown+ api: {+ getWindowState: () => Promise<{+ isFullscreen: boolean+ isMaximized: boolean+ }>+ }}}diff --git a/flowsint-app/src/preload/index.ts b/flowsint-app/src/preload/index.tsindex 2d185247..94096f28 100644--- a/flowsint-app/src/preload/index.ts+++ b/flowsint-app/src/preload/index.ts@@ -1,8 +1,10 @@-import { contextBridge } from 'electron'+import { contextBridge, ipcRenderer } from 'electron'import { electronAPI } from '@electron-toolkit/preload'// Custom APIs for renderer-const api = {}+const api = {+ getWindowState: () => ipcRenderer.invoke('get-window-state')+}// Use `contextBridge` APIs to expose Electron APIs to// renderer only if context isolation is enabled, otherwisediff --git a/flowsint-app/src/renderer/index.html b/flowsint-app/src/renderer/index.htmlindex c41e6577..153b424e 100644--- a/flowsint-app/src/renderer/index.html+++ b/flowsint-app/src/renderer/index.html@@ -1,11 +1,11 @@<!DOCTYPE html><html lang="en" theme="dark"><head>- <!-- <script+ <scriptcrossOrigin="anonymous"src="//unpkg.com/react-scan/dist/auto.global.js">- </script> -->+ </script><meta charset="UTF-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0" />diff --git a/flowsint-app/src/renderer/public/icons/asn.svg b/flowsint-app/src/renderer/public/icons/asn.svgindex e606699e..7e46094f 100644--- a/flowsint-app/src/renderer/public/icons/asn.svg+++ b/flowsint-app/src/renderer/public/icons/asn.svg@@ -1,14 +1,14 @@<?xml version="1.0" encoding="utf-8"?><svg width="800px" height="800px" viewBox="0 0 64 64" fill="none" xmlns="http://www.w3.org/2000/svg"><!-- Document outline with folded corner -->- <rect x="8" y="8" width="40" height="48" rx="4" fill="none" stroke="#EAAFAF" stroke-width="4"/>- <!-- <polyline points="40,8 56,8 56,24" fill="none" stroke="#EAAFAF" stroke-width="4"/> -->- <!-- <polyline points="56,8 40,24 40,8" fill="none" stroke="#EAAFAF" stroke-width="4"/> -->+ <rect x="8" y="8" width="40" height="48" rx="4" fill="none" stroke="white" stroke-width="4"/>+ <!-- <polyline points="40,8 56,8 56,24" fill="none" stroke="white" stroke-width="4"/> -->+ <!-- <polyline points="56,8 40,24 40,8" fill="none" stroke="white" stroke-width="4"/> --><!-- Horizontal lines representing text -->- <rect x="16" y="20" width="24" height="2.5" rx="1.25" fill="#EAAFAF"/>- <rect x="16" y="26" width="24" height="2.5" rx="1.25" fill="#EAAFAF"/>- <rect x="16" y="32" width="24" height="2.5" rx="1.25" fill="#EAAFAF"/>- <rect x="16" y="38" width="24" height="2.5" rx="1.25" fill="#EAAFAF"/>+ <rect x="16" y="20" width="24" height="2.5" rx="1.25" fill="white"/>+ <rect x="16" y="26" width="24" height="2.5" rx="1.25" fill="white"/>+ <rect x="16" y="32" width="24" height="2.5" rx="1.25" fill="white"/>+ <rect x="16" y="38" width="24" height="2.5" rx="1.25" fill="white"/><!-- ASN text at the bottom -->- <text x="32" y="52" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="10" font-weight="bold" fill="#EAAFAF">ASN</text>+ <text x="32" y="52" text-anchor="middle" font-family="Arial, Helvetica, sans-serif" font-size="10" font-weight="bold" fill="white">ASN</text></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/breach.svg b/flowsint-app/src/renderer/public/icons/breach.svgindex fd05d958..0f95168d 100644--- a/flowsint-app/src/renderer/public/icons/breach.svg+++ b/flowsint-app/src/renderer/public/icons/breach.svg@@ -1,10 +1 @@-<?xml version="1.0" encoding="utf-8"?>-<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->-<svg fill="#E4B1AD" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"- width="800px" height="800px" viewBox="0 0 256 241" enable-background="new 0 0 256 241" xml:space="preserve">-<path d="M254,188V2H2v186h111v29H75v22h106v-22h-38v-29H254z M19,19h217v151H19L19,19z M156.269,42.429- c-14.477,0-26.28,11.803-26.28,26.28v15.768H85.451v62.98h68.236v-62.98h-13.186V68.709c0-8.668,7.1-15.768,15.768-15.768- c8.668,0,15.768,7.1,15.768,15.768v15.768h10.512V68.709C182.549,54.232,170.746,42.429,156.269,42.429z M127.407,131.688h-15.768- l2.121-12.356c-2.859-1.844-4.703-4.979-4.703-8.668c0-5.809,4.703-10.512,10.512-10.512s10.512,4.703,10.512,10.512- c0,3.688-1.844,6.824-4.703,8.668L127.407,131.688z"/>-</svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-globe-lock-icon lucide-globe-lock"><path d="M15.686 15A14.5 14.5 0 0 1 12 22a14.5 14.5 0 0 1 0-20 10 10 0 1 0 9.542 13"/><path d="M2 12h8.5"/><path d="M20 6V4a2 2 0 1 0-4 0v2"/><rect width="8" height="5" x="14" y="6" rx="1"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/cidr.svg b/flowsint-app/src/renderer/public/icons/cidr.svgindex 31e40f14..4d79ac32 100644--- a/flowsint-app/src/renderer/public/icons/cidr.svg+++ b/flowsint-app/src/renderer/public/icons/cidr.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#B8E6B8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-grid2x2-check-icon lucide-grid-2x2-check"><path d="M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3"/><path d="m16 19 2 2 4-4"/></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-grid2x2-check-icon lucide-grid-2x2-check"><path d="M12 3v17a1 1 0 0 1-1 1H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v6a1 1 0 0 1-1 1H3"/><path d="m16 19 2 2 4-4"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/credential.svg b/flowsint-app/src/renderer/public/icons/credential.svgindex 3dd4e6dd..8715e8b1 100644--- a/flowsint-app/src/renderer/public/icons/credential.svg+++ b/flowsint-app/src/renderer/public/icons/credential.svg@@ -1 +1 @@-<?xml version="1.0"?><svg fill="#F7D154" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.26 11.74L10 14H8v2H6v2l-2 2H0v-4l8.26-8.26a6 6 0 1 1 4 4zm4.86-4.62A3 3 0 0 0 15 2a3 3 0 0 0-2.12.88l4.24 4.24z"/></svg>\ No newline at end of file+<?xml version="1.0"?><svg fill="white" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.26 11.74L10 14H8v2H6v2l-2 2H0v-4l8.26-8.26a6 6 0 1 1 4 4zm4.86-4.62A3 3 0 0 0 15 2a3 3 0 0 0-2.12.88l4.24 4.24z"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/cryptowallet.svg b/flowsint-app/src/renderer/public/icons/cryptowallet.svgindex 0ea60348..1ba47365 100644--- a/flowsint-app/src/renderer/public/icons/cryptowallet.svg+++ b/flowsint-app/src/renderer/public/icons/cryptowallet.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg data-name="Layer 1" id="Layer_1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><title/><path fill="#F7D154" d="M68.56,52.68c-2.82-.7-5.39-1.31-5.39-1.31l-2.1,8.73s2.89.74,5.59,1.35a5.07,5.07,0,0,0,6.26-3.77C73.4,55.32,71.25,53.34,68.56,52.68Z"/><path fill="#F7D154" d="M64,23.75A40.25,40.25,0,1,0,104.24,64,40.24,40.24,0,0,0,64,23.75ZM80.27,70.17c1.65,5.56-3.42,14.14-13.66,11.68l-2-.48-1.78,7.37-4.33-1,1.77-7.37-3.86-.93-1.77,7.37-4.34-1,1.78-7.37-9.52-2.29,2.36-4.93,3.73.9A1.43,1.43,0,0,0,50.4,71l5-20.82a1.29,1.29,0,0,0-.95-1.56l-4-1,1.17-4.85,8.55,2.06,1.7-7,4.33,1.05-1.69,7,3.86.93,1.69-7,4.34,1-1.7,7c6,2.16,8.41,5.56,8.51,10a6.59,6.59,0,0,1-5.53,7S79.26,66.76,80.27,70.17Z"/><path fill="#F7D154" d="M66.66,66.15l-6.75-1.64-2.23,9.68s3.57.92,6.36,1.54c3.78.83,6.66-.3,7.37-3.41S69.52,66.83,66.66,66.15Z"/><path fill="#F7D154" d="M99.23,90.47a44,44,0,0,1-29.9,17.26l-11.85,6.84A51.86,51.86,0,0,0,64,115a51,51,0,0,0,47.08-31.38Z"/><path fill="#F7D154" d="M106.65,52.9a44.53,44.53,0,0,1,.95,4.76L114,54c-.32-1.57-.71-3.12-1.16-4.64Z"/><path fill="#F7D154" d="M103.13,43.75a44.53,44.53,0,0,1,2,4.39l6.07-3.51q-.92-2.24-2-4.36Z"/><path fill="#F7D154" d="M80.78,23.25a45.13,45.13,0,0,1,5.08,2.5l6.8-3.93A49.39,49.39,0,0,0,88.08,19Z"/><path fill="#F7D154" d="M20.34,58.15,13,62.36c0,.55,0,1.09,0,1.64,0,1.25.06,2.49.15,3.72l6.79-3.92A43.94,43.94,0,0,1,20.34,58.15Z"/><path fill="#F7D154" d="M66.86,20a44.9,44.9,0,0,1,7.67,1.17l8.11-4.68a50.26,50.26,0,0,0-6.23-2Z"/><path fill="#F7D154" d="M108.06,64a46,46,0,0,1-.27,4.86L115,64.7c0-.23,0-.46,0-.7,0-1.63-.08-3.24-.23-4.83L108,63.06C108,63.37,108.06,63.68,108.06,64Z"/><path fill="#F7D154" d="M33.08,95.38,26.88,99c1.1,1.16,2.24,2.27,3.44,3.32l6.4-3.69A46.39,46.39,0,0,1,33.08,95.38Z"/><path fill="#F7D154" d="M94.21,31.94l6.24-3.6Q98.74,26.6,96.88,25l-6.44,3.72A44.12,44.12,0,0,1,94.21,31.94Z"/><path fill="#F7D154" d="M97.67,35.59a43.66,43.66,0,0,1,3,3.94l6-3.47c-.91-1.38-1.87-2.71-2.9-4Z"/><path fill="#F7D154" d="M114.56,70.6l-7.93,4.58a43,43,0,0,1-2.38,6.73l9.17-5.29A50,50,0,0,0,114.56,70.6Z"/><path fill="#F7D154" d="M46.31,104.35a43.37,43.37,0,0,1-5.16-2.67l-6.71,3.87a50.37,50.37,0,0,0,4.67,3Z"/><path fill="#F7D154" d="M59.38,107.82a43.7,43.7,0,0,1-7-1.32l-8,4.6a50.54,50.54,0,0,0,5.82,2Z"/><path fill="#F7D154" d="M30.52,35.38A44,44,0,0,1,56,20.68l12.89-7.44Q66.46,13,64,13A51,51,0,0,0,17.6,42.83Z"/><path fill="#F7D154" d="M21.12,74.14a46.32,46.32,0,0,1-.86-4.87L13.81,73a47.36,47.36,0,0,0,1.08,4.75Z"/><path fill="#F7D154" d="M13.57,56.41l8.12-4.69a43.91,43.91,0,0,1,2.79-7.21L15,50A50.21,50.21,0,0,0,13.57,56.41Z"/><path fill="#F7D154" d="M29.72,91.67a45.06,45.06,0,0,1-2.82-3.91l-6,3.47q1.29,2,2.76,3.94Z"/><path fill="#F7D154" d="M24.49,83.5A42.42,42.42,0,0,1,22.55,79l-6.08,3.52a48.69,48.69,0,0,0,2,4.49Z"/></svg>\ No newline at end of file+<?xml version="1.0" ?><svg data-name="Layer 1" id="Layer_1" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg"><title/><path fill="white" d="M68.56,52.68c-2.82-.7-5.39-1.31-5.39-1.31l-2.1,8.73s2.89.74,5.59,1.35a5.07,5.07,0,0,0,6.26-3.77C73.4,55.32,71.25,53.34,68.56,52.68Z"/><path fill="white" d="M64,23.75A40.25,40.25,0,1,0,104.24,64,40.24,40.24,0,0,0,64,23.75ZM80.27,70.17c1.65,5.56-3.42,14.14-13.66,11.68l-2-.48-1.78,7.37-4.33-1,1.77-7.37-3.86-.93-1.77,7.37-4.34-1,1.78-7.37-9.52-2.29,2.36-4.93,3.73.9A1.43,1.43,0,0,0,50.4,71l5-20.82a1.29,1.29,0,0,0-.95-1.56l-4-1,1.17-4.85,8.55,2.06,1.7-7,4.33,1.05-1.69,7,3.86.93,1.69-7,4.34,1-1.7,7c6,2.16,8.41,5.56,8.51,10a6.59,6.59,0,0,1-5.53,7S79.26,66.76,80.27,70.17Z"/><path fill="white" d="M66.66,66.15l-6.75-1.64-2.23,9.68s3.57.92,6.36,1.54c3.78.83,6.66-.3,7.37-3.41S69.52,66.83,66.66,66.15Z"/><path fill="white" d="M99.23,90.47a44,44,0,0,1-29.9,17.26l-11.85,6.84A51.86,51.86,0,0,0,64,115a51,51,0,0,0,47.08-31.38Z"/><path fill="white" d="M106.65,52.9a44.53,44.53,0,0,1,.95,4.76L114,54c-.32-1.57-.71-3.12-1.16-4.64Z"/><path fill="white" d="M103.13,43.75a44.53,44.53,0,0,1,2,4.39l6.07-3.51q-.92-2.24-2-4.36Z"/><path fill="white" d="M80.78,23.25a45.13,45.13,0,0,1,5.08,2.5l6.8-3.93A49.39,49.39,0,0,0,88.08,19Z"/><path fill="white" d="M20.34,58.15,13,62.36c0,.55,0,1.09,0,1.64,0,1.25.06,2.49.15,3.72l6.79-3.92A43.94,43.94,0,0,1,20.34,58.15Z"/><path fill="white" d="M66.86,20a44.9,44.9,0,0,1,7.67,1.17l8.11-4.68a50.26,50.26,0,0,0-6.23-2Z"/><path fill="white" d="M108.06,64a46,46,0,0,1-.27,4.86L115,64.7c0-.23,0-.46,0-.7,0-1.63-.08-3.24-.23-4.83L108,63.06C108,63.37,108.06,63.68,108.06,64Z"/><path fill="white" d="M33.08,95.38,26.88,99c1.1,1.16,2.24,2.27,3.44,3.32l6.4-3.69A46.39,46.39,0,0,1,33.08,95.38Z"/><path fill="white" d="M94.21,31.94l6.24-3.6Q98.74,26.6,96.88,25l-6.44,3.72A44.12,44.12,0,0,1,94.21,31.94Z"/><path fill="white" d="M97.67,35.59a43.66,43.66,0,0,1,3,3.94l6-3.47c-.91-1.38-1.87-2.71-2.9-4Z"/><path fill="white" d="M114.56,70.6l-7.93,4.58a43,43,0,0,1-2.38,6.73l9.17-5.29A50,50,0,0,0,114.56,70.6Z"/><path fill="white" d="M46.31,104.35a43.37,43.37,0,0,1-5.16-2.67l-6.71,3.87a50.37,50.37,0,0,0,4.67,3Z"/><path fill="white" d="M59.38,107.82a43.7,43.7,0,0,1-7-1.32l-8,4.6a50.54,50.54,0,0,0,5.82,2Z"/><path fill="white" d="M30.52,35.38A44,44,0,0,1,56,20.68l12.89-7.44Q66.46,13,64,13A51,51,0,0,0,17.6,42.83Z"/><path fill="white" d="M21.12,74.14a46.32,46.32,0,0,1-.86-4.87L13.81,73a47.36,47.36,0,0,0,1.08,4.75Z"/><path fill="white" d="M13.57,56.41l8.12-4.69a43.91,43.91,0,0,1,2.79-7.21L15,50A50.21,50.21,0,0,0,13.57,56.41Z"/><path fill="white" d="M29.72,91.67a45.06,45.06,0,0,1-2.82-3.91l-6,3.47q1.29,2,2.76,3.94Z"/><path fill="white" d="M24.49,83.5A42.42,42.42,0,0,1,22.55,79l-6.08,3.52a48.69,48.69,0,0,0,2,4.49Z"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/default.svg b/flowsint-app/src/renderer/public/icons/default.svgindex 9ab085bf..32c25471 100644--- a/flowsint-app/src/renderer/public/icons/default.svg+++ b/flowsint-app/src/renderer/public/icons/default.svg@@ -1,4 +1,4 @@<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->-<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">-<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7.75C11.3787 7.75 10.875 8.25368 10.875 8.875C10.875 9.28921 10.5392 9.625 10.125 9.625C9.71079 9.625 9.375 9.28921 9.375 8.875C9.375 7.42525 10.5503 6.25 12 6.25C13.4497 6.25 14.625 7.42525 14.625 8.875C14.625 9.58584 14.3415 10.232 13.883 10.704C13.7907 10.7989 13.7027 10.8869 13.6187 10.9708C13.4029 11.1864 13.2138 11.3753 13.0479 11.5885C12.8289 11.8699 12.75 12.0768 12.75 12.25V13C12.75 13.4142 12.4142 13.75 12 13.75C11.5858 13.75 11.25 13.4142 11.25 13V12.25C11.25 11.5948 11.555 11.0644 11.8642 10.6672C12.0929 10.3733 12.3804 10.0863 12.6138 9.85346C12.6842 9.78321 12.7496 9.71789 12.807 9.65877C13.0046 9.45543 13.125 9.18004 13.125 8.875C13.125 8.25368 12.6213 7.75 12 7.75ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="#1C274C"/>+<svg width="800px" height="800px" viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg">+<path fill-rule="evenodd" clip-rule="evenodd" d="M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12ZM12 7.75C11.3787 7.75 10.875 8.25368 10.875 8.875C10.875 9.28921 10.5392 9.625 10.125 9.625C9.71079 9.625 9.375 9.28921 9.375 8.875C9.375 7.42525 10.5503 6.25 12 6.25C13.4497 6.25 14.625 7.42525 14.625 8.875C14.625 9.58584 14.3415 10.232 13.883 10.704C13.7907 10.7989 13.7027 10.8869 13.6187 10.9708C13.4029 11.1864 13.2138 11.3753 13.0479 11.5885C12.8289 11.8699 12.75 12.0768 12.75 12.25V13C12.75 13.4142 12.4142 13.75 12 13.75C11.5858 13.75 11.25 13.4142 11.25 13V12.25C11.25 11.5948 11.555 11.0644 11.8642 10.6672C12.0929 10.3733 12.3804 10.0863 12.6138 9.85346C12.6842 9.78321 12.7496 9.71789 12.807 9.65877C13.0046 9.45543 13.125 9.18004 13.125 8.875C13.125 8.25368 12.6213 7.75 12 7.75ZM12 17C12.5523 17 13 16.5523 13 16C13 15.4477 12.5523 15 12 15C11.4477 15 11 15.4477 11 16C11 16.5523 11.4477 17 12 17Z" fill="white"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/device.svg b/flowsint-app/src/renderer/public/icons/device.svgindex 4586746d..ab8dcfe8 100644--- a/flowsint-app/src/renderer/public/icons/device.svg+++ b/flowsint-app/src/renderer/public/icons/device.svg@@ -1 +1 @@-<?xml version="1.0"?><svg fill="#EAC597" style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,4c0-2.2-1.8-4-4-4H8C5.8,0,4,1.8,4,4v16c0,2.2,1.8,4,4,4h8c2.2,0,4-1.8,4-4V4z M13,22h-2c-0.6,0-1-0.4-1-1 c0-0.6,0.4-1,1-1h2c0.6,0,1,0.4,1,1C14,21.6,13.6,22,13,22z M18,17c0,0.6-0.4,1-1,1H7c-0.6,0-1-0.4-1-1V5c0-0.6,0.4-1,1-1h10 c0.6,0,1,0.4,1,1V17z" id="mobile"/></g></svg>\ No newline at end of file+<?xml version="1.0"?><svg fill="white" style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path d="M20,4c0-2.2-1.8-4-4-4H8C5.8,0,4,1.8,4,4v16c0,2.2,1.8,4,4,4h8c2.2,0,4-1.8,4-4V4z M13,22h-2c-0.6,0-1-0.4-1-1 c0-0.6,0.4-1,1-1h2c0.6,0,1,0.4,1,1C14,21.6,13.6,22,13,22z M18,17c0,0.6-0.4,1-1,1H7c-0.6,0-1-0.4-1-1V5c0-0.6,0.4-1,1-1h10 c0.6,0,1,0.4,1,1V17z" id="mobile"/></g></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/domain.svg b/flowsint-app/src/renderer/public/icons/domain.svgindex f15f51c3..e86b8a1e 100644--- a/flowsint-app/src/renderer/public/icons/domain.svg+++ b/flowsint-app/src/renderer/public/icons/domain.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg height="20px" version="1.1" viewBox="0 0 20 20" width="20px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g fill="#A6D0BF" id="Core" transform="translate(-296.000000, -296.000000)"><g id="language" transform="translate(296.000000, 296.000000)"><path d="M10,0 C4.5,0 0,4.5 0,10 C0,15.5 4.5,20 10,20 C15.5,20 20,15.5 20,10 C20,4.5 15.5,0 10,0 L10,0 Z M16.9,6 L14,6 C13.7,4.7 13.2,3.6 12.6,2.4 C14.4,3.1 16,4.3 16.9,6 L16.9,6 Z M10,2 C10.8,3.2 11.5,4.5 11.9,6 L8.1,6 C8.5,4.6 9.2,3.2 10,2 L10,2 Z M2.3,12 C2.1,11.4 2,10.7 2,10 C2,9.3 2.1,8.6 2.3,8 L5.7,8 C5.6,8.7 5.6,9.3 5.6,10 C5.6,10.7 5.7,11.3 5.7,12 L2.3,12 L2.3,12 Z M3.1,14 L6,14 C6.3,15.3 6.8,16.4 7.4,17.6 C5.6,16.9 4,15.7 3.1,14 L3.1,14 Z M6,6 L3.1,6 C4.1,4.3 5.6,3.1 7.4,2.4 C6.8,3.6 6.3,4.7 6,6 L6,6 Z M10,18 C9.2,16.8 8.5,15.5 8.1,14 L11.9,14 C11.5,15.4 10.8,16.8 10,18 L10,18 Z M12.3,12 L7.7,12 C7.6,11.3 7.5,10.7 7.5,10 C7.5,9.3 7.6,8.7 7.7,8 L12.4,8 C12.5,8.7 12.6,9.3 12.6,10 C12.6,10.7 12.4,11.3 12.3,12 L12.3,12 Z M12.6,17.6 C13.2,16.5 13.7,15.3 14,14 L16.9,14 C16,15.7 14.4,16.9 12.6,17.6 L12.6,17.6 Z M14.4,12 C14.5,11.3 14.5,10.7 14.5,10 C14.5,9.3 14.4,8.7 14.4,8 L17.8,8 C18,8.6 18.1,9.3 18.1,10 C18.1,10.7 18,11.4 17.8,12 L14.4,12 L14.4,12 Z" id="Shape"/></g></g></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-globe-icon lucide-globe"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/email.svg b/flowsint-app/src/renderer/public/icons/email.svgindex 24497939..dee13043 100644--- a/flowsint-app/src/renderer/public/icons/email.svg+++ b/flowsint-app/src/renderer/public/icons/email.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg height="72" viewBox="0 0 72 72" width="72" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><path d="M36,72 L36,72 C55.882251,72 72,55.882251 72,36 L72,36 C72,16.117749 55.882251,-3.65231026e-15 36,0 L36,0 C16.117749,3.65231026e-15 -2.4348735e-15,16.117749 0,36 L0,36 C2.4348735e-15,55.882251 16.117749,72 36,72 Z" fill="#C4B9ED"/><path d="M18,26.1623226 L18,46.5476129 C18,47.6566452 18.8117419,48.5554839 19.9300645,48.5554839 L51.7447742,48.5554839 C52.8619355,48.5554839 53.6748387,47.6461935 53.6748387,46.5476129 L53.6748387,26.1623226 C53.6748387,24.9452903 52.947871,24 51.7447742,24 L19.9300645,24 C18.6805161,24 18,24.9685161 18,26.1623226 M20.9334194,27.9379355 C20.9334194,27.4467097 21.2307097,27.1656774 21.7056774,27.1656774 C21.9994839,27.1656774 33.560129,34.4910968 34.2603871,34.9207742 L36.0696774,36.0460645 C36.6433548,35.6616774 37.2193548,35.3330323 37.8139355,34.9347097 C39.0274839,34.1589677 49.8251613,27.1656774 50.1224516,27.1656774 C50.5985806,27.1656774 50.8947097,27.4467097 50.8947097,27.9379355 C50.8947097,28.4581935 49.8925161,28.9749677 49.239871,29.3732903 C45.1393548,31.8723871 41.04,34.5967742 36.980129,37.1887742 C36.7432258,37.3490323 36.2845161,37.6916129 35.9407742,37.6393548 C35.5575484,37.580129 23.7936774,30.0224516 21.6534194,28.7636129 C21.3317419,28.5743226 20.9334194,28.4012903 20.9334194,27.9379355" fill="#FFF"/></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail-check-icon lucide-mail-check"><path d="M22 13V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h8"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/><path d="m16 19 2 2 4-4"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/individual.svg b/flowsint-app/src/renderer/public/icons/individual.svgindex 533d34eb..4dfba931 100644--- a/flowsint-app/src/renderer/public/icons/individual.svg+++ b/flowsint-app/src/renderer/public/icons/individual.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg style="enable-background:new 0 0 24 24;" version="1.1" viewBox="0 0 24 24" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="info"/><g id="icons"><path fill="#A9CCF4" d="M12,0C5.4,0,0,5.4,0,12c0,6.6,5.4,12,12,12s12-5.4,12-12C24,5.4,18.6,0,12,0z M12,4c2.2,0,4,2.2,4,5s-1.8,5-4,5 s-4-2.2-4-5S9.8,4,12,4z M18.6,19.5C16.9,21,14.5,22,12,22s-4.9-1-6.6-2.5c-0.4-0.4-0.5-1-0.1-1.4c1.1-1.3,2.6-2.2,4.2-2.7 c0.8,0.4,1.6,0.6,2.5,0.6s1.7-0.2,2.5-0.6c1.7,0.5,3.1,1.4,4.2,2.7C19.1,18.5,19.1,19.1,18.6,19.5z" id="user2"/></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user-icon lucide-user"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/ip.svg b/flowsint-app/src/renderer/public/icons/ip.svgindex e47b6390..fae00061 100644--- a/flowsint-app/src/renderer/public/icons/ip.svg+++ b/flowsint-app/src/renderer/public/icons/ip.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg height="24" id="svg8" version="1.1" viewBox="0 0 6.3499998 6.3499998" width="24" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg"><defs id="defs2"/><path d="m 3.1757812,0.26367184 c -1.1658682,6e-8 -2.1171876,0.95131916 -2.1171874,2.11718746 0,0.7849302 0.4969305,1.652624 0.9707031,2.3632813 0.4737725,0.7106571 0.9472656,1.2499999 0.9472656,1.2499999 a 0.26460981,0.26460981 0 0 0 0.3847656,0.013671 c 0,0 0.4797541,-0.4783338 0.9570312,-1.1601563 0.4772771,-0.6818225 0.9726562,-1.5701539 0.9726562,-2.4667968 0,-1.1658672 -0.949366,-2.11718646 -2.1152343,-2.11718656 z m 0,0.52929688 c 0.8798855,0 1.5859378,0.70800518 1.5859378,1.58789058 0,0.690856 -0.4281893,1.5229726 -0.8769533,2.1640625 C 3.534083,5.0458955 3.3198241,5.2510111 3.1835938,5.3945312 3.0487931,5.2346961 2.8256176,4.986472 2.46875,4.4511718 2.0164815,3.7727706 1.5878907,2.9188448 1.5878906,2.3808593 1.5878905,1.5009739 2.2958959,0.79296877 3.1757812,0.79296872 Z" id="path1992" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#F0C19E;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5291667;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"/><path d="m 3.1757812,1.3222655 c -0.5813668,10e-8 -1.0585937,0.4772269 -1.0585937,1.0585938 0,0.5813669 0.4772269,1.0585937 1.0585937,1.0585937 0.581367,0 1.0566407,-0.4772268 1.0566407,-1.0585937 0,-0.5813669 -0.4752737,-1.0585938 -1.0566407,-1.0585938 z m 0,0.5292969 c 0.295384,0 0.529297,0.2339129 0.529297,0.5292969 0,0.295384 -0.233913,0.5292969 -0.529297,0.5292969 -0.2953839,0 -0.5292968,-0.233913 -0.5292968,-0.5292969 0,-0.295384 0.2339129,-0.5292969 0.5292968,-0.5292969 z" id="path1995" style="color:#000000;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:medium;line-height:normal;font-family:sans-serif;font-variant-ligatures:normal;font-variant-position:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-feature-settings:normal;text-indent:0;text-align:start;text-decoration:none;text-decoration-line:none;text-decoration-style:solid;text-decoration-color:#000000;letter-spacing:normal;word-spacing:normal;text-transform:none;writing-mode:lr-tb;direction:ltr;text-orientation:mixed;dominant-baseline:auto;baseline-shift:baseline;text-anchor:start;white-space:normal;shape-padding:0;clip-rule:nonzero;display:inline;overflow:visible;visibility:visible;opacity:1;isolation:auto;mix-blend-mode:normal;color-interpolation:sRGB;color-interpolation-filters:linearRGB;solid-color:#000000;solid-opacity:1;vector-effect:none;fill:#F0C19E;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.5291667;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;paint-order:markers fill stroke;color-rendering:auto;image-rendering:auto;shape-rendering:auto;text-rendering:auto;enable-background:accumulate"/></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin-check-icon lucide-map-pin-check"><path d="M19.43 12.935c.357-.967.57-1.955.57-2.935a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 32.197 32.197 0 0 0 .813-.728"/><circle cx="12" cy="10" r="3"/><path d="m16 18 2 2 4-4"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/location.svg b/flowsint-app/src/renderer/public/icons/location.svgindex 9bcb7cbc..a74bd6ba 100644--- a/flowsint-app/src/renderer/public/icons/location.svg+++ b/flowsint-app/src/renderer/public/icons/location.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title/><g id="location"><path fill="#EAAFAF" d="M12,2C8.13,2,5,5.13,5,9c0,5.25,7,13,7,13s7-7.75,7-13C19,5.13,15.87,2,12,2z M12,11.5c-1.38,0-2.5-1.12-2.5-2.5s1.12-2.5,2.5-2.5s2.5,1.12,2.5,2.5S13.38,11.5,12,11.5z"/></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-map-pin-house-icon lucide-map-pin-house"><path d="M15 22a1 1 0 0 1-1-1v-4a1 1 0 0 1 .445-.832l3-2a1 1 0 0 1 1.11 0l3 2A1 1 0 0 1 22 17v4a1 1 0 0 1-1 1z"/><path d="M18 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 .601.2"/><path d="M18 22v-3"/><circle cx="10" cy="10" r="3"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/organization.svg b/flowsint-app/src/renderer/public/icons/organization.svgindex bc4ca3a9..7a16b5c0 100644--- a/flowsint-app/src/renderer/public/icons/organization.svg+++ b/flowsint-app/src/renderer/public/icons/organization.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title/><g id="office"><path fill="#D1C0AF" d="M12.5,13h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,12.5,13Z"/><path fill="#D1C0AF" d="M12.5,9h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,12.5,9Z"/><path fill="#D1C0AF" d="M12.5,5h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,12.5,5Z"/><path fill="#D1C0AF" d="M8.5,13h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,8.5,13Z"/><path fill="#D1C0AF" d="M8.5,9h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,8.5,9Z"/><path fill="#D1C0AF" d="M8.5,5h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,8.5,5Z"/><path fill="#D1C0AF" d="M16.5,13h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,16.5,13Z"/><path fill="#D1C0AF" d="M16.5,9h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,16.5,9Z"/><path fill="#D1C0AF" d="M16.5,5h-1a1,1,0,0,0,0,2h1A1,1,0,0,0,16.5,5Z"/><path fill="#D1C0AF" d="M22,21H21V2a1,1,0,0,0-1-1H4A1,1,0,0,0,3,2V21H2a1,1,0,0,0,0,2H22A1,1,0,0,0,22,21ZM10,21V19h4v2Zm6,0V18a1,1,0,0,0-1-1H9a1,1,0,0,0-1,1v3H5V3H19V21Z"/></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-building-icon lucide-building"><rect width="16" height="20" x="4" y="2" rx="2" ry="2"/><path d="M9 22v-4h6v4"/><path d="M8 6h.01"/><path d="M16 6h.01"/><path d="M12 6h.01"/><path d="M12 10h.01"/><path d="M12 14h.01"/><path d="M16 10h.01"/><path d="M16 14h.01"/><path d="M8 10h.01"/><path d="M8 14h.01"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/phone.svg b/flowsint-app/src/renderer/public/icons/phone.svgindex e7e745b8..f1ac6dc8 100644--- a/flowsint-app/src/renderer/public/icons/phone.svg+++ b/flowsint-app/src/renderer/public/icons/phone.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" fill="#A0D7CF"><path d="M20 10.999h2C22 5.869 18.127 2 12.99 2v2C17.052 4 20 6.943 20 10.999z"/><path d="M13 8c2.103 0 3 .897 3 3h2c0-3.225-1.775-5-5-5v2zm3.422 5.443a1.001 1.001 0 0 0-1.391.043l-2.393 2.461c-.576-.11-1.734-.471-2.926-1.66-1.192-1.193-1.553-2.354-1.66-2.926l2.459-2.394a1 1 0 0 0 .043-1.391L6.859 3.513a1 1 0 0 0-1.391-.087l-2.17 1.861a1 1 0 0 0-.29.649c-.015.25-.301 6.172 4.291 10.766C11.305 20.707 16.323 21 17.705 21c.202 0 .326-.006.359-.008a.992.992 0 0 0 .648-.291l1.86-2.171a1 1 0 0 0-.086-1.391l-4.064-3.696z"/></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-phone-call-icon lucide-phone-call"><path d="M13 2a9 9 0 0 1 9 9"/><path d="M13 6a5 5 0 0 1 5 5"/><path d="M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/phrase.svg b/flowsint-app/src/renderer/public/icons/phrase.svgindex a25dd4f5..3a8560a8 100644--- a/flowsint-app/src/renderer/public/icons/phrase.svg+++ b/flowsint-app/src/renderer/public/icons/phrase.svg@@ -1 +1 @@-<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="#D4A5D4" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-baseline-icon lucide-baseline"><path d="M4 20h16"/><path d="m6 16 6-12 6 12"/><path d="M8 12h8"/></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-baseline-icon lucide-baseline"><path d="M4 20h16"/><path d="m6 16 6-12 6 12"/><path d="M8 12h8"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/subdomain.svg b/flowsint-app/src/renderer/public/icons/subdomain.svgindex ca4b9260..e86b8a1e 100644--- a/flowsint-app/src/renderer/public/icons/subdomain.svg+++ b/flowsint-app/src/renderer/public/icons/subdomain.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg height="20px" version="1.1" viewBox="0 0 20 20" width="20px" xmlns="http://www.w3.org/2000/svg" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns" xmlns:xlink="http://www.w3.org/1999/xlink"><title/><desc/><defs/><g fill="none" fill-rule="evenodd" id="Page-1" stroke="none" stroke-width="1"><g fill="#9DCBE4" id="Core" transform="translate(-296.000000, -296.000000)"><g id="language" transform="translate(296.000000, 296.000000)"><path d="M10,0 C4.5,0 0,4.5 0,10 C0,15.5 4.5,20 10,20 C15.5,20 20,15.5 20,10 C20,4.5 15.5,0 10,0 L10,0 Z M16.9,6 L14,6 C13.7,4.7 13.2,3.6 12.6,2.4 C14.4,3.1 16,4.3 16.9,6 L16.9,6 Z M10,2 C10.8,3.2 11.5,4.5 11.9,6 L8.1,6 C8.5,4.6 9.2,3.2 10,2 L10,2 Z M2.3,12 C2.1,11.4 2,10.7 2,10 C2,9.3 2.1,8.6 2.3,8 L5.7,8 C5.6,8.7 5.6,9.3 5.6,10 C5.6,10.7 5.7,11.3 5.7,12 L2.3,12 L2.3,12 Z M3.1,14 L6,14 C6.3,15.3 6.8,16.4 7.4,17.6 C5.6,16.9 4,15.7 3.1,14 L3.1,14 Z M6,6 L3.1,6 C4.1,4.3 5.6,3.1 7.4,2.4 C6.8,3.6 6.3,4.7 6,6 L6,6 Z M10,18 C9.2,16.8 8.5,15.5 8.1,14 L11.9,14 C11.5,15.4 10.8,16.8 10,18 L10,18 Z M12.3,12 L7.7,12 C7.6,11.3 7.5,10.7 7.5,10 C7.5,9.3 7.6,8.7 7.7,8 L12.4,8 C12.5,8.7 12.6,9.3 12.6,10 C12.6,10.7 12.4,11.3 12.3,12 L12.3,12 Z M12.6,17.6 C13.2,16.5 13.7,15.3 14,14 L16.9,14 C16,15.7 14.4,16.9 12.6,17.6 L12.6,17.6 Z M14.4,12 C14.5,11.3 14.5,10.7 14.5,10 C14.5,9.3 14.4,8.7 14.4,8 L17.8,8 C18,8.6 18.1,9.3 18.1,10 C18.1,10.7 18,11.4 17.8,12 L14.4,12 L14.4,12 Z" id="Shape"/></g></g></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-globe-icon lucide-globe"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"/><path d="M2 12h20"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/weapon.svg b/flowsint-app/src/renderer/public/icons/weapon.svgindex f24c947b..19922e02 100644--- a/flowsint-app/src/renderer/public/icons/weapon.svg+++ b/flowsint-app/src/renderer/public/icons/weapon.svg@@ -1,3 +1,3 @@<svg xmlns="http://www.w3.org/2000/svg" width="350" height="270"><script xmlns="" src="chrome-extension://mfidniedemcgceagapgdekdbmanojomk/js/elephant.js"/>-<path fill="#F4B8A8" d="m334.8552,193.27523-26.34011-71.35147c-11.06418-28.701029 26.72116-33.762444 26.72116-33.762444 8.39675-4.651025 0-9.712435 0-9.712435-8.77779,2.099986-15.26923-10.126516-15.26923-10.126516L315.0132,56.916631c-2.67412-6.751012-3.43624-7.597661-.3844-20.678207 3.05184-13.099033-6.67862-12.463121-8.39675-10.562782-1.72146,1.911431-7.06302,4.854369-11.07085,.421475-4.0045-4.432892-14.11937-4.21476-14.11937-4.21476l-3.81731-8.448007-4.20171,0-4.19504,8.44431-74.0498,0 0,2.532553-154.96207,0 0-4.222155-3.061871,0c-.374377-3.3829-2.664095-5.911755-2.664095-5.911755-12.601803,0-15.265899,10.551689-15.265899,10.551689l-9.9310228,0 C 3.173732,36.234727 9.2874455,48.893796 9.2874455,48.893796l11.0641835,0 0,34.195019 23.281581,0 1.90197,5.493978 58.02512,0c 54.19444,0 44.65117,50.229597 44.65117,50.229597 40.84388,20.6893 66.41518,7.60506 66.41518,7.60506 20.23308-4.63994 24.04704,14.35236 24.04704,14.35236l13.73497,60.3746c 1.14653,10.54799-.47466,16.87013-.47466,16.87013l0.0267,.86514-.0267,0 0,8.52195c 0,0-.31755,4.61405 5.45188,3.8968l64.04522-5.95982c 1.55099,2.89858 4.37888,4.85437 7.63463,4.85437 4.92372,0 8.90482-4.41071 8.90482-9.84553 0-1.08696-.19721-1.91883-.48803-2.63238l1.94877-.0148c 4.58278-28.29065-4.57609-44.42505-4.57609-44.42505z M309.84547,26.899401c1.60447,0 2.91144,1.438194 2.91144,3.223922 0,1.778334-1.30697,3.216528-2.91144,3.216528-1.60783,0-2.92483-1.438194-2.92483-3.216528 0-1.785728 1.31366-3.223922 2.92483-3.223922z M229.13043,126.5674c-1.14987,7.60875-8.40009,11.82721-8.40009,11.82721-24.76573,9.20222-40.67007,6.61421-53.23844,2.44382-15.33945-5.10208-14.31325-21.45461-14.31325-21.45461 0-22.367805 20.9952-21.946337 20.9952-21.946337l17.17122,0c9.54661,25.325537-13.73831,36.738667-13.73831,36.738667-3.06187,.83556 0,3.3755 0,3.3755 14.11937-.42147 25.56462-25.7544 25.56462-25.7544 l-.37438-10.55539 5.33487-3.804377c20.99856,0 22.14509,21.535947 20.99856,29.129917z m105.72142,113.77635c0,3.5234-2.59724,6.39238-5.78278,6.39238-3.19224,0-5.77946-2.86528-5.77946-6.39238 0-.89841 .17382-1.75245 .47131-2.52516l10.57951-.085c.31756,.79859 .51142,1.67851 .51142,2.61019"/>+<path fill="white" d="m334.8552,193.27523-26.34011-71.35147c-11.06418-28.701029 26.72116-33.762444 26.72116-33.762444 8.39675-4.651025 0-9.712435 0-9.712435-8.77779,2.099986-15.26923-10.126516-15.26923-10.126516L315.0132,56.916631c-2.67412-6.751012-3.43624-7.597661-.3844-20.678207 3.05184-13.099033-6.67862-12.463121-8.39675-10.562782-1.72146,1.911431-7.06302,4.854369-11.07085,.421475-4.0045-4.432892-14.11937-4.21476-14.11937-4.21476l-3.81731-8.448007-4.20171,0-4.19504,8.44431-74.0498,0 0,2.532553-154.96207,0 0-4.222155-3.061871,0c-.374377-3.3829-2.664095-5.911755-2.664095-5.911755-12.601803,0-15.265899,10.551689-15.265899,10.551689l-9.9310228,0 C 3.173732,36.234727 9.2874455,48.893796 9.2874455,48.893796l11.0641835,0 0,34.195019 23.281581,0 1.90197,5.493978 58.02512,0c 54.19444,0 44.65117,50.229597 44.65117,50.229597 40.84388,20.6893 66.41518,7.60506 66.41518,7.60506 20.23308-4.63994 24.04704,14.35236 24.04704,14.35236l13.73497,60.3746c 1.14653,10.54799-.47466,16.87013-.47466,16.87013l0.0267,.86514-.0267,0 0,8.52195c 0,0-.31755,4.61405 5.45188,3.8968l64.04522-5.95982c 1.55099,2.89858 4.37888,4.85437 7.63463,4.85437 4.92372,0 8.90482-4.41071 8.90482-9.84553 0-1.08696-.19721-1.91883-.48803-2.63238l1.94877-.0148c 4.58278-28.29065-4.57609-44.42505-4.57609-44.42505z M309.84547,26.899401c1.60447,0 2.91144,1.438194 2.91144,3.223922 0,1.778334-1.30697,3.216528-2.91144,3.216528-1.60783,0-2.92483-1.438194-2.92483-3.216528 0-1.785728 1.31366-3.223922 2.92483-3.223922z M229.13043,126.5674c-1.14987,7.60875-8.40009,11.82721-8.40009,11.82721-24.76573,9.20222-40.67007,6.61421-53.23844,2.44382-15.33945-5.10208-14.31325-21.45461-14.31325-21.45461 0-22.367805 20.9952-21.946337 20.9952-21.946337l17.17122,0c9.54661,25.325537-13.73831,36.738667-13.73831,36.738667-3.06187,.83556 0,3.3755 0,3.3755 14.11937-.42147 25.56462-25.7544 25.56462-25.7544 l-.37438-10.55539 5.33487-3.804377c20.99856,0 22.14509,21.535947 20.99856,29.129917z m105.72142,113.77635c0,3.5234-2.59724,6.39238-5.78278,6.39238-3.19224,0-5.77946-2.86528-5.77946-6.39238 0-.89841 .17382-1.75245 .47131-2.52516l10.57951-.085c.31756,.79859 .51142,1.67851 .51142,2.61019"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/website.svg b/flowsint-app/src/renderer/public/icons/website.svgindex f3f85403..a48b3f60 100644--- a/flowsint-app/src/renderer/public/icons/website.svg+++ b/flowsint-app/src/renderer/public/icons/website.svg@@ -1,23 +1 @@-<?xml version="1.0" ?><svg id="Layer_1" style="enable-background:new 0 0 50 50;" version="1.1" viewBox="0 0 50 50" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><style type="text/css">- .st0{fill:#E7B8D2;}- .st1{fill:#E7B8D2;}- .st2{fill:#FFFFFF;}- .st3{fill:#E7B8D2;}- .st4{fill:#E7B8D2;}- .st5{fill:#E7B8D2;}- .st6{fill:#E7B8D2;}- .st7{fill:#E7B8D2;}- .st8{enable-background:new ;}- .st9{fill:#E7B8D2;}- .st10{fill:url(#);}- .st11{fill:#E7B8D2;}- .st12{fill:#E7B8D2;}- .st13{fill:#E7B8D2;}- .st14{fill:#E7B8D2;}- .st15{fill:#E7B8D2;}- .st16{fill:#E7B8D2;}- .st17{fill:#E7B8D2;}- .st18{opacity:0.3;}- .st19{opacity:0.3;fill:#E7B8D2;}- .st20{opacity:0.2;}-</style><g><g><path class="st7" d="M41.03586,1.08364c-0.22511-0.13083-0.53674-0.11255-0.88039,0.08585L8.15094,19.64732 c-0.68569,0.39588-1.23857,1.3535-1.23633,2.1382l0.06643,25.39545c0.00109,0.38943,0.13872,0.6637,0.36087,0.79283 l1.62189,0.94253c-0.22218-0.1291-0.35978-0.40337-0.3609-0.79284L8.53646,22.72805 c-0.00221-0.78471,0.55067-1.74232,1.23636-2.1382L41.77736,2.11202c0.34365-0.19841,0.65528-0.21666,0.88039-0.08585 L41.03586,1.08364z"/><g><path class="st4" d="M41.77735,2.11203c0.68291-0.39428,1.2394-0.07715,1.24162,0.70756l0.06642,25.39545 c0.00222,0.78472-0.55066,1.74233-1.23356,2.13661L9.84731,48.82948c-0.68569,0.39589-1.24218,0.07876-1.24441-0.70596 L8.53648,22.72807c-0.00222-0.78472,0.55065-1.74233,1.23635-2.13822L41.77735,2.11203z"/></g><g><g><polygon class="st2" points="41.48254,6.74696 41.53741,28.75269 10.15168,46.87325 10.0968,24.86752 "/></g></g><g><g><path class="st13" d="M36.77227,6.72606c0.35073-0.20249,0.63628-0.03976,0.63742,0.36325 c0.00114,0.40301-0.28256,0.89228-0.63329,1.09478c-0.34889,0.20143-0.63444,0.04081-0.63558-0.3622 C36.13968,7.41888,36.42338,6.9275,36.77227,6.72606z"/></g><g><path class="st13" d="M40.84512,4.37507c0.35073-0.20249,0.63628-0.03976,0.63742,0.36325 c0.00114,0.40301-0.28256,0.89228-0.63329,1.09478c-0.34889,0.20143-0.63444,0.04081-0.63558-0.3622 C40.21253,5.06789,40.49622,4.5765,40.84512,4.37507z"/></g><g><path class="st13" d="M38.80869,5.55033c0.35073-0.20249,0.63628-0.03976,0.63742,0.36325 c0.00114,0.40301-0.28256,0.89228-0.63329,1.09478c-0.35073,0.20249-0.63444,0.04081-0.63558-0.3622 C38.17611,6.24315,38.45797,5.75283,38.80869,5.55033z"/></g></g></g><g><g><path class="st13" d="M29.15597,27.54902l9.14851-5.28189c0.34112-0.19694,0.65051-0.21527,0.87414-0.08529l1.22299,0.71072 c-0.22363-0.12996-0.533-0.11166-0.87414,0.08529l-9.14848,5.28189c-0.6786,0.39179-1.22799,1.34336-1.22577,2.12631 l0.02981,10.50913c0.00109,0.38935,0.1384,0.66301,0.35962,0.79158l-1.22299-0.71075 c-0.22125-0.12855-0.35854-0.40223-0.35965-0.79158l-0.02979-10.50913C27.928,28.89238,28.47739,27.94079,29.15597,27.54902z"/><g><path class="st0" d="M30.37898,28.25976c-0.67859,0.39178-1.22798,1.34336-1.22576,2.12629l0.02979,10.50914 c0.00222,0.78294,0.5552,1.09806,1.23379,0.70628l9.14849-5.28188c0.67859-0.39179,1.22797-1.34336,1.22575-2.12629 l-0.02979-10.50914c-0.00222-0.78293-0.55519-1.09806-1.23379-0.70627L30.37898,28.25976z"/></g><g><g><path class="st1" d="M39.6567,25.51173l0.0748-0.04318l0.02306,8.13488l-0.0748,0.04318 c-0.63704,0.36779-1.1533,1.26198-1.15122,1.994l0.00025,0.08911l-7.07948,4.08733l-0.00025-0.08911 c-0.00208-0.73202-0.52171-1.02813-1.15876-0.66032l-0.07754,0.04477l-0.02306-8.13488l0.07753-0.04476 c0.63705-0.3678,1.15331-1.262,1.15124-1.99401l-0.00025-0.08911l7.07948-4.08734l0.00025,0.08911 C38.50003,25.58339,39.01967,25.87952,39.6567,25.51173z M39.60173,33.51951l-0.02208-7.78797 c-0.65933,0.33604-1.19286,0.032-1.23378-0.70309l-6.77759,3.91304c-0.03662,0.77985-0.56391,1.69636-1.223,2.12151 l0.02208,7.78797c0.65933-0.33923,1.19008-0.03358,1.231,0.70151l6.77759-3.91304 C38.41258,34.85958,38.94265,33.94147,39.60173,33.51951"/></g><g><polygon class="st1" points="35.70823,33.39024 35.70981,33.80465 31.24497,36.38242 31.24339,35.96802 "/></g><g><polygon class="st1" points="38.70396,29.30164 38.70554,29.71604 31.23829,34.02726 31.23671,33.61285 "/></g><g><polygon class="st1" points="38.7073,30.47922 38.70888,30.89362 31.24163,35.20484 31.24005,34.79044 "/></g><g><polygon class="st11" points="38.54985,26.73585 38.55231,27.60471 31.37587,31.74803 31.37341,30.87917 "/></g></g></g><g><g><g class="st8"><g><polygon class="st11" points="35.45541,41.45153 35.7286,42.18804 35.98616,42.3377 35.71298,41.60122 "/><polygon class="st11" points="36.72927,39.37043 36.4717,39.22075 37.22649,41.32322 37.48404,41.4729 "/><polygon class="st11" points="37.13496,37.41726 35.79807,38.18911 34.71463,42.28473 34.97217,42.43439 36.05562,38.3388 37.39253,37.56694 "/></g><g><polygon class="st9" points="37.39252,37.56694 38.49058,40.40305 37.74982,40.42524 37.48404,41.47291 36.72926,39.37043 35.98615,42.33772 35.71297,41.60121 34.97218,42.43439 36.05562,38.3388 "/></g></g></g><g><g class="st8"><g><path class="st7" d="M34.3113,38.3304c0,0.59265,0.20918,1.01096,0.54828,1.20745l0.44684,0.25988 c-0.3391-0.19649-0.54826-0.61482-0.54826-1.20745c-0.00317-1.19793,0.83664-2.65575,1.87931-3.25788 c0.5229-0.30107,0.99827-0.32961,1.34055-0.12994l-0.44684-0.25988c-0.34227-0.19964-0.81765-0.17113-1.34056,0.12995 C35.14796,35.67466,34.30813,37.13247,34.3113,38.3304z"/></g><g><ellipse class="st4" cx="36.64311" cy="37.49996" rx="2.65829" ry="1.53976" transform="matrix(0.50245 -0.8646 0.8646 0.50245 -14.19097 50.33978)"/></g><g><polygon class="st2" points="36.72935,36.23273 37.05263,36.7936 37.77025,36.49839 37.221,37.43443 37.52775,38.13334 36.79332,38.04338 36.09522,38.87015 36.21601,37.97896 35.69514,37.69646 36.41208,37.16342 "/></g></g></g></g></g><path class="st11" d="M37.72798,13.10737c-0.00161-0.56551-0.40443-0.80254-0.90308-0.51462L13.16276,26.25409 c-0.49215,0.28415-0.89874,0.98844-0.89719,1.55401l0.00644,3.28377c0.00161,0.5655,0.41093,0.79883,0.90308,0.51462 l23.66215-13.66134c0.49865-0.28786,0.8988-0.98844,0.89719-1.55401L37.72798,13.10737z M13.1739,31.1898 c-0.29789,0.17197-0.53827,0.03498-0.53926-0.3073l-0.00644-3.28377c-0.00099-0.34227,0.23784-0.75593,0.53579-0.92796 L32.9276,15.26025l0.0099,4.51897L13.1739,31.1898z"/><g><path class="st2" d="M36.14058,16.08666l0.90928,0.51665l-0.42388,0.7342l-0.90821-0.51851 c-0.17317,0.21329-0.36695,0.38186-0.56084,0.4938c-0.28985,0.16735-0.57987,0.20803-0.80103,0.08199 c-0.44294-0.25241-0.44529-1.07928-0.00522-1.84151c0.22003-0.3811,0.50994-0.67552,0.80022-0.84311 c0.29028-0.16759,0.58091-0.20835,0.80238-0.08215C36.32346,14.83774,36.3848,15.44747,36.14058,16.08666z M35.71422,16.33033 c0.30632-0.53057,0.30469-1.10502-0.00363-1.28073c-0.15416-0.08785-0.35623-0.05961-0.55803,0.0569 c-0.20181,0.11652-0.40338,0.32131-0.55653,0.58659c-0.30632,0.53057-0.30469,1.10502,0.00363,1.28073 c0.15416,0.08785,0.35622,0.05962,0.55803-0.0569C35.35949,16.80041,35.56106,16.5956,35.71422,16.33033"/></g><g><g><polygon class="st6" points="17.91143,39.04858 17.90199,35.72433 13.15454,38.46529 13.16398,41.78953 "/></g><g><polygon class="st11" points="24.43196,35.28393 24.42252,31.95969 19.67507,34.70064 19.68451,38.02488 "/></g></g></g></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-link-icon lucide-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"/><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/public/icons/whois.svg b/flowsint-app/src/renderer/public/icons/whois.svgindex cfba43fd..7fbab286 100644--- a/flowsint-app/src/renderer/public/icons/whois.svg+++ b/flowsint-app/src/renderer/public/icons/whois.svg@@ -1 +1 @@-<?xml version="1.0" ?><svg id="fill" viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg"><rect height="54" style="fill:#cfcfd9" width="14" x="44" y="5"/><polygon points="50 61 6 61 6 3 42 3 50 11 50 61" style="fill:#e5e6eb"/><path d="M48,9V23.743A35.257,35.257,0,0,1,12.743,59H6v2H50V11Z" style="fill:#d9dae2"/><circle cx="22" cy="18" r="9" style="fill:#fff"/><circle cx="22" cy="46" r="9" style="fill:#fff"/><path d="M23.972,17H20.028A2.028,2.028,0,0,0,18,19.028v7.025a8.921,8.921,0,0,0,8,0V19.028A2.028,2.028,0,0,0,23.972,17Z" style="fill:#EAAFAF"/><circle cx="22" cy="14" r="3" style="fill:#EAAFAF"/><rect height="2" style="fill:#888" width="4" x="33" y="14"/><rect height="2" style="fill:#888" width="2" x="39" y="14"/><rect height="2" style="fill:#888" width="9" x="33" y="18"/><rect height="2" style="fill:#888" width="11" x="33" y="22"/><path d="M23.972,45H20.028A2.028,2.028,0,0,0,18,47.028v7.025a8.921,8.921,0,0,0,8,0V47.028A2.028,2.028,0,0,0,23.972,45Z" style="fill:#EAAFAF"/><circle cx="22" cy="42" r="3" style="fill:#EAAFAF"/><rect height="2" style="fill:#888" width="4" x="33" y="42"/><rect height="2" style="fill:#888" width="2" x="39" y="42"/><rect height="2" style="fill:#888" width="9" x="33" y="46"/><rect height="2" style="fill:#888" width="11" x="33" y="50"/><polygon points="50 11 42 11 42 3 50 11" style="fill:#cceaff"/><path d="M58,4H44.414L42.707,2.293A1,1,0,0,0,42,2H6A1,1,0,0,0,5,3V61a1,1,0,0,0,1,1H50a1,1,0,0,0,1-1V60h7a1,1,0,0,0,1-1V5A1,1,0,0,0,58,4ZM43,5.414,47.586,10H43ZM7,60V4H41v7a1,1,0,0,0,1,1h7V60Zm50-2H51V11a1,1,0,0,0-.293-.707L46.414,6H57Z" style="fill:#ccc"/></svg>\ No newline at end of file+<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="#ffffff" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-notebook-pen-icon lucide-notebook-pen"><path d="M13.4 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7.4"/><path d="M2 6h4"/><path d="M2 10h4"/><path d="M2 14h4"/><path d="M2 18h4"/><path d="M21.378 5.626a1 1 0 1 0-3.004-3.004l-5.01 5.012a2 2 0 0 0-.506.854l-.837 2.87a.5.5 0 0 0 .62.62l2.87-.837a2 2 0 0 0 .854-.506z"/></svg>\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/api/auth-service.ts b/flowsint-app/src/renderer/src/api/auth-service.tsindex 531efcea..03ac03d0 100644--- a/flowsint-app/src/renderer/src/api/auth-service.ts+++ b/flowsint-app/src/renderer/src/api/auth-service.ts@@ -1,19 +1,18 @@import { useAuthStore } from '@/stores/auth-store';import { fetchWithAuth } from './api';-import { useBoundStore } from '@/stores/use-bound-store';-interface RegisterData {+export interface RegisterData {username: string;email: string;password: string;}-interface LoginData {+export interface LoginData {username: string;password: string;}-interface AuthResponse {+export interface AuthResponse {access_token: string;token_type: string;user: {@@ -46,7 +45,6 @@ export const authService = {});},logout: () => {- useBoundStore.getState().tabs.clearTabs()useAuthStore.getState().logout()},diff --git a/flowsint-app/src/renderer/src/components/analyses/analysis-editor.tsx b/flowsint-app/src/renderer/src/components/analyses/analysis-editor.tsxindex 1458eb8d..aba27dad 100644--- a/flowsint-app/src/renderer/src/components/analyses/analysis-editor.tsx+++ b/flowsint-app/src/renderer/src/components/analyses/analysis-editor.tsx@@ -1,4 +1,4 @@-import { useState, useEffect } from "react"+import { useState, useEffect, useCallback } from "react"import { useMutation, useQueryClient } from "@tanstack/react-query"import { MinimalTiptapEditor } from "@/components/analyses/editor"import { analysisService } from "@/api/analysis-service"@@ -72,6 +72,29 @@ export const AnalysisEditor = ({const [editor, setEditor] = useState<Editor | undefined>(undefined)const [isEditingTitle, setIsEditingTitle] = useState(false)+ // Debounced save function+ const debouncedSave = useCallback(+ debounce(() => {+ if (analysis && editorValue) {+ saveMutation.mutate({})+ }+ }, 1000), // 1 second delay+ [analysis, editorValue]+ )++ // Debounce function+ function debounce(func: Function, wait: number) {+ let timeout: NodeJS.Timeout+ return function executedFunction(...args: any[]) {+ const later = () => {+ clearTimeout(timeout)+ func(...args)+ }+ clearTimeout(timeout)+ timeout = setTimeout(later, wait)+ }+ }+// Mutationsconst createMutation = useMutation({mutationFn: async () => {@@ -103,7 +126,11 @@ export const AnalysisEditor = ({}))},onSuccess: async (data) => {- queryClient.invalidateQueries({ queryKey: ["analyses", investigationId] })+ // Use more specific query invalidation+ queryClient.setQueryData(["analyses", investigationId], (oldData: Analysis[] | undefined) => {+ if (!oldData) return oldData+ return oldData.map(item => item.id === data.id ? data : item)+ })onAnalysisUpdate?.(data)toast.success("Analysis saved !")},@@ -135,7 +162,11 @@ export const AnalysisEditor = ({}))},onSuccess: async (data) => {- queryClient.invalidateQueries({ queryKey: ["analyses", investigationId] })+ // Use more specific query invalidation+ queryClient.setQueryData(["analyses", investigationId], (oldData: Analysis[] | undefined) => {+ if (!oldData) return oldData+ return oldData.map(item => item.id === data.id ? data : item)+ })onAnalysisUpdate?.(data)toast.success("Title updated")},@@ -213,10 +244,10 @@ export const AnalysisEditor = ({}return (- <div className={`flex flex-col h-full w-full overflow-y-auto ${className}`}>+ <div className={`flex flex-col h-full w-full overflow-y-auto bg-card ${className}`}>{/* Header */}{showHeader && (- <div className="bg-background/70 sticky top-0 z-10 backdrop-blur-sm h-11 w-full flex items-center justify-between">+ <div className="bg-card/70 sticky top-0 z-10 backdrop-blur-sm h-11 w-full flex items-center justify-between"><div className="flex items-center justify-between p-3 w-full">{/* Left section with navigation and title */}<div className="flex items-center gap-3 flex-1 min-w-0">diff --git a/flowsint-app/src/renderer/src/components/analyses/analysis-page.tsx b/flowsint-app/src/renderer/src/components/analyses/analysis-page.tsxindex 2818875c..868453c3 100644--- a/flowsint-app/src/renderer/src/components/analyses/analysis-page.tsx+++ b/flowsint-app/src/renderer/src/components/analyses/analysis-page.tsx@@ -1,13 +1,16 @@import { useParams } from "@tanstack/react-router"import type { Analysis } from "@/types"-import { Skeleton } from "@/components/ui/skeleton"import { AnalysisEditor } from "./analysis-editor"+import AnalysisSkeleton from "./analysis-skeleton"export const AnalysisPage = ({ analysis, isLoading, isError, refetch }: { analysis: Analysis, isLoading: boolean, isError: boolean, refetch: () => void }) => {const { investigationId } = useParams({ strict: false }) as { investigationId: string, id: string }if (isLoading) {- return <Skeleton className="h-full w-full" />+ return (+ <div className="w-full flex gap-3 max-w-4xl mx-auto flex-col items-start justify-start h-full overflow-hidden p-20">+ <AnalysisSkeleton />+ </div>)}if (isError) {diff --git a/flowsint-app/src/renderer/src/components/analyses/analysis-skeleton.tsx b/flowsint-app/src/renderer/src/components/analyses/analysis-skeleton.tsxnew file mode 100644index 00000000..9585916f--- /dev/null+++ b/flowsint-app/src/renderer/src/components/analyses/analysis-skeleton.tsx@@ -0,0 +1,22 @@+import { Skeleton } from '../ui/skeleton'++const AnalysisSkeleton = () => {+ return (+ <div className='flex flex-col gap-3 p-6'>+ <Skeleton className="h-10 w-1/2" />+ <Skeleton className="h-6 w-full" />+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-2/3" />+ <div></div>+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-full" />+ <Skeleton className="h-4 w-1/2" />++ </div>+ )+}++export default AnalysisSkeleton\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/analyses/editor/minimal-tiptap.tsx b/flowsint-app/src/renderer/src/components/analyses/editor/minimal-tiptap.tsxindex 81285898..8980bb73 100644--- a/flowsint-app/src/renderer/src/components/analyses/editor/minimal-tiptap.tsx+++ b/flowsint-app/src/renderer/src/components/analyses/editor/minimal-tiptap.tsx@@ -99,7 +99,7 @@ export const MinimalTiptapEditor = React.forwardRef<{/* <Toolbar editor={editor} /> */}<EditorContenteditor={editor}- className={cn("minimal-tiptap-editor p-8 w-full max-w-4xl mx-auto", editorContentClassName)}+ className={cn("minimal-tiptap-editor prose dark:prose-invert p-8 w-full max-w-4xl mx-auto", editorContentClassName)}/><LinkBubbleMenu editor={editor} /></MeasuredContainer>diff --git a/flowsint-app/src/renderer/src/components/analyses/notes-panel.tsx b/flowsint-app/src/renderer/src/components/analyses/notes-panel.tsxindex 68a3452f..5da8008b 100644--- a/flowsint-app/src/renderer/src/components/analyses/notes-panel.tsx+++ b/flowsint-app/src/renderer/src/components/analyses/notes-panel.tsx@@ -2,10 +2,10 @@ import { useQuery } from "@tanstack/react-query"import { useParams } from "@tanstack/react-router"import { analysisService } from "@/api/analysis-service"import type { Analysis } from "@/types"-import { Skeleton } from "@/components/ui/skeleton"import { useAnalysisPanelStore } from "@/stores/analysis-panel-store"import { AnalysisEditor } from "./analysis-editor"import { useEffect } from "react"+import AnalysisSkeleton from "./analysis-skeleton"export const AnalysisPanel = () => {const { investigationId } = useParams({ strict: false }) as { investigationId: string }@@ -53,7 +53,7 @@ export const AnalysisPanel = () => {}if (isLoadingAnalyses) {- return <Skeleton className="h-full w-full" />+ return <AnalysisSkeleton />}if (isError) {diff --git a/flowsint-app/src/renderer/src/components/chat/chat-history.tsx b/flowsint-app/src/renderer/src/components/chat/chat-history.tsxindex f3b7467a..bbcca2b6 100644--- a/flowsint-app/src/renderer/src/components/chat/chat-history.tsx+++ b/flowsint-app/src/renderer/src/components/chat/chat-history.tsx@@ -2,7 +2,7 @@ import { chatCRUDService } from '@/api/chat-service';import { useQuery } from '@tanstack/react-query';import { SkeletonList } from '../shared/skeleton-list';import { Button } from '../ui/button';-import { ArrowLeft, Trash, MessageSquare, Sparkles } from 'lucide-react';+import { ArrowLeft, Trash, Sparkles } from 'lucide-react';import { Chat } from '@/types';import { useCallback } from 'react';import { formatDistanceToNow } from 'date-fns';diff --git a/flowsint-app/src/renderer/src/components/chat/chat-prompt.tsx b/flowsint-app/src/renderer/src/components/chat/chat-prompt.tsxindex 19e9cb6e..f67b6b89 100644--- a/flowsint-app/src/renderer/src/components/chat/chat-prompt.tsx+++ b/flowsint-app/src/renderer/src/components/chat/chat-prompt.tsx@@ -134,7 +134,7 @@ export const ChatPanel = ({export const ContextList = memo(({ context }: { context: any }) => {const colors = useNodesDisplaySettings(s => s.colors)return (- <div className="flex flex-nowrap overflow-x-auto hide-scrollbar gap-1.5 items-center">+ <div className="flex flex-nowrap overflow-x-auto hide-scrollbar gap-1.5 items-center px-1">{context.map((item: any, index: number) => {const color = colors[item?.data?.type || item?.type]return (diff --git a/flowsint-app/src/renderer/src/components/chat/floating-chat.tsx b/flowsint-app/src/renderer/src/components/chat/floating-chat.tsxindex e8992eb7..aa445087 100644--- a/flowsint-app/src/renderer/src/components/chat/floating-chat.tsx+++ b/flowsint-app/src/renderer/src/components/chat/floating-chat.tsx@@ -164,7 +164,7 @@ function FloatingChat() {</div>{/* Content */}- <div className="flex flex-col prose flex-1 overflow-auto">+ <div className="flex flex-col flex-1 overflow-auto">{isLoading ? (<ChatSkeleton />) : hasMessages ? (diff --git a/flowsint-app/src/renderer/src/components/chat/memoized-markdown.tsx b/flowsint-app/src/renderer/src/components/chat/memoized-markdown.tsxindex 6e84e4bc..3acc3826 100644--- a/flowsint-app/src/renderer/src/components/chat/memoized-markdown.tsx+++ b/flowsint-app/src/renderer/src/components/chat/memoized-markdown.tsx@@ -25,7 +25,7 @@ const MemoizedMarkdownBlock = memo(style={dracula}language={match[1]}PreTag="div"- className="rounded border border-border bg-muted px-1 py-0.5 text-sm"+ className="rounded border border-border bg-muted px-1 py-0.5 !m-0 text-sm w-auto not-prose"{...props}/><div className='absolute top-2 right-2'>@@ -33,13 +33,13 @@ const MemoizedMarkdownBlock = memo(</div></div>) : (- <code className={cn("rounded border border-border bg-muted px-1 py-0.5 text-sm", className)} {...props}>+ <code className={cn("rounded border border-border bg-muted text-primary font-normal w-full px-1 py-0.5 text-sm not-prose", className)} {...props}>{children}</code>)}}}- remarkPlugins={[remarkGfm]}>{content}</ReactMarkdown>;+ remarkPlugins={[remarkGfm]}>{content}</ReactMarkdown>},(prevProps, nextProps) => {if (prevProps.content !== nextProps.content) return false;@@ -53,9 +53,11 @@ export const MemoizedMarkdown = memo(({ content, id }: { content: string; id: string }) => {const blocks = useMemo(() => parseMarkdownIntoBlocks(content), [content]);- return blocks.map((block, index) => (- <MemoizedMarkdownBlock content={block} key={`${id}-block_${index}`} />- ));+ return (+ <div className='prose max-w-none dark:prose-invert'>{blocks.map((block, index) => (+ <MemoizedMarkdownBlock content={block} key={`${id}-block_${index}`} />+ ))}+ </div>)},);diff --git a/flowsint-app/src/renderer/src/components/dashboard/active-malware-chart.tsx b/flowsint-app/src/renderer/src/components/dashboard/active-malware-chart.tsxdeleted file mode 100644index 9d54c8e7..00000000--- a/flowsint-app/src/renderer/src/components/dashboard/active-malware-chart.tsx+++ /dev/null@@ -1,77 +0,0 @@-import { Card } from '@/components/ui/card';-import { ChartContainer, ChartTooltip, ChartTooltipContent } from '@/components/ui/chart';-import { PieChart, Pie, Cell, ResponsiveContainer } from 'recharts';--const chartData = [- { name: 'Beacon', value: 24.4, color: 'var(--chart-1)' },- { name: 'Mirai', value: 17.6, color: 'var(--chart-2)' },- { name: 'Android', value: 10.7, color: 'var(--chart-3)' },- { name: 'Trojan', value: 10.2, color: 'var(--chart-4)' },- { name: 'RAT', value: 8.1, color: 'var(--chart-5)' },- { name: 'Mozi', value: 6.8, color: 'var(--primary)' },- { name: 'APT29', value: 6.5, color: 'var(--accent)' },- { name: 'Emotet', value: 6.3, color: 'var(--muted-foreground)' },- { name: 'Linux', value: 4.9, color: 'var(--secondary)' },- { name: 'Qakbot', value: 4.5, color: 'var(--ring)' },-];--const chartConfig = {- value: {- label: 'Percentage',- },-};--export function ActiveMalwareChart() {- return (- <Card className="p-6">- <div className="mb-6">- <h3 className="text-lg font-semibold mb-2">Active Malware</h3>- </div>- <ChartContainer config={chartConfig} className="h-[450px]">- <PieChart>- <Pie- data={chartData}- cx="50%"- cy="50%"- innerRadius={60}- outerRadius={100}- paddingAngle={2}- dataKey="value"- >- {chartData.map((entry, index) => (- <Cell key={`cell-${index}`} fill={entry.color} />- ))}- </Pie>- <ChartTooltip- content={({ active, payload }) => {- if (active && payload && payload.length) {- const data = payload[0];- return (- <div className="bg-background border border-border rounded-lg px-3 py-2 shadow-lg">- <p className="font-medium">{data.payload.name}</p>- <p className="text-sm text-muted-foreground">- {data.value}%- </p>- </div>- );- }- return null;- }}- />- </PieChart>- </ChartContainer>- <div className="grid grid-cols-2 gap-2 mt-4 text-xs">- {chartData.map((item, index) => (- <div key={index} className="flex items-center gap-2">- <div- className="w-3 h-3 rounded-full"- style={{ backgroundColor: item.color }}- />- <span className="text-muted-foreground flex-1">{item.name}</span>- <span className="font-medium">{item.value}%</span>- </div>- ))}- </div>- </Card>- );-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/analysis-cards.tsx b/flowsint-app/src/renderer/src/components/dashboard/analysis-cards.tsxnew file mode 100644index 00000000..4d16f585--- /dev/null+++ b/flowsint-app/src/renderer/src/components/dashboard/analysis-cards.tsx@@ -0,0 +1,172 @@+import { useQuery } from "@tanstack/react-query";+import { analysisService } from "@/api/analysis-service";+import { Link } from "@tanstack/react-router";+import { Card, CardContent } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { Skeleton } from "@/components/ui/skeleton";+import { FileText, Plus, Clock } from "lucide-react";+import { formatDistanceToNow } from "date-fns";++interface AnalysisCardProps {+ analysis: any;+}++function AnalysisCard({ analysis }: AnalysisCardProps) {+ return (+ <Link+ to="/dashboard/investigations/$investigationId/$type/$id"+ params={{+ investigationId: analysis.investigation_id || "",+ type: "analysis",+ id: analysis.id+ }}+ className="block"+ >+ <Card className="hover:shadow-lg py-4 transition-all duration-200 cursor-pointer group border-2 hover:border-primary/20">+ <CardContent className="h-full flex flex-col">+ {/* Header with title and type */}+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3 flex-1 min-w-0">+ <div className="w-8 h-8 bg-green-100 dark:bg-green-900/20 rounded-lg flex items-center justify-center flex-shrink-0">+ <FileText className="w-4 h-4 text-green-600 dark:text-green-400" />+ </div>+ <div className="flex-1 min-w-0">+ <h3 className="font-semibold text-sm truncate group-hover:text-green-600 dark:group-hover:text-green-400 transition-colors">+ {analysis.title}+ </h3>+ <p className="text-xs text-muted-foreground">+ Analysis document+ </p>+ </div>+ </div>+ <Badge variant="secondary" className="text-xs flex-shrink-0 ml-2">+ Doc+ </Badge>+ </div>++ {/* Description */}+ <div className="flex-1 mb-3 min-w-0">+ <p className="text-xs text-muted-foreground line-clamp-2">+ {analysis.description || "No description available"}+ </p>+ </div>++ {/* Footer with timestamp */}+ <div className="mt-auto">+ <div className="flex items-center gap-2 text-xs text-muted-foreground">+ <Clock className="w-3 h-3" />+ <span>+ Updated {formatDistanceToNow(new Date(analysis.last_updated_at), { addSuffix: true })}+ </span>+ </div>+ </div>+ </CardContent>+ </Card>+ </Link>+ );+}++function AnalysisCardsSkeleton() {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Skeleton className="h-6 w-6" />+ <Skeleton className="h-6 w-48" />+ </div>+ <Skeleton className="h-8 w-24" />+ </div>+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {Array.from({ length: 8 }).map((_, i) => (+ <Card key={i} className="w-full">+ <CardContent className="p-4 h-full flex flex-col">+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3">+ <Skeleton className="w-8 h-8 rounded-lg" />+ <div className="flex-1">+ <Skeleton className="h-4 w-32 mb-1" />+ <Skeleton className="h-3 w-20" />+ </div>+ </div>+ <Skeleton className="h-5 w-8" />+ </div>+ <div className="flex-1 mb-3">+ <Skeleton className="h-3 w-full mb-1" />+ <Skeleton className="h-3 w-3/4" />+ </div>+ <div className="mt-auto">+ <Skeleton className="h-3 w-24" />+ </div>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ );+}++export function AnalysisCards() {+ const { data: analyses, isLoading } = useQuery({+ queryKey: ["analyses", "dashboard"],+ queryFn: analysisService.get,+ });++ if (isLoading) {+ return <AnalysisCardsSkeleton />;+ }++ if (!analyses || analyses.length === 0) {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <FileText className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Recent Analyses</h2>+ </div>+ <Button size="sm" variant="outline">+ <Plus className="w-4 h-4 mr-2" />+ New Analysis+ </Button>+ </div>+ <div className="text-center py-12">+ <FileText className="h-12 w-12 text-muted-foreground mx-auto mb-4" />+ <h3 className="text-lg font-semibold mb-2">No analyses yet</h3>+ <p className="text-muted-foreground mb-4">+ Create your first analysis to start documenting your findings.+ </p>+ <Button>+ <Plus className="w-4 h-4 mr-2" />+ Create Analysis+ </Button>+ </div>+ </div>+ );+ }++ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <FileText className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Recent Analyses</h2>+ <span className="text-sm text-muted-foreground">+ {analyses.length} analyses+ </span>+ </div>+ <div className="flex items-center gap-2">+ <Button size="sm" variant="outline">+ <Plus className="w-4 h-4 mr-2" />+ New Analysis+ </Button>+ </div>+ </div>++ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {analyses.slice(0, 8).map((analysis: any) => (+ <AnalysisCard key={analysis.id} analysis={analysis} />+ ))}+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/discover-section.tsx b/flowsint-app/src/renderer/src/components/dashboard/discover-section.tsxdeleted file mode 100644index 8f866eca..00000000--- a/flowsint-app/src/renderer/src/components/dashboard/discover-section.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { PlusCircle, Import, FileText } from 'lucide-react';-import { Card, CardHeader, CardTitle, CardContent } from '@/components/ui/card';--export function DiscoverSection() {- return (- <div className="w-full mt-2">- <h2 className="text-xl font-bold mb-1 text-foreground">Discover what you can do</h2>- <p className="text-muted-foreground mb-4">Explore the full potential of the platform with these quick actions.</p>- <div className="grid grid-cols-1 md:grid-cols-3 gap-6">- <Card className="border border-border/60 bg-card/90">- <CardHeader className="flex flex-row items-center gap-3 pb-2">- <div className="bg-muted rounded-lg p-2 flex items-center justify-center"><PlusCircle className="w-5 h-5 text-muted-foreground" /></div>- <CardTitle className="text-base">Start a new investigation</CardTitle>- </CardHeader>- <CardContent className="text-muted-foreground text-sm">Quickly create a new investigation to begin your work.</CardContent>- </Card>- <Card className="border border-border/60 bg-card/90">- <CardHeader className="flex flex-row items-center gap-3 pb-2">- <div className="bg-muted rounded-lg p-2 flex items-center justify-center"><Import className="w-5 h-5 text-muted-foreground" /></div>- <CardTitle className="text-base">Import data</CardTitle>- </CardHeader>- <CardContent className="text-muted-foreground text-sm">Import investigations or data from files to get started quickly.</CardContent>- </Card>- <Card className="border border-border/60 bg-card/90">- <CardHeader className="flex flex-row items-center gap-3 pb-2">- <div className="bg-muted rounded-lg p-2 flex items-center justify-center"><FileText className="w-5 h-5 text-muted-foreground" /></div>- <CardTitle className="text-base">Read documentation</CardTitle>- </CardHeader>- <CardContent className="text-muted-foreground text-sm">Learn how to use the platform and best practices.</CardContent>- </Card>- </div>- </div>- );-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/get-started-section.tsx b/flowsint-app/src/renderer/src/components/dashboard/get-started-section.tsxdeleted file mode 100644index a7a70914..00000000--- a/flowsint-app/src/renderer/src/components/dashboard/get-started-section.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { PlusCircle, Import } from 'lucide-react';-import NewInvestigation from '@/components/investigations/new-investigation';--export function GetStartedSection() {- return (- <div className="w-full flex flex-col gap-2">- <h2 className="text-xl font-bold mb-4 text-foreground">Get started</h2>- <div className="flex flex-col gap-0 divide-y divide-border rounded-xl overflow-hidden bg-card/80 border border-border">- {/* Action 1 */}- <NewInvestigation noDropDown>- <div className="flex flex-row items-center gap-4 px-6 py-5 hover:bg-accent/50 cursor-pointer transition-colors">- <div className="bg-muted rounded-lg p-3 flex items-center justify-center">- <PlusCircle className="w-4 h-4 text-muted-foreground" />- </div>- <div className="flex-1 flex flex-col">- <span className="font-semibold text-lg text-foreground">Start a new investigation</span>- <span className="text-muted-foreground text-sm">Quickly create and organize a new investigation.</span>- </div>- </div>- </NewInvestigation>- {/* Action 2 */}- <div className="flex flex-row items-center gap-4 px-6 py-5 hover:bg-accent/50 cursor-pointer transition-colors">- <div className="bg-muted rounded-lg p-3 flex items-center justify-center">- <Import className="w-4 h-4 text-muted-foreground" />- </div>- <div className="flex-1 flex flex-col">- <span className="font-semibold text-lg text-foreground">Import data</span>- <span className="text-muted-foreground text-sm">Easily import your existing investigations or data files.</span>- </div>- </div>- </div>- </div>- );-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/investigation-analyses.tsx b/flowsint-app/src/renderer/src/components/dashboard/investigation-analyses.tsxnew file mode 100644index 00000000..7d162aa3--- /dev/null+++ b/flowsint-app/src/renderer/src/components/dashboard/investigation-analyses.tsx@@ -0,0 +1,176 @@+import { useQuery } from "@tanstack/react-query";+import { analysisService } from "@/api/analysis-service";+import { Link } from "@tanstack/react-router";+import { Card, CardContent } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { Skeleton } from "@/components/ui/skeleton";+import { FileText, Plus, Clock } from "lucide-react";+import { formatDistanceToNow } from "date-fns";++interface InvestigationAnalysesProps {+ investigationId: string;+}++function AnalysisCard({ analysis, investigationId }: { analysis: any; investigationId: string }) {+ return (+ <Link+ to="/dashboard/investigations/$investigationId/$type/$id"+ params={{+ investigationId: investigationId,+ type: "analysis",+ id: analysis.id+ }}+ className="block"+ >+ <Card className="hover:shadow-lg py-4 transition-all duration-200 cursor-pointer group border-2 hover:border-primary/20">+ <CardContent className="h-full flex flex-col">+ {/* Header with title and type */}+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3 flex-1 min-w-0">+ <div className="w-8 h-8 bg-green-100 dark:bg-green-900/20 rounded-lg flex items-center justify-center flex-shrink-0">+ <FileText className="w-4 h-4 text-green-600 dark:text-green-400" />+ </div>+ <div className="flex-1 min-w-0">+ <h3 className="font-semibold text-sm truncate group-hover:text-green-600 dark:group-hover:text-green-400 transition-colors">+ {analysis.title}+ </h3>+ <p className="text-xs text-muted-foreground">+ Analysis document+ </p>+ </div>+ </div>+ <Badge variant="secondary" className="text-xs flex-shrink-0 ml-2">+ Doc+ </Badge>+ </div>++ {/* Description */}+ <div className="flex-1 mb-3 min-w-0">+ <p className="text-xs text-muted-foreground line-clamp-2">+ {analysis.description || "No description available"}+ </p>+ </div>++ {/* Footer with timestamp */}+ <div className="mt-auto">+ <div className="flex items-center gap-2 text-xs text-muted-foreground">+ <Clock className="w-3 h-3" />+ <span>+ Updated {formatDistanceToNow(new Date(analysis.last_updated_at), { addSuffix: true })}+ </span>+ </div>+ </div>+ </CardContent>+ </Card>+ </Link>+ );+}++function InvestigationAnalysesSkeleton() {+ return (+ <div className="space-y-4 @container">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Skeleton className="h-6 w-6" />+ <Skeleton className="h-6 w-48" />+ </div>+ <Skeleton className="h-8 w-24" />+ </div>+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {Array.from({ length: 8 }).map((_, i) => (+ <Card key={i} className="w-full">+ <CardContent className="p-4 h-full flex flex-col">+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3">+ <Skeleton className="w-8 h-8 rounded-lg" />+ <div className="flex-1">+ <Skeleton className="h-4 w-32 mb-1" />+ <Skeleton className="h-3 w-20" />+ </div>+ </div>+ <Skeleton className="h-5 w-8" />+ </div>+ <div className="flex-1 mb-3">+ <Skeleton className="h-3 w-full mb-1" />+ <Skeleton className="h-3 w-3/4" />+ </div>+ <div className="mt-auto">+ <Skeleton className="h-3 w-24" />+ </div>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ );+}++export function InvestigationAnalyses({ investigationId }: InvestigationAnalysesProps) {+ const { data: analyses, isLoading } = useQuery({+ queryKey: ["analyses", "investigation", investigationId],+ queryFn: () => analysisService.getByInvestigationId(investigationId),+ staleTime: 30000, // 30 seconds+ refetchOnWindowFocus: false,+ refetchOnMount: false,+ });++ if (isLoading) {+ return <InvestigationAnalysesSkeleton />;+ }++ if (!analyses || analyses.length === 0) {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <FileText className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Analyses</h2>+ </div>+ <Button size="sm" variant="outline">+ <Plus className="w-4 h-4 mr-2" />+ New Analysis+ </Button>+ </div>+ <div className="text-center py-12">+ <FileText className="h-12 w-12 text-muted-foreground mx-auto mb-4" />+ <h3 className="text-lg font-semibold mb-2">No analyses yet</h3>+ <p className="text-muted-foreground mb-4">+ Create your first analysis to start documenting your findings.+ </p>+ <Button>+ <Plus className="w-4 h-4 mr-2" />+ Create Analysis+ </Button>+ </div>+ </div>+ );+ }++ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <FileText className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Analyses</h2>+ <span className="text-sm text-muted-foreground">+ {analyses.length} analyses+ </span>+ </div>+ <div className="flex items-center gap-2">+ <Button size="sm" variant="outline">+ <Plus className="w-4 h-4 mr-2" />+ New Analysis+ </Button>++ </div>+ </div>++ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {analyses.slice(0, 8).map((analysis: any) => (+ <AnalysisCard key={analysis.id} analysis={analysis} investigationId={investigationId} />+ ))}+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsx b/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsxnew file mode 100644index 00000000..f05ed06e--- /dev/null+++ b/flowsint-app/src/renderer/src/components/dashboard/investigation-cards.tsx@@ -0,0 +1,187 @@+import { useQuery } from "@tanstack/react-query";+import { investigationService } from "@/api/investigation-service";+import { Link } from "@tanstack/react-router";+import { Card, CardContent } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { Skeleton } from "@/components/ui/skeleton";+import { FolderOpen, Plus, Clock, FileText, BarChart3 } from "lucide-react";+import { formatDistanceToNow } from "date-fns";+import NewInvestigation from "@/components/investigations/new-investigation";++interface InvestigationCardProps {+ investigation: any;+}++function InvestigationCard({ investigation }: InvestigationCardProps) {+ const sketchCount = investigation.sketches?.length || 0;+ const analysisCount = investigation.analyses?.length || 0;+ const totalItems = sketchCount + analysisCount;++ return (+ <Link+ to="/dashboard/investigations/$investigationId"+ params={{ investigationId: investigation.id }}+ className="block"+ >+ <Card className="hover:shadow-lg py-4 transition-all duration-200 cursor-pointer group border-2 hover:border-primary/20">+ <CardContent className="h-full flex flex-col">+ {/* Header with title and count */}+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3 flex-1 min-w-0">+ <div className="w-8 h-8 bg-primary/10 rounded-lg flex items-center justify-center flex-shrink-0">+ <FolderOpen className="w-4 h-4 text-primary" />+ </div>+ <div className="flex-1 min-w-0">+ <h3 className="font-semibold text-sm truncate group-hover:text-primary transition-colors">+ {investigation.name}+ </h3>+ <p className="text-xs text-muted-foreground">+ {totalItems} items+ </p>+ </div>+ </div>+ <Badge variant="secondary" className="text-xs flex-shrink-0 ml-2">+ {totalItems}+ </Badge>+ </div>++ {/* Stats row */}+ <div className="flex items-center gap-4 text-xs text-muted-foreground mb-3">+ <div className="flex items-center gap-1">+ <BarChart3 className="w-3 h-3" />+ <span>{sketchCount} graphs</span>+ </div>+ <div className="flex items-center gap-1">+ <FileText className="w-3 h-3" />+ <span>{analysisCount} docs</span>+ </div>+ </div>++ {/* Footer with timestamp */}+ <div className="mt-auto">+ <div className="flex items-center gap-2 text-xs text-muted-foreground">+ <Clock className="w-3 h-3" />+ <span>+ Updated {formatDistanceToNow(new Date(investigation.last_updated_at), { addSuffix: true })}+ </span>+ </div>+ </div>+ </CardContent>+ </Card>+ </Link>+ );+}++function InvestigationCardsSkeleton() {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Skeleton className="h-6 w-6" />+ <Skeleton className="h-6 w-48" />+ </div>+ <Skeleton className="h-8 w-24" />+ </div>+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {Array.from({ length: 8 }).map((_, i) => (+ <Card key={i} className="w-full">+ <CardContent className="p-4 h-full flex flex-col">+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3">+ <Skeleton className="w-8 h-8 rounded-lg" />+ <div className="flex-1">+ <Skeleton className="h-4 w-32 mb-1" />+ <Skeleton className="h-3 w-16" />+ </div>+ </div>+ <Skeleton className="h-5 w-8" />+ </div>+ <div className="flex gap-4 mb-3">+ <Skeleton className="h-3 w-16" />+ <Skeleton className="h-3 w-16" />+ </div>+ <div className="mt-auto">+ <Skeleton className="h-3 w-24" />+ </div>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ );+}++export function InvestigationCards() {+ const { data: investigations, isLoading } = useQuery({+ queryKey: ["investigations", "dashboard"],+ queryFn: investigationService.get,+ staleTime: 30000, // 30 seconds+ refetchOnWindowFocus: false,+ refetchOnMount: false,+ });++ if (isLoading) {+ return <InvestigationCardsSkeleton />;+ }++ if (!investigations || investigations.length === 0) {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <FolderOpen className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Investigations</h2>+ </div>+ <NewInvestigation noDropDown>+ <Button size="sm">+ <Plus className="w-4 h-4 mr-2" />+ New Investigation+ </Button>+ </NewInvestigation>+ </div>+ <div className="text-center py-12">+ <FolderOpen className="h-12 w-12 text-muted-foreground mx-auto mb-4" />+ <h3 className="text-lg font-semibold mb-2">No investigations yet</h3>+ <p className="text-muted-foreground mb-4">+ Create your first investigation to start organizing your data.+ </p>+ <NewInvestigation noDropDown>+ <Button>+ <Plus className="w-4 h-4 mr-2" />+ Create Investigation+ </Button>+ </NewInvestigation>+ </div>+ </div>+ );+ }++ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <FolderOpen className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Investigations</h2>+ <span className="text-sm text-muted-foreground">+ {investigations.length} investigations+ </span>+ </div>+ <div className="flex items-center gap-2">+ <NewInvestigation noDropDown>+ <Button size="sm">+ <Plus className="w-4 h-4 mr-2" />+ New Investigation+ </Button>+ </NewInvestigation>+ </div>+ </div>++ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {investigations.slice(0, 8).map((investigation: any) => (+ <InvestigationCard key={investigation.id} investigation={investigation} />+ ))}+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/investigation-skeleton.tsx b/flowsint-app/src/renderer/src/components/dashboard/investigation-skeleton.tsxindex 241df65e..2f805c80 100644--- a/flowsint-app/src/renderer/src/components/dashboard/investigation-skeleton.tsx+++ b/flowsint-app/src/renderer/src/components/dashboard/investigation-skeleton.tsx@@ -4,14 +4,14 @@ import { Card, CardContent, CardHeader } from '@/components/ui/card'export function InvestigationSkeleton() {return (<div className="h-full w-full px-4 py-12 bg-background overflow-auto">- <div className='max-w-4xl mx-auto flex flex-col gap-12 items-center justify-start'>+ <div className='max-w-4xl mx-auto flex flex-col gap-12 items-center justify-start' style={{ containerType: 'inline-size' }}>{/* Recent Investigations Skeleton */}<div className="w-full space-y-4"><div className="flex items-center justify-between"><Skeleton className="h-7 w-48" /><Skeleton className="h-9 w-28" /></div>- <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">{[...Array(2)].map((_, i) => (<Card key={i} className="p-4"><div className="space-y-3">@@ -34,7 +34,7 @@ export function InvestigationSkeleton() {{/* Get Started Section Skeleton */}<div className="w-full space-y-4"><Skeleton className="h-7 w-48" />- <div className="grid grid-cols-1 md:grid-cols-3 gap-4">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">{[...Array(3)].map((_, i) => (<Card key={i}><CardHeader className="flex flex-row items-center gap-3 pb-2">@@ -53,7 +53,7 @@ export function InvestigationSkeleton() {{/* Discover Section Skeleton */}<div className="w-full space-y-4"><Skeleton className="h-7 w-48" />- <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">{[...Array(2)].map((_, i) => (<Card key={i}><CardHeader className="flex flex-row items-center gap-3 pb-2">@@ -72,7 +72,7 @@ export function InvestigationSkeleton() {{/* Useful Resources Skeleton */}<div className="w-full space-y-4"><Skeleton className="h-7 w-48" />- <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">{[...Array(2)].map((_, i) => (<Card key={i}><CardHeader className="flex flex-row items-center gap-3 pb-2">diff --git a/flowsint-app/src/renderer/src/components/dashboard/investigation-sketches.tsx b/flowsint-app/src/renderer/src/components/dashboard/investigation-sketches.tsxnew file mode 100644index 00000000..a951851e--- /dev/null+++ b/flowsint-app/src/renderer/src/components/dashboard/investigation-sketches.tsx@@ -0,0 +1,186 @@+import { useQuery } from "@tanstack/react-query";+import { investigationService } from "@/api/investigation-service";+import { Link } from "@tanstack/react-router";+import { Card, CardContent } from "@/components/ui/card";+import { Button } from "@/components/ui/button";+import { Badge } from "@/components/ui/badge";+import { Skeleton } from "@/components/ui/skeleton";+import { BarChart3, Plus, Clock } from "lucide-react";+import { formatDistanceToNow } from "date-fns";+import NewSketch from "@/components/graphs/new-sketch";++interface InvestigationSketchesProps {+ investigationId: string;+ title: string+}++function SketchCard({ sketch, investigationId }: { sketch: any; investigationId: string }) {+ return (+ <Link+ to="/dashboard/investigations/$investigationId/$type/$id"+ params={{+ investigationId: investigationId,+ type: "graph",+ id: sketch.id+ }}+ className="block"+ >+ <Card className="hover:shadow-lg py-4 transition-all duration-200 cursor-pointer group border-2 hover:border-primary/20">+ <CardContent className="h-full flex flex-col">+ {/* Header with title and type */}+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3 flex-1 min-w-0">+ <div className="w-8 h-8 bg-blue-100 dark:bg-blue-900/20 rounded-lg flex items-center justify-center flex-shrink-0">+ <BarChart3 className="w-4 h-4 text-blue-600 dark:text-blue-400" />+ </div>+ <div className="flex-1 min-w-0">+ <h3 className="font-semibold text-sm truncate group-hover:text-blue-600 dark:group-hover:text-blue-400 transition-colors">+ {sketch.title}+ </h3>+ <p className="text-xs text-muted-foreground">+ Graph sketch+ </p>+ </div>+ </div>+ <Badge variant="secondary" className="text-xs flex-shrink-0 ml-2">+ Graph+ </Badge>+ </div>++ {/* Description */}+ <div className="flex-1 mb-3 min-w-0">+ <p className="text-xs text-muted-foreground line-clamp-2">+ {sketch.description || "No description available"}+ </p>+ </div>++ {/* Footer with timestamp */}+ <div className="mt-auto">+ <div className="flex items-center gap-2 text-xs text-muted-foreground">+ <Clock className="w-3 h-3" />+ <span>+ Updated {formatDistanceToNow(new Date(sketch.last_updated_at), { addSuffix: true })}+ </span>+ </div>+ </div>+ </CardContent>+ </Card>+ </Link>+ );+}++function InvestigationSketchesSkeleton() {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <Skeleton className="h-6 w-6" />+ <Skeleton className="h-6 w-48" />+ </div>+ <Skeleton className="h-8 w-24" />+ </div>+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {Array.from({ length: 8 }).map((_, i) => (+ <Card key={i} className="w-full">+ <CardContent className="p-4 h-full flex flex-col">+ <div className="flex items-start justify-between mb-3">+ <div className="flex items-center gap-3">+ <Skeleton className="w-8 h-8 rounded-lg" />+ <div className="flex-1">+ <Skeleton className="h-4 w-32 mb-1" />+ <Skeleton className="h-3 w-20" />+ </div>+ </div>+ <Skeleton className="h-5 w-8" />+ </div>+ <div className="flex-1 mb-3">+ <Skeleton className="h-3 w-full mb-1" />+ <Skeleton className="h-3 w-3/4" />+ </div>+ <div className="mt-auto">+ <Skeleton className="h-3 w-24" />+ </div>+ </CardContent>+ </Card>+ ))}+ </div>+ </div>+ );+}++export function InvestigationSketches({ investigationId, title }: InvestigationSketchesProps) {+ const { data: investigation, isLoading } = useQuery({+ queryKey: ["investigation", "sketches", investigationId],+ queryFn: () => investigationService.getById(investigationId),+ staleTime: 30000, // 30 seconds+ refetchOnWindowFocus: false,+ refetchOnMount: false,+ });++ if (isLoading) {+ return <InvestigationSketchesSkeleton />;+ }++ const sketches = investigation?.sketches || [];++ if (sketches.length === 0) {+ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <BarChart3 className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">Sketches</h2>+ </div>+ <NewSketch noDropDown>+ <Button size="sm">+ <Plus className="w-4 h-4 mr-2" />+ New Sketch+ </Button>+ </NewSketch>+ </div>+ <div className="text-center py-12">+ <BarChart3 className="h-12 w-12 text-muted-foreground mx-auto mb-4" />+ <h3 className="text-lg font-semibold mb-2">No sketches yet</h3>+ <p className="text-muted-foreground mb-4">+ Create your first sketch to start visualizing your investigation data.+ </p>+ <NewSketch noDropDown>+ <Button>+ <Plus className="w-4 h-4 mr-2" />+ Create Sketch+ </Button>+ </NewSketch>+ </div>+ </div>+ );+ }++ return (+ <div className="space-y-4">+ <div className="flex items-center justify-between">+ <div className="flex items-center gap-2">+ <BarChart3 className="h-6 w-6 text-muted-foreground" />+ <h2 className="text-xl font-semibold">{title}</h2>+ <span className="text-sm text-muted-foreground">+ {sketches.length} sketches+ </span>+ </div>+ <div className="flex items-center gap-2">+ <NewSketch noDropDown>+ <Button size="sm">+ <Plus className="w-4 h-4 mr-2" />+ New Sketch+ </Button>+ </NewSketch>++ </div>+ </div>++ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {sketches.slice(0, 8).map((sketch: any) => (+ <SketchCard key={sketch.id} sketch={sketch} investigationId={investigationId} />+ ))}+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/metrics-card.tsx b/flowsint-app/src/renderer/src/components/dashboard/metrics-card.tsxdeleted file mode 100644index 5e1f6721..00000000--- a/flowsint-app/src/renderer/src/components/dashboard/metrics-card.tsx+++ /dev/null@@ -1,57 +0,0 @@-import { Card } from '@/components/ui/card';-import { TrendingUp, TrendingDown, Database, Network, FileText } from 'lucide-react';-import { cn } from '@/lib/utils';--interface MetricsCardProps {- title: string;- value: string;- trend: {- value: number;- period: string;- isPositive: boolean;- };- type: 'entities' | 'relationships' | 'reports';-}--const iconMap = {- entities: Database,- relationships: Network,- reports: FileText,-};--const colorMap = {- entities: 'text-chart-1',- relationships: 'text-chart-2',- reports: 'text-chart-3',-};--export function MetricsCard({ title, value, trend, type }: MetricsCardProps) {- const Icon = iconMap[type];- const TrendIcon = trend.isPositive ? TrendingUp : TrendingDown;-- return (- <Card className="p-6 hover:shadow-md transition-shadow">- <div className="flex items-center justify-between">- <div className="flex items-center gap-3">- <div className="p-2 rounded-lg bg-muted/50">- <Icon className={cn("w-5 h-5", colorMap[type])} />- </div>- <div>- <p className="text-sm text-muted-foreground mb-1">{title}</p>- <p className="text-3xl font-bold">{value}</p>- </div>- </div>- <div className="text-right">- <div className={cn(- "flex items-center gap-1 text-sm font-medium",- trend.isPositive ? "text-green-500" : "text-red-500"- )}>- <TrendIcon className="w-4 h-4" />- {trend.value.toLocaleString()}- </div>- <p className="text-xs text-muted-foreground">{trend.period}</p>- </div>- </div>- </Card>- );-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/targeted-sectors-chart.tsx b/flowsint-app/src/renderer/src/components/dashboard/targeted-sectors-chart.tsxdeleted file mode 100644index 59ce3e10..00000000--- a/flowsint-app/src/renderer/src/components/dashboard/targeted-sectors-chart.tsx+++ /dev/null@@ -1,114 +0,0 @@-import { Card } from '@/components/ui/card';-import { ChartContainer, ChartTooltip, ChartTooltipContent } from '@/components/ui/chart';-import { LineChart, Line, XAxis, YAxis, ResponsiveContainer, Legend } from 'recharts';--const chartData = [- { date: 'Sep 7, 2023', government: 40, finance: 30, manufacturing: 25, telecommunications: 35, defense: 20 },- { date: 'Sep 14, 2023', government: 80, finance: 65, manufacturing: 45, telecommunications: 55, defense: 40 },- { date: 'Sep 21, 2023', government: 165, finance: 90, manufacturing: 85, telecommunications: 75, defense: 60 },- { date: 'Sep 28, 2023', government: 45, finance: 35, manufacturing: 40, telecommunications: 30, defense: 25 },- { date: 'Oct 5, 2023', government: 85, finance: 55, manufacturing: 60, telecommunications: 45, defense: 35 },- { date: 'Oct 12, 2023', government: 35, finance: 25, manufacturing: 30, telecommunications: 20, defense: 15 },-];--const chartConfig = {- government: {- label: 'Government and administration',- color: 'var(--chart-1)',- },- finance: {- label: 'Finance',- color: 'var(--chart-2)',- },- manufacturing: {- label: 'Manufacturing',- color: 'var(--chart-3)',- },- telecommunications: {- label: 'Telecommunications',- color: 'var(--chart-4)',- },- defense: {- label: 'Defense',- color: 'var(--chart-5)',- },-};--export function TargetedSectorsChart() {- return (- <Card className="p-6">- <div className="mb-6">- <h3 className="text-lg font-semibold mb-2">Targeted Sectors</h3>- </div>- <ChartContainer config={chartConfig} className="h-[450px]">- <LineChart data={chartData}>- <XAxis- dataKey="date"- tickLine={false}- axisLine={false}- className="text-xs"- tick={{ fontSize: 12 }}- />- <YAxis- tickLine={false}- axisLine={false}- className="text-xs"- tick={{ fontSize: 12 }}- />- <ChartTooltip content={<ChartTooltipContent />} />- <Line- type="monotone"- dataKey="government"- stroke="var(--color-government)"- strokeWidth={2}- dot={{ r: 4 }}- activeDot={{ r: 6 }}- />- <Line- type="monotone"- dataKey="finance"- stroke="var(--color-finance)"- strokeWidth={2}- dot={{ r: 4 }}- activeDot={{ r: 6 }}- />- <Line- type="monotone"- dataKey="manufacturing"- stroke="var(--color-manufacturing)"- strokeWidth={2}- dot={{ r: 4 }}- activeDot={{ r: 6 }}- />- <Line- type="monotone"- dataKey="telecommunications"- stroke="var(--color-telecommunications)"- strokeWidth={2}- dot={{ r: 4 }}- activeDot={{ r: 6 }}- />- <Line- type="monotone"- dataKey="defense"- stroke="var(--color-defense)"- strokeWidth={2}- dot={{ r: 4 }}- activeDot={{ r: 6 }}- />- </LineChart>- </ChartContainer>- <div className="flex flex-wrap gap-4 mt-4 text-xs">- {Object.entries(chartConfig).map(([key, config]) => (- <div key={key} className="flex items-center gap-2">- <div- className="w-3 h-0.5 rounded-full"- style={{ backgroundColor: config.color }}- />- <span className="text-muted-foreground">{config.label}</span>- </div>- ))}- </div>- </Card>- );-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/dashboard/useful-resources.tsx b/flowsint-app/src/renderer/src/components/dashboard/useful-resources.tsxdeleted file mode 100644index 558360a2..00000000--- a/flowsint-app/src/renderer/src/components/dashboard/useful-resources.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { FileText, Users } from 'lucide-react';-import { Button } from '@/components/ui/button';-import { Card, CardHeader, CardTitle, CardDescription, CardContent } from '@/components/ui/card';--export function UsefulResources() {- return (- <div className="w-full mt-10">- <h3 className="text-lg font-semibold mb-2">Useful Resources</h3>- <div className="flex flex-col gap-4">- <Card className='gap-3 grow'>- <CardHeader>- <CardTitle>API Reference</CardTitle>- <CardDescription>Explore the API for integrations and automation.</CardDescription>- </CardHeader>- <CardContent>- <Button asChild variant="ghost" size="sm">- <a href="https://api.yourproject.com" target="_blank" rel="noopener noreferrer">- <FileText className="w-4 h-4 mr-2" />- API Docs- </a>- </Button>- </CardContent>- </Card>- <Card className='gap-3 grow'>- <CardHeader>- <CardTitle>Community & Support</CardTitle>- <CardDescription>Get help or connect with other users.</CardDescription>- </CardHeader>- <CardContent>- <Button asChild variant="ghost" size="sm">- <a href="https://community.yourproject.com" target="_blank" rel="noopener noreferrer">- <Users className="w-4 h-4 mr-2" />- Community- </a>- </Button>- </CardContent>- </Card>- </div>- </div>- );-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/wall/custom/context-menu.tsx b/flowsint-app/src/renderer/src/components/graphs/context-menu.tsxsimilarity index 97%rename from flowsint-app/src/renderer/src/components/graphs/wall/custom/context-menu.tsxrename to flowsint-app/src/renderer/src/components/graphs/context-menu.tsxindex 46af4b18..993ee05e 100644--- a/flowsint-app/src/renderer/src/components/graphs/wall/custom/context-menu.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/context-menu.tsx@@ -10,15 +10,17 @@ import { GraphNode } from '@/stores/graph-store';import { useLaunchTransform } from '@/hooks/use-launch-transform';import { useParams } from '@tanstack/react-router';import { capitalizeFirstLetter, cn } from '@/lib/utils';-import NodeActions from '../../node-actions';+import NodeActions from '@/components/graphs/node-actions';import BaseContextMenu from '@/components/xyflow/context-menu';interface GraphContextMenuProps {node: GraphNode;- top: number;- left: number;- right: number;- bottom: number;+ top?: number;+ left?: number;+ right?: number;+ bottom?: number;+ rawTop?: number;+ rawLeft?: number;wrapperWidth: number;wrapperHeight: number;onEdit?: () => void;diff --git a/flowsint-app/src/renderer/src/components/graphs/create-relation.tsx b/flowsint-app/src/renderer/src/components/graphs/create-relation.tsxindex e8da95fc..ee4debb6 100644--- a/flowsint-app/src/renderer/src/components/graphs/create-relation.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/create-relation.tsx@@ -25,7 +25,7 @@ export function CreateRelationDialog() {const newEdge = {source: selectedNodes[0],target: selectedNodes[1],- type: direction,+ type: "custom",label: relationType,sketch_id: sketchId}diff --git a/flowsint-app/src/renderer/src/components/graphs/details-panel.tsx b/flowsint-app/src/renderer/src/components/graphs/details-panel.tsxindex d66a81db..7e0ae785 100644--- a/flowsint-app/src/renderer/src/components/graphs/details-panel.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/details-panel.tsx@@ -1,19 +1,39 @@import { memo } from "react"import { cn } from "@/lib/utils"import { CopyButton } from "@/components/copy"-import { Check, Rocket, X } from "lucide-react"+import { Check, Rocket, X, MousePointer } from "lucide-react"import LaunchTransform from "./launch-transform"import NodeActions from "./node-actions"import { GraphNode } from "@/stores/graph-store"import { Button } from "../ui/button"import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../ui/tooltip"+import { useIcon } from "@/hooks/use-icon"+import { useParams } from "@tanstack/react-router"+import NeighborsGraph from "./neighbors"-export default function DetailsPanel({ node }: { node: GraphNode }) {+export default function DetailsPanel({ node }: { node: GraphNode | null }) {+ const { id: sketchId } = useParams({ strict: false })+ if (!node) {+ return (+ <div className="flex flex-col items-center justify-center h-full text-center p-8">+ <div className="w-16 h-16 bg-muted rounded-full flex items-center justify-center mb-4">+ <MousePointer className="h-8 w-8 text-muted-foreground" />+ </div>+ <h3 className="text-lg font-semibold text-foreground mb-2">+ No Node Selected+ </h3>+ <p className="text-sm text-muted-foreground max-w-xs">+ Click on any node in the graph to view its details and properties+ </p>+ </div>+ )+ }return (- <div className="overflow-y-auto overflow-x-hidden w-full min-w-0 h-full min-h-0">- <div className="flex items-center sticky w-full bg-card top-0 border-b justify-start px-4 py-2 gap-2 z-50">- <h1 className="text-md font-semibold truncate">{node.data?.label}</h1>+ <div className="overflow-y-auto bg-card overflow-x-hidden w-full min-w-0 h-full min-h-0">+ <ItemHero node={node} />+ <div className="flex items-center sticky w-full top-0 border-b justify-start px-4 py-2 gap-2 z-50">+ <p className="text-md font-semibold truncate">{node.data?.label}</p><div className="grow" /><div className="flex items-center"><TooltipProvider>@@ -48,6 +68,9 @@ export default function DetailsPanel({ node }: { node: GraphNode }) {</div>)}<KeyValueDisplay data={node.data} />+ <div className="h-[340px] p-3">+ <NeighborsGraph sketchId={sketchId as string} nodeId={node.id} />+ </div></div>)}@@ -101,3 +124,16 @@ function KeyValueDisplay({ data, className }: KeyValueDisplayProps) {}export const MemoizedKeyValueDisplay = memo(KeyValueDisplay)++const ItemHero = ({ node }: { node: GraphNode }) => {+ const ItemIcon = useIcon(node.data.type, node.data.src)+ return (+ <div className="flex bg-card border-b items-center w-full justify-between p-4 gap-4">+ <div className="truncate">+ <p className="text-xl font-semibold truncate text-ellipsis">{node.data.label}</p>+ <p className="text-sm font-normal opacity-60 truncate text-ellipsis">{node.data.type}</p>+ </div>+ <ItemIcon size={70} />+ </div>+ )+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/draggable-item.tsx b/flowsint-app/src/renderer/src/components/graphs/draggable-item.tsxindex 3bfc87b1..59c66c4a 100644--- a/flowsint-app/src/renderer/src/components/graphs/draggable-item.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/draggable-item.tsx@@ -68,8 +68,8 @@ export const DraggableItem = memo(function DraggableItem({)}style={{ borderLeftColor: colorStr }}>- <div className="flex justify-center items-center w-8 h-8 rounded-md bg-background border">- <IconComponent size={16} color="#6b7280" type={type} />+ <div>+ <IconComponent showBorder size={16} type={type} /></div><div className="w-full p-1 text-left flex-1 min-w-0"><h3 className="text-sm font-medium truncate w-full">{label}</h3>diff --git a/flowsint-app/src/renderer/src/components/graphs/dynamic-form.tsx b/flowsint-app/src/renderer/src/components/graphs/dynamic-form.tsxindex ce9eae89..6d718dc0 100644--- a/flowsint-app/src/renderer/src/components/graphs/dynamic-form.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/dynamic-form.tsx@@ -40,7 +40,7 @@ export function DynamicForm({ currentNodeType, initialData = {}, onSubmit, isForschemaMap[field.name] = field.required? z.string()- .min(1, { message: `${field.label} est requis` })+ .min(1, { message: `${field.label} is required` }).email({ message: "Email invalide" }): z.string().email({ message: "Email invalide" }).optional()break@@ -48,7 +48,7 @@ export function DynamicForm({ currentNodeType, initialData = {}, onSubmit, isForschemaMap[field.name] = field.required? z.string()- .min(1, { message: `${field.label} est requis` })+ .min(1, { message: `${field.label} is required` }).url({ message: "URL invalide" }): z.string().url({ message: "URL invalide" }).optional()break@@ -56,7 +56,7 @@ export function DynamicForm({ currentNodeType, initialData = {}, onSubmit, isForschemaMap[field.name] = field.required? z.string()- .min(1, { message: `${field.label} est requis` })+ .min(1, { message: `${field.label} is required` }).refine((val) => !isNaN(Number(val)), {message: "Doit être un nombre valide",})@@ -73,7 +73,7 @@ export function DynamicForm({ currentNodeType, initialData = {}, onSubmit, isForschemaMap[field.name] = field.required? z.string()- .min(1, { message: `${field.label} est requis` })+ .min(1, { message: `${field.label} is required` }).refine((val) => validValues.includes(val), {message: "Valeur non valide",})@@ -85,13 +85,13 @@ export function DynamicForm({ currentNodeType, initialData = {}, onSubmit, isFor.optional()} else {schemaMap[field.name] = field.required- ? z.string().min(1, { message: `${field.label} est requis` })+ ? z.string().min(1, { message: `${field.label} is required` }): z.string().optional()}breakcase "date":schemaMap[field.name] = field.required- ? z.string().min(1, { message: `${field.label} est requis` })+ ? z.string().min(1, { message: `${field.label} is required` }): z.string().optional()breakcase "hidden":@@ -99,19 +99,19 @@ export function DynamicForm({ currentNodeType, initialData = {}, onSubmit, isForbreakcase "textarea":schemaMap[field.name] = field.required- ? z.string().min(1, { message: `${field.label} est requis` })+ ? z.string().min(1, { message: `${field.label} is required` }): z.string().optional()breakcase "metadata":schemaMap[field.name] = field.required? z.record(z.string(), z.string()).refine((val) => Object.keys(val).length > 0, {- message: "Au moins une métadonnée est requise",+ message: "Au moins une métadonnée is requirede",}): z.record(z.string(), z.string()).optional()breakdefault:schemaMap[field.name] = field.required- ? z.string().min(1, { message: `${field.label} est requis` })+ ? z.string().min(1, { message: `${field.label} is required` }): z.string().optional()}})diff --git a/flowsint-app/src/renderer/src/components/graphs/empty-state.tsx b/flowsint-app/src/renderer/src/components/graphs/empty-state.tsxindex 91faf1c1..200101db 100644--- a/flowsint-app/src/renderer/src/components/graphs/empty-state.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/empty-state.tsx@@ -78,7 +78,7 @@ const EmptyState = memo(() => {className="h-10 px-6 font-medium shadow-lg hover:shadow-xl transition-all duration-200 hover:scale-105"size="default">- <PlusIcon className="w-4 h-4 mr-2" />+ <PlusIcon className="w-4 h-4" />Add your first item</Button><p className="text-xs text-muted-foreground">diff --git a/flowsint-app/src/renderer/src/components/graphs/force-controls.tsx b/flowsint-app/src/renderer/src/components/graphs/force-controls.tsxnew file mode 100644index 00000000..b3feb81f--- /dev/null+++ b/flowsint-app/src/renderer/src/components/graphs/force-controls.tsx@@ -0,0 +1,100 @@+import { useGraphSettingsStore } from '@/stores/graph-settings-store';+import { Popover, PopoverContent, PopoverTrigger } from '../ui/popover';+import { Slider } from '../ui/slider';+import { Label } from '../ui/label';+import { Zap, Move, Target } from 'lucide-react';+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '../ui/select';+import { useCallback } from 'react';++const ForceControls = ({ children }: { children: React.ReactNode }) => {+ const settings = useGraphSettingsStore(s => s.settings);+ const currentPreset = useGraphSettingsStore(s => s.currentPreset);+ const updateSetting = useGraphSettingsStore(s => s.updateSetting);+ const applyPreset = useGraphSettingsStore(s => s.applyPreset);+ const getPresets = useGraphSettingsStore(s => s.getPresets);+ const setSettingsModalOpen = useGraphSettingsStore(s => s.setSettingsModalOpen)++ const handleOpenSettingsModal = useCallback(() => {+ setSettingsModalOpen(true)+ }, [setSettingsModalOpen])++ const quickControls = [+ {+ key: 'chargeStrength',+ label: 'Repulsion',+ icon: <Zap className="w-3 h-3" />,+ },+ {+ key: 'linkStrength',+ label: 'Link Force',+ icon: <Move className="w-3 h-3" />,+ },+ {+ key: 'd3VelocityDecay',+ label: 'Friction',+ icon: <Target className="w-3 h-3" />,+ }+ ];++ const presets = getPresets();++ return (+ <Popover>+ <PopoverTrigger asChild>+ <div>+ {children}+ </div>+ </PopoverTrigger>+ <PopoverContent className="w-72" align="start">+ <div className="space-y-4">+ <div className="text-sm font-medium text-foreground">Force Presets</div>+ <Select value={currentPreset || ""} onValueChange={applyPreset}>+ <SelectTrigger className="w-full">+ <SelectValue placeholder="Choose a preset..." />+ </SelectTrigger>+ <SelectContent>+ {Object.keys(presets).map((presetName) => (+ <SelectItem key={presetName} value={presetName}>+ {presetName}+ </SelectItem>+ ))}+ </SelectContent>+ </Select>++ <div className="border-t pt-4">+ <div className="text-sm font-medium text-foreground mb-3">Quick Controls</div>+ {quickControls.map(({ key, label, icon }) => {+ const setting = settings[key];+ if (!setting) return null;++ return (+ <div key={key} className="space-y-2 mb-4">+ <div className="flex items-center gap-2">+ {icon}+ <Label className="text-xs font-medium flex-1">+ {label} ({setting.value})+ </Label>+ </div>+ <Slider+ value={[setting.value]}+ onValueChange={(values) => updateSetting(key, values[0])}+ min={setting.min}+ max={setting.max}+ step={setting.step}+ className="w-full"+ />+ </div>+ );+ })}+ </div>++ <div className="text-right pt-3 border-t">+ <button className='text-primary text-sm underline' onClick={handleOpenSettingsModal}> More settings</button>+ </div>+ </div>+ </PopoverContent>+ </Popover>+ );+};++export default ForceControls;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/force-graph-viewer.tsx b/flowsint-app/src/renderer/src/components/graphs/force-graph-viewer.tsxdeleted file mode 100644index 778f7072..00000000--- a/flowsint-app/src/renderer/src/components/graphs/force-graph-viewer.tsx+++ /dev/null@@ -1,289 +0,0 @@-import { ItemType, useNodesDisplaySettings } from '@/stores/node-display-settings';-import React, { useCallback, useMemo, useEffect, useState, useRef } from 'react';-import ForceGraph2D from 'react-force-graph-2d';--export interface GraphNode {- id: string;- data?: {- type?: string;- label?: string;- };- label?: string;- position?: { x: number; y: number };-}--export interface GraphEdge {- id: string;- source: string;- target: string;- label?: string;-}--interface ForceGraphViewerProps {- nodes: GraphNode[];- edges: GraphEdge[];- width?: number;- height?: number;- nodeColors?: Record<string, string>;- nodeSizes?: Record<string, number>;- onNodeClick?: (node: GraphNode) => void;- onNodeRightClick?: (node: GraphNode, event: MouseEvent) => void;- onBackgroundClick?: () => void;- showLabels?: boolean;- showIcons?: boolean;- backgroundColor?: string;- className?: string;- style?: React.CSSProperties;- onGraphRef?: (ref: any) => void;-}--const NODE_COUNT_THRESHOLD = 500;--const ForceGraphViewer: React.FC<ForceGraphViewerProps> = ({- nodes,- edges,- width,- height,- onNodeClick,- onNodeRightClick,- onBackgroundClick,- showLabels = true,- showIcons = true,- backgroundColor = 'transparent',- className = '',- style,- onGraphRef-}) => {- const [currentZoom, setCurrentZoom] = useState(1);- const [dimensions, setDimensions] = useState({ width: 0, height: 0 });- const nodeColors = useNodesDisplaySettings(s => s.colors)- const getSize = useNodesDisplaySettings(s => s.getSize);- // Call onGraphRef when graphRef changes- useEffect(() => {- if (onGraphRef && graphRef.current) {- onGraphRef(graphRef.current);- }- }, [onGraphRef]);- const containerRef = useRef<HTMLDivElement>(null);- const graphRef = useRef<any>();-- const shouldUseSimpleRendering = useMemo(() => {- return nodes.length > NODE_COUNT_THRESHOLD || currentZoom < 2.5;- }, [nodes.length, currentZoom]);-- // Transform data for Force Graph- const graphData = useMemo(() => {- const transformedNodes = nodes.map(node => {- const type = node.data?.type as ItemType;- const color = nodeColors[type] || '#0074D9';- const size = getSize(type);- let nodeLabel = node.data?.label || node.label || node.id;-- return {- ...node,- nodeLabel: nodeLabel,- nodeColor: color,- nodeSize: size,- nodeType: type,- val: size,- };- });-- const edgeGroups = new Map();- edges.forEach(edge => {- const key = `${edge.source}-${edge.target}`;- if (!edgeGroups.has(key)) {- edgeGroups.set(key, []);- }- edgeGroups.get(key).push(edge);- });-- const transformedEdges = edges.map((edge) => {- const key = `${edge.source}-${edge.target}`;- const group = edgeGroups.get(key);- const groupIndex = group.indexOf(edge);- const groupSize = group.length;- const curve = groupSize > 1 ? (groupIndex - (groupSize - 1) / 2) * 0.2 : 0;-- return {- ...edge,- edgeLabel: edge.label,- curve: curve,- groupIndex: groupIndex,- groupSize: groupSize- };- });-- return {- nodes: transformedNodes,- links: transformedEdges,- };- }, [nodes, edges, nodeColors, getSize]);-- const handleNodeClick = useCallback((node: any) => {- if (onNodeClick) {- onNodeClick(node);- }- }, [onNodeClick]);-- const handleNodeRightClick = useCallback((node: any, event: MouseEvent) => {- if (onNodeRightClick) {- onNodeRightClick(node, event);- }- }, [onNodeRightClick]);-- const handleBackgroundClick = useCallback(() => {- if (onBackgroundClick) {- onBackgroundClick();- }- }, [onBackgroundClick]);-- const renderNode = useCallback((node: any, ctx: CanvasRenderingContext2D, globalScale: number) => {- const size = node.nodeSize;- const type = node.nodeType;-- if (shouldUseSimpleRendering) {- // Simple circle rendering for large node counts- ctx.beginPath();- ctx.arc(node.x, node.y, size * 0.65, 0, 2 * Math.PI);- ctx.fillStyle = node.nodeColor;- ctx.fill();- } else {- // Full rendering with icon and label- ctx.beginPath();- ctx.fillStyle = node.nodeColor;- ctx.fill();-- if (showIcons) {- const img = new Image();- img.src = `/icons/${type}.svg`;- ctx.drawImage(img, node.x - size / 2, node.y - size / 2, size, size);- }-- if (showLabels && globalScale > 3) {- const label = node.nodeLabel || node.label || node.id;- if (label) {- const fontSize = Math.max(2, size * 0.4);- ctx.font = `${fontSize}px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;- const textWidth = ctx.measureText(label).width;- const padding = 2;-- ctx.fillStyle = 'rgba(255, 255, 255, 0.45)';- ctx.strokeStyle = 'rgba(0, 0, 0, 0.05)';- ctx.lineWidth = 0.2;- const bgWidth = textWidth + padding * 2;- const bgHeight = fontSize + padding;- const bgX = node.x - bgWidth / 2;- const bgY = node.y + size / 2 + 1;-- ctx.beginPath();- ctx.roundRect(bgX, bgY, bgWidth, bgHeight, 0.75);- ctx.fill();- ctx.stroke();-- ctx.fillStyle = 'rgb(0, 0, 0)';- ctx.textAlign = 'center';- ctx.textBaseline = 'middle';- ctx.fillText(label, node.x, bgY + bgHeight / 2);- }- }- }- }, [shouldUseSimpleRendering, showLabels, showIcons]);-- // Handle container resize- useEffect(() => {- if (!containerRef.current) return;-- const resizeObserver = new ResizeObserver(entries => {- const { width: w, height: h } = entries[0].contentRect;- setDimensions({ width: w, height: h });- if (graphRef.current) {- graphRef.current.d3ReheatSimulation();- }- });-- resizeObserver.observe(containerRef.current);-- return () => {- resizeObserver.disconnect();- };- }, []);-- if (!nodes.length) {- return (- <div className={`flex items-center justify-center ${className}`} style={style}>- <div className="text-center text-muted-foreground">- <p>No nodes to display</p>- </div>- </div>- );- }-- return (- <div- ref={containerRef}- className={className}- data-graph-container- style={{- width: width || '100%',- height: height || '100%',- minHeight: 300,- minWidth: 300,- ...style- }}- >- <ForceGraph2D- ref={graphRef}- width={dimensions.width || width}- height={dimensions.height || height}- graphData={graphData}- nodeLabel="label"- nodeColor={node => shouldUseSimpleRendering ? node.nodeColor : "#00000000"}- nodeRelSize={6}- linkDirectionalArrowLength={3.5}- linkDirectionalArrowRelPos={1}- cooldownTicks={100}- onNodeRightClick={handleNodeRightClick}- onNodeClick={handleNodeClick}- onBackgroundClick={handleBackgroundClick}- linkCurvature={link => link.curve}- linkDirectionalParticles={link => link.__highlighted ? 2 : 0}- linkDirectionalParticleSpeed={0.005}- linkWidth={link => link.__highlighted ? 2 : link.__dimmed ? 0.5 : 1}- linkColor={link => {- if (link.__highlighted) return 'rgba(171, 171, 171, 0.23)';- if (link.__dimmed) return 'rgba(146, 146, 146, 0.33)';- return 'rgba(166, 166, 166, 0.32)';- }}- d3AlphaDecay={0.02}- d3VelocityDecay={0.3}- nodeCanvasObject={renderNode}- onNodeHover={(node: any) => {- if (node) {- graphData.nodes.forEach((n: any) => {- n.__highlighted = n === node;- n.__dimmed = n !== node;- });- graphData.links.forEach((l: any) => {- l.__highlighted = l.source === node || l.target === node;- l.__dimmed = l.source !== node && l.target !== node;- });- } else {- graphData.nodes.forEach((n: any) => {- n.__highlighted = false;- n.__dimmed = false;- });- graphData.links.forEach((l: any) => {- l.__highlighted = false;- l.__dimmed = false;- });- }- }}- backgroundColor={backgroundColor}- onZoom={(zoom) => setCurrentZoom(zoom.k)}- />- </div>- );-};--export default ForceGraphViewer;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/graph-main.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-main.tsxnew file mode 100644index 00000000..f0364b75--- /dev/null+++ b/flowsint-app/src/renderer/src/components/graphs/graph-main.tsx@@ -0,0 +1,76 @@+import { useGraphStore } from '@/stores/graph-store'+import React, { useEffect, useRef, useCallback } from 'react'+import GraphViewer from './graph-viewer'+import ContextMenu from './context-menu'++const GraphMain = () => {+ const nodes = useGraphStore(s => s.nodes)+ const edges = useGraphStore(s => s.edges)+ // const currentNode = useGraphStore(s => s.currentNode)+ const toggleNodeSelection = useGraphStore(s => s.toggleNodeSelection)+ const clearSelectedNodes = useGraphStore(s => s.clearSelectedNodes)++ const graphRef = useRef<any>()+ const containerRef = useRef<HTMLDivElement>(null)+ const [menu, setMenu] = React.useState<any>(null)++ // // Handle current node centering+ // useEffect(() => {+ // if (!currentNode || !graphRef.current) return+ // graphRef.current.centerAt(currentNode.x, currentNode.y, 1000)+ // graphRef.current.zoom(5, 2000)+ // }, [currentNode])++ const handleNodeClick = useCallback((node: any) => {+ toggleNodeSelection(node, false)+ }, [toggleNodeSelection])++ const handleBackgroundClick = useCallback(() => {+ clearSelectedNodes()+ setMenu(null)+ }, [clearSelectedNodes])++ const onNodeContextMenu = useCallback((node: any, event: MouseEvent) => {+ if (!containerRef.current || !node) return++ const pane = containerRef.current.getBoundingClientRect()+ const relativeX = event.clientX - pane.left+ const relativeY = event.clientY - pane.top++ setMenu({+ node: {+ data: node.data || {},+ id: node.id || '',+ label: node.label || node.nodeLabel || '',+ position: node.position || { x: node.x || 0, y: node.y || 0 }+ },+ rawTop: relativeY,+ rawLeft: relativeX,+ wrapperWidth: pane.width,+ wrapperHeight: pane.height,+ setMenu: setMenu,+ })+ }, [])++ const handleGraphRef = useCallback((ref: any) => {+ graphRef.current = ref+ }, [])++ return (+ <div ref={containerRef} className="relative h-full w-full bg-background">+ <GraphViewer+ nodes={nodes}+ edges={edges}+ onNodeClick={handleNodeClick}+ onNodeRightClick={onNodeContextMenu}+ onBackgroundClick={handleBackgroundClick}+ showLabels={true}+ showIcons={true}+ onGraphRef={handleGraphRef}+ />+ {menu && <ContextMenu onClick={handleBackgroundClick} {...menu} />}+ </div>+ )+}++export default GraphMain\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/graph-navigation.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-navigation.tsxindex 5a9c9abf..f6417ff0 100644--- a/flowsint-app/src/renderer/src/components/graphs/graph-navigation.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/graph-navigation.tsx@@ -3,16 +3,16 @@ import NodesPanel from "./nodes-panel"import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"import { UserPlus, Users } from "lucide-react"import { ItemsPanel } from "./items-panel"-import DetailsPanel from "./details-panel"import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "../ui/resizable"import { useLayoutStore } from "@/stores/layout-store"+import SelectedItemsPanel from "./selected-items-panel"const GraphNavigation = () => {const nodes = useGraphStore((s) => s.nodes)- const currentNode = useGraphStore((s) => s.currentNode)const activeTab = useLayoutStore((s) => s.activeTab)const setActiveTab = useLayoutStore((s) => s.setActiveTab)-+ const selectedNodes = useGraphStore(s => s.selectedNodes)+ const selectedNodesSome = selectedNodes.length > 0return (<div className="h-full w-full min-h-0"><Tabs@@ -34,7 +34,7 @@ const GraphNavigation = () => {direction="vertical"className="flex-1 min-h-0 flex w-full flex-col">- {currentNode && (+ {selectedNodesSome && (<><ResizablePanelorder={2}@@ -42,7 +42,7 @@ const GraphNavigation = () => {defaultSize={30}className="flex flex-col w-full overflow-hidden min-h-0 min-w-0">- <DetailsPanel node={currentNode} />+ <SelectedItemsPanel /></ResizablePanel><ResizableHandle /></>diff --git a/flowsint-app/src/renderer/src/components/graphs/graph-panel.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-panel.tsxindex 57204a95..692b2d2a 100644--- a/flowsint-app/src/renderer/src/components/graphs/graph-panel.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/graph-panel.tsx@@ -7,7 +7,6 @@ import { ArrowDownToLineIcon } from 'lucide-react'import { CreateRelationDialog } from './create-relation'import GraphLoader from './graph-loader'import Loader from '../loader'-// import WallEditor from './wall/wall'import { useGraphControls } from '@/stores/graph-controls-store'import { NodeEditorModal } from './node-editor-modal'import NodesTable from '../table'@@ -16,13 +15,13 @@ import { useActionItems } from '@/hooks/use-action-items'import { toast } from 'sonner'import MapPanel from '../map/map-panel'import NewActions from './new-actions'-const GraphReactForce = lazy(() => import('./graph-react-force'))+import GraphSettings from './graph-settings'+import GraphMain from './graph-main'const RelationshipsTable = lazy(() => import('@/components/table/relationships-view'))-// const GraphReactSigma = lazy(() => import('./graph-react-sigma'))+const Graph = lazy(() => import('./graph'))+const Wall = lazy(() => import('./wall/wall'))-// const Graph = lazy(() => import('./graph'))--const NODE_COUNT_THRESHOLD = 1000;+const NODE_COUNT_THRESHOLD = 2000;// Separate component for the drag overlayconst DragOverlay = memo(({ isDragging }: { isDragging: boolean }) => (@@ -45,9 +44,8 @@ interface GraphPanelProps {isRefetching: boolean;}-const GraphPanel = ({ graphData, isLoading, isRefetching }: GraphPanelProps) => {+const GraphPanel = ({ graphData, isLoading }: GraphPanelProps) => {const graphPanelRef = useRef<HTMLDivElement>(null)- const [loading, setLoading] = useState(isLoading)const handleOpenFormModal = useGraphStore(s => s.handleOpenFormModal)const nodes = useGraphStore(s => s.nodes)const view = useGraphControls((s) => s.view)@@ -62,9 +60,8 @@ const GraphPanel = ({ graphData, isLoading, isRefetching }: GraphPanelProps) =>updateGraphData([], [])if (graphData?.nds && graphData?.rls) {updateGraphData(graphData.nds, graphData.rls)- setLoading(false)}- }, [graphData?.nds, graphData?.rls, setLoading])+ }, [graphData?.nds, graphData?.rls])const handleDragOver = (e: React.DragEvent<HTMLDivElement>) => {e.preventDefault()@@ -134,20 +131,21 @@ const GraphPanel = ({ graphData, isLoading, isRefetching }: GraphPanelProps) =>}>{nodes?.length > NODE_COUNT_THRESHOLD ? (<>{view === "table" && <NodesTable />}- {["force", "hierarchy"].includes(view) && <GraphReactForce />}+ {["force", "hierarchy"].includes(view) && <Graph />}+ {view === "map" && <MapPanel />}+ {view === "relationships" && <RelationshipsTable />}+ </>+ ) : (+ <>+ {view === "hierarchy" && <Wall isLoading={false} isRefetching={false} />}+ {view === "force" && <GraphMain />}+ {/* {["force", "hierarchy"].includes(view) && <GraphMain />} */}+ {view === "table" && <NodesTable />}{view === "map" && <MapPanel />}{view === "relationships" && <RelationshipsTable />}</>- ) : (<>- {view === "force" && <GraphReactForce />}- {/* {view === "hierarchy" && <WallEditor isRefetching={isRefetching} isLoading={loading} />} */}- {view === "table" && <NodesTable />}- {view === "map" && <MapPanel />}- {view === "relationships" && <RelationshipsTable />}- </>)}+ )}</Suspense>- {/* <Graph /> */}- {/* <GraphSigma /> */}<DragOverlay isDragging={isDraggingOver} /><div className='absolute z-21 left-3 top-3'><Toolbar isLoading={isLoading} />@@ -155,6 +153,7 @@ const GraphPanel = ({ graphData, isLoading, isRefetching }: GraphPanelProps) =><NewActions /><CreateRelationDialog /><NodeEditorModal />+ <GraphSettings /></div>)}diff --git a/flowsint-app/src/renderer/src/components/graphs/graph-react-force-3d.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-react-force-3d.tsxdeleted file mode 100644index aaef335b..00000000--- a/flowsint-app/src/renderer/src/components/graphs/graph-react-force-3d.tsx+++ /dev/null@@ -1,186 +0,0 @@-import React, { useCallback, useEffect, useState, useMemo, useRef } from 'react';-import ForceGraph3D from 'react-force-graph-3d';-import { GraphEdge, GraphNode, useGraphStore } from '@/stores/graph-store';-import { useNodesDisplaySettings } from '@/stores/node-display-settings';-import { useGraphControls } from '@/stores/graph-controls-store';-import type { ItemType } from '@/stores/node-display-settings';-import EmptyState from './empty-state';-//@ts-ignore-import SpriteText from "https://esm.sh/three-spritetext";--interface GraphReactForce3DProps {- style?: React.CSSProperties;-}--const GraphReactForce3D: React.FC<GraphReactForce3DProps> = () => {- const nodes = useGraphStore(s => s.nodes) as GraphNode[];- const edges = useGraphStore(s => s.edges) as GraphEdge[];- const colors = useNodesDisplaySettings(s => s.colors) as Record<ItemType, string>;- const toggleNodeSelection = useGraphStore(s => s.toggleNodeSelection);- const clearSelectedNodes = useGraphStore(s => s.clearSelectedNodes);- const setActions = useGraphControls(s => s.setActions);- const getSize = useNodesDisplaySettings(s => s.getSize);- const graphRef = useRef<any>();- const containerRef = useRef<HTMLDivElement>(null);- const [dimensions, setDimensions] = useState({ width: 0, height: 0 });- const currentNode = useGraphStore(s => s.currentNode);-- // Cache pour les sprites de texte des liens- const linkSpritesCache = useRef<Map<string, any>>(new Map());-- // Mémoriser les données du graphique pour éviter les re-rendus- const graphData = useMemo(() => ({- nodes,- links: edges- }), [nodes, edges]);-- // Mémoriser les fonctions de couleur et de taille pour éviter les recalculs- const nodeColorFunction = useCallback((node: GraphNode) => {- return colors[node.data.type];- }, [colors]);-- const nodeValueFunction = useCallback((node: GraphNode) => {- return getSize(node.data.type as ItemType) / 4;- }, [getSize]);-- // Optimisation des sprites de texte des liens avec cache- const linkThreeObjectFunction = useCallback((link: GraphEdge) => {- const cacheKey = `${link.source}-${link.target}-${link.label}`;-- if (linkSpritesCache.current.has(cacheKey)) {- return linkSpritesCache.current.get(cacheKey);- }-- const sprite = new SpriteText(`${link.label}`);- sprite.color = 'lightgrey';- sprite.textHeight = 1.5;-- linkSpritesCache.current.set(cacheKey, sprite);- return sprite;- }, []);-- // Nettoyer le cache quand les liens changent- useEffect(() => {- linkSpritesCache.current.clear();- }, [edges]);-- const handleNodeClick = useCallback((node: any) => {- toggleNodeSelection(node, false);- const distance = 130;- const distRatio = 1 + distance / Math.hypot(node.x, node.y, node.z);-- graphRef.current?.cameraPosition(- { x: node.x * distRatio, y: node.y * distRatio, z: node.z * distRatio },- node,- 500- );- }, [toggleNodeSelection]);-- useEffect(() => {- if (currentNode) {- handleNodeClick(currentNode);- }- }, [currentNode, handleNodeClick]);-- const handleBackgroundClick = useCallback(() => {- clearSelectedNodes();- }, [clearSelectedNodes]);-- const handleZoomIn = useCallback((graph: any) => {- const distance = graph.cameraDistance();- graph.cameraDistance(distance * 0.75);- }, []);-- const handleZoomOut = useCallback((graph: any) => {- const distance = graph.cameraDistance();- graph.cameraDistance(distance * 1.25);- }, []);-- const handleFit = useCallback((graph: any) => {- graph.zoomToFit(400);- }, []);-- // Set actions in store- useEffect(() => {- setActions({- zoomIn: () => handleZoomIn(graphRef.current),- zoomOut: () => handleZoomOut(graphRef.current),- zoomToFit: () => handleFit(graphRef.current),- });- }, [setActions, handleZoomIn, handleZoomOut, handleFit]);-- // Handle container resize avec debouncing- useEffect(() => {- if (!containerRef.current) return;-- let timeoutId: NodeJS.Timeout;- const resizeObserver = new ResizeObserver(entries => {- clearTimeout(timeoutId);- timeoutId = setTimeout(() => {- const { width, height } = entries[0].contentRect;- setDimensions({ width, height });- if (graphRef.current) {- graphRef.current.d3ReheatSimulation();- }- }, 100); // Debounce de 100ms- });-- resizeObserver.observe(containerRef.current);-- return () => {- clearTimeout(timeoutId);- resizeObserver.disconnect();- };- }, []);-- if (!nodes.length) {- return <EmptyState />;- }-- return (- <div className="relative h-full grow w-full bg-background">- <div ref={containerRef} style={{ width: '100%', height: '100%', minHeight: 300 }}>- <ForceGraph3D- ref={graphRef}- width={dimensions.width}- height={dimensions.height}- graphData={graphData}- nodeLabel="label"- nodeColor={nodeColorFunction}- nodeRelSize={6}- nodeVal={nodeValueFunction}- linkDirectionalArrowLength={3.5}- linkDirectionalArrowRelPos={1}- // Optimisations de performance- cooldownTicks={50} // Réduit de 100 à 50- d3AlphaDecay={0.05} // Augmenté de 0.02 à 0.05 pour convergence plus rapide- d3VelocityDecay={0.4} // Augmenté de 0.3 à 0.4- d3AlphaMin={0.01} // Ajouter un seuil minimum- // Réduire la fréquence de rendu- rendererConfig={{- antialias: false, // Désactiver l'antialiasing pour de meilleures performances- powerPreference: "high-performance"- }}- // Optimisations pour les gros graphiques- numDimensions={3}- enablePointerInteraction={true}- onNodeClick={handleNodeClick}- onBackgroundClick={handleBackgroundClick}- linkCurvature={link => link.curve}- backgroundColor="#00000000"- enableNodeDrag={true}- enableNavigationControls={true}- // Optimiser les sprites de texte- linkThreeObjectExtend={true}- linkThreeObject={linkThreeObjectFunction}- showNavInfo={false}- // Limiter la distance de rendu pour de meilleures performances- nodeOpacity={0.9}- linkOpacity={0.6}- />- </div>- </div>- );-};--export default GraphReactForce3D;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/graph-react-force.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-react-force.tsxdeleted file mode 100644index 1a9edced..00000000--- a/flowsint-app/src/renderer/src/components/graphs/graph-react-force.tsx+++ /dev/null@@ -1,486 +0,0 @@-import React, { useCallback, useMemo, useEffect, useState } from 'react';-import ForceGraph2D from 'react-force-graph-2d';-import { GraphEdge, GraphNode, useGraphStore } from '@/stores/graph-store';-import { useNodesDisplaySettings } from '@/stores/node-display-settings';-import { useGraphControls } from '@/stores/graph-controls-store';-import type { ItemType } from '@/stores/node-display-settings';-import EmptyState from './empty-state';-import { useTheme } from '../theme-provider';-import ContextMenu from './wall/custom/context-menu';--interface GraphReactForceProps {- style?: React.CSSProperties;-}--interface LabelBounds {- x: number;- y: number;- width: number;- height: number;- nodeId: string;- nodeSize: number;-}--const NODE_COUNT_THRESHOLD = 1000;-const ZOOM_MIN = 0.3;-const ZOOM_INTERVAL = 2;-const ZOOM_MAX = 10;-const ZOOM_THRESHOLD = 4;--const GraphReactForce: React.FC<GraphReactForceProps> = () => {- const nodes = useGraphStore(s => s.nodes) as GraphNode[];- const rawEdges = useGraphStore(s => s.edges) as GraphEdge[];- const { theme } = useTheme();- const getSize = useNodesDisplaySettings(s => s.getSize);- const colors = useNodesDisplaySettings(s => s.colors) as Record<ItemType, string>;- const toggleNodeSelection = useGraphStore(s => s.toggleNodeSelection);- const clearSelectedNodes = useGraphStore(s => s.clearSelectedNodes);- const setActions = useGraphControls(s => s.setActions);- const [menu, setMenu] = useState<any>(null);- const [currentZoom, setCurrentZoom] = useState(1);-- const shouldUseSimpleRendering = useMemo(() => {- return nodes.length > NODE_COUNT_THRESHOLD || currentZoom < ZOOM_THRESHOLD;- }, [nodes.length, currentZoom]);-- // Transform data for Force Graph- const graphData = useMemo(() => {- const transformedNodes = nodes.map(node => {- const type = node.data?.type as ItemType;- const color = colors[type] || '#0074D9';- const size = getSize(type)-2;- let nodeLabel = node.data.label;- if (!nodeLabel && 'caption' in node) nodeLabel = (node as any).caption;- if (!nodeLabel) nodeLabel = node.id;- const randMin = ZOOM_MIN + Math.random() * (ZOOM_MAX - ZOOM_MIN - 1);- const randMax = randMin + ZOOM_INTERVAL;- return {- ...node,- nodeLabel: nodeLabel,- nodeColor: color,- nodeSize: size,- nodeType: type,- val: size,- randMin: randMin,- randMax: randMax- };- }).sort((a, b) => b.nodeSize - a.nodeSize); // Sort by size, largest first-- const edgeGroups = new Map();- rawEdges.forEach(edge => {- const key = `${edge.source}-${edge.target}`;- if (!edgeGroups.has(key)) {- edgeGroups.set(key, []);- }- edgeGroups.get(key).push(edge);- });-- const transformedEdges = rawEdges.map((edge) => {- const key = `${edge.source}-${edge.target}`;- const group = edgeGroups.get(key);- const groupIndex = group.indexOf(edge);- const groupSize = group.length;- const curve = groupSize > 1 ? (groupIndex - (groupSize - 1) / 2) * 0.2 : 0;-- return {- ...edge,- edgeLabel: edge.label,- curve: curve,- groupIndex: groupIndex,- groupSize: groupSize- };- });-- return {- nodes: transformedNodes,- links: transformedEdges,- };- }, [nodes, rawEdges, getSize, colors]);-- const handleNodeClick = useCallback((node: any) => {- toggleNodeSelection(node, false);- }, [toggleNodeSelection]);-- const handleBackgroundClick = useCallback(() => {- clearSelectedNodes();- setMenu(null)- }, [clearSelectedNodes, setMenu]);-- const handleZoomIn = useCallback((graph: any) => {- const zoom = graph.zoom();- graph.zoom(zoom * 1.5);- }, []);-- const handleZoomOut = useCallback((graph: any) => {- const zoom = graph.zoom();- graph.zoom(zoom * 0.75);- }, []);-- const handleFit = useCallback((graph: any) => {- graph.zoomToFit(400);- }, []);-- // Helper functions for rendering- const drawNodeCircle = useCallback((ctx: CanvasRenderingContext2D, node: any, size: number) => {- ctx.beginPath();- ctx.arc(node.x, node.y, size * 0.65, 0, 2 * Math.PI);- ctx.fillStyle = node.nodeColor;- ctx.fill();-- // Add border with same color- ctx.strokeStyle = node.nodeColor;- ctx.lineWidth = 0.75;- ctx.stroke();- }, []);-- const drawNodeIcon = useCallback((ctx: CanvasRenderingContext2D, node: any, size: number, type: ItemType) => {- // Draw circular border first- ctx.beginPath();- ctx.arc(node.x, node.y, size * 0.70, 0, 2 * Math.PI);- ctx.strokeStyle = node.nodeColor;- ctx.lineWidth = 0.75;- ctx.stroke();-- // Draw icon on top- const img = new Image();- img.src = `/icons/${type}.svg`;- ctx.drawImage(img, node.x - size / 2, node.y - size / 2, size, size);- }, []);-- const shouldShowLabel = useCallback((globalScale: number, randMin: number, randMax: number) => {- return globalScale >= randMin && globalScale <= randMax;- }, []);-- // Check if two rectangles overlap- const doLabelsOverlap = useCallback((bounds1: LabelBounds, bounds2: LabelBounds) => {- return !(bounds1.x + bounds1.width < bounds2.x ||- bounds2.x + bounds2.width < bounds1.x ||- bounds1.y + bounds1.height < bounds2.y ||- bounds2.y + bounds2.height < bounds1.y);- }, []);-- const drawLabelBackground = useCallback((ctx: CanvasRenderingContext2D, node: any, label: string, fontSize: number) => {- const textWidth = ctx.measureText(label).width;- const padding = 6;- const bgWidth = textWidth + padding * 2;- const bgHeight = fontSize + padding;- const bgX = node.x - bgWidth / 2;- const bgY = node.y + node.nodeSize / 2 + 1;-- ctx.fillStyle = 'rgba(149, 149, 149, 0.56)';- ctx.strokeStyle = 'rgba(0, 0, 0, 0.05)';- ctx.lineWidth = 0.2;-- ctx.beginPath();- ctx.roundRect(bgX, bgY, bgWidth, bgHeight, 4);- ctx.fill();- ctx.stroke();-- return { bgX, bgY, bgHeight, bgWidth };- }, []);-- const drawLabel = useCallback((ctx: CanvasRenderingContext2D, node: any, label: string, fontSize: number, bgY: number, bgHeight: number) => {- ctx.fillStyle = theme === "dark" ? 'rgb(255, 255, 255)' : 'rgb(0, 0, 0)';- ctx.textAlign = 'center';- ctx.textBaseline = 'middle';- ctx.fillText(label, node.x, bgY + bgHeight / 2);- }, [theme]);-- // Efficient collision detection using spatial partitioning- const collisionGridRef = React.useRef<Map<string, LabelBounds[]>>(new Map());- const renderedLabelsRef = React.useRef<Set<string>>(new Set());- const gridSize = 50;-- // Get all grid keys that a label bounds might overlap- const getOverlappingGridKeys = useCallback((bounds: LabelBounds) => {- const keys = new Set<string>();- const startX = Math.floor(bounds.x / gridSize);- const endX = Math.floor((bounds.x + bounds.width) / gridSize);- const startY = Math.floor(bounds.y / gridSize);- const endY = Math.floor((bounds.y + bounds.height) / gridSize);-- for (let x = startX; x <= endX; x++) {- for (let y = startY; y <= endY; y++) {- keys.add(`${x},${y}`);- }- }- return Array.from(keys);- }, []);-- // Check for collisions using spatial partitioning with size-based priority- const checkCollision = useCallback((newBounds: LabelBounds) => {- const gridKeys = getOverlappingGridKeys(newBounds);-- for (const key of gridKeys) {- const boundsInGrid = collisionGridRef.current.get(key) || [];- for (const existingBounds of boundsInGrid) {- if (doLabelsOverlap(newBounds, existingBounds)) {- // If the new label is from a larger node, it takes priority- if (newBounds.nodeSize > existingBounds.nodeSize) {- // Remove the smaller node's label from the grid- const updatedBounds = boundsInGrid.filter(b => b.nodeId !== existingBounds.nodeId);- collisionGridRef.current.set(key, updatedBounds);- renderedLabelsRef.current.delete(existingBounds.nodeId);- continue; // Check other bounds in this grid- } else {- // New label is from a smaller node, so it gets rejected- return true;- }- }- }- }- return false;- }, [getOverlappingGridKeys, doLabelsOverlap]);-- // Add bounds to spatial grid- const addBoundsToGrid = useCallback((bounds: LabelBounds) => {- const gridKeys = getOverlappingGridKeys(bounds);- for (const key of gridKeys) {- if (!collisionGridRef.current.has(key)) {- collisionGridRef.current.set(key, []);- }- collisionGridRef.current.get(key)!.push(bounds);- }- }, [getOverlappingGridKeys]);-- // Custom renderer with efficient collision detection- const renderNodeWithCollisionDetection = useCallback((node: any, ctx: CanvasRenderingContext2D, globalScale: number) => {- const type = node.nodeType as ItemType;- const label = node.nodeLabel || node.label || node.id;-- // Always render the node itself- if (shouldUseSimpleRendering) {- drawNodeCircle(ctx, node, node.nodeSize);- } else {- drawNodeIcon(ctx, node, node.nodeSize, type);- }-- // Check if we should show a label- if (!shouldShowLabel(globalScale, node.randMin, node.randMax)) return;-- // Determine font size based on zoom level- let fontSize: number;- if (shouldUseSimpleRendering) {- fontSize = Math.max(8, 14 / globalScale);- } else {- if (globalScale > 3) {- fontSize = Math.max(2, node.nodeSize * 0.4);- } else {- fontSize = Math.max(8, 14 / globalScale);- }- }-- // Set font for measurement- ctx.font = `${fontSize}px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;-- // Measure text to check for collisions- const textWidth = ctx.measureText(label).width;- const padding = 2;- const bgWidth = textWidth + padding * 2;- const bgHeight = fontSize + padding;- const bgX = node.x - bgWidth / 2;- const bgY = node.y + node.nodeSize / 2 + 1;-- const newLabelBounds: LabelBounds = {- x: bgX,- y: bgY,- width: bgWidth,- height: bgHeight,- nodeId: node.id,- nodeSize: node.nodeSize- };-- // Check if this label was previously rendered- const wasPreviouslyRendered = renderedLabelsRef.current.has(node.id);-- // If not previously rendered, check for collisions- if (!wasPreviouslyRendered) {- if (checkCollision(newLabelBounds)) {- return; // Don't render this label- }- // Add this label to the spatial grid- addBoundsToGrid(newLabelBounds);- // Mark as rendered- renderedLabelsRef.current.add(node.id);- }-- // Render the label background and text- if (shouldUseSimpleRendering || globalScale > 3) {- // Draw background for detailed labels- const { bgY: finalBgY, bgHeight: finalBgHeight } = drawLabelBackground(ctx, node, label, fontSize);- drawLabel(ctx, node, label, fontSize, finalBgY, finalBgHeight);- } else {- // Draw simple label without background- ctx.fillStyle = theme === "dark" ? 'rgb(255, 255, 255)' : 'rgb(0, 0, 0)';- ctx.textAlign = 'center';- ctx.textBaseline = 'middle';- ctx.fillText(label, node.x, node.y);- }- }, [shouldUseSimpleRendering, drawNodeCircle, drawNodeIcon, shouldShowLabel, checkCollision, addBoundsToGrid, drawLabelBackground, drawLabel, theme]);-- // Reset collision grid and rendered labels only when nodes change- useEffect(() => {- collisionGridRef.current.clear();- renderedLabelsRef.current.clear();- }, [nodes.length, nodes.map(n => n.id).join(',')]); // Also reset when node IDs change-- // Reset only when zoom changes significantly- const lastZoomRef = React.useRef(currentZoom);- useEffect(() => {- const zoomDiff = Math.abs(currentZoom - lastZoomRef.current);- if (zoomDiff > 0.5) {- collisionGridRef.current.clear();- renderedLabelsRef.current.clear();- lastZoomRef.current = currentZoom;- }- }, [currentZoom]);-- // Set actions in store- useEffect(() => {- setActions({- zoomIn: () => handleZoomIn(graphRef.current),- zoomOut: () => handleZoomOut(graphRef.current),- zoomToFit: () => handleFit(graphRef.current),- });- }, [setActions, handleZoomIn, handleZoomOut, handleFit]);-- const graphRef = React.useRef<any>();- const containerRef = React.useRef<HTMLDivElement>(null);- const [dimensions, setDimensions] = useState({ width: 0, height: 0 });-- // Handle container resize- useEffect(() => {- if (!containerRef.current) return;-- const resizeObserver = new ResizeObserver(entries => {- const { width, height } = entries[0].contentRect;- setDimensions({ width, height });- if (graphRef.current) {- graphRef.current.d3ReheatSimulation();- }- });-- resizeObserver.observe(containerRef.current);-- return () => {- resizeObserver.disconnect();- };- }, []);-- const onNodeContextMenu = useCallback(- (data: any, event: MouseEvent) => {- if (!containerRef.current) return;- const pane = containerRef.current.getBoundingClientRect();- const relativeX = event.clientX - pane.left;- const relativeY = event.clientY - pane.top;- const menuWidth = 320;- const menuHeight = 250;- const padding = 20;-- const wouldOverflowRight = relativeX + menuWidth + padding > pane.width;- const wouldOverflowBottom = relativeY + menuHeight + padding > pane.height;-- let finalTop = 0;- let finalLeft = 0;- let finalRight = 0;- let finalBottom = 0;-- if (wouldOverflowRight) {- finalRight = pane.width - relativeX;- } else {- finalLeft = relativeX;- }-- if (wouldOverflowBottom) {- finalBottom = pane.height - relativeY;- } else {- finalTop = relativeY;- }-- setMenu({- node: { data: data.data, id: data.id, label: data.label, position: data.position } as GraphNode,- top: finalTop,- left: finalLeft,- right: finalRight,- bottom: finalBottom,- wrapperWidth: pane.width,- wrapperHeight: pane.height,- setMenu: setMenu,- });- },- [setMenu],- );-- if (!nodes.length) {- return <EmptyState />;- }-- return (- <div className="relative h-full grow w-full bg-background">- {/* {currentZoom} */}- <div ref={containerRef} style={{ width: '100%', height: '100%', minHeight: 300, minWidth: 300 }}>- <ForceGraph2D- ref={graphRef}- width={dimensions.width}- height={dimensions.height}- graphData={graphData}- nodeLabel="label"- nodeColor={node => shouldUseSimpleRendering ? node.nodeColor : "#00000000"}- nodeRelSize={6}- enableNodeDrag={false}- linkDirectionalArrowLength={3.5}- linkDirectionalArrowRelPos={1}- cooldownTicks={100}- onNodeRightClick={onNodeContextMenu}- onNodeClick={handleNodeClick}- onBackgroundClick={handleBackgroundClick}- linkCurvature={link => link.curve}- linkDirectionalParticles={link => link.__highlighted ? 2 : 0}- linkDirectionalParticleSpeed={0.005}- linkWidth={link => link.__highlighted ? 2 : link.__dimmed ? 0.5 : 1}- linkColor={link => {- if (link.__highlighted) return 'rgba(171, 171, 171, 0.23)';- if (link.__dimmed) return 'rgba(146, 146, 146, 0.33)';- return 'rgba(166, 166, 166, 0.32)';- }}- d3AlphaDecay={0.02}- d3VelocityDecay={0.3}- nodeCanvasObject={renderNodeWithCollisionDetection}- onNodeHover={(node: any) => {- if (node) {- graphData.nodes.forEach((n: any) => {- n.__highlighted = n === node;- n.__dimmed = n !== node;- });- graphData.links.forEach((l: any) => {- l.__highlighted = l.source === node || l.target === node;- l.__dimmed = l.source !== node && l.target !== node;- });- } else {- graphData.nodes.forEach((n: any) => {- n.__highlighted = false;- n.__dimmed = false;- });- graphData.links.forEach((l: any) => {- l.__highlighted = false;- l.__dimmed = false;- });- }- }}- backgroundColor="transparent"- onZoom={(zoom) => setCurrentZoom(zoom.k)}- />-- {menu && <ContextMenu- onClick={handleBackgroundClick}- {...menu}- />}- </div>- </div>- );-};--export default GraphReactForce;---diff --git a/flowsint-app/src/renderer/src/components/graphs/graph-react-sigma.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-react-sigma.tsxdeleted file mode 100644index 0ed82ac1..00000000--- a/flowsint-app/src/renderer/src/components/graphs/graph-react-sigma.tsx+++ /dev/null@@ -1,140 +0,0 @@-import React, { useEffect, useRef, useMemo } from 'react';-import Graph from 'graphology';-import Sigma from 'sigma';-import { GraphEdge, GraphNode, useGraphStore } from '@/stores/graph-store';-import { useNodesDisplaySettings } from '@/stores/node-display-settings';-import { useGraphControls } from '@/stores/graph-controls-store';-import type { ItemType } from '@/stores/node-display-settings';--const GraphReactSigma: React.FC = () => {- const containerRef = useRef<HTMLDivElement>(null);- const sigmaRef = useRef<Sigma | null>(null);- const nodes = useGraphStore(s => s.nodes) as GraphNode[];- const edges = useGraphStore(s => s.edges) as GraphEdge[];- const getSize = useNodesDisplaySettings(s => s.getSize);- const colors = useNodesDisplaySettings(s => s.colors) as Record<ItemType, string>;- const toggleNodeSelection = useGraphStore(s => s.toggleNodeSelection);- const clearSelectedNodes = useGraphStore(s => s.clearSelectedNodes);- const setActions = useGraphControls(s => s.setActions);-- console.log(edges)- // Memoize processed data for performance- const processedNodes = useMemo(() => {- return nodes.map(node => ({- id: node.id,- label: node.data?.label || node.id,- type: node.data?.type as ItemType,- size: getSize(node.data?.type as ItemType),- color: colors[node.data?.type as ItemType] || '#0074D9',- originalNode: node- }));- }, [nodes, getSize, colors]);-- // Initialize Sigma- useEffect(() => {- if (!containerRef.current) return;-- const graph = new Graph();- const sigma = new Sigma(graph, containerRef.current, {- defaultNodeType: 'circle',- defaultEdgeType: 'line',- renderEdgeLabels: false,- });-- sigmaRef.current = sigma;-- // Set up zoom actions- setActions({- zoomIn: () => sigma.getCamera().animatedZoom({ duration: 300 }),- zoomOut: () => sigma.getCamera().animatedUnzoom({ duration: 300 }),- zoomToFit: () => sigma.getCamera().animatedReset({ duration: 300 }),- });-- // Set up event handlers- sigma.on('clickNode', (event) => {- const originalNode = processedNodes.find(n => n.id === event.node)?.originalNode;- if (originalNode) {- toggleNodeSelection(originalNode, false);- }- });-- sigma.on('clickStage', () => {- clearSelectedNodes();- });-- return () => {- sigma.kill();- };- }, [setActions, toggleNodeSelection, clearSelectedNodes, processedNodes]);-- // Update graph data- useEffect(() => {- if (!sigmaRef.current) return;- if (processedNodes.length === 0) return;- const graph = sigmaRef.current.getGraph();- graph.clear();- // Add nodes with simple random positioning- processedNodes.forEach(node => {- const x = (Math.random() - 0.5) * 400;- const y = (Math.random() - 0.5) * 400;-- graph.addNode(node.id, {- label: node.label,- size: node.size,- color: node.color,- x: x,- y: y,- });- });-- edges.forEach(edge => {- const sourceExists = graph.hasNode(edge.source);- const targetExists = graph.hasNode(edge.target);- if (sourceExists && targetExists) {- graph.addEdge(edge.source, edge.target, { label: edge.label });- }- });- // Force a refresh and fit to view- setTimeout(() => {- sigmaRef.current?.getCamera().animatedReset({ duration: 300 });- sigmaRef.current?.refresh();- }, 100);-- }, [processedNodes, edges]);-- // Handle container resize- useEffect(() => {- if (!containerRef.current || !sigmaRef.current) return;-- const resizeObserver = new ResizeObserver(() => {- sigmaRef.current?.refresh();- });-- resizeObserver.observe(containerRef.current);-- return () => {- resizeObserver.disconnect();- };- }, []);-- if (!nodes.length) {- return (- <div className="flex items-center justify-center h-full text-gray-500">- No nodes to display- </div>- );- }-- return (- <div- ref={containerRef}- style={{- width: '100%',- height: '100%',- minHeight: '400px'- }}- />- );-};--export default GraphReactSigma;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/graph-settings.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-settings.tsxnew file mode 100644index 00000000..d1aaab7c--- /dev/null+++ b/flowsint-app/src/renderer/src/components/graphs/graph-settings.tsx@@ -0,0 +1,125 @@+import { useGraphSettingsStore } from '@/stores/graph-settings-store'+import {+ Dialog,+ DialogContent,+ DialogDescription,+ DialogHeader,+ DialogTitle,+} from "@/components/ui/dialog"+import { Slider } from "@/components/ui/slider"+import { Label } from '../ui/label'+import { memo, useCallback } from 'react'+import { Button } from '../ui/button'+import { type Setting } from '@/types'+import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '../ui/accordion'++const GraphSettings = () => {+ const settings = useGraphSettingsStore(s => s.settings)+ const settingsModalOpen = useGraphSettingsStore(s => s.settingsModalOpen)+ const setSettingsModalOpen = useGraphSettingsStore(s => s.setSettingsModalOpen)+ const updateSetting = useGraphSettingsStore(s => s.updateSetting)+ const resetSettings = useGraphSettingsStore(s => s.resetSettings)++ // Categorize settings+ const categories = {+ 'Force Physics': [+ 'chargeStrength',+ 'linkStrength',+ 'centerStrength',+ 'collisionRadius',+ 'collisionStrength'+ ],+ 'Simulation Control': [+ 'd3AlphaDecay',+ 'd3AlphaMin',+ 'd3AlphaTarget',+ 'd3VelocityDecay',+ 'cooldownTicks',+ 'cooldownTime',+ 'warmupTicks'+ ],+ 'Visual Appearance': [+ 'nodeSize',+ 'linkWidth',+ 'linkDirectionalArrowLength',+ 'linkDirectionalArrowRelPos',+ 'linkDirectionalParticleSpeed'+ ],+ 'Layout': [+ 'dagLevelDistance'+ ]+ }++ return (+ <Dialog open={settingsModalOpen} onOpenChange={setSettingsModalOpen}>+ <DialogContent className='max-h-[90vh] !w-[90vw] !max-w-[700px] overflow-y-auto'>+ <DialogHeader>+ <DialogTitle>Graph settings</DialogTitle>+ <DialogDescription>+ Update the settings of your graph. Changes apply in real-time.+ </DialogDescription>+ </DialogHeader>++ <Accordion type="multiple" defaultValue={['Force Physics', 'Simulation Control']} className="w-full">+ {Object.entries(categories).map(([categoryName, settingKeys]) => (+ <AccordionItem key={categoryName} value={categoryName}>+ <AccordionTrigger className="text-sm font-medium">+ {categoryName}+ </AccordionTrigger>+ <AccordionContent className="space-y-4">+ {settingKeys.map((key) => {+ const setting = settings[key];+ if (!setting) return null;+ return (+ <SettingItem+ key={key}+ label={key}+ updateSetting={updateSetting}+ setting={setting}+ />+ );+ })}+ </AccordionContent>+ </AccordionItem>+ ))}+ </Accordion>++ <div className='text-right border-t pt-4'>+ <Button onClick={resetSettings}>+ Reset to defaults+ </Button>+ </div>+ </DialogContent>+ </Dialog>+ )+}++export default GraphSettings++type SettingItemProps = {+ setting: Setting+ label: string+ updateSetting: (key: string, value: number) => void+}+const SettingItem = memo(({ setting, label, updateSetting }: SettingItemProps) => {++ const handleUpdateSetting = useCallback((newValues: number[]) => {+ updateSetting(label, newValues[0])+ }, [setting, updateSetting])++ return (+ <div className='grid grid-cols-1 gap-1'>+ <Label htmlFor={label}>{label} ({setting.value})</Label>+ <p className='opacity-60 text-sm'>{setting.description}</p>+ <Slider+ className='mt-2'+ id={label}+ onValueChange={handleUpdateSetting}+ value={[setting.value]}+ min={setting.min}+ max={setting.max}+ step={setting.step}+ />+ </div>+ )+})\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/graph-viewer.tsx b/flowsint-app/src/renderer/src/components/graphs/graph-viewer.tsxnew file mode 100644index 00000000..f71c2126--- /dev/null+++ b/flowsint-app/src/renderer/src/components/graphs/graph-viewer.tsx@@ -0,0 +1,390 @@+import { getDagreLayoutedElements } from '@/lib/utils';+import { useGraphControls } from '@/stores/graph-controls-store';+import { useGraphSettingsStore } from '@/stores/graph-settings-store';+import { GraphNode, GraphEdge, useGraphStore } from '@/stores/graph-store';+import { ItemType, useNodesDisplaySettings } from '@/stores/node-display-settings';+import React, { useCallback, useMemo, useEffect, useState, useRef } from 'react';+import ForceGraph2D from 'react-force-graph-2d';+import { Button } from '../ui/button';+import { useTheme } from '@/components/theme-provider'++interface GraphViewerProps {+ nodes: GraphNode[];+ edges: GraphEdge[];+ width?: number;+ height?: number;+ nodeColors?: Record<string, string>;+ nodeSizes?: Record<string, number>;+ onNodeClick?: (node: GraphNode) => void;+ onNodeRightClick?: (node: GraphNode, event: MouseEvent) => void;+ onBackgroundClick?: () => void;+ showLabels?: boolean;+ showIcons?: boolean;+ backgroundColor?: string;+ className?: string;+ style?: React.CSSProperties;+ onGraphRef?: (ref: any) => void;+}++const NODE_COUNT_THRESHOLD = 500;+const CONSTANTS = {+ NODE_DEFAULT_SIZE: 24,+ LABEL_FONT_SIZE: 2.5,+ NODE_FONT_SIZE: 5,+ LABEL_NODE_MARGIN: 18,+ PADDING_RATIO: 0.2,+ HALF_PI: Math.PI / 2,+ PI: Math.PI,+ MEASURE_FONT: '1px Sans-Serif',+ MIN_FONT_SIZE: 0.5,+ LINK_COLOR: 'rgba(128, 128, 128, 0.6)',+ LINK_WIDTH: 1,+ ARROW_SIZE: 8,+ ARROW_ANGLE: Math.PI / 6+};++// Pre-computed constants+const LABEL_FONT_STRING = `${CONSTANTS.LABEL_FONT_SIZE}px Sans-Serif`;++// Reusable objects to avoid allocations+const tempPos = { x: 0, y: 0 };+const tempDimensions = [0, 0];++const GraphViewer: React.FC<GraphViewerProps> = ({+ nodes,+ edges,+ width,+ height,+ onNodeClick,+ onNodeRightClick,+ onBackgroundClick,+ showLabels = true,+ showIcons = true,+ backgroundColor = 'transparent',+ className = '',+ style,+ onGraphRef+}) => {+ const [currentZoom, setCurrentZoom] = useState(1);+ const [dimensions, setDimensions] = useState({ width: 0, height: 0 });++ // Store references+ const containerRef = useRef<HTMLDivElement>(null);+ const graphRef = useRef<any>();+ const isGraphReadyRef = useRef(false);++ // Store selectors+ const nodeColors = useNodesDisplaySettings(s => s.colors);+ const getSize = useNodesDisplaySettings(s => s.getSize);+ const settings = useGraphSettingsStore(s => s.settings);+ const view = useGraphControls(s => s.view);+ const setActions = useGraphControls(s => s.setActions);+ const { theme } = useTheme();+ const setOpenMainDialog = useGraphStore(state => state.setOpenMainDialog);++ // Optimized graph initialization callback+ const initializeGraph = useCallback((graphInstance: any) => {+ if (!graphInstance || isGraphReadyRef.current) return;+ isGraphReadyRef.current = true;+ // Set up graph actions+ setActions({+ zoomIn: () => {+ const zoom = graphInstance.zoom();+ graphInstance.zoom(zoom * 1.5);+ },+ zoomOut: () => {+ const zoom = graphInstance.zoom();+ graphInstance.zoom(zoom * 0.75);+ },+ zoomToFit: () => {+ graphInstance.zoomToFit(400);+ }+ });++ // Call external ref callback+ onGraphRef?.(graphInstance);+ }, [setActions, onGraphRef]);++ // Handle graph ref changes+ useEffect(() => {+ if (graphRef.current) {+ initializeGraph(graphRef.current);+ }+ }, [initializeGraph]);++ // Memoized rendering check+ const shouldUseSimpleRendering = useMemo(() =>+ nodes.length > NODE_COUNT_THRESHOLD || currentZoom < 2.5+ , [nodes.length, currentZoom]);++ // Optimized graph data transformation+ const graphData = useMemo(() => {+ // Transform nodes+ const transformedNodes = nodes.map(node => {+ const type = node.data?.type as ItemType;+ return {+ ...node,+ nodeLabel: node.data?.label || node.id,+ nodeColor: nodeColors[type] || '#0074D9',+ nodeSize: CONSTANTS.NODE_DEFAULT_SIZE,+ nodeType: type,+ val: getSize(type),+ };+ });++ // Group and transform edges+ const edgeGroups = new Map<string, GraphEdge[]>();+ edges.forEach(edge => {+ const key = `${edge.source}-${edge.target}`;+ if (!edgeGroups.has(key)) {+ edgeGroups.set(key, []);+ }+ edgeGroups.get(key)!.push(edge);+ });++ const transformedEdges = edges.map((edge) => {+ const key = `${edge.source}-${edge.target}`;+ const group = edgeGroups.get(key)!;+ const groupIndex = group.indexOf(edge);+ const groupSize = group.length;+ const curve = groupSize > 1 ? (groupIndex - (groupSize - 1) / 2) * 0.2 : 0;++ return {+ ...edge,+ edgeLabel: edge.label,+ curve,+ groupIndex,+ groupSize+ };+ });++ // Handle hierarchy layout+ if (view === "hierarchy") {+ const { nodes: nds, edges: eds } = getDagreLayoutedElements(transformedNodes, transformedEdges);+ return {+ nodes: nds.map((nd) => ({ ...nd, x: nd.position.x, y: nd.position.y })),+ links: eds,+ };+ }++ return {+ nodes: transformedNodes,+ links: transformedEdges,+ };+ }, [nodes, edges, nodeColors, getSize, view]);++ // Event handlers+ const handleNodeClick = useCallback((node: any) => onNodeClick?.(node), [onNodeClick]);+ const handleNodeRightClick = useCallback((node: any, event: MouseEvent) => onNodeRightClick?.(node, event), [onNodeRightClick]);+ const handleBackgroundClick = useCallback(() => onBackgroundClick?.(), [onBackgroundClick]);+ const handleOpenNewActionDialog = useCallback(() => setOpenMainDialog(true), [setOpenMainDialog]);++ // Optimized node rendering+ const renderNode = useCallback((node: any, ctx: CanvasRenderingContext2D, globalScale: number) => {+ const size = node.nodeSize * (settings.nodeSize.value / 50);++ // Always draw the basic circle+ ctx.beginPath();+ ctx.arc(node.x, node.y, size * 0.65, 0, 2 * Math.PI);+ ctx.fillStyle = node.nodeColor;+ ctx.fill();++ // Early exit for simple rendering+ if (shouldUseSimpleRendering) return;++ // Icon rendering+ if (showIcons) {+ const img = new Image();+ img.src = `/icons/${node.nodeType}.svg`;+ ctx.drawImage(img, node.x - size / 2, node.y - size / 2, size, size);+ }++ // Label rendering+ if (showLabels && globalScale > 3) {+ const label = node.nodeLabel || node.label || node.id;+ if (label) {+ const fontSize = CONSTANTS.NODE_FONT_SIZE * (size / 10);+ ctx.font = `${fontSize}px Sans-Serif`+ const bgHeight = CONSTANTS.NODE_FONT_SIZE + 2;+ const bgY = node.y + size / 2 + 1;++ ctx.fillStyle = theme === "light" ? '#161616' : '#FFFFFF';+ ctx.textAlign = 'center';+ ctx.textBaseline = 'middle';+ ctx.fillText(label, node.x, bgY + bgHeight / 2);+ }+ }+ }, [shouldUseSimpleRendering, showLabels, showIcons, settings.nodeSize.value, theme]);++ // Optimized link rendering+ const linkCanvasObject = useCallback((link: any, ctx: CanvasRenderingContext2D) => {+ const { source: start, target: end } = link;++ // Early exit for unbound links+ if (typeof start !== 'object' || typeof end !== 'object') return;++ // Draw connection line+ ctx.beginPath();+ ctx.moveTo(start.x, start.y);+ ctx.lineTo(end.x, end.y);+ ctx.strokeStyle = CONSTANTS.LINK_COLOR;+ ctx.lineWidth = CONSTANTS.LINK_WIDTH * (settings.linkWidth.value / 5);+ ctx.stroke();++ // Early exit for simple rendering or no label+ if (shouldUseSimpleRendering || !link.label) return;++ // Calculate label position and angle+ tempPos.x = (start.x + end.x) * 0.5;+ tempPos.y = (start.y + end.y) * 0.5;++ const dx = end.x - start.x;+ const dy = end.y - start.y;+ let textAngle = Math.atan2(dy, dx);++ // Flip text for readability+ if (textAngle > CONSTANTS.HALF_PI || textAngle < -CONSTANTS.HALF_PI) {+ textAngle += textAngle > 0 ? -CONSTANTS.PI : CONSTANTS.PI;+ }++ // Measure and draw label+ ctx.font = LABEL_FONT_STRING;+ const textWidth = ctx.measureText(link.label).width;+ const padding = CONSTANTS.LABEL_FONT_SIZE * CONSTANTS.PADDING_RATIO;++ tempDimensions[0] = textWidth + padding;+ tempDimensions[1] = CONSTANTS.LABEL_FONT_SIZE + padding;++ const halfWidth = tempDimensions[0] * 0.5;+ const halfHeight = tempDimensions[1] * 0.5;++ // Batch canvas operations+ ctx.save();+ ctx.translate(tempPos.x, tempPos.y);+ ctx.rotate(textAngle);++ // Background+ ctx.fillStyle = theme === "light" ? "#FFFFFF" : '#161616';+ ctx.fillRect(-halfWidth, -halfHeight, tempDimensions[0], tempDimensions[1]);++ // Text+ ctx.fillStyle = 'darkgrey';+ ctx.textAlign = 'center';+ ctx.textBaseline = 'middle';+ ctx.fillText(link.label, 0, 0);++ ctx.restore();+ }, [shouldUseSimpleRendering, settings.linkWidth.value, theme]);++ // Container resize observer+ useEffect(() => {+ if (!containerRef.current) return;++ const resizeObserver = new ResizeObserver(entries => {+ const { width: w, height: h } = entries[0].contentRect;+ setDimensions({ width: w, height: h });+ });++ resizeObserver.observe(containerRef.current);+ return () => resizeObserver.disconnect();+ }, []);++ // Restart simulation when settings change+ useEffect(() => {+ if (graphRef.current && isGraphReadyRef.current) {+ graphRef.current.d3ReheatSimulation();+ }+ }, [settings]);++ // Empty state+ if (!nodes.length) {+ return (+ <div className={`flex h-full w-full items-center justify-center ${className}`} style={style}>+ <div className="text-center text-muted-foreground max-w-md mx-auto p-6">+ <div className="mb-4">+ <svg+ className="mx-auto h-16 w-16 text-muted-foreground/50"+ fill="none"+ viewBox="0 0 24 24"+ stroke="currentColor"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={1.5}+ d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"+ />+ </svg>+ </div>+ <h3 className="text-lg font-semibold text-foreground mb-2">+ No data to visualize+ </h3>+ <p className="text-sm text-muted-foreground mb-4">+ Start your investigation by adding nodes to see them displayed in the graph view.+ </p>+ <div className="space-y-2 text-xs text-muted-foreground mb-6">+ <p><strong>Tip:</strong> Use the search bar to find entities or import data to get started</p>+ <p><strong>Explore:</strong> Try searching for domains, emails, or other entities</p>+ </div>+ <Button onClick={handleOpenNewActionDialog}>+ <svg className="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 6v6m0 0v6m0-6h6m-6 0H6" />+ </svg>+ Add your first item+ </Button>+ </div>+ </div>+ );+ }++ return (+ <div+ ref={containerRef}+ className={className}+ data-graph-container+ style={{+ width: width || '100%',+ height: height || '100%',+ minHeight: 300,+ minWidth: 300,+ ...style+ }}+ >+ <ForceGraph2D+ ref={graphRef}+ width={dimensions.width || width}+ height={dimensions.height || height}+ graphData={graphData}+ nodeLabel="label"+ nodeColor={node => shouldUseSimpleRendering ? node.nodeColor : "#00000000"}+ nodeRelSize={6}+ onNodeRightClick={handleNodeRightClick}+ onNodeClick={handleNodeClick}+ onBackgroundClick={handleBackgroundClick}+ linkCurvature={link => link.curve}+ linkDirectionalParticles={link => link.__highlighted ? 2 : 0}+ nodeCanvasObject={renderNode}+ onNodeDragEnd={(node => {+ node.fx = node.x;+ node.fy = node.y;+ })}+ cooldownTicks={view === "hierarchy" ? 0 : settings.cooldownTicks?.value}+ cooldownTime={settings.cooldownTime?.value}+ d3AlphaDecay={settings.d3AlphaDecay?.value}+ d3AlphaMin={settings.d3AlphaMin?.value}+ d3VelocityDecay={settings.d3VelocityDecay?.value}+ warmupTicks={settings.warmupTicks?.value}+ dagLevelDistance={settings.dagLevelDistance?.value}+ linkDirectionalArrowRelPos={settings.linkDirectionalArrowRelPos?.value}+ linkDirectionalArrowLength={settings.linkDirectionalArrowLength?.value}+ linkDirectionalParticleSpeed={settings.linkDirectionalParticleSpeed?.value}+ backgroundColor={backgroundColor}+ onZoom={(zoom) => setCurrentZoom(zoom.k)}+ linkCanvasObject={linkCanvasObject}+ enableNodeDrag={!shouldUseSimpleRendering}+ />+ </div>+ );+};++export default GraphViewer;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/legend.tsx b/flowsint-app/src/renderer/src/components/graphs/legend.tsxindex b76808a3..52331976 100644--- a/flowsint-app/src/renderer/src/components/graphs/legend.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/legend.tsx@@ -19,7 +19,7 @@ const Legend = () => {</Button></div></DialogTrigger>- <DialogContent className='sm:max-w-md'>+ <DialogContent className='sm:max-w-md max-h-[90vh] overflow-y-auto'><div className='p-2'><ul className='grid grid-cols-2 items-center gap-1'>{entries.map(([key, value]) => (diff --git a/flowsint-app/src/renderer/src/components/graphs/neighbors.tsx b/flowsint-app/src/renderer/src/components/graphs/neighbors.tsxindex 57aa10a6..05118220 100644--- a/flowsint-app/src/renderer/src/components/graphs/neighbors.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/neighbors.tsx@@ -1,7 +1,6 @@import { sketchService } from "@/api/sketch-service";import { useQuery } from "@tanstack/react-query";-import { Card, CardContent, CardHeader, CardTitle } from "../ui/card";-import ForceGraphViewer from "./force-graph-viewer";+import ForceGraphViewer from "./graph-viewer";const NeighborsGraph = ({ sketchId, nodeId }: { sketchId: string, nodeId: string }) => {@@ -10,32 +9,23 @@ const NeighborsGraph = ({ sketchId, nodeId }: { sketchId: string, nodeId: stringqueryFn: () => sketchService.getNodeNeighbors(sketchId, nodeId),});return (- <Card className="border bg-muted/30">- <CardHeader className="pb-3">- <CardTitle className="text-base font-medium">- Related- </CardTitle>- </CardHeader>- <CardContent>- <div className="overflow-hidden rounded-lg bg-background border relative">- {isLoading ? <div>Loading...</div> : <div className="flex-1 h-[600px] relative">- <div className="top-2 left-2 absolute">{neighborsData.nds.length - 1} neighbor(s)</div>- <ForceGraphViewer- nodes={neighborsData.nds}- edges={neighborsData.rls}- onNodeClick={() => { }}- onNodeRightClick={() => { }}- onBackgroundClick={() => { }}- showLabels={true}- showIcons={true}- backgroundColor="transparent"- onGraphRef={() => { }}- />- </div>}- </div>- </CardContent>- </Card>-+ <div className="overflow-hidden bg-background border relative h-full w-full">+ {isLoading ? <div>Loading...</div> :+ <>+ <div className="top-2 left-2 absolute text-sm"><span className="font-semibold">{neighborsData.nds.length - 1}</span> <span className="opacity-70">neighbor(s)</span></div>+ <ForceGraphViewer+ nodes={neighborsData.nds}+ edges={neighborsData.rls}+ onNodeClick={() => { }}+ onNodeRightClick={() => { }}+ onBackgroundClick={() => { }}+ showLabels={true}+ showIcons={true}+ backgroundColor="transparent"+ onGraphRef={() => { }}+ />+ </>}+ </div>)}diff --git a/flowsint-app/src/renderer/src/components/graphs/new-actions.tsx b/flowsint-app/src/renderer/src/components/graphs/new-actions.tsxindex a2f0b572..59a17ae8 100644--- a/flowsint-app/src/renderer/src/components/graphs/new-actions.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/new-actions.tsx@@ -88,7 +88,7 @@ export default function ActionDialog() {// Add edge to local stateif (addEdge) {const newEdgeObject = {- type: "straight",+ type: "custom",label: newEdge.label,source: newEdge.source.id,target: newEdge.target.id@@ -146,8 +146,7 @@ export default function ActionDialog() {animate={{ opacity: 1, x: 0 }}exit={{ opacity: 0, x: -20 }}transition={{ duration: 0.2 }}- className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3 p-1 pb-2"- >+ className="grid grid-cols-3 cq-sm:grid-cols-4 cq-md:grid-cols-5 cq-lg:grid-cols-6 cq-xl:grid-cols-6 gap-3 p-1 pb-2" >{items.map((item) => (<ActionCardkey={item.id}@@ -191,9 +190,9 @@ export default function ActionDialog() {}</DialogDescription>- <div className="overflow-y-auto overflow-x-hidden pr-1 -mr-1 flex-grow">+ <div className="overflow-y-auto overflow-x-hidden pr-1 -mr-1 flex-grow @container">{isLoading ? (- <div className="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 gap-3 p-1 pb-2">+ <div className="grid grid-cols-3 cq-sm:grid-cols-4 cq-md:grid-cols-5 cq-lg:grid-cols-6 cq-xl:grid-cols-6 gap-3 p-1 pb-2">{Array.from({ length: 6 }).map((_, index) => (<Card key={index} className="h-full"><CardContent className="p-2 relative flex flex-col items-center text-center h-full">diff --git a/flowsint-app/src/renderer/src/components/graphs/node-editor-modal.tsx b/flowsint-app/src/renderer/src/components/graphs/node-editor-modal.tsxindex 5a9ca691..1f34e4f8 100644--- a/flowsint-app/src/renderer/src/components/graphs/node-editor-modal.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/node-editor-modal.tsx@@ -5,7 +5,7 @@ import { Input } from "@/components/ui/input"import { Label } from "@/components/ui/label"import { Textarea } from "@/components/ui/textarea"import { Badge } from "@/components/ui/badge"-import { Edit3, Save, X, Hash, Type, FileText, Check, Loader2, User } from "lucide-react"+import { Edit3, Save, X, Hash, Type, FileText, Check, Loader2 } from "lucide-react"import type { NodeData } from "@/types"import { useGraphStore } from "@/stores/graph-store"import { MapFromAddress } from "../map/map"@@ -146,7 +146,7 @@ export const NodeEditorModal: React.FC = () => {case 'core-properties':return (<div className="space-y-4">- <div className="grid grid-cols-1 md:grid-cols-2 gap-4">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4"><div className="space-y-2"><Label htmlFor="label" className="text-sm opacity-60 font-medium flex items-center gap-2"><FileText className="h-3 w-3" />@@ -289,21 +289,37 @@ export const NodeEditorModal: React.FC = () => {case 'preview':return (<div className="p-4 rounded-lg bg-background border">- <div className="flex items-center gap-3">- {currentNode.data.src ? (- <Avatar className="rounded-md h-14 w-14">- <AvatarImage className="rounded-none object-contain" src={currentNode.data.src} />- <AvatarFallback>{currentNode.data.label[0]}</AvatarFallback>- </Avatar>- ) : (- <IconComponent />- )}- <div className="flex-1">- <div className="font-medium text-sm">+ <div className="flex items-center gap-4">+ {/* Large Profile Image/Icon */}+ <div className="relative flex-shrink-0">+ {currentNode.data.src ? (+ <Avatar className="rounded-lg h-20 w-20 border-2 border-muted">+ <AvatarImage className="rounded-lg object-cover" src={currentNode.data.src} />+ <AvatarFallback className="text-lg font-semibold rounded-lg">+ {formData.label?.[0]?.toUpperCase() || "?"}+ </AvatarFallback>+ </Avatar>+ ) : (+ <div className="h-30 w-30 rounded-lg border-2 border-muted bg-muted/30 flex items-center justify-center">+ <IconComponent className="h-15 w-15 text-muted-foreground" />+ </div>+ )}+ </div>++ {/* Main Information */}+ <div className="flex-1 min-w-0">+ <h3 className="text-lg font-semibold text-foreground mb-1">{formData.label || "No label"}- </div>- <div className="text-xs text-muted-foreground">- {formData.type || "No type"} • {formData.caption || "No caption"}+ </h3>+ <div className="space-y-1">+ <p className="text-sm font-medium text-primary">+ {formData.type || "No type"}+ </p>+ {formData.caption && (+ <p className="text-sm text-muted-foreground line-clamp-2">+ {formData.caption}+ </p>+ )}</div></div></div>@@ -317,7 +333,7 @@ export const NodeEditorModal: React.FC = () => {return (<div className="overflow-hidden rounded-lg bg-background border">{isLocation ? (- <MapFromAddress+ <MapFromAddresslocations={[{lat: formData.latitude,@@ -325,7 +341,7 @@ export const NodeEditorModal: React.FC = () => {address: formData.label as string,label: formData.label as string}- ]}+ ]}/>) : (<div className="p-4 text-center text-muted-foreground">diff --git a/flowsint-app/src/renderer/src/components/graphs/selected-items-panel.tsx b/flowsint-app/src/renderer/src/components/graphs/selected-items-panel.tsxnew file mode 100644index 00000000..ad2bf77d--- /dev/null+++ b/flowsint-app/src/renderer/src/components/graphs/selected-items-panel.tsx@@ -0,0 +1,189 @@+import React, { memo, useCallback } from 'react';+import { Button } from '@/components/ui/button';+import { Trash2, Sparkles, XIcon, Rocket } from 'lucide-react';+import { GraphNode, useGraphStore } from '@/stores/graph-store';+import { useParams } from '@tanstack/react-router';+import { useConfirm } from '@/components/use-confirm-dialog';+import { toast } from 'sonner';+import { sketchService } from '@/api/sketch-service';+import {+ Tooltip,+ TooltipContent,+ TooltipProvider,+ TooltipTrigger,+} from '@/components/ui/tooltip';+import { useLayoutStore } from '@/stores/layout-store';+import { useNodesDisplaySettings } from '@/stores/node-display-settings';+import { Badge } from '../ui/badge';+import LaunchTransform from './launch-transform';+import { TypeBadge } from '../type-badge';+const SelectedItemsPanel = () => {+ const selectedNodes = useGraphStore(s => s.selectedNodes)++ return (+ <div className='w-full flex flex-col h-full'>+ <div className='p-2 flex items-center justify-between border-b'>+ <div className='ml-2 text-sm truncate text-ellipsis'>+ <span className='font-semibold'>{selectedNodes.length}</span> selected items+ </div>+ <ActionBar />+ </div>+ <div className='grow overflow-y-auto'><SelectedList />+ </div>+ </div>+ )+}++export default memo(SelectedItemsPanel)+++const SelectedNodeItem = memo(({ node, color }: { node: GraphNode, color: string }) => {++ return (<Badge variant="secondary" className="flex w-full items-center justify-between text-left border border-border gap-1.5 text-xs p-2 py-1.5">+ <span className='flex items-center gap-2 truncate text-ellipsis'>+ <span style={{ background: color }} className="w-2 h-2 rounded-full" />+ <span className='truncate text-ellipsis'>{node.data?.label || 'Unknown'}</span>+ </span>+ <TypeBadge type={node?.data?.type} />+ </Badge>)+})++export const SelectedList = () => {+ const selectedNodes = useGraphStore(s => s.selectedNodes)+ const colors = useNodesDisplaySettings(s => s.colors)+ const displayItems = selectedNodes?.slice(0, 10) || []+ const remainingCount = selectedNodes?.length ? Math.max(0, selectedNodes.length - 10) : 0+ return (+ <div className="flex flex-col gap-1.5 p-1">+ {displayItems.map((item: GraphNode, index: number) => {+ const color = colors[item.data.type]+ return (+ <SelectedNodeItem key={index} node={item} color={color} />+ )+ })}+ {remainingCount > 0 && <Badge variant="secondary" className="flex w-full items-center justify-between text-left border border-border gap-1.5 text-xs p-2 py-1.5">+ <span className='flex items-center gap-2 truncate text-ellipsis'>+ <span className='truncate text-ellipsis'>{remainingCount}+ other</span>+ </span>+ </Badge>}+ </div>+ )+}++const ActionBar = () => {+ const { id: sketchId } = useParams({ strict: false })+ const { confirm } = useConfirm();+ const selectedNodes = useGraphStore(s => s.selectedNodes)+ const removeNodes = useGraphStore(s => s.removeNodes);+ const openChat = useLayoutStore(s => s.openChat);+ const clearSelectedNodes = useGraphStore((s) => s.clearSelectedNodes)++ // Ask AI dialog+ const handleAskAI = useCallback((e: React.MouseEvent) => {+ e.stopPropagation();+ openChat()+ }, [openChat])++ // Delete node+ const handleDeleteNodes = useCallback(async () => {+ if (!selectedNodes.length || !sketchId) return+ if (!await confirm({ title: `You are about to delete ${selectedNodes.length} node(s).`, message: "The action is irreversible." })) return++ toast.promise(+ (async () => {+ removeNodes(selectedNodes.map((n) => n.id))+ clearSelectedNodes()+ return sketchService.deleteNodes(sketchId as string, JSON.stringify({ nodeIds: selectedNodes.map((n) => n.id) }))+ })(),+ {+ loading: `Deleting ${selectedNodes.length} node(s)...`,+ success: 'Nodes deleted successfully.',+ error: 'Failed to delete selectedNodes.'+ }+ )+ }, [selectedNodes, confirm, removeNodes, clearSelectedNodes, sketchId])++ const type = selectedNodes[0].data.type+ const isSametype = (node: GraphNode) => node.data.type === type;+ const shareSameType = selectedNodes.every(isSametype)+ const values = !shareSameType ? [] : selectedNodes.map((node: GraphNode) => node.data.label)++ return (+ <div className="flex items-center gap-1">+ <TooltipProvider>+ <Tooltip>+ <TooltipTrigger asChild>+ <div>+ <Button+ onClick={handleAskAI}+ variant="ghost"+ size="sm"+ className="h-6 w-6 p-0 hover:bg-muted opacity-70 hover:opacity-100"+ >+ <Sparkles className="h-3 w-3" strokeWidth={1.5} />+ </Button>+ </div>+ </TooltipTrigger>+ <TooltipContent>+ <p>Ask AI</p>+ </TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <div>+ <Button+ variant="ghost"+ size="sm"+ disabled={selectedNodes.length === 0}+ className="h-6 w-6 p-0 relative text-destructive hover:text-destructive"+ onClick={handleDeleteNodes}+ >+ <Trash2 className="h-3 w-3" strokeWidth={1.5} />+ {selectedNodes.length > 0 && <span className="absolute -top-2 -right-2 z-50 bg-primary text-white text-[10px] rounded-full w-auto min-w-4.5 h-4.5 p-1 flex items-center justify-center">{selectedNodes.length}</span>}+ </Button>+ </div>+ </TooltipTrigger>+ <TooltipContent>+ <p>Delete {selectedNodes.length} nodes</p>+ </TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <div className='ml-2'>+ <LaunchTransform values={values} type={type}>+ <Button+ disabled={!shareSameType}+ size={"sm"}+ className="rounded-full h-7"+ >+ Launch ({selectedNodes.length}) <Rocket className="h-3 w-3" strokeWidth={2} />+ </Button>+ </LaunchTransform>+ </div>+ </TooltipTrigger>+ <TooltipContent>+ {!shareSameType ? <p>All selected items are not the same type</p> : <p>Launch transform</p>}+ </TooltipContent>+ </Tooltip>+ <Tooltip>+ <TooltipTrigger asChild>+ <div>+ <Button+ variant="ghost"+ size="sm"+ disabled={selectedNodes.length === 0}+ className="h-6 w-6"+ onClick={clearSelectedNodes}+ >+ <XIcon className="h-5 w-5" />+ </Button>+ </div>+ </TooltipTrigger>+ <TooltipContent>+ <p>Clear selection</p>+ </TooltipContent>+ </Tooltip>+ </TooltipProvider>+ </div>+ )+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/toolbar.tsx b/flowsint-app/src/renderer/src/components/graphs/toolbar.tsxindex de6821e3..1d1b659e 100644--- a/flowsint-app/src/renderer/src/components/graphs/toolbar.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/toolbar.tsx@@ -15,7 +15,10 @@ import {Waypoints,Table,MapPin,- List+ List,+ SlidersHorizontal,+ GitFork,+ ArrowRightLeft} from "lucide-react"import { memo, useCallback } from "react"import { sketchService } from "@/api/sketch-service"@@ -23,6 +26,9 @@ import { useParams } from "@tanstack/react-router"import { toast } from "sonner"import { cn } from "@/lib/utils"// import { useKeyboardShortcut } from "@/hooks/use-keyboard-shortcut"+import ForceControls from './force-controls'++const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0// Tooltip wrapper component to avoid repetitionconst ToolbarButton = memo(function ToolbarButton({@@ -125,10 +131,10 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: booleansetView("relationships")}, [setView])- // const handleDagreLayoutTB = useCallback(() => {- // setView("hierarchy")- // onLayout && onLayout("dagre-tb")- // }, [onLayout, setView])+ const handleDagreLayoutTB = useCallback(() => {+ setView("hierarchy")+ onLayout && onLayout("dagre-tb")+ }, [onLayout, setView])// const handleDagreLayoutLR = useCallback(() => {// setView("hierarchy")@@ -144,7 +150,7 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: booleanreturn (<div className="flex justify-start gap-2 items-center"><TooltipProvider>- <ToolbarButton+ {/* <ToolbarButtononClick={handleOpenRelationshipDialog}icon={<GitPullRequestCreate className="h-4 w-4 opacity-70" />}tooltip="Create relation"@@ -156,38 +162,39 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: booleantooltip="Delete"disabled={!isMoreThanZero}badge={isMoreThanZero ? selectedNodes.length : null}- />+ /> */}{/* <ToolbarButton disabled icon={<Filter className="h-4 w-4 opacity-70" />} tooltip="Filter" /> */}- {view !== "table" &&- <>- < ToolbarButton- icon={<ZoomIn className="h-4 w-4 opacity-70" />}- tooltip="Zoom In"- onClick={zoomIn}- />- <ToolbarButton- icon={<Minus className="h-4 w-4 opacity-70" />}- tooltip="Zoom Out"- onClick={zoomOut}- />- <ToolbarButton- icon={<Maximize className="h-4 w-4 opacity-70" />}- tooltip="Fit to View"- onClick={zoomToFit}- />- </>}+ <>+ < ToolbarButton+ icon={<ZoomIn className="h-4 w-4 opacity-70" />}+ tooltip="Zoom In"+ onClick={zoomIn}+ disabled={["table", "relationships"].includes(view)}+ />+ <ToolbarButton+ icon={<Minus className="h-4 w-4 opacity-70" />}+ tooltip="Zoom Out"+ onClick={zoomOut}+ disabled={["table", "relationships"].includes(view)}+ />+ <ToolbarButton+ icon={<Maximize className="h-4 w-4 opacity-70" />}+ tooltip="Fit to View"+ onClick={zoomToFit}+ disabled={["table", "relationships"].includes(view)}+ />+ </>{/* <ToolbarButtonicon={<GitFork className="h-4 w-4 opacity-70 rotate-90" />}tooltip={isGraphOnly ? "Graph is too large to render in hierarchy layout" : `Hierarchy (${isMac ? '⌘' : 'ctrl'}+Y)`}onClick={handleDagreLayoutLR}disabled={isGraphOnly}- />+ /> */}<ToolbarButtonicon={<GitFork className="h-4 w-4 opacity-70 rotate-180" />}- tooltip={isGraphOnly ? "Graph is too large to render in hierarchy layout" : `Hierarchy (${isMac ? '⌘' : 'ctrl'}+Y)`}+ tooltip={`Hierarchy (${isMac ? '⌘' : 'ctrl'}+Y)`}onClick={handleDagreLayoutTB}- disabled={isGraphOnly}- /> */}+ /><ToolbarButtonicon={<Waypoints className="h-4 w-4 opacity-70" />}tooltip={"Graph view"}@@ -195,12 +202,12 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: boolean// disabled={isCosmoOnly}/><ToolbarButton- icon={<Table className="h-4 w-4 opacity-70" />}+ icon={<List className="h-4 w-4 opacity-70" />}tooltip={"Table view"}onClick={handleTableLayout}/><ToolbarButton- icon={<List className="h-4 w-4 opacity-70" />}+ icon={<ArrowRightLeft className="h-4 w-4 opacity-70" />}tooltip={"Relationships view"}onClick={handleRelationshipsLayout}/>@@ -222,6 +229,13 @@ export const Toolbar = memo(function Toolbar({ isLoading }: { isLoading: booleanicon={<RotateCw className={cn("h-4 w-4 opacity-70", isLoading && "animate-spin")} />}tooltip="Refresh Graph Data"/>+ <ForceControls>+ <ToolbarButton+ disabled={isLoading}+ icon={<SlidersHorizontal className={cn("h-4 w-4 opacity-70")} />}+ tooltip="Settings"+ />+ </ForceControls></TooltipProvider></div>)diff --git a/flowsint-app/src/renderer/src/components/graphs/wall/custom/connection-line.tsx b/flowsint-app/src/renderer/src/components/graphs/wall/custom/connection-line.tsxdeleted file mode 100644index bca82abe..00000000--- a/flowsint-app/src/renderer/src/components/graphs/wall/custom/connection-line.tsx+++ /dev/null@@ -1,75 +0,0 @@-import { getBezierPath } from '@xyflow/react';-import { getEdgeParams } from '@/lib/utils';-import { memo, useMemo } from 'react';-import { Position, Node } from '@xyflow/react';--interface FloatingConnectionLineProps {- toX: number;- toY: number;- fromPosition: Position;- toPosition: Position;- fromNode: Node;-}--const FloatingConnectionLine = memo(function FloatingConnectionLine({- toX,- toY,- fromPosition,- toPosition,- fromNode,-}: FloatingConnectionLineProps) {- if (!fromNode) {- return null;- }-- // Create a mock target node at the cursor position- const targetNode = useMemo(() => ({- id: 'connection-target',- measured: {- width: 1,- height: 1,- },- internals: {- positionAbsolute: { x: toX, y: toY },- },- }), [toX, toY]);-- const { sx, sy, tx, ty, sourcePos, targetPos } = useMemo(() => getEdgeParams(- fromNode as Node & {- internals: { positionAbsolute: { x: number; y: number } };- measured: { width: number; height: number };- },- targetNode,- ), [fromNode, targetNode]);-- const [edgePath] = useMemo(() => getBezierPath({- sourceX: sx,- sourceY: sy,- sourcePosition: sourcePos || fromPosition,- targetPosition: targetPos || toPosition,- targetX: tx || toX,- targetY: ty || toY,- }), [sx, sy, sourcePos, fromPosition, targetPos, toPosition, tx, toX, ty, toY]);-- return (- <g>- <path- fill="none"- stroke="#222"- strokeWidth={1.5}- className="animated"- d={edgePath}- />- <circle- cx={tx || toX}- cy={ty || toY}- fill="#fff"- r={3}- stroke="#222"- strokeWidth={1.5}- />- </g>- );-});--export default FloatingConnectionLine;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-edge.tsx b/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-edge.tsxnew file mode 100644index 00000000..f2c24738--- /dev/null+++ b/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-edge.tsx@@ -0,0 +1,18 @@+import { CustomEdge } from "@/components/xyflow/custom-edge";+import { memo } from "react";+import { EdgeProps } from "@xyflow/react";++const CustomEdgeLabel = memo((props: EdgeProps) => {+ return (+ <CustomEdge {...props}>+ <span className="block text-[9px] opacity-70 uppercase">+ {props.label}+ </span>+ </CustomEdge>+ );+});++// Add display name for debugging+CustomEdgeLabel.displayName = 'CustomEdgeLabel';++export default CustomEdgeLabel;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-node.tsx b/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-node.tsxindex d971e24c..c86d9761 100644--- a/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-node.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/wall/custom/custom-node.tsx@@ -31,10 +31,9 @@ export const CustomNode = memo(({ data, selected, id }: NodeProps) => {/></div><div- className="text-nowrap text-center max-w-[160px] text-ellipsis truncate"+ className="text-nowrap text-center max-w-[160px] text-ellipsis truncate"style={{- fontSize: 11,- color: (selected || isCurrent(id)) ? "#f97316" : "#94a3b8",+ color: (selected || isCurrent(id)) ? "#f97316" : undefined,marginTop: 2,pointerEvents: "none",}}@@ -44,8 +43,8 @@ export const CustomNode = memo(({ data, selected, id }: NodeProps) => {<divclassName="text-nowrap text-center opacity-70"style={{- fontSize: 8,- color: selected ? "#f97316" : "#94a3b8",+ fontSize: 10,+ color: selected ? "#f97316" : undefined,marginTop: 1,pointerEvents: "none",}}diff --git a/flowsint-app/src/renderer/src/components/graphs/wall/custom/floating-edge.tsx b/flowsint-app/src/renderer/src/components/graphs/wall/custom/floating-edge.tsxdeleted file mode 100644index bb86e305..00000000--- a/flowsint-app/src/renderer/src/components/graphs/wall/custom/floating-edge.tsx+++ /dev/null@@ -1,51 +0,0 @@-import { getSmoothStepPath, useInternalNode } from '@xyflow/react';--import { getEdgeParams } from '@/lib/utils';--function SimpleFloatingEdge({ id, source, target, markerEnd, style }) {- const sourceNode = useInternalNode(source);- const targetNode = useInternalNode(target);-- if (!sourceNode || !targetNode) {- return null;- }-- const { sx, sy, tx, ty, sourcePos, targetPos } = getEdgeParams(- {- ...sourceNode,- measured: {- width: sourceNode.measured?.width ?? 150,- height: sourceNode.measured?.height ?? 40,- },- },- {- ...targetNode,- measured: {- width: targetNode.measured?.width ?? 150,- height: targetNode.measured?.height ?? 40,- },- },- );-- const [edgePath] = getSmoothStepPath({- sourceX: sx,- sourceY: sy,- sourcePosition: sourcePos,- targetPosition: targetPos,- targetX: tx,- targetY: ty,- });-- return (- <path- id={id}- className="react-flow__edge-path"- d={edgePath}- strokeWidth={5}- markerEnd={markerEnd}- style={style}- />- );-}--export default SimpleFloatingEdge;\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/graphs/wall/wall.tsx b/flowsint-app/src/renderer/src/components/graphs/wall/wall.tsxindex 029b9c01..b9b94b2d 100644--- a/flowsint-app/src/renderer/src/components/graphs/wall/wall.tsx+++ b/flowsint-app/src/renderer/src/components/graphs/wall/wall.tsx@@ -4,14 +4,14 @@ import { useState, useCallback, useRef, useEffect, memo, useMemo } from "react"import {ReactFlow,ReactFlowProvider,- Background,+ // Background,type Node,useReactFlow,type NodeMouseHandler,type ColorMode,MiniMap,- BackgroundVariant,- // EdgeTypes,+ // BackgroundVariant,+ EdgeTypes,MarkerType,ConnectionMode,} from "@xyflow/react"@@ -21,20 +21,21 @@ import { useTheme } from "@/components/theme-provider"import { useGraphStore, type GraphNode, type GraphEdge } from "@/stores/graph-store"import { CustomNode } from "./custom/custom-node"// import FloatingEdge from "./custom/floating-edge"-import FloatingConnectionLine from "./custom/connection-line"+// import FloatingConnectionLine from "./custom/connection-line"import GraphLoader from "../graph-loader"import { useGraphControls } from "@/stores/graph-controls-store"import { useNodesDisplaySettings } from "@/stores/node-display-settings"-import ContextMenu from './custom/context-menu';+import ContextMenu from '../context-menu';import { useLayoutStore } from "@/stores/layout-store"+import CustomEdge from "./custom/custom-edge"const nodeTypes = {custom: CustomNode,};-// const edgeTypes = {-// custom: SimpleFloatingEdge,-// };+const edgeTypes = {+ custom: CustomEdge,+};const Wall = memo(({ theme, edges }: { theme: ColorMode, edges: GraphEdge[] }) => {const { fitView, zoomIn, zoomOut, setCenter } = useReactFlow()@@ -59,10 +60,12 @@ const Wall = memo(({ theme, edges }: { theme: ColorMode, edges: GraphEdge[] }) =const [menu, setMenu] = useState<{node: GraphNode;- top: number;- left: number;- right: number;- bottom: number;+ top?: number;+ left?: number;+ right?: number;+ bottom?: number;+ rawTop?: number;+ rawLeft?: number;wrapperWidth: number;wrapperHeight: number;setMenu: (menu: any | null) => void;@@ -227,39 +230,10 @@ const Wall = memo(({ theme, edges }: { theme: ColorMode, edges: GraphEdge[] }) =const relativeX = event.clientX - pane.left;const relativeY = event.clientY - pane.top;- // Calculate available space in each direction- const menuWidth = 320; // Default menu width- const menuHeight = 250; // Use a more reasonable height for overflow calculation- const padding = 20; // Minimum padding from edges-- // Determine if menu would overflow in each direction- const wouldOverflowRight = relativeX + menuWidth + padding > pane.width;- const wouldOverflowBottom = relativeY + menuHeight + padding > pane.height;-- // Calculate final position- let finalTop = 0;- let finalLeft = 0;- let finalRight = 0;- let finalBottom = 0;-- if (wouldOverflowRight) {- finalRight = pane.width - relativeX;- } else {- finalLeft = relativeX;- }-- if (wouldOverflowBottom) {- finalBottom = pane.height - relativeY;- } else {- finalTop = relativeY;- }-setMenu({node: node as GraphNode,- top: finalTop,- left: finalLeft,- right: finalRight,- bottom: finalBottom,+ rawTop: relativeY,+ rawLeft: relativeX,wrapperWidth: pane.width,wrapperHeight: pane.height,setMenu: setMenu,@@ -273,7 +247,7 @@ const Wall = memo(({ theme, edges }: { theme: ColorMode, edges: GraphEdge[] }) =nodes: visibleNodes,edges: visibleEdges,nodeTypes,- // edgeTypes: edgeTypes as EdgeTypes,+ edgeTypes: edgeTypes as EdgeTypes,onInit: setReactFlowInstance,onNodeContextMenu,onDrop,@@ -284,7 +258,6 @@ const Wall = memo(({ theme, edges }: { theme: ColorMode, edges: GraphEdge[] }) =onNodesChange,onEdgesChange,onConnect,- connectionLineComponent: FloatingConnectionLine,fitView: true,proOptions: { hideAttribution: true },colorMode: theme,@@ -311,8 +284,10 @@ const Wall = memo(({ theme, edges }: { theme: ColorMode, edges: GraphEdge[] }) =return (<><div ref={reactFlowWrapper} className="w-full h-full bg-background">- <ReactFlow {...reactFlowProps}>- <Background variant={"dots" as BackgroundVariant} bgColor="var(--background)" />+ <ReactFlow {...reactFlowProps} className="!bg-background">+ {/* <Background+ variant={"dots" as BackgroundVariant}+ bgColor="var(--background)" /> */}{menu && <ContextMenu{...menu}/>}diff --git a/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsx b/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsxindex e616e8e7..62bba4b0 100644--- a/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsx+++ b/flowsint-app/src/renderer/src/components/investigations/investigation-list.tsx@@ -9,8 +9,6 @@ import { Input } from "../ui/input"import { cn } from "@/lib/utils"import { Link, useParams } from "@tanstack/react-router"import { SkeletonList } from "../shared/skeleton-list"-import { useSketchNavigation } from "@/hooks/use-sketch-navigation"-import { TabLink } from "../tab-link"import { useConfirm } from "@/components/use-confirm-dialog"import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "../ui/dropdown-menu"import { toast } from "sonner"@@ -18,12 +16,9 @@ import { sketchService } from "@/api/sketch-service"import { useState, useMemo } from "react"export const SketchListItem = ({ sketch, investigationId, refetch }: { sketch: Sketch, investigationId: string, refetch: () => void }) => {- const { navigateToSketch } = useSketchNavigation({- sketchId: sketch.id,- investigationId,- });const { confirm } = useConfirm();+const handleDelete = async (e: React.MouseEvent) => {e.preventDefault();e.stopPropagation();@@ -45,11 +40,14 @@ export const SketchListItem = ({ sketch, investigationId, refetch }: { sketch: S};return (- <TabLink+ <Link+ to="/dashboard/investigations/$investigationId/$type/$id"+ params={{+ investigationId: investigationId,+ type: "graph",+ id: sketch.id+ }}id={sketch.id}- type="graph"- investigationId={investigationId}- onNavigate={navigateToSketch}>{({ isActive }) => (<div className={cn(@@ -75,7 +73,7 @@ export const SketchListItem = ({ sketch, investigationId, refetch }: { sketch: S</DropdownMenu></div>)}- </TabLink>+ </Link>);};diff --git a/flowsint-app/src/renderer/src/components/layout/log-panel.tsx b/flowsint-app/src/renderer/src/components/layout/log-panel.tsxindex e5cdfc6b..0f3cffd5 100644--- a/flowsint-app/src/renderer/src/components/layout/log-panel.tsx+++ b/flowsint-app/src/renderer/src/components/layout/log-panel.tsx@@ -5,7 +5,6 @@ import { logService } from "@/api/log-service"import { useConfirm } from "../use-confirm-dialog"import { useParams } from "@tanstack/react-router"import {- Terminal,Info,AlertTriangle,AlertCircle,@@ -136,11 +135,11 @@ export function LogPanel() {}return (- <div className="h-full bg-background overflow-hidden flex flex-col relative">- <ScrollArea className="flex-1 h-full" ref={scrollAreaRef}>+ <div className="h-full bg-card overflow-hidden flex flex-col relative">+ <div className={cn("flex-1 h-full", logs.length === 0 ? "overflow-hidden" : "overflow-y-auto")} ref={scrollAreaRef} ><div className="text-sm h-full">{logs.length === 0 ? (- <div className="text-center text-muted-foreground h-full py-8 flex flex-col items-center justify-center">+ <div className="text-center text-muted-foreground h-full py-8 flex !overflow-hidden flex-col items-center justify-center">{/* <div className="flex items-center gap-2 mb-4"><div className="w-2 h-2 bg-blue-400 rounded-full animate-pulse" style={{ animationDelay: '0ms' }} /><div className="w-2 h-2 bg-green-400 rounded-full animate-pulse" style={{ animationDelay: '200ms' }} />@@ -182,7 +181,7 @@ export function LogPanel() {)}<div ref={bottomRef} /></div>- </ScrollArea>+ </div><div className="absolute top-1 right-1"><Button variant="ghost" size="icon" onClick={refetch}><RotateCcw strokeWidth={1.5} className="w-4 h-4 opacity-60" />diff --git a/flowsint-app/src/renderer/src/components/layout/root.layout.tsx b/flowsint-app/src/renderer/src/components/layout/root.layout.tsxindex d4f0c438..d7924d61 100644--- a/flowsint-app/src/renderer/src/components/layout/root.layout.tsx+++ b/flowsint-app/src/renderer/src/components/layout/root.layout.tsx@@ -7,9 +7,11 @@ import { ConfirmContextProvider } from "@/components/use-confirm-dialog"import { ResizableHandle, ResizablePanel, ResizablePanelGroup } from "../ui/resizable"import { LogPanel } from "./log-panel"import { useLayoutStore } from "@/stores/layout-store"-import NotesPanel from "../analyses/notes-panel"+// import NotesPanel from "../analyses/notes-panel"import { useKeyboardShortcut } from "@/hooks/use-keyboard-shortcut"import { useParams } from "@tanstack/react-router"+import DetailsPanel from "../graphs/details-panel"+import { useGraphStore } from "@/stores/graph-store"interface LayoutProps {children: ReactNode@@ -19,21 +21,24 @@ export default function RootLayout({ children }: LayoutProps) {const isOpenConsole = useLayoutStore(s => s.isOpenConsole)const toggleConsole = useLayoutStore(s => s.toggleConsole)const isOpenPanel = useLayoutStore(s => s.isOpenPanel)- const isOpenAnalysis = useLayoutStore(s => s.isOpenAnalysis)+ // const isOpenAnalysis = useLayoutStore(s => s.isOpenAnalysis)+ const isOpenDetails = useLayoutStore(s => s.isOpenDetails)+ const toggleDetails = useLayoutStore(s => s.toggleDetails)const togglePanel = useLayoutStore(s => s.togglePanel)const closePanel = useLayoutStore(s => s.closePanel)const openPanel = useLayoutStore(s => s.openPanel)const toggleAnalysis = useLayoutStore(s => s.toggleAnalysis)const closeAnalysis = useLayoutStore(s => s.closeAnalysis)const openAnalysis = useLayoutStore(s => s.openAnalysis)- const { investigationId, type, id } = useParams({ strict: false })+ const currentNode = useGraphStore((s) => s.currentNode)+ const { investigationId, id } = useParams({ strict: false })// Set up keyboard shortcut for chat paneluseKeyboardShortcut({key: "l",ctrlOrCmd: true,- callback: toggleAnalysis+ callback: toggleDetails})useKeyboardShortcut({key: "b",@@ -52,95 +57,98 @@ export default function RootLayout({ children }: LayoutProps) {{/* Top navbar */}<TopNavbar />{/* Main layout */}- <ResizablePanelGroup autoSaveId="conditional" direction="vertical" className="flex-1 min-h-0">- {/* Main content area with optional console */}- <ResizablePanel order={1} id="main" defaultSize={isOpenConsole ? 70 : 100} minSize={30}>- <ResizablePanelGroup- autoSaveId="conditional2"- direction="vertical"- className="h-full"- >- {/* Main content */}- <ResizablePanel id="content" order={1} defaultSize={100} minSize={30}>- <ResizablePanelGroup- direction="horizontal"- autoSaveId="conditional3"- className="h-full"- >- <Sidebar />- {isOpenPanel && (- <>- <ResizablePanel- id="sidebar"- className="min-w-64"- order={2}- defaultSize={20}- minSize={16}- maxSize={30}- onCollapse={closePanel}- onExpand={openPanel}- collapsible={true}- collapsedSize={0}- >- {/* <div className="h-10 bg-card flex items-center justify-end px-2 text-sm w-full font-semibold border-b">+ <div className="flex grow">+ <Sidebar />+ <ResizablePanelGroup autoSaveId="conditional" direction="vertical" className="flex-1 min-h-0">+ {/* Main content area with optional console */}+ <ResizablePanel order={1} id="main" defaultSize={isOpenConsole ? 70 : 100} minSize={30}>+ <ResizablePanelGroup+ autoSaveId="conditional2"+ direction="vertical"+ className="h-full"+ >+ {/* Main content */}+ <ResizablePanel id="content" order={1} defaultSize={100} minSize={30}>+ <ResizablePanelGroup+ direction="horizontal"+ autoSaveId="conditional3"+ className="h-full"+ >++ {isOpenPanel && (+ <>+ <ResizablePanel+ id="sidebar"+ className="min-w-64"+ order={2}+ defaultSize={20}+ minSize={16}+ maxSize={30}+ onCollapse={closePanel}+ onExpand={openPanel}+ collapsible={true}+ collapsedSize={0}+ >+ {/* <div className="h-10 bg-card flex items-center justify-end px-2 text-sm w-full font-semibold border-b"><PathBreadcrumb /></div> */}- <div className="h-full flex flex-col overflow-hidden bg-card">- <SecondaryNavigation />- </div>- </ResizablePanel>- <ResizableHandle />- </>- )}- <ResizablePanel className="h-full w-full" id="children" order={3}>- {children}- </ResizablePanel>- {isOpenAnalysis && type !== "analysis" && investigationId && (- <>- <ResizableHandle withHandle />- <ResizablePanel- id="notes"- order={4}- defaultSize={20}- minSize={16}- maxSize={40}- onCollapse={closeAnalysis}- onExpand={openAnalysis}- collapsible={true}- collapsedSize={2}- >- <NotesPanel />- </ResizablePanel>- </>- )}- </ResizablePanelGroup>- </ResizablePanel>+ <div className="h-full flex flex-col overflow-hidden bg-card">+ <SecondaryNavigation />+ </div>+ </ResizablePanel>+ <ResizableHandle />+ </>+ )}+ <ResizablePanel className="h-full w-full" id="children" order={3}>+ {children}+ </ResizablePanel>+ {isOpenDetails && id && (+ <>+ <ResizableHandle withHandle />+ <ResizablePanel+ id="details-panel"+ order={4}+ defaultSize={20}+ minSize={16}+ maxSize={40}+ onCollapse={closeAnalysis}+ onExpand={openAnalysis}+ collapsible={true}+ collapsedSize={2}+ >+ {<DetailsPanel node={currentNode} />}+ </ResizablePanel>+ </>+ )}+ </ResizablePanelGroup>+ </ResizablePanel>- {/* Status bar */}- <div className="h-8 shrink-0">- <StatusBar />- </div>+ {/* Status bar */}+ <div className="h-8 shrink-0">+ <StatusBar />+ </div>- {/* Console panel - only shown when isOpen is true */}- {isOpenConsole && id && (- <>- <ResizableHandle />- <ResizablePanel- id="console"- order={5}- defaultSize={30}- minSize={10}- maxSize={50}- >- <div className="h-full overflow-hidden">- <LogPanel />- </div>- </ResizablePanel>- </>- )}- </ResizablePanelGroup>- </ResizablePanel>- </ResizablePanelGroup>+ {/* Console panel - only shown when isOpen is true */}+ {isOpenConsole && id && (+ <>+ <ResizableHandle />+ <ResizablePanel+ id="console"+ order={5}+ defaultSize={30}+ minSize={10}+ maxSize={50}+ >+ <div className="h-full overflow-hidden">+ <LogPanel />+ </div>+ </ResizablePanel>+ </>+ )}+ </ResizablePanelGroup>+ </ResizablePanel>+ </ResizablePanelGroup>+ </div></div></ConfirmContextProvider>)diff --git a/flowsint-app/src/renderer/src/components/layout/sidebar.tsx b/flowsint-app/src/renderer/src/components/layout/sidebar.tsxindex 2f6c76b8..7b3c78be 100644--- a/flowsint-app/src/renderer/src/components/layout/sidebar.tsx+++ b/flowsint-app/src/renderer/src/components/layout/sidebar.tsx@@ -1,8 +1,9 @@import {- ChevronsRightIcon,Fingerprint,Home,+ Lock,type LucideIcon,+ PanelLeft,Workflow} from "lucide-react"import { Link } from "@tanstack/react-router"@@ -23,13 +24,12 @@ interface NavItem {export function Sidebar() {const togglePanel = useLayoutStore(s => s.togglePanel)- const isOpenPanel = useLayoutStore(s => s.isOpenPanel)const navItems: NavItem[] = [{ icon: Home, label: "Dashboard", href: "/dashboard/" },- { icon: Fingerprint, label: "Cases", href: "/dashboard/investigations" },- // { icon: BrickWall, label: "Walls", href: "/dashboard/investigations/wall" },{ icon: Workflow, label: "Flows", href: "/dashboard/transforms" },+ { icon: Lock, label: "Vault", href: "/dashboard/vault" },+]const commonClasses =@@ -79,8 +79,8 @@ export function Sidebar() {<div className="grow"></div><div className="flex justify-center items-center p-3"><Button variant={"ghost"} onClick={togglePanel}>- <ChevronsRightIcon- className={`h-12 w-12 transition-transform duration-200 ${isOpenPanel ? 'rotate-180' : 'rotate-0'}`}+ <PanelLeft+ className={`h-12 w-12 transition-transform duration-200`}/></Button></div>diff --git a/flowsint-app/src/renderer/src/components/layout/status-bar.tsx b/flowsint-app/src/renderer/src/components/layout/status-bar.tsxindex 8b3c3a8e..961b210c 100644--- a/flowsint-app/src/renderer/src/components/layout/status-bar.tsx+++ b/flowsint-app/src/renderer/src/components/layout/status-bar.tsx@@ -1,5 +1,5 @@import { Button } from "@/components/ui/button"-import { Terminal, Trash, Unlock } from "lucide-react"+import { Terminal, Unlock } from "lucide-react"import { ModeToggle } from "../mode-toggle"import { useLayoutStore } from "@/stores/layout-store"import Legend from "../graphs/legend"diff --git a/flowsint-app/src/renderer/src/components/layout/top-navbar.tsx b/flowsint-app/src/renderer/src/components/layout/top-navbar.tsxindex 74a3e5f8..6d7f2129 100644--- a/flowsint-app/src/renderer/src/components/layout/top-navbar.tsx+++ b/flowsint-app/src/renderer/src/components/layout/top-navbar.tsx@@ -5,11 +5,34 @@ import { NavUser } from "../nav-user"import { Link, useParams } from "@tanstack/react-router"import InvestigationSelector from "./investigation-selector"import SketchSelector from "./sketch-selector"+import { useEffect, useState } from "react"export function TopNavbar() {const { investigationId, id } = useParams({ strict: false })+ const [isFullscreen, setIsFullscreen] = useState(false)++ useEffect(() => {+ const checkWindowState = async () => {+ try {+ const windowState = await window.api.getWindowState()+ setIsFullscreen(windowState.isFullscreen)+ } catch (error) {+ console.error('Failed to get window state:', error)+ setIsFullscreen(false)+ }+ }+ checkWindowState()+ const handleResize = () => {+ setTimeout(checkWindowState, 100)+ }+ window.addEventListener('resize', handleResize)+ return () => {+ window.removeEventListener('resize', handleResize)+ }+ }, [])+return (- <header className="flex items-center bg-card h-12 px-4 border-b shrink-0">+ <header className={`flex items-center bg-card h-12 border-b shrink-0 ${isFullscreen ? 'px-4' : 'pl-20 pr-4'} -webkit-app-region-drag`}><div className="flex items-center gap-4"><Link to="/dashboard" className="flex items-center gap-2"><img src="/icon.png" alt="Flowsint" className="h-8 w-8" />@@ -26,7 +49,7 @@ export function TopNavbar() {<div className="grow flex items-center justify-center"><Command /></div>- <div className="flex items-center gap-2">+ <div className="flex items-center gap-2 -webkit-app-region-no-drag"><Button variant="ghost" size="icon"><Settings className="h-5 w-5 opacity-60" /></Button>diff --git a/flowsint-app/src/renderer/src/components/map/map.tsx b/flowsint-app/src/renderer/src/components/map/map.tsxindex 5de9231c..f8f06642 100644--- a/flowsint-app/src/renderer/src/components/map/map.tsx+++ b/flowsint-app/src/renderer/src/components/map/map.tsx@@ -3,6 +3,7 @@ import { useQuery } from "@tanstack/react-query";import L from "leaflet";import "leaflet/dist/leaflet.css";import { useTheme } from "../theme-provider";+import { MapPin } from "lucide-react";export type LocationPoint = {lat?: number;@@ -173,17 +174,12 @@ export const MapFromAddress: React.FC<MapFromAddressProps> = ({// Don't render if we don't have any valid coordinatesif (validCoordinates.length === 0) {return (- <div className="h-full w-full flex items-center justify-center">- <div className="text-center space-y-3">- <div className="w-12 h-12 bg-muted rounded-full flex items-center justify-center mx-auto">- <svg className="w-6 h-6 text-muted-foreground" fill="none" stroke="currentColor" viewBox="0 0 24 24">- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />- <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />- </svg>- </div>+ <div className="w-full pt-18 flex items-center justify-center h-full">+ <div className="text-center space-y-4">+ <MapPin className="mx-auto h-12 w-12 text-muted-foreground" /><div>- <p className="font-medium text-foreground">No locations to display</p>- <p className="text-sm text-muted-foreground">No valid coordinates provided.</p>+ <h3 className="text-lg font-semibold">No location to display</h3>+ <p className="text-muted-foreground">This sketch doesn't have any location yet.</p></div></div></div>diff --git a/flowsint-app/src/renderer/src/components/shared/form-field.tsx b/flowsint-app/src/renderer/src/components/shared/form-field.tsxindex 72605659..b9c005dd 100644--- a/flowsint-app/src/renderer/src/components/shared/form-field.tsx+++ b/flowsint-app/src/renderer/src/components/shared/form-field.tsx@@ -1,57 +1,58 @@// src/components/FormField.tsximport React, { type InputHTMLAttributes } from 'react';import { useFormContext, type RegisterOptions, type FieldError } from 'react-hook-form';+import { Input } from '../ui/input';interface FormFieldProps extends InputHTMLAttributes<HTMLInputElement> {- name: string;- label: string;- registerOptions?: RegisterOptions;- error?: FieldError;- type?: string;- placeholder?: string;- className?: string;+ name: string;+ label: string;+ registerOptions?: RegisterOptions;+ error?: FieldError;+ type?: string;+ placeholder?: string;+ className?: string;}const FormField: React.FC<FormFieldProps> = ({- name,- label,- registerOptions,- error,- type = 'text',- placeholder = '',- className = '',- ...rest+ name,+ label,+ registerOptions,+ error,+ type = 'text',+ placeholder = '',+ className = '',+ ...rest}) => {- // Si utilisé dans un FormProvider, on peut récupérer le registre ici- const formContext = useFormContext();+ // Si utilisé dans un FormProvider, on peut récupérer le registre ici+ const formContext = useFormContext();- // Détermine si on utilise le contexte ou des props directes- const register = formContext ? formContext.register : undefined;- const fieldError = error || (formContext ? formContext.formState.errors[name] : undefined);+ // Détermine si on utilise le contexte ou des props directes+ const register = formContext ? formContext.register : undefined;+ const fieldError = error || (formContext ? formContext.formState.errors[name] : undefined);- return (- <div className={`space-y-1 ${className}`}>- <label htmlFor={name} className="block text-sm font-medium">- {label}- </label>+ return (+ <div className={`space-y-1 ${className}`}>+ <label htmlFor={name} className="block text-sm font-medium">+ {label}+ </label>- <input- id={name}- type={type}- placeholder={placeholder}- className={`mt-1 block w-full px-3 py-2 border ${fieldError ? 'border-red-300' : 'border-gray-300'- } rounded-md shadow-sm placeholder-gray-400 focus:outline-none sm:text-sm`}- {...(register ? register(name, registerOptions) : {})}- {...rest}- />+ <Input+ id={name}+ type={type}+ placeholder={placeholder}+ className={`mt-1 block w-full px-3 py-2 border ${fieldError ? 'border-red-300' : 'border-border'+ } rounded-md shadow-sm placeholder-gray-400 focus:outline-none sm:text-sm`}+ {...(register ? register(name, registerOptions) : {})}+ {...rest}+ />- {fieldError && (- <p className="mt-1 text-sm text-red-600">- {fieldError.message as string}- </p>- )}- </div>- );+ {fieldError && (+ <p className="mt-1 text-sm text-red-600">+ {fieldError.message as string}+ </p>+ )}+ </div>+ );};export default FormField;@@ -69,7 +70,7 @@ const MyForm = () => {<FormFieldname="username"label="Nom d'utilisateur"- registerOptions={{ required: 'Ce champ est requis' }}+ registerOptions={{ required: 'Ce champ is required' }}/><button type="submit">Envoyer</button></form>@@ -90,7 +91,7 @@ const MyForm = () => {<FormFieldname="username"label="Nom d'utilisateur"- {...register("username", { required: 'Ce champ est requis' })}+ {...register("username", { required: 'Ce champ is required' })}error={errors.username}/><button type="submit">Envoyer</button>diff --git a/flowsint-app/src/renderer/src/components/shared/skeleton-list.tsx b/flowsint-app/src/renderer/src/components/shared/skeleton-list.tsxindex a68c2d4e..de79c93c 100644--- a/flowsint-app/src/renderer/src/components/shared/skeleton-list.tsx+++ b/flowsint-app/src/renderer/src/components/shared/skeleton-list.tsx@@ -11,7 +11,7 @@ interface SkeletonListProps {export function SkeletonList({ rowCount, className, mode = 'list' }: SkeletonListProps) {if (mode === 'card') {return (- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-6">{Array.from({ length: rowCount }).map((_, i) => (<Card key={i} className="group"><CardHeader className="pb-2">diff --git a/flowsint-app/src/renderer/src/components/tab-bar.tsx b/flowsint-app/src/renderer/src/components/tab-bar.tsxdeleted file mode 100644index 13268bed..00000000--- a/flowsint-app/src/renderer/src/components/tab-bar.tsx+++ /dev/null@@ -1,61 +0,0 @@-import { useBoundStore } from '@/stores/use-bound-store'-import { AnimatePresence, motion, Reorder } from 'framer-motion'-import { MdAdd } from 'react-icons/md'-import { Tab } from './tab'-import { useParams } from '@tanstack/react-router'--export default function TabBar() {- const tabs = useBoundStore((state) => state.tabs.items)- const setSelectedTab = useBoundStore((state) => state.tabs.setSelectedTab)- const remove = useBoundStore((state) => state.tabs.remove)- const add = useBoundStore((state) => state.tabs.add)- const setTabs = useBoundStore((state) => state.tabs.reorder)- const selectedTab = useBoundStore((state) => state.tabs.selectedTabId)- const selectedTabIndex = useBoundStore((state) => state.tabs.selectedTabIndex)- const { investigationId } = useParams({ strict: false })-- const handleAddTab = () => {- if (investigationId) {- add({- id: `new-tab-${Date.now()}`,- type: 'graph',- investigationId,- title: 'New Tab'- })- }- }-- return (- <div className="flex flex-row flex-grow bg-background">- <Reorder.Group- as="ul"- axis="x"- onReorder={setTabs}- className="flex-grow flex-nowrap flex justify-start items-center pr-[10px]"- values={tabs}- >- <AnimatePresence initial={false}>- {tabs.map((item, index) => (- <Tab- key={item.id}- item={item}- isSelected={selectedTab === item.id}- onClick={() => setSelectedTab(item)}- onRemove={() => remove(item)}- showSeparator={index !== selectedTabIndex - 1 && tabs.length > 2}- />- ))}- <motion.button- className="titlebar-button flex items-center justify-center hover:bg-white/5- rounded-full h-6 w-6 transition-all duration-300 ml-2"- onClick={handleAddTab}- whileTap={{ scale: 0.9 }}- >- <MdAdd className="opacity-55 hover:opacity-100 transition-all text-white duration-300" />- </motion.button>- </AnimatePresence>- </Reorder.Group>- </div>- )-}-diff --git a/flowsint-app/src/renderer/src/components/tab-link.tsx b/flowsint-app/src/renderer/src/components/tab-link.tsxdeleted file mode 100644index 0b4e928e..00000000--- a/flowsint-app/src/renderer/src/components/tab-link.tsx+++ /dev/null@@ -1,37 +0,0 @@-import * as React from "react";-import { Link } from "@tanstack/react-router";-import type { NavigateToTabOptions } from "@/hooks/use-navigate-to-tab";--interface TabLinkProps {- id: string;- type: "graph" | "wall";- investigationId: string;- children: ({ isActive }: { isActive: boolean }) => React.ReactNode;- onNavigate: (options: NavigateToTabOptions) => void;- preload?: boolean;-}--export const TabLink: React.FC<TabLinkProps> = ({- id,- type,- investigationId,- children,- onNavigate,- preload = false,-}) => (- <Link- to="/dashboard/investigations/$investigationId/$type/$id"- params={{- investigationId,- type,- id,- }}- preload={preload ? "intent" : false}- onClick={(e) => {- e.preventDefault();- onNavigate({ id, type, investigationId });- }}- >- {({ isActive }) => children({ isActive })}- </Link>-);\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/table/index.tsx b/flowsint-app/src/renderer/src/components/table/index.tsxindex 3bb39500..c7e192ae 100644--- a/flowsint-app/src/renderer/src/components/table/index.tsx+++ b/flowsint-app/src/renderer/src/components/table/index.tsx@@ -1,17 +1,10 @@import { useGraphStore } from "@/stores/graph-store"-import { columns } from "./columns"-import { DataTable } from "./data-table"-import React from "react"+import NodesTable from "./nodes-view"-export default function NodesTable() {+export default function NodesViewTable() {const nodes = useGraphStore(s => s.nodes)-- // Memoize columns to prevent unnecessary re-renders- const memoizedColumns = React.useMemo(() => columns, [])return (- <div className="w-full pt-14">- <DataTable columns={memoizedColumns} data={nodes} />- </div>+ <NodesTable nodes={nodes} />)}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/table/nodes-view.tsx b/flowsint-app/src/renderer/src/components/table/nodes-view.tsxnew file mode 100644index 00000000..55261956--- /dev/null+++ b/flowsint-app/src/renderer/src/components/table/nodes-view.tsx@@ -0,0 +1,208 @@+import { GraphNode, useGraphStore } from "@/stores/graph-store";+import { useVirtualizer } from "@tanstack/react-virtual";+import { useRef, useState, useMemo, useCallback } from "react";+import { Input } from "@/components/ui/input";+import { Badge } from "@/components/ui/badge";+import { Card, CardContent } from "@/components/ui/card";+import { Search, Users, Link, Filter } from "lucide-react";+import { useIcon } from "@/hooks/use-icon";+import {+ Select,+ SelectContent,+ SelectItem,+ SelectTrigger,+ SelectValue,+} from "@/components/ui/select";+import { CopyButton } from "../copy";++export type RelationshipType = {+ source: GraphNode+ target: GraphNode+ edge: { label: string }+}++const ITEM_HEIGHT = 67; // Balanced spacing between items (55px card + 12px padding)++// Separate component for node item to avoid hook order issues+interface NodeItemProps {+ node: GraphNode;+ style: React.CSSProperties;+ onNodeClick: (node: GraphNode) => void+}++function NodeItem({ node, style, onNodeClick }: NodeItemProps) {+ const SourceIcon = useIcon(node.data?.type, node.data?.src);++ const handleNodeClik = useCallback(() => {+ onNodeClick(node)+ }, [])+++ return (+ <div style={style} className="px-4 pb-2">+ <Card className="h-[55px] hover:shadow-md transition-shadow duration-200 p-0">+ <CardContent className="p-3 h-[55px] flex items-center gap-2 min-w-0">+ {/* Source Node */}+ <div className="flex items-center gap-2 flex-1 min-w-0">+ <div className="flex items-center justify-center w-8 h-8 rounded-full bg-muted flex-shrink-0">+ <SourceIcon className="h-4 w-4" />+ </div>+ <button onClick={handleNodeClik} className="font-medium text-sm hover:text-primary hover:underline cursor-pointer text-left max-w-full">+ <span className="block truncate">+ {node.data?.label ?? node.id}+ </span>+ </button>+ <CopyButton content={node.data?.label ?? node.id} />+ </div>+ <div><Badge variant={"outline"}>{node.data.type}</Badge></div>+ </CardContent>+ </Card>+ </div>+ );+}++type NodesTableProps = {+ nodes: GraphNode[]+}+export default function NodesTable({ nodes }: NodesTableProps) {+ const [searchQuery, setSearchQuery] = useState("");+ const [selectedType, setSelectedType] = useState<string>("all");+ const parentRef = useRef<HTMLDivElement>(null);+ const setCurrentNode = useGraphStore(s => s.setCurrentNode)+ const setOpenNodeEditorModal = useGraphStore(s => s.setOpenNodeEditorModal)++ const onNodeClick = useCallback((node: GraphNode) => {+ setCurrentNode(node)+ setOpenNodeEditorModal(true)+ }, [setCurrentNode, setOpenNodeEditorModal])+++ // Filter nodes based on search and type+ const filteredNodes = useMemo(() => {+ if (!nodes) return [];++ return nodes.filter((node: GraphNode) => {+ const matchesSearch = searchQuery === "" ||+ node.data?.label?.toLowerCase().includes(searchQuery.toLowerCase()) ||+ node.data?.label?.toLowerCase().includes(searchQuery.toLowerCase())++ const matchesType = selectedType === "all" ||+ node.data?.type === selectedType ||+ node.data?.type === selectedType;++ return matchesSearch && matchesType;+ });+ }, [nodes, searchQuery, selectedType]);++ // Get unique node types for filter+ const nodeTypes = useMemo(() => {+ if (!nodes) return [];+ const types = new Set<string>();+ nodes.forEach((node: GraphNode) => {+ if (node.data?.type) types.add(node.data.type);+ if (node.data?.type) types.add(node.data.type);+ });+ return Array.from(types).sort();+ }, [nodes]);++ const virtualizer = useVirtualizer({+ count: filteredNodes.length,+ getScrollElement: () => parentRef.current,+ estimateSize: () => ITEM_HEIGHT,+ overscan: 5,+ });++ if (!nodes || nodes.length === 0) {+ return (+ <div className="w-full pt-18 flex items-center justify-center h-full">+ <div className="text-center space-y-4">+ <Link className="mx-auto h-12 w-12 text-muted-foreground" />+ <div>+ <h3 className="text-lg font-semibold">No nodes found</h3>+ <p className="text-muted-foreground">This sketch doesn't have any nodes yet.</p>+ </div>+ </div>+ </div>+ );+ }++ return (+ <div className="w-full grow flex flex-col pt-18 space-y-4 p-4 px-6">+ {/* Header with stats */}+ <div className="flex items-center justify-between">+ <div className="space-y-1">+ <h2 className="text-2xl font-bold tracking-tight">Entities</h2>+ <p className="text-muted-foreground">+ {filteredNodes.length} of {nodes.length} nodes+ </p>+ </div>+ <Badge variant="secondary" className="flex items-center gap-2">+ <Users className="h-4 w-4" />+ {nodes.length} total+ </Badge>+ </div>++ {/* Search and Filter */}+ <div className="flex gap-4">+ <div className="relative flex-1">+ <Search className="absolute left-3 top-1/2 transform -translate-y-1/2 h-4 w-4 text-muted-foreground" />+ <Input+ placeholder="Search nodes, nodes, or types..."+ value={searchQuery}+ onChange={(e) => setSearchQuery(e.target.value)}+ className="pl-10"+ />+ </div>+ <Select value={selectedType} onValueChange={setSelectedType}>+ <SelectTrigger className="w-48">+ <Filter className="h-4 w-4 mr-2 text-muted-foreground" />+ <SelectValue placeholder="Filter by type" />+ </SelectTrigger>+ <SelectContent>+ <SelectItem value="all">All Types</SelectItem>+ {nodeTypes.map((type) => (+ <SelectItem key={type} value={type}>+ <span className="capitalize">{type}</span>+ </SelectItem>+ ))}+ </SelectContent>+ </Select>+ </div>++ {/* Virtualized List */}+ <div+ ref={parentRef}+ className="grow overflow-auto py-4 rounded-lg border"+ >+ <div+ style={{+ height: `${virtualizer.getTotalSize()}px`,+ width: '100%',+ position: 'relative',+ }}+ className="space-y-2"+ >+ {virtualizer.getVirtualItems().map((virtualRow) => {+ const node = filteredNodes[virtualRow.index];++ return (+ <NodeItem+ key={virtualRow.index}+ node={node}+ onNodeClick={onNodeClick}+ style={{+ position: 'absolute',+ top: 0,+ left: 0,+ width: '100%',+ height: `${virtualRow.size}px`,+ transform: `translateY(${virtualRow.start}px)`,+ }}+ />+ );+ })}+ </div>+ </div>+ </div>+ );+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/components/table/relationships-view.tsx b/flowsint-app/src/renderer/src/components/table/relationships-view.tsxindex ac9d050d..779b9fd7 100644--- a/flowsint-app/src/renderer/src/components/table/relationships-view.tsx+++ b/flowsint-app/src/renderer/src/components/table/relationships-view.tsx@@ -1,9 +1,9 @@import { useQuery } from "@tanstack/react-query";import { useParams } from "@tanstack/react-router";import { sketchService } from "@/api/sketch-service";-import { GraphNode } from "@/stores/graph-store";+import { GraphNode, useGraphStore } from "@/stores/graph-store";import { useVirtualizer } from "@tanstack/react-virtual";-import { useRef, useState, useMemo } from "react";+import { useRef, useState, useMemo, useCallback } from "react";import { Input } from "@/components/ui/input";import { Badge } from "@/components/ui/badge";import { Card, CardContent } from "@/components/ui/card";@@ -17,6 +17,7 @@ import {SelectTrigger,SelectValue,} from "@/components/ui/select";+import { CopyButton } from "../copy";export type RelationshipType = {source: GraphNode@@ -24,63 +25,63 @@ export type RelationshipType = {edge: { label: string }}-const ITEM_HEIGHT = 76; // Balanced spacing between items+const ITEM_HEIGHT = 67; // Balanced spacing between items (55px card + 12px padding)// Separate component for relationship item to avoid hook order issuesinterface RelationshipItemProps {relationship: RelationshipType;style: React.CSSProperties;+ onNodeClick: (node: GraphNode) => void}-function RelationshipItem({ relationship, style }: RelationshipItemProps) {+function RelationshipItem({ relationship, style, onNodeClick }: RelationshipItemProps) {const SourceIcon = useIcon(relationship.source.data?.type, relationship.source.data?.src);const TargetIcon = useIcon(relationship.target.data?.type, relationship.target.data?.src);+ const handleNodeClickSource = useCallback(() => {+ onNodeClick(relationship.source)+ }, [])+ const handleNodeClickTarget = useCallback(() => {+ onNodeClick(relationship.target)+ }, [])+return (<div style={style} className="px-4 pb-2">- <Card className="h-[64px] hover:shadow-md transition-shadow duration-200 p-0">- <CardContent className="p-3 h-[64px] flex items-center gap-2 min-w-0">+ <Card className="h-[55px] hover:shadow-md transition-shadow duration-200 p-0">+ <CardContent className="p-3 h-[55px] flex items-center gap-2 min-w-0">{/* Source Node */}<div className="flex items-center gap-2 flex-1 min-w-0"><div className="flex items-center justify-center w-8 h-8 rounded-full bg-muted flex-shrink-0"><SourceIcon className="h-4 w-4" /></div>- <div className="flex-1 min-w-0">- <p className="font-medium truncate text-sm">- {relationship.source.data?.label || relationship.source.id}- </p>- <Badge variant="outline" className="text-xs truncate max-w-full">- <span className="truncate">- {relationship.source.data?.type || 'unknown'}- </span>- </Badge>- </div>+ <button onClick={handleNodeClickSource} className="font-medium text-sm hover:text-primary hover:underline cursor-pointer text-left max-w-full">+ <span className="block truncate">+ {relationship.source.data?.label ?? relationship.source.id}+ </span>+ </button>+ <CopyButton content={relationship.source.data?.label ?? relationship.source.id} /></div>{/* Relationship Arrow */}- <div className="flex items-center gap-2 px-2 flex-shrink-0 min-w-0 max-w-[200px]">- <div className="flex items-center gap-2 bg-muted/50 px-2 py-1 rounded-full min-w-0">- <Badge variant="secondary" className="text-xs font-medium truncate max-w-[120px]">+ <div className="flex items-center gap-2 px-2 flex-shrink-0 min-w-0">+ <div className="flex items-center gap-2 px-2 py-1 rounded-full min-w-0">+ <Badge variant="secondary" className="text-xs font-medium truncate"><span className="truncate">{relationship.edge.label}</span>+ <ArrowRight className="h-4 w-4 text-muted-foreground flex-shrink-0" /></Badge>- <ArrowRight className="h-4 w-4 text-muted-foreground flex-shrink-0" /></div></div>{/* Target Node */}- <div className="flex items-center gap-2 flex-1 justify-end min-w-0">- <div className="flex-1 min-w-0 text-right">- <p className="font-medium truncate text-sm">+ <div className="flex items-center gap-2 flex-1 justify-end min-w-0 truncate text-ellipsis">+ <CopyButton content={relationship.target.data?.label ?? relationship.target.id} />+ <button onClick={handleNodeClickTarget} className="font-medium text-sm hover:text-primary hover:underline cursor-pointer max-w-full text-right">+ <span className="block truncate">{relationship.target.data?.label || relationship.target.id}- </p>- <Badge variant="outline" className="text-xs truncate max-w-full">- <span className="truncate">- {relationship.target.data?.type || 'unknown'}- </span>- </Badge>- </div>+ </span>+ </button><div className="flex items-center justify-center w-8 h-8 rounded-full bg-muted flex-shrink-0"><TargetIcon className="h-4 w-4" /></div>@@ -102,6 +103,14 @@ export default function RelationshipsTable() {const [searchQuery, setSearchQuery] = useState("");const [selectedType, setSelectedType] = useState<string>("all");const parentRef = useRef<HTMLDivElement>(null);+ const setCurrentNode = useGraphStore(s => s.setCurrentNode)+ const setOpenNodeEditorModal = useGraphStore(s => s.setOpenNodeEditorModal)++ const onNodeClick = useCallback((node: GraphNode) => {+ setCurrentNode(node)+ setOpenNodeEditorModal(true)+ }, [setCurrentNode, setOpenNodeEditorModal])+// Filter relationships based on search and typeconst filteredRelationships = useMemo(() => {@@ -141,7 +150,7 @@ export default function RelationshipsTable() {if (isLoading) {return (- <div className="w-full pt-18 space-y-4 p-12">+ <div className="w-full p-4 px-6 space-y-4 pt-18">{/* Header with stats */}<div className="flex items-center justify-between"><div className="space-y-1">@@ -183,7 +192,7 @@ export default function RelationshipsTable() {<div className="grow overflow-auto py-4 rounded-lg border"><div className="space-y-2 px-4">{Array.from({ length: 8 }).map((_, i) => (- <Skeleton key={i} className="h-[64px] w-full" />+ <Skeleton key={i} className="h-[55px] w-full" />))}</div></div>@@ -268,6 +277,7 @@ export default function RelationshipsTable() {<RelationshipItemkey={virtualRow.index}relationship={relationship}+ onNodeClick={onNodeClick}style={{position: 'absolute',top: 0,diff --git a/flowsint-app/src/renderer/src/components/transforms/context-menu.tsx b/flowsint-app/src/renderer/src/components/transforms/context-menu.tsxindex 0cd36f6e..a5ce270f 100644--- a/flowsint-app/src/renderer/src/components/transforms/context-menu.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/context-menu.tsx@@ -1,17 +1,17 @@-import React, { memo, useCallback, useState } from 'react';-import { Button } from '@/components/ui/button';-import { Info, Pencil, Star, Trash } from 'lucide-react';+import { useCallback } from 'react';+import { Pencil, Trash } from 'lucide-react';import { GraphNode } from '@/stores/graph-store';-import { cn } from '@/lib/utils';import BaseContextMenu from '@/components/xyflow/context-menu';import { TransformNode, useTransformStore } from '@/stores/transform-store';interface GraphContextMenuProps {node: GraphNode | TransformNode;- top: number;- left: number;- right: number;- bottom: number;+ top?: number;+ left?: number;+ right?: number;+ bottom?: number;+ rawTop?: number;+ rawLeft?: number;wrapperWidth: number;wrapperHeight: number;onEdit?: () => void;diff --git a/flowsint-app/src/renderer/src/components/transforms/editor.tsx b/flowsint-app/src/renderer/src/components/transforms/editor.tsxindex 0ed04153..7c214e8a 100644--- a/flowsint-app/src/renderer/src/components/transforms/editor.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/editor.tsx@@ -94,10 +94,12 @@ const TransformEditorFlow = memo(({ initialEdges, initialNodes, theme, transformconst [menu, setMenu] = useState<{node: TransformNode;- top: number;- left: number;- right: number;- bottom: number;+ top?: number;+ left?: number;+ right?: number;+ bottom?: number;+ rawTop?: number;+ rawLeft?: number;wrapperWidth: number;wrapperHeight: number;setMenu: (menu: any | null) => void;@@ -126,39 +128,10 @@ const TransformEditorFlow = memo(({ initialEdges, initialNodes, theme, transformconst relativeX = event.clientX - pane.left;const relativeY = event.clientY - pane.top;- // Calculate available space in each direction- const menuWidth = 320; // Default menu width- const menuHeight = 250; // Use a more reasonable height for overflow calculation- const padding = 20; // Minimum padding from edges-- // Determine if menu would overflow in each direction- const wouldOverflowRight = relativeX + menuWidth + padding > pane.width;- const wouldOverflowBottom = relativeY + menuHeight + padding > pane.height;-- // Calculate final position- let finalTop = 0;- let finalLeft = 0;- let finalRight = 0;- let finalBottom = 0;-- if (wouldOverflowRight) {- finalRight = pane.width - relativeX;- } else {- finalLeft = relativeX;- }-- if (wouldOverflowBottom) {- finalBottom = pane.height - relativeY;- } else {- finalTop = relativeY;- }-setMenu({node: node as TransformNode,- top: finalTop,- left: finalLeft,- right: finalRight,- bottom: finalBottom,+ rawTop: relativeY,+ rawLeft: relativeX,wrapperWidth: pane.width,wrapperHeight: pane.height,setMenu: setMenu,@@ -221,7 +194,8 @@ const TransformEditorFlow = memo(({ initialEdges, initialNodes, theme, transformtype: scannerData.type,inputs: scannerData.inputs,outputs: scannerData.outputs,- doc: scannerData.doc,+ documentation: scannerData.documentation,+ description: scannerData.description,required_params: scannerData.required_params,params: scannerData.params,params_schema: scannerData.params_schema,diff --git a/flowsint-app/src/renderer/src/components/transforms/params-dialog.tsx b/flowsint-app/src/renderer/src/components/transforms/params-dialog.tsxindex fbac8d3e..2d0258cd 100644--- a/flowsint-app/src/renderer/src/components/transforms/params-dialog.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/params-dialog.tsx@@ -1,5 +1,5 @@import { useTransformStore } from '@/stores/transform-store'-import { DialogHeader, DialogFooter, Dialog, DialogContent, DialogTitle, DialogDescription } from '../ui/dialog'+import { DialogHeader, DialogFooter, Dialog, DialogContent, DialogTitle } from '../ui/dialog'import { Button } from '../ui/button'import { useCallback, useState, useEffect } from 'react'import { ScannerParamSchemaItem } from '@/types'@@ -60,25 +60,21 @@ const ParamsDialog = () => {return (<Dialog open={openParamsDialog} onOpenChange={setOpenParamsDialog}>- <DialogContent className="sm:max-w-[725px]">+ <DialogContent className="!w-[90vw] !max-w-[900px] h-[90vh] overflow-y-auto flex flex-col"><DialogHeader><DialogTitle>Configure <span className="text-primary">{selectedNode.data.class_name}</span></DialogTitle>- {/* <DialogDescription className='break-words w-full'> */}- <div className={cn("justify-start",- "flex w-full",- )}>- <div className={cn("w-full",- "p-3 rounded-xl max-w-full",- "flex flex-col gap-2"- )}>- <MemoizedMarkdown id={selectedNode.id} content={selectedNode?.data.doc?.toString() ?? ""} />+ <div className={cn("justify-start", "flex w-full")}>+ <div className={cn("w-full", "p-3 rounded-xl max-w-full", "flex flex-col gap-2")}>+ <div className="max-w-none">+ {selectedNode?.data.description?.toString()}+ </div></div></div></DialogHeader><Tabs defaultValue="parameters" className="w-full"><TabsList className="grid w-full grid-cols-2"><TabsTrigger value="parameters">Parameters</TabsTrigger>- <TabsTrigger value="settings">Settings</TabsTrigger>+ <TabsTrigger value="documentation">Documentation</TabsTrigger></TabsList><TabsContent value="parameters" className="space-y-4 mt-4"><div className="grid gap-4">@@ -109,80 +105,16 @@ const ParamsDialog = () => {))}</div></TabsContent>-- <TabsContent value="settings" className="space-y-4 mt-4">+ <TabsContent value="documentation" className="space-y-4 mt-4"><div className="grid gap-4">- <div className="space-y-2">- <div className="flex items-start flex-col">- <Label htmlFor="duration" className="text-sm font-medium">- Duration (seconds)- </Label>- <p className='text-sm opacity-60'>Maximum execution time for this transform</p>- </div>- <Input- id="duration"- type="number"- placeholder="30"- value={settings.duration || ""}- onChange={(e) => setSettings({ ...settings, duration: e.target.value })}- />- </div>-- <div className="space-y-2">- <div className="flex items-start flex-col">- <Label htmlFor="retry" className="text-sm font-medium">- Retry Attempts- </Label>- <p className='text-sm opacity-60'>Number of retry attempts on failure</p>- </div>- <Input- id="retry"- type="number"- placeholder="3"- value={settings.retry || ""}- onChange={(e) => setSettings({ ...settings, retry: e.target.value })}- />- </div>-- <div className="space-y-2">- <div className="flex items-start flex-col">- <Label htmlFor="timeout" className="text-sm font-medium">- Timeout (seconds)- </Label>- <p className='text-sm opacity-60'>Connection timeout for network requests</p>- </div>- <Input- id="timeout"- type="number"- placeholder="60"- value={settings.timeout || ""}- onChange={(e) => setSettings({ ...settings, timeout: e.target.value })}- />- </div>-- <div className="space-y-2">- <div className="flex items-start flex-col">- <Label htmlFor="priority" className="text-sm font-medium">- Priority- </Label>- <p className='text-sm opacity-60'>Execution priority level</p>- </div>- <select- id="priority"- className="flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50"- value={settings.priority || "medium"}- onChange={(e) => setSettings({ ...settings, priority: e.target.value })}- >- <option value="low">Low</option>- <option value="medium">Medium</option>- <option value="high">High</option>- </select>+ <div className={cn("w-full", "p-3 rounded-xl max-w-full", "flex flex-col gap-2")}>+ <MemoizedMarkdown id={selectedNode.id} content={selectedNode?.data.documentation?.toString() ?? ""} /></div></div></TabsContent></Tabs>- <DialogFooter>+ <DialogFooter className="mt-auto"><Button variant="outline" onClick={() => setOpenParamsDialog(false)}>Cancel</Button>diff --git a/flowsint-app/src/renderer/src/components/transforms/scanner-data.tsx b/flowsint-app/src/renderer/src/components/transforms/scanner-data.tsxindex 7a16d6b4..9e3ea9f9 100644--- a/flowsint-app/src/renderer/src/components/transforms/scanner-data.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/scanner-data.tsx@@ -1,5 +1,3 @@-import type { Scanner, ScansData, ScannerData } from "@/types/transform"-// Default color for fallback casesexport const DEFAULT_COLOR = "#94a3b8"diff --git a/flowsint-app/src/renderer/src/components/transforms/scanner-item.tsx b/flowsint-app/src/renderer/src/components/transforms/scanner-item.tsxindex fc849ade..862692d1 100644--- a/flowsint-app/src/renderer/src/components/transforms/scanner-item.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/scanner-item.tsx@@ -16,7 +16,8 @@ function areEqual(prevProps: ScannerItemProps, nextProps: ScannerItemProps) {prevProps.scanner.class_name === nextProps.scanner.class_name &&prevProps.scanner.name === nextProps.scanner.name &&prevProps.scanner.module === nextProps.scanner.module &&- prevProps.scanner.doc === nextProps.scanner.doc &&+ prevProps.scanner.documentation === nextProps.scanner.documentation &&+ prevProps.scanner.description === nextProps.scanner.description &&prevProps.category === nextProps.category)}@@ -61,7 +62,7 @@ const ScannerItem = memo(({ scanner, category }: ScannerItemProps) => {{Icon && <Icon size={24} />}<h3 className="text-sm font-medium truncate text-ellipsis">{scanner.class_name}</h3></div>- <p className="text-xs font-normal truncate text-ellipsis opacity-60">{scanner.doc}</p>+ <p className="text-xs font-normal truncate text-ellipsis opacity-60">{scanner.description}</p>{scanner.type !== "type" &&<div className="mt-2 text-xs"><div className="flex items-center gap-1">@@ -111,7 +112,7 @@ const ScannerItem = memo(({ scanner, category }: ScannerItemProps) => {</div>}<div className="space-y-2"><h4 className="font-medium text-sm" style={{ color: borderInputColor }}>Description</h4>- <p className="text-sm text-muted-foreground">{scanner.doc || "No description available"}</p>+ <p className="text-sm text-muted-foreground">{scanner.description || "No description available"}</p></div><div className="space-y-2"><h4 className="font-medium text-sm" style={{ color: borderInputColor }}>Module</h4>diff --git a/flowsint-app/src/renderer/src/components/transforms/scanner-node.tsx b/flowsint-app/src/renderer/src/components/transforms/scanner-node.tsxindex 9c7093c2..d4f601a6 100644--- a/flowsint-app/src/renderer/src/components/transforms/scanner-node.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/scanner-node.tsx@@ -19,7 +19,8 @@ function areEqual(prevProps: ScannerNodeProps, nextProps: ScannerNodeProps) {prevProps.data.class_name === nextProps.data.class_name &&prevProps.data.name === nextProps.data.name &&prevProps.data.module === nextProps.data.module &&- prevProps.data.doc === nextProps.data.doc &&+ prevProps.data.documentation === nextProps.data.documentation &&+ prevProps.data.description === nextProps.data.description &&prevProps.data.key === nextProps.data.key &&prevProps.data.category === nextProps.data.category &&prevProps.data.color === nextProps.data.color &&@@ -44,7 +45,7 @@ const getStateColor = (state?: string) => {}// Scanner node component for transform/scanner nodes only-const ScannerNode = memo(({ data, selected, isConnectable }: ScannerNodeProps) => {+const ScannerNode = memo(({ data, isConnectable }: ScannerNodeProps) => {const colors = useNodesDisplaySettings(s => s.colors)const inputColor = colors[data.inputs.type.toLowerCase()]const outputColor = colors[data.outputs.type.toLowerCase()]@@ -99,7 +100,7 @@ const ScannerNode = memo(({ data, selected, isConnectable }: ScannerNodeProps) ={Icon && <Icon size={24} />}<div className="font-semibold text-sm">{data.class_name}</div></div>- <p className="text-xs text-muted-foreground mt-2 line-clamp-2">{data.doc}</p>+ <p className="text-xs text-muted-foreground mt-2 line-clamp-2">{data.description}</p></div></div><div>diff --git a/flowsint-app/src/renderer/src/components/transforms/transform-sheet.tsx b/flowsint-app/src/renderer/src/components/transforms/transform-sheet.tsxindex 7563b052..1269811c 100644--- a/flowsint-app/src/renderer/src/components/transforms/transform-sheet.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/transform-sheet.tsx@@ -46,7 +46,7 @@ const TransformSheet = ({ onLayout }: { onLayout: () => void }) => {scanner.module.toLowerCase().includes(term) ||scanner.inputs.type.toLowerCase().includes(term) ||scanner.outputs.type.toLowerCase().includes(term) ||- (scanner.doc && scanner.doc.toLowerCase().includes(term))+ (scanner.documentation && scanner.documentation.toLowerCase().includes(term)))})}, [searchTerm, materials?.items, selectedNode])@@ -69,7 +69,8 @@ const TransformSheet = ({ onLayout }: { onLayout: () => void }) => {type: scanner.type,inputs: scanner.inputs,outputs: scanner.outputs,- doc: scanner.doc,+ documentation: scanner.documentation,+ description: scanner.description,required_params: scanner.required_params,params: scanner.params,params_schema: scanner.params_schema,@@ -151,7 +152,7 @@ function areEqual(prevProps: { scanner: Scanner }, nextProps: { scanner: ScannerprevProps.scanner.class_name === nextProps.scanner.class_name &&prevProps.scanner.name === nextProps.scanner.name &&prevProps.scanner.module === nextProps.scanner.module &&- prevProps.scanner.doc === nextProps.scanner.doc+ prevProps.scanner.documentation === nextProps.scanner.documentation)}@@ -176,7 +177,7 @@ const ScannerItem = memo(({ scanner, onClick }: { scanner: Scanner, onClick: (){Icon && <Icon size={24} />}<h3 className="text-sm font-medium truncate text-ellipsis">{scanner.class_name}</h3></div>- <p className="text-sm font-normal opacity-60 truncate text-ellipsis">{scanner.doc}</p>+ <p className="text-sm font-normal opacity-60 truncate text-ellipsis">{scanner.description}</p><div className="mt-2 flex items-center gap-2 text-xs"><div className="flex items-center gap-1"><span className="text-muted-foreground">Takes</span>diff --git a/flowsint-app/src/renderer/src/components/transforms/type-node.tsx b/flowsint-app/src/renderer/src/components/transforms/type-node.tsxindex 85c8ec83..35b13efe 100644--- a/flowsint-app/src/renderer/src/components/transforms/type-node.tsx+++ b/flowsint-app/src/renderer/src/components/transforms/type-node.tsx@@ -28,7 +28,7 @@ function areEqual(prevProps: ScannerNodeProps, nextProps: ScannerNodeProps) {}// Type node component for data types (domains, websites, IPs, etc.)-const TypeNode = memo(({ data, selected }: ScannerNodeProps) => {+const TypeNode = memo(({ data }: ScannerNodeProps) => {const colors = useNodesDisplaySettings(s => s.colors)const outputColor = colors[data.outputs.type.toLowerCase()]const Icon = useIcon(data.outputs.type.toLowerCase() as string, null)diff --git a/flowsint-app/src/renderer/src/components/ui/tabs.tsx b/flowsint-app/src/renderer/src/components/ui/tabs.tsxindex df191637..24217aa8 100644--- a/flowsint-app/src/renderer/src/components/ui/tabs.tsx+++ b/flowsint-app/src/renderer/src/components/ui/tabs.tsx@@ -41,7 +41,7 @@ function TabsTrigger({<TabsPrimitive.Triggerdata-slot="tabs-trigger"className={cn(- "data-[state=active]:bg-background border border-transparent dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-border [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",+ "data-[state=active]:bg-card border border-transparent dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-card text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:border-border [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",className)}{...props}diff --git a/flowsint-app/src/renderer/src/components/xyflow/context-menu.tsx b/flowsint-app/src/renderer/src/components/xyflow/context-menu.tsxindex fdf10c1d..cfc15d25 100644--- a/flowsint-app/src/renderer/src/components/xyflow/context-menu.tsx+++ b/flowsint-app/src/renderer/src/components/xyflow/context-menu.tsx@@ -3,13 +3,16 @@ import type { Node } from '@xyflow/react';interface ContextMenuProps<T extends Node = Node> {node: T;- top: number;- left: number;- right: number;- bottom: number;+ top?: number;+ left?: number;+ right?: number;+ bottom?: number;wrapperWidth: number;wrapperHeight: number;children: React.ReactNode;+ // Raw position for overflow calculation+ rawTop?: number;+ rawLeft?: number;}export default function ContextMenu<T extends Node = Node>({@@ -20,9 +23,46 @@ export default function ContextMenu<T extends Node = Node>({bottom,wrapperWidth,wrapperHeight,+ rawTop,+ rawLeft,children,...props}: ContextMenuProps<T>) {+ // If raw position is provided, calculate overflow and adjust position+ let finalTop = top;+ let finalLeft = left;+ let finalRight = right;+ let finalBottom = bottom;++ if (rawTop !== undefined && rawLeft !== undefined) {+ // Calculate available space in each direction+ const menuWidth = 320; // Default menu width+ const menuHeight = 250; // Use a more reasonable height for overflow calculation+ const padding = 20; // Minimum padding from edges++ // Determine if menu would overflow in each direction+ const wouldOverflowRight = rawLeft + menuWidth + padding > wrapperWidth;+ const wouldOverflowBottom = rawTop + menuHeight + padding > wrapperHeight;++ // Calculate final position+ finalTop = 0;+ finalLeft = 0;+ finalRight = 0;+ finalBottom = 0;++ if (wouldOverflowRight) {+ finalRight = wrapperWidth - rawLeft;+ } else {+ finalLeft = rawLeft;+ }++ if (wouldOverflowBottom) {+ finalBottom = wrapperHeight - rawTop;+ } else {+ finalTop = rawTop;+ }+ }+// Calculate dynamic dimensions based on available spaceconst maxWidth = 320; // Default width (w-80)const maxHeight = 500; // Default height (h-96)@@ -33,20 +73,20 @@ export default function ContextMenu<T extends Node = Node>({let availableWidth = maxWidth;let availableHeight = maxHeight;- if (left > 0) {+ if (finalLeft && finalLeft > 0) {// Menu is positioned from left, so available width is from left to right edge- availableWidth = wrapperWidth - left - 20; // 20px padding from right edge- } else if (right > 0) {+ availableWidth = wrapperWidth - finalLeft - 20; // 20px padding from right edge+ } else if (finalRight && finalRight > 0) {// Menu is positioned from right, so available width is from left edge to right position- availableWidth = wrapperWidth - right - 20; // 20px padding from left edge+ availableWidth = wrapperWidth - finalRight - 20; // 20px padding from left edge}- if (top > 0) {+ if (finalTop && finalTop > 0) {// Menu is positioned from top, so available height is from top to bottom edge- availableHeight = wrapperHeight - top - 20; // 20px padding from bottom edge- } else if (bottom > 0) {+ availableHeight = wrapperHeight - finalTop - 20; // 20px padding from bottom edge+ } else if (finalBottom && finalBottom > 0) {// Menu is positioned from bottom, so available height is from top edge to bottom position- availableHeight = wrapperHeight - bottom - 20; // 20px padding from top edge+ availableHeight = wrapperHeight - finalBottom - 20; // 20px padding from top edge}// Determine dynamic dimensions@@ -57,10 +97,10 @@ export default function ContextMenu<T extends Node = Node>({const dynamicStyles = {width: `${dynamicWidth}px`,maxHeight: `${dynamicHeight}px`,- top: top > 0 ? `${top}px` : 'auto',- left: left > 0 ? `${left}px` : 'auto',- right: right > 0 ? `${right}px` : 'auto',- bottom: bottom > 0 ? `${bottom}px` : 'auto',+ top: finalTop && finalTop > 0 ? `${finalTop}px` : 'auto',+ left: finalLeft && finalLeft > 0 ? `${finalLeft}px` : 'auto',+ right: finalRight && finalRight > 0 ? `${finalRight}px` : 'auto',+ bottom: finalBottom && finalBottom > 0 ? `${finalBottom}px` : 'auto',};const handleMenuClick = (e: React.MouseEvent) => {diff --git a/flowsint-app/src/renderer/src/components/xyflow/custom-edge.tsx b/flowsint-app/src/renderer/src/components/xyflow/custom-edge.tsxnew file mode 100644index 00000000..a527f48f--- /dev/null+++ b/flowsint-app/src/renderer/src/components/xyflow/custom-edge.tsx@@ -0,0 +1,98 @@+import { memo, type ReactNode, useMemo } from "react";+import {+ BaseEdge,+ EdgeLabelRenderer,+ getStraightPath,+ type EdgeProps,+} from "@xyflow/react";++interface EdgeCalculations {+ edgePath: string;+ labelX: number;+ labelY: number;+ adjustedAngle: number;+ maxWidth: number;+ transform: string;+}++const calculateEdgeProperties = (+ sourceX: number,+ sourceY: number,+ targetX: number,+ targetY: number+): EdgeCalculations => {+ const [edgePath, labelX, labelY] = getStraightPath({+ sourceX,+ sourceY,+ targetX,+ targetY,+ });++ const dx = targetX - sourceX;+ const dy = targetY - sourceY;+ const angleRad = Math.atan2(dy, dx);+ const angleDeg = (angleRad * 180) / Math.PI;+ const adjustedAngle = angleDeg > 90 || angleDeg < -90 ? angleDeg + 180 : angleDeg;++ const edgeLength = Math.sqrt(dx * dx + dy * dy);+ const maxWidth = Math.max(edgeLength - 20, 30);++ const transform = `translate(-50%, -50%) translate(${labelX}px, ${labelY}px) rotate(${adjustedAngle}deg)`;++ return {+ edgePath,+ labelX,+ labelY,+ adjustedAngle,+ maxWidth,+ transform,+ };+};++export const CustomEdge = memo(({+ sourceX,+ sourceY,+ targetX,+ targetY,+ style = {},+ markerEnd,+ children,+}: EdgeProps & { children: ReactNode }) => {++ // Memoize all calculations+ const edgeProps = useMemo(+ () => calculateEdgeProperties(sourceX, sourceY, targetX, targetY),+ [sourceX, sourceY, targetX, targetY]+ );++ // Memoize label style object+ const labelStyle = useMemo(() => ({+ transform: edgeProps.transform,+ transformOrigin: "center" as const,+ maxWidth: `${edgeProps.maxWidth}px`,+ overflow: "hidden" as const,+ textOverflow: "ellipsis" as const,+ whiteSpace: "nowrap" as const,+ }), [edgeProps.transform, edgeProps.maxWidth]);++ return (+ <>+ <BaseEdge+ path={edgeProps.edgePath}+ markerEnd={markerEnd}+ style={style}+ />+ <EdgeLabelRenderer>+ <div+ className="nodrag nopan pointer-events-auto absolute"+ style={labelStyle}+ >+ {children}+ </div>+ </EdgeLabelRenderer>+ </>+ );+});++// Add display name for debugging+CustomEdge.displayName = 'CustomEdge';\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/hooks/use-auth.ts b/flowsint-app/src/renderer/src/hooks/use-auth.tsindex 480e0b51..0e26121d 100644--- a/flowsint-app/src/renderer/src/hooks/use-auth.ts+++ b/flowsint-app/src/renderer/src/hooks/use-auth.ts@@ -6,6 +6,7 @@ import { useAuthStore } from '@/stores/auth-store';export const SESSION_QUERY_KEY = ['session'];+export const useRegister = () => {const navigate = useNavigate();const setAuth = useAuthStore((state) => state.setAuth);diff --git a/flowsint-app/src/renderer/src/hooks/use-events.ts b/flowsint-app/src/renderer/src/hooks/use-events.tsindex d1d9d8e0..8fa160fc 100644--- a/flowsint-app/src/renderer/src/hooks/use-events.ts+++ b/flowsint-app/src/renderer/src/hooks/use-events.ts@@ -31,7 +31,7 @@ export function useEvents(sketch_id: string | undefined) {try {const raw = JSON.parse(e.data) as anyconst event = JSON.parse(raw.data) as Event- if (event.type === EventLevel.COMPLETED) {+ if (event.type === EventLevel.GRAPH_APPEND) {refetchGraph()// const nodes = event.payload.nodes as GraphNode[]// const edges = event.payload.edges as GraphEdge[]diff --git a/flowsint-app/src/renderer/src/hooks/use-icon.tsx b/flowsint-app/src/renderer/src/hooks/use-icon.tsxindex 471ab0a5..cc5c5e00 100644--- a/flowsint-app/src/renderer/src/hooks/use-icon.tsx+++ b/flowsint-app/src/renderer/src/hooks/use-icon.tsx@@ -12,71 +12,104 @@ interface IconProps {type?: string;}-const getIconPath = (type: string): string => {- return new URL(`/icons/${type}.svg`, window.location.origin).href;-};+// Utilisation de constantes pour les valeurs par défaut+const DEFAULT_SIZE = 24;+const DEFAULT_COLOR = "#000000";+const BORDER_RATIO = 8;+const CONTAINER_PADDING = 16;+const BACKGROUND_PADDING = 8;-const getDefaultIconPath = (): string => {- return new URL(`/icons/default.svg`, window.location.origin).href;-};+// Fonctions utilitaires memoizées+const getIconPath = (type: string): string =>+ `/icons/${type}.svg`;++const getDefaultIconPath = (): string =>+ `/icons/default.svg`;export const useIcon = (type: IconType, src?: string | null) => {- // Memoize the icon pathconst iconPath = useMemo(() => getIconPath(type), [type]);+ const defaultIconPath = useMemo(() => getDefaultIconPath(), []);- // Memoize the component itselfreturn useCallback(({- className,- size = 24,+ className = "",+ size = DEFAULT_SIZE,style,showBorder = false,color,+ // @ts-ignoretype: iconType}: IconProps): JSX.Element => {const colors = useNodesDisplaySettings((s) => s.colors);- const col = color || colors[iconType as keyof typeof colors] || "#000000";- const containerSize = size + 16; // Make container slightly larger than icon+ const resolvedColor = color || colors[type as keyof typeof colors] || DEFAULT_COLOR;++ // Gestion de l'erreur de chargement d'image+ const handleImageError = useCallback((e: React.SyntheticEvent<HTMLImageElement>) => {+ const target = e.currentTarget;+ if (target.src !== defaultIconPath) {+ target.src = defaultIconPath;+ }+ }, [defaultIconPath]);++ // Use full size for src images, scaled size for icons+ const actualIconSize = src ? size : size * 0.70;++ const imageElement = (+ <img+ src={src || iconPath}+ width={actualIconSize}+ height={actualIconSize}+ className={`object-contain flex-shrink-0 rounded-full ${className} p-0`}+ style={{+ minWidth: actualIconSize,+ minHeight: actualIconSize,+ maxWidth: actualIconSize,+ maxHeight: actualIconSize,+ ...(showBorder ? undefined : style)+ }}+ alt={`${type} icon`}+ onError={handleImageError}+ />+ );if (showBorder) {+ const containerSize = size + CONTAINER_PADDING;+ const borderWidth = Math.max(1, size / BORDER_RATIO);+return (<div+ className="flex bg-card items-center justify-center rounded-full overflow-hidden flex-shrink-0"style={{- border: `${size / 8}px solid ${col}`,- width: `${containerSize}px`,- height: `${containerSize}px`,+ border: `${borderWidth}px solid ${resolvedColor}`,+ width: containerSize,+ height: containerSize,+ minWidth: containerSize,+ minHeight: containerSize,+ maxWidth: containerSize,+ maxHeight: containerSize,...style,}}- className={`flex bg-card items-center justify-center rounded-full ${className || ""}`}>- <img- src={src || iconPath}- width={size}- height={size}- className="object-contain"- alt={`${type} icon`}- onError={(e) => {- const target = e.target as HTMLImageElement;- target.src = getDefaultIconPath();- }}- />+ {imageElement}</div>);}+ const containerSize = size + BACKGROUND_PADDING;return (- <img- src={src || iconPath}- className={`object-contain ${className}`}- width={size}- height={size}- style={style}- alt={`${type} icon`}- onError={(e) => {- const target = e.target as HTMLImageElement;- target.src = getDefaultIconPath();+ <div+ className="rounded-full flex items-center justify-center overflow-hidden flex-shrink-0"+ style={{+ background: resolvedColor,+ width: containerSize,+ height: containerSize,+ minWidth: containerSize,+ minHeight: containerSize,+ maxWidth: containerSize,+ maxHeight: containerSize,}}- />+ >+ {imageElement}+ </div>);- }, [iconPath]);-};-+ }, [iconPath, defaultIconPath, type]);+};\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/hooks/use-keyboard-shortcut.ts b/flowsint-app/src/renderer/src/hooks/use-keyboard-shortcut.tsindex dfe10f27..115b3193 100644--- a/flowsint-app/src/renderer/src/hooks/use-keyboard-shortcut.ts+++ b/flowsint-app/src/renderer/src/hooks/use-keyboard-shortcut.ts@@ -1,4 +1,3 @@-import { useEffect, useState } from "react"type ShortcutOptions = {diff --git a/flowsint-app/src/renderer/src/hooks/use-navigate-to-tab.ts b/flowsint-app/src/renderer/src/hooks/use-navigate-to-tab.tsdeleted file mode 100644index 9fe752fb..00000000--- a/flowsint-app/src/renderer/src/hooks/use-navigate-to-tab.ts+++ /dev/null@@ -1,89 +0,0 @@-import { useNavigate } from "@tanstack/react-router";-import { useBoundStore } from "@/stores/use-bound-store";--export interface NavigateToTabOptions {- id: string;- type: "graph" | "wall";- investigationId: string;- data?: any;- title?: string;-}--export function useNavigateToTab() {- const navigate = useNavigate();- const add = useBoundStore((state) => state.tabs.add);- const setSelectedTab = useBoundStore((state) => state.tabs.setSelectedTab);- const tabs = useBoundStore((state) => state.tabs.items);-- const navigateToTab = async ({- id,- type,- investigationId,- data,- title,- }: NavigateToTabOptions) => {- // Find existing tab- const existingTab = tabs.find(- (tab) =>- tab.id === id &&- tab.type === type &&- tab.investigationId === investigationId- );-- // If tab exists, activate it immediately- if (existingTab) {- setSelectedTab(existingTab);- // Navigate asynchronously- Promise.resolve().then(() => {- navigate({- to: "/dashboard/investigations/$investigationId/$type/$id",- params: {- investigationId,- type,- id,- },- });- });- return true;- }-- // If we have data, create the tab immediately- if (data) {- await add({- id,- type,- investigationId,- data,- title: title || `${type} ${id}`,- });-- // Navigate asynchronously- Promise.resolve().then(() => {- navigate({- to: "/dashboard/investigations/$investigationId/$type/$id",- params: {- investigationId,- type,- id,- },- });- });- return true;- }-- // If no data and no existing tab, just navigate asynchronously- Promise.resolve().then(() => {- navigate({- to: "/dashboard/investigations/$investigationId/$type/$id",- params: {- investigationId,- type,- id,- },- });- });- return false;- };-- return { navigateToTab };-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/hooks/use-sketch-navigation.ts b/flowsint-app/src/renderer/src/hooks/use-sketch-navigation.tsdeleted file mode 100644index 00676aa9..00000000--- a/flowsint-app/src/renderer/src/hooks/use-sketch-navigation.ts+++ /dev/null@@ -1,36 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { sketchService } from "@/api/sketch-service";-import { useNavigateToTab } from "./use-navigate-to-tab";--interface UseSketchNavigationProps {- sketchId: string;- investigationId: string;-}--export function useSketchNavigation({ sketchId, investigationId }: UseSketchNavigationProps) {- // Fetch sketch data- const { data: sketchData } = useQuery({- queryKey: ["investigations", investigationId, "graph", sketchId],- queryFn: () => sketchService.getById(sketchId),- staleTime: 2 * 60 * 1000, // 2 minutes- retry: 2,- enabled: !!sketchId && !!investigationId,- });-- const { navigateToTab } = useNavigateToTab();-- const navigateToSketch = () => {- return navigateToTab({- id: sketchId,- type: "graph",- investigationId,- data: sketchData,- title: sketchData?.title,- });- };-- return {- navigateToSketch,- isReady: Boolean(sketchData),- };-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/hooks/use-tab-management.ts b/flowsint-app/src/renderer/src/hooks/use-tab-management.tsdeleted file mode 100644index e2933ed0..00000000--- a/flowsint-app/src/renderer/src/hooks/use-tab-management.ts+++ /dev/null@@ -1,87 +0,0 @@-import { useMemo } from 'react';-import { useNavigate } from '@tanstack/react-router';-import { useBoundStore } from '@/stores/use-bound-store';-import type { TabInfo } from '@/types/tabs';--interface UseTabManagementProps {- id?: string;- type?: string;- investigationId?: string;- data?: any;- onError?: (error: Error) => void;-}--export function useTabManagement({- id,- type,- investigationId,- data,- onError-}: UseTabManagementProps) {- const navigate = useNavigate();- const add = useBoundStore((state) => state.tabs.add);- const tabs = useBoundStore((state) => state.tabs.items);- const setSelectedTab = useBoundStore((state) => state.tabs.setSelectedTab);- const selectedTabId = useBoundStore((state) => state.tabs.selectedTabId);-- // Memoize tab existence check with all dependencies- const tabExists = useMemo(() => {- if (!id || !type || !investigationId) return false;- return tabs.some(- (t: TabInfo) =>- t.id === id && t.type === type && t.investigationId === investigationId- );- }, [tabs, id, type, investigationId]);-- const activateTab = useMemo(() => {- return (tabId: string) => {- const tab = tabs.find(t => t.id === tabId);- if (!tab) return;-- setSelectedTab(tab);- navigate({- to: "/dashboard/investigations/$investigationId/$type/$id",- params: {- investigationId: tab.investigationId,- type: tab.type,- id: tab.id,- },- });- };- }, [setSelectedTab, tabs, navigate]);-- const createAndActivateTab = useMemo(() => {- return async () => {- if (!id || !type || !investigationId || !data) return false;- try {- await add({- id,- type: type as "graph" | "wall",- investigationId,- data,- title: data.title || `${type} ${id}`,- });-- activateTab(id);- return true;- } catch (error) {- onError?.(error as Error);- return false;- }- };- }, [id, type, investigationId, data, add, activateTab, onError]);-- return {- tabExists,- isValid: Boolean(id && type && investigationId && data),- currentTab: tabExists- ? tabs.find(- (t: TabInfo) =>- t.id === id && t.type === type && t.investigationId === investigationId- )- : undefined,- isActive: id === selectedTabId,- activateTab,- createAndActivateTab,- };-}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/hooks/use-toolbar-initialization.ts b/flowsint-app/src/renderer/src/hooks/use-toolbar-initialization.tsdeleted file mode 100644index 6c5a0b28..00000000--- a/flowsint-app/src/renderer/src/hooks/use-toolbar-initialization.ts+++ /dev/null@@ -1,17 +0,0 @@-import { useBoundStore } from '@/stores/use-bound-store'-import { useEffect, useState } from 'react'--export function useToolbarInitialization() {- const initTab = useBoundStore((state) => state.tabs.initialize)- const [isInit, setInit] = useState(false)-- useEffect(() => {- const init = async () => {- await initTab()- setInit(true)- }- init()- }, [])-- return isInit-}diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.index.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.index.tsxindex 5707235c..99d5fe56 100644--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.index.tsx+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.index.tsx@@ -1,154 +1,25 @@import { createFileRoute } from '@tanstack/react-router';-import { GetStartedSection } from '@/components/dashboard/get-started-section';-import { RecentInvestigations } from '@/components/dashboard/recent-investigations';-import { DiscoverSection } from '@/components/dashboard/discover-section';-import { UsefulResources } from '@/components/dashboard/useful-resources';import { InvestigationSkeleton } from '@/components/dashboard/investigation-skeleton';-import { Card } from '@/components/ui/card';-import { Activity, BarChart3, Clock, FileText, PlusIcon } from 'lucide-react';-import NewInvestigation from '@/components/investigations/new-investigation';-import { Button } from '@/components/ui/button';-import { useQuery } from '@tanstack/react-query';-import { investigationService } from '@/api/investigation-service';-import { analysisService } from '@/api/analysis-service';-import { Skeleton } from '@/components/ui/skeleton';+import { InvestigationCards } from '@/components/dashboard/investigation-cards';+// import { AnalysisCards } from '@/components/dashboard/analysis-cards';export const Route = createFileRoute('/_auth/dashboard/')({component: DashboardPage,pendingComponent: InvestigationSkeleton,});-function DashboardStats() {- const { data: investigations = [], isLoading: isLoadingInvestigations } = useQuery({- queryKey: ['dashboard-stats-investigations'],- queryFn: () => investigationService.get(),- });- const { data: allAnalyses = [], isLoading: isLoadingAnalyses } = useQuery({- queryKey: ['dashboard-stats-analyses'],- queryFn: () => analysisService.get(),- });-- if (isLoadingInvestigations || isLoadingAnalyses) {- return (- <div className="grid grid-cols-1 @xs:grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4 mb-8">- {[...Array(4)].map((_, i) => (- <Card key={i} className="p-4">- <div className="flex items-center gap-4">- <Skeleton className="w-9 h-9 rounded-lg" />- <div className="space-y-2">- <Skeleton className="h-4 w-24" />- <Skeleton className="h-8 w-8" />- </div>- </div>- </Card>- ))}- </div>- );- }-- // Calculate stats based on investigation status- const activeInvestigations = investigations.filter(inv => inv.status === 'active').length;- const completedInvestigations = investigations.filter(inv => inv.status === 'completed').length;- const inProgressInvestigations = investigations.filter(inv => inv.status === 'in_progress').length;- const totalAnalyses = allAnalyses.length;-- return (- <div className="grid grid-cols-1 @xs:grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4 mb-8">- <Card className="p-4 hover:shadow-md transition-shadow">- <div className="flex items-center gap-4">- <div className="bg-muted rounded-lg p-2">- <Activity className="w-5 h-5 text-muted-foreground" />- </div>- <div>- <p className="text-sm text-muted-foreground">Active Investigations</p>- <p className="text-2xl font-bold">{activeInvestigations}</p>- </div>- </div>- </Card>- <Card className="p-4 hover:shadow-md transition-shadow">- <div className="flex items-center gap-4">- <div className="bg-muted rounded-lg p-2">- <BarChart3 className="w-5 h-5 text-muted-foreground" />- </div>- <div>- <p className="text-sm text-muted-foreground">Completed</p>- <p className="text-2xl font-bold">{completedInvestigations}</p>- </div>- </div>- </Card>- <Card className="p-4 hover:shadow-md transition-shadow">- <div className="flex items-center gap-4">- <div className="bg-muted rounded-lg p-2">- <Clock className="w-5 h-5 text-muted-foreground" />- </div>- <div>- <p className="text-sm text-muted-foreground">In Progress</p>- <p className="text-2xl font-bold">{inProgressInvestigations}</p>- </div>- </div>- </Card>- <Card className="p-4 hover:shadow-md transition-shadow">- <div className="flex items-center gap-4">- <div className="bg-muted rounded-lg p-2">- <FileText className="w-5 h-5 text-muted-foreground" />- </div>- <div>- <p className="text-sm text-muted-foreground">Total Analyses</p>- <p className="text-2xl font-bold">{totalAnalyses}</p>- </div>- </div>- </Card>- </div>- );-}function DashboardPage() {return (<div className="h-full w-full bg-background overflow-y-auto">- {/* Hero Section */}- <div className="bg-gradient-to-r from-secondary/10 to-primary/10 border-b border-border z-10">- <div className="max-w-7xl mx-auto p-8">- <div className="flex items-center justify-between">- <div className="space-y-1">- <h1 className="text-3xl font-bold text-foreground">Welcome back</h1>- <p className="text-muted-foreground">- Manage and organize your investigations.- </p>- </div>- <div className="flex items-center gap-2">- <NewInvestigation noDropDown>- <div>- <Button size="sm">- <PlusIcon className="w-4 h-4 mr-2" />- New Investigation- </Button>- </div>- </NewInvestigation>- </div>- </div>- </div>- </div>-{/* Main Content */}- <div className="max-w-7xl @container mx-auto p-8">- {/* Quick Stats */}- <DashboardStats />-- {/* Main Grid Layout */}- <div className="grid grid-cols-1 lg:grid-cols-3 gap-8">- {/* Left Column - Recent Investigations */}- <div className="lg:col-span-2 space-y-8">- <RecentInvestigations />- <DiscoverSection />- </div>-- {/* Right Column - Quick Actions & Resources */}- <div className="space-y-8">- <GetStartedSection />- <UsefulResources />- </div>- </div>+ <div className="max-w-7xl mx-auto p-8 space-y-12" style={{ containerType: 'inline-size' }}>+ {/* Investigation Cards */}+ <InvestigationCards />++ {/* Analysis Cards */}+ {/* <AnalysisCards /> */}</div></div>);diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsxindex b7b13264..64119498 100644--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsx+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.$type.$id.tsx@@ -65,12 +65,78 @@ export const Route = createFileRoute('/_auth/dashboard/investigations/$investiga),errorComponent: () => (- <div className="h-full w-full flex items-center justify-center">- <div className="text-center">- <h2 className="text-lg font-semibold text-destructive mb-2">- Error loading page+ <div className="h-full w-full flex items-center justify-center bg-background">+ <div className="text-center max-w-md mx-auto p-8">+ <div className="flex justify-center mb-6">+ <div className="w-16 h-16 bg-destructive/10 rounded-full flex items-center justify-center">+ <svg+ className="w-8 h-8 text-destructive"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ xmlns="http://www.w3.org/2000/svg"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-2.5L13.732 4c-.77-.833-1.964-.833-2.732 0L4.082 16.5c-.77.833.192 2.5 1.732 2.5z"+ />+ </svg>+ </div>+ </div>++ <h2 className="text-xl font-semibold text-foreground mb-2">+ Oops! Something went wrong</h2>- <p className="text-muted-foreground">404 not found.</p>++ <p className="text-muted-foreground mb-6 text-sm leading-relaxed">+ We couldn't load this investigation page. This might be due to a network issue,+ invalid investigation ID, or the resource may not exist.+ </p>++ <div className="space-y-3">+ <button+ onClick={() => window.location.reload()}+ className="w-full bg-primary text-primary-foreground hover:bg-primary/90+ px-4 py-2 rounded-md font-medium transition-colors+ flex items-center justify-center gap-2"+ >+ <svg+ className="w-4 h-4"+ fill="none"+ stroke="currentColor"+ viewBox="0 0 24 24"+ >+ <path+ strokeLinecap="round"+ strokeLinejoin="round"+ strokeWidth={2}+ d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"+ />+ </svg>+ Reload Page+ </button>++ <button+ onClick={() => window.history.back()}+ className="w-full bg-muted hover:bg-muted/80 text-muted-foreground hover:text-foreground+ px-4 py-2 rounded-md font-medium transition-colors"+ >+ Go Back+ </button>+ </div>++ <div className="mt-6 pt-4 border-t">+ <p className="text-xs text-muted-foreground">+ If the problem persists, try:+ </p>+ <ul className="text-xs text-muted-foreground mt-2 space-y-1">+ <li>• Checking your internet connection</li>+ <li>• Verifying the investigation ID is correct</li>+ <li>• Contacting support if the issue continues</li>+ </ul>+ </div></div></div>),diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsxindex aaf3733b..9d49dafd 100644--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.$investigationId.index.tsx@@ -1,120 +1,46 @@import { createFileRoute } from '@tanstack/react-router'import { investigationService } from '@/api/investigation-service'-import { analysisService } from '@/api/analysis-service'-import { Waypoints, PlusIcon, Users, FileText, Settings, Activity, FileText as FileTextIcon } from 'lucide-react'-import { Button } from '@/components/ui/button'-import { Badge } from '@/components/ui/badge'-import NewSketch from '@/components/graphs/new-sketch'-import { Link } from '@tanstack/react-router'-import { cn } from '@/lib/utils'-import type { Sketch } from '@/types/sketch'-import type { Analysis } from '@/types'-import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'-import { formatDistanceToNow } from 'date-fns'-import { Skeleton } from '@/components/ui/skeleton'-import { useLayoutStore } from '@/stores/layout-store'-import { useQuery } from '@tanstack/react-query'+import { InvestigationSketches } from '@/components/dashboard/investigation-sketches'+import { InvestigationAnalyses } from '@/components/dashboard/investigation-analyses'function InvestigationSkeleton() {return (- <div className="w-full h-full bg-background overflow-y-auto">- <div className="max-w-7xl mx-auto p-8 space-y-8">- {/* Header Section Skeleton */}- <div className="flex items-start justify-between">- <div className="space-y-1">- <Skeleton className="h-8 w-48" />- <Skeleton className="h-4 w-32" />- </div>- <div className="flex items-center gap-2">- <Skeleton className="h-9 w-24" />- <Skeleton className="h-9 w-28" />- </div>- </div>-- {/* Overview Cards Skeleton */}- <div className="grid grid-cols-[repeat(auto-fit,minmax(250px,1fr))] gap-4">- {[...Array(4)].map((_, i) => (- <Card key={i} className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <Skeleton className="h-4 w-24" />- <Skeleton className="h-4 w-4" />- </CardHeader>- <CardContent>- <Skeleton className="h-8 w-12 mb-2" />- <Skeleton className="h-3 w-32" />- </CardContent>- </Card>- ))}- </div>-- {/* Sketches Section Skeleton */}+ <div className="h-full w-full bg-background overflow-y-auto">+ <div className="max-w-7xl mx-auto p-8 space-y-12" style={{ containerType: 'inline-size' }}>+ {/* Investigation Cards Skeleton */}<div className="space-y-4"><div className="flex items-center justify-between">- <Skeleton className="h-6 w-24" />- <Skeleton className="h-5 w-16" />+ <div className="flex items-center gap-2">+ <div className="w-6 h-6 bg-muted rounded animate-pulse" />+ <div className="w-48 h-6 bg-muted rounded animate-pulse" />+ </div>+ <div className="flex items-center gap-2">+ <div className="w-24 h-8 bg-muted rounded animate-pulse" />+ <div className="w-32 h-8 bg-muted rounded animate-pulse" />+ </div></div>- <div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-4">- {[...Array(3)].map((_, i) => (- <div key={i} className="p-4 rounded-xl border border-border bg-card hover:shadow-md transition-shadow">- <div className="space-y-2">- <div className="flex items-center gap-2">- <Skeleton className="h-4 w-4" />- <Skeleton className="h-4 w-32" />- <Skeleton className="h-4 w-12 ml-auto" />- </div>- <Skeleton className="h-3 w-full" />- <Skeleton className="h-3 w-3/4" />- <div className="flex items-center gap-2">- <Skeleton className="h-3 w-3" />- <Skeleton className="h-3 w-32" />- </div>- </div>- </div>+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {Array.from({ length: 8 }).map((_, i) => (+ <div key={i} className="w-full h-32 bg-muted rounded-lg animate-pulse" />))}</div></div>- {/* Analyses Section Skeleton */}+ {/* Analysis Cards Skeleton */}<div className="space-y-4"><div className="flex items-center justify-between">- <Skeleton className="h-6 w-24" />- <Skeleton className="h-5 w-16" />- </div>- <div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-4">- {[...Array(3)].map((_, i) => (- <div key={i} className="p-4 rounded-xl border border-border bg-card hover:shadow-md transition-shadow">- <div className="space-y-2">- <div className="flex items-center gap-2">- <Skeleton className="h-4 w-4" />- <Skeleton className="h-4 w-32" />- <Skeleton className="h-4 w-12 ml-auto" />- </div>- <Skeleton className="h-3 w-full" />- <Skeleton className="h-3 w-3/4" />- <div className="flex items-center gap-2">- <Skeleton className="h-3 w-3" />- <Skeleton className="h-3 w-32" />- </div>- </div>- </div>- ))}+ <div className="flex items-center gap-2">+ <div className="w-6 h-6 bg-muted rounded animate-pulse" />+ <div className="w-48 h-6 bg-muted rounded animate-pulse" />+ </div>+ <div className="flex items-center gap-2">+ <div className="w-24 h-8 bg-muted rounded animate-pulse" />+ <div className="w-32 h-8 bg-muted rounded animate-pulse" />+ </div></div>- </div>-- {/* Quick Actions Skeleton */}- <div className="space-y-4">- <Skeleton className="h-6 w-32" />- <div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-4">- {[...Array(2)].map((_, i) => (- <Card key={i} className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center gap-3 pb-2">- <Skeleton className="h-9 w-9 rounded-lg" />- <Skeleton className="h-6 w-40" />- </CardHeader>- <CardContent>- <Skeleton className="h-4 w-full" />- </CardContent>- </Card>+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-4">+ {Array.from({ length: 8 }).map((_, i) => (+ <div key={i} className="w-full h-32 bg-muted rounded-lg animate-pulse" />))}</div></div>@@ -135,318 +61,17 @@ export const Route = createFileRoute('/_auth/dashboard/investigations/$investigafunction InvestigationPage() {const { investigation } = Route.useLoaderData()- const isOpenChat = useLayoutStore(s => s.isOpenChat)- const { data: analyses, isLoading: isLoadingAnalyses } = useQuery<Analysis[]>({- queryKey: ['analyses', investigation.id],- queryFn: () => analysisService.getByInvestigationId(investigation.id),- })- const hasSketches = investigation?.sketches?.length > 0- const hasAnalyses = analyses && analyses.length > 0-- // Get the most recent sketch update- const mostRecentSketch = investigation.sketches?.sort((a, b) =>- new Date(b.last_updated_at).getTime() - new Date(a.last_updated_at).getTime()- )[0]-- // Get the most recent analysis update- const mostRecentAnalysis = analyses?.sort((a, b) =>- new Date(b.last_updated_at).getTime() - new Date(a.last_updated_at).getTime()- )[0]-- // Get the most recent activity between sketches and analyses- const getMostRecentActivity = () => {- if (!mostRecentSketch && !mostRecentAnalysis) return null- if (!mostRecentSketch) return mostRecentAnalysis- if (!mostRecentAnalysis) return mostRecentSketch-- return new Date(mostRecentSketch.last_updated_at) > new Date(mostRecentAnalysis.last_updated_at)- ? mostRecentSketch- : mostRecentAnalysis- }-- const mostRecentActivity = getMostRecentActivity()return (- <div className="w-full h-full bg-background overflow-y-auto">- {/* Hero Section */}- <div className={cn("border-b border-border z-10", isOpenChat ? "bg-background" : "bg-gradient-to-r from-secondary/10 to-primary/10")}>- <div className="max-w-7xl mx-auto p-8">- <div className="flex items-center justify-between">- <div className="space-y-1">- <h1 className="text-3xl font-bold text-foreground">{investigation.name}</h1>- <p className="text-muted-foreground">- Created {formatDistanceToNow(new Date(investigation.created_at), { addSuffix: true })}- </p>- </div>- <div className="flex items-center gap-2">- <Button variant="outline" size="sm">- <Settings className="w-4 h-4 mr-2" />- Settings- </Button>- <NewSketch>- <Button size="sm">- <PlusIcon className="w-4 h-4 mr-2" />- New- </Button>- </NewSketch>- </div>- </div>- </div>- </div>-+ <div className="h-full w-full bg-background overflow-y-auto">{/* Main Content */}- <div className="max-w-7xl mx-auto p-8 @container space-y-8">- {/* Overview Cards */}- <div className="grid grid-cols-2 @xs:grid-cols-2 @sm:grid-cols-2 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4">- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Total Sketches</CardTitle>- <Waypoints className="h-4 w-4 text-muted-foreground opacity-70" strokeWidth={1.5} />- </CardHeader>- <CardContent>- <div className="text-2xl font-bold">{investigation.sketches?.length || 0}</div>- <p className="text-xs text-muted-foreground">- {hasSketches ? 'Active investigation' : 'No sketches yet'}- </p>- </CardContent>- </Card>- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Total Analyses</CardTitle>- <FileTextIcon className="h-4 w-4 text-muted-foreground opacity-70" strokeWidth={1.5} />- </CardHeader>- <CardContent>- {isLoadingAnalyses ? (- <>- <Skeleton className="h-8 w-12 mb-2" />- <Skeleton className="h-3 w-32" />- </>- ) : (- <>- <div className="text-2xl font-bold">{analyses?.length || 0}</div>- <p className="text-xs text-muted-foreground">- {hasAnalyses ? 'Active investigation' : 'No analyses yet'}- </p>- </>- )}- </CardContent>- </Card>- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Recent Activity</CardTitle>- <Activity className="h-4 w-4 text-muted-foreground" />- </CardHeader>- <CardContent>- {mostRecentActivity ? (- <>- <div className="text-sm font-medium text-foreground line-clamp-1">- {mostRecentActivity.title}- </div>- <p className="text-xs text-muted-foreground">- Updated {formatDistanceToNow(new Date(mostRecentActivity.last_updated_at), { addSuffix: true })}- </p>- </>- ) : (- <>- <div className="text-sm font-medium text-foreground">No recent activity</div>- <p className="text-xs text-muted-foreground">- Create your first sketch or analysis to get started- </p>- </>- )}- </CardContent>- </Card>- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Collaborators</CardTitle>- <Users className="h-4 w-4 text-muted-foreground" />- </CardHeader>- <CardContent>- <div className="text-2xl font-bold">1</div>- <p className="text-xs text-muted-foreground">- You are the owner- </p>- </CardContent>- </Card>- </div>-- {/* Sketches Section */}- <div className="space-y-4">- <div className="flex items-center justify-between">- <h2 className="text-lg font-semibold">Sketches</h2>- <Badge variant="outline" className="text-xs">- {investigation.sketches?.length || 0} total- </Badge>- </div>-- {!hasSketches ? (- <div className="flex flex-col items-center justify-center text-center gap-4 p-8 border border-dashed rounded-xl">- <Waypoints className="w-10 h-10 text-muted-foreground opacity-70" strokeWidth={1.5} />- <div className="space-y-1 max-w-md">- <h3 className="text-lg font-semibold text-foreground">- No sketches yet- </h3>- <p className="text-sm text-muted-foreground">- Start by creating a sketch to organize entities and visualize your investigation.- </p>- </div>- <NewSketch noDropDown>- <Button>- <PlusIcon className="w-4 h-4 mr-2" />- Create sketch- </Button>- </NewSketch>- </div>- ) : (- <div className="grid grid-cols-1 @xs:grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4">- {investigation.sketches.map((sketch: Sketch) => (- <Link- key={sketch.id}- to="/dashboard/investigations/$investigationId/$type/$id"- params={{- investigationId: investigation.id,- type: 'graph',- id: sketch.id,- }}- className={cn(- 'group p-4 rounded-xl border border-border bg-card hover:shadow-md transition-all',- 'flex flex-col justify-between h-full'- )}- >- <div className="space-y-2">- <div className="flex items-center gap-2 text-sm font-medium text-foreground">- <Waypoints className="w-4 h-4 text-muted-foreground opacity-70" strokeWidth={1.5} />- <span className="truncate text-ellipsis">{sketch.title}</span>- <Badge variant="outline" className="text-[10px] py-0.5 px-1 ml-auto">SKETCH</Badge>- </div>- {sketch.description && (- <p className="text-xs text-muted-foreground line-clamp-2">- {sketch.description}- </p>- )}- <div className="flex items-center gap-2 text-xs text-muted-foreground">- <Activity className="w-3 h-3" />- <span>Last updated {formatDistanceToNow(new Date(sketch.last_updated_at), { addSuffix: true })}</span>- </div>- </div>- </Link>- ))}- </div>- )}- </div>+ <div className="max-w-7xl mx-auto p-8 space-y-12" style={{ containerType: 'inline-size' }}>+ {/* Investigation Sketches */}+ <InvestigationSketches title={investigation.name} investigationId={investigation.id} />- {/* Analyses Section */}- <div className="space-y-4 @container">- <div className="flex items-center justify-between">- <h2 className="text-lg font-semibold">Analyses</h2>- {isLoadingAnalyses ? (- <Skeleton className="h-5 w-16" />- ) : (- <Badge variant="outline" className="text-xs">- {analyses?.length || 0} total- </Badge>- )}- </div>-- {isLoadingAnalyses ? (- <div className="grid grid-cols-1 @xs:grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4">- {[...Array(3)].map((_, i) => (- <div key={i} className="p-4 rounded-xl border border-border bg-card hover:shadow-md transition-shadow">- <div className="space-y-2">- <div className="flex items-center gap-2">- <Skeleton className="h-4 w-4" />- <Skeleton className="h-4 w-32" />- <Skeleton className="h-4 w-12 ml-auto" />- </div>- <Skeleton className="h-3 w-full" />- <Skeleton className="h-3 w-3/4" />- <div className="flex items-center gap-2">- <Skeleton className="h-3 w-3" />- <Skeleton className="h-3 w-32" />- </div>- </div>- </div>- ))}- </div>- ) : !hasAnalyses ? (- <div className="flex flex-col items-center justify-center text-center gap-4 p-8 border border-dashed rounded-xl">- <FileTextIcon className="w-10 h-10 opacity-70" strokeWidth={1.5} />- <div className="space-y-1 max-w-md">- <h3 className="text-lg font-semibold text-foreground">- No analyses yet- </h3>- <p className="text-sm text-muted-foreground">- Start by creating an analysis to document your findings and insights.- </p>- </div>- </div>- ) : (- <div className="grid grid-cols-1 @xs:grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4">- {analyses?.map((analysis) => (- <Link- key={analysis.id}- to="/dashboard/investigations/$investigationId/$type/$id"- params={{- investigationId: investigation.id,- type: 'analysis',- id: analysis.id,- }}- className={cn(- 'group p-4 rounded-xl border border-border bg-card hover:shadow-md transition-all cursor-pointer',- 'flex flex-col justify-between h-full'- )}- >- <div className="space-y-2">- <div className="flex items-center gap-2 text-sm font-medium text-foreground">- <FileTextIcon className="w-4 h-4 text-muted-foreground opacity-70" strokeWidth={1.5} />- <span className="truncate text-ellipsis">{analysis.title || 'Untitled Analysis'}</span>- <Badge variant="outline" className="text-[10px] py-0.5 px-1 ml-auto">ANALYSIS</Badge>- </div>- {analysis.description && (- <p className="text-xs text-muted-foreground line-clamp-2">- {analysis.description}- </p>- )}- <div className="flex items-center gap-2 text-xs text-muted-foreground">- <Activity className="w-3 h-3" />- <span>Last updated {formatDistanceToNow(new Date(analysis.last_updated_at), { addSuffix: true })}</span>- </div>- </div>- </Link>- ))}- </div>- )}- </div>-- {/* Quick Actions */}- <div className="space-y-4">- <h2 className="text-lg font-semibold">Quick Actions</h2>- <div className="grid grid-cols-[repeat(auto-fit,minmax(300px,1fr))] gap-4">- <Card className="hover:shadow-md transition-all cursor-pointer">- <CardHeader className="flex flex-row items-center gap-3 pb-2">- <div className="bg-muted rounded-lg p-2">- <FileText className="w-5 h-5 text-muted-foreground opacity-70" strokeWidth={1.5} />- </div>- <CardTitle className="text-lg">Export Investigation</CardTitle>- </CardHeader>- <CardContent className="text-muted-foreground text-sm">- Export your investigation data and sketches for backup or sharing.- </CardContent>- </Card>- <Card className="hover:shadow-md transition-all cursor-pointer">- <CardHeader className="flex flex-row items-center gap-3 pb-2">- <div className="bg-muted rounded-lg p-2">- <Users className="w-5 h-5 text-muted-foreground" />- </div>- <CardTitle className="text-lg">Share Investigation</CardTitle>- </CardHeader>- <CardContent className="text-muted-foreground text-sm">- Invite team members to collaborate on this investigation.- </CardContent>- </Card>- </div>- </div>+ {/* Investigation Analyses */}+ <InvestigationAnalyses investigationId={investigation.id} /></div>- </div >- )+ </div>+ );}diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.index.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.index.tsxindex 00ac22e9..8054dd87 100644--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.index.tsx+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.investigations.index.tsx@@ -1,13 +1,7 @@import { createFileRoute } from '@tanstack/react-router'-import { DiscoverSection } from '@/components/dashboard/discover-section'-import { GetStartedSection } from '@/components/dashboard/get-started-section'-import { RecentInvestigations } from '@/components/dashboard/recent-investigations'-import { UsefulResources } from '@/components/dashboard/useful-resources'import { InvestigationSkeleton } from '@/components/dashboard/investigation-skeleton'-import { PlusIcon, Waypoints, FileText, Users, Activity } from 'lucide-react'-import { Button } from '@/components/ui/button'-import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'-import NewInvestigation from '@/components/investigations/new-investigation'+import { InvestigationCards } from '@/components/dashboard/investigation-cards'+import { AnalysisCards } from '@/components/dashboard/analysis-cards'export const Route = createFileRoute('/_auth/dashboard/investigations/')({component: InvestigationPage,@@ -16,94 +10,15 @@ export const Route = createFileRoute('/_auth/dashboard/investigations/')({function InvestigationPage() {return (- <div className="w-full h-full bg-background overflow-y-auto">- {/* Hero Section */}- <div className="bg-gradient-to-r from-secondary/10 to-primary/10 border-b border-border z-10">- <div className="max-w-7xl mx-auto p-8">- <div className="flex items-center justify-between">- <div className="space-y-1">- <h1 className="text-3xl font-bold text-foreground">Investigations</h1>- <p className="text-muted-foreground">- Manage and organize your investigations.- </p>- </div>- <div className="flex items-center gap-2">- <NewInvestigation noDropDown>- <div>- <Button size="sm">- <PlusIcon className="w-4 h-4 mr-2" />- New Investigation- </Button>- </div>- </NewInvestigation>- </div>- </div>- </div>- </div>-+ <div className="h-full w-full bg-background overflow-y-auto">{/* Main Content */}- <div className="max-w-7xl mx-auto @container p-8 space-y-8">- {/* Overview Cards */}- <div className="grid grid-cols-1 @xs:grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-2 @xl:grid-cols-4 gap-4">- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Total Investigations</CardTitle>- <Waypoints className="h-4 w-4 text-muted-foreground opacity-70" strokeWidth={1.5} />- </CardHeader>- <CardContent>- <div className="text-2xl font-bold">12</div>- <p className="text-xs text-muted-foreground">- Active investigations- </p>- </CardContent>- </Card>- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Total Sketches</CardTitle>- <FileText className="h-4 w-4 text-muted-foreground" />- </CardHeader>- <CardContent>- <div className="text-2xl font-bold">48</div>- <p className="text-xs text-muted-foreground">- Across all investigations- </p>- </CardContent>- </Card>- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Recent Activity</CardTitle>- <Activity className="h-4 w-4 text-muted-foreground" />- </CardHeader>- <CardContent>- <div className="text-sm font-medium text-foreground line-clamp-1">- Updated Investigation #123- </div>- <p className="text-xs text-muted-foreground">- Updated 2 hours ago- </p>- </CardContent>- </Card>- <Card className="hover:shadow-md transition-shadow">- <CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">- <CardTitle className="text-sm font-medium">Collaborators</CardTitle>- <Users className="h-4 w-4 text-muted-foreground" />- </CardHeader>- <CardContent>- <div className="text-2xl font-bold">3</div>- <p className="text-xs text-muted-foreground">- Active team members- </p>- </CardContent>- </Card>- </div>-- <div className='flex flex-col gap-12 items-center justify-start'>- <RecentInvestigations />- <GetStartedSection />- <DiscoverSection />- <UsefulResources />- </div>+ <div className="max-w-7xl mx-auto p-8 space-y-12">+ {/* Investigation Cards */}+ <InvestigationCards />++ {/* Analysis Cards */}+ <AnalysisCards /></div></div>- )+ );}diff --git a/flowsint-app/src/renderer/src/routes/_auth.dashboard.transforms.index.tsx b/flowsint-app/src/renderer/src/routes/_auth.dashboard.transforms.index.tsxindex 294f51a2..92e593f0 100644--- a/flowsint-app/src/renderer/src/routes/_auth.dashboard.transforms.index.tsx+++ b/flowsint-app/src/renderer/src/routes/_auth.dashboard.transforms.index.tsx@@ -67,7 +67,7 @@ function TransformsPage() {</div></div></div>- <div className="max-w-7xl mx-auto p-8 space-y-8">+ <div className="max-w-7xl mx-auto p-8 space-y-8" style={{ containerType: 'inline-size' }}>{isLoading ? (<div className="p-2"><SkeletonList rowCount={6} mode="card" />@@ -104,7 +104,7 @@ function TransformsPage() {{allCategories.map((category) => (<TabsContent key={category} value={category} className="mt-0">- <div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">+ <div className="grid grid-cols-1 cq-sm:grid-cols-2 cq-md:grid-cols-3 cq-lg:grid-cols-4 cq-xl:grid-cols-5 gap-6">{transforms?.filter(transform =>category === 'All'diff --git a/flowsint-app/src/renderer/src/routes/register.tsx b/flowsint-app/src/renderer/src/routes/register.tsxindex 77a23312..d5d6ebcd 100644--- a/flowsint-app/src/renderer/src/routes/register.tsx+++ b/flowsint-app/src/renderer/src/routes/register.tsx@@ -3,6 +3,8 @@ import { useRegister } from '@/hooks/use-auth';import { useForm } from 'react-hook-form';import { z } from 'zod';import { zodResolver } from '@hookform/resolvers/zod';+import FormField from '@/components/shared/form-field';+import { Button } from '@/components/ui/button';export const Route = createFileRoute('/register')({component: Register,@@ -57,52 +59,40 @@ function Register() {};return (- <div className="min-h-screen flex items-center justify-center bg-gray-50 py-12 px-4 sm:px-6 lg:px-8">+ <div className="min-h-screen flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8"><div className="max-w-md w-full space-y-8"><div>- <h2 className="mt-6 text-center text-3xl font-extrabold text-gray-900">- Créer un compte+ <h2 className="mt-6 text-center text-3xl font-extrabold">+ Create an account</h2></div>-<form className="mt-8 space-y-6" onSubmit={handleSubmit(onSubmit)}>- {/* Affichage des erreurs de l'API */}{registerMutation.error && (<div className="p-3 mb-4 text-sm bg-red-100 border border-red-400 text-red-700 rounded">{registerMutation.error instanceof Error? registerMutation.error.message- : 'Erreur lors de l\'inscription'}+ : 'An error occured registering.'}</div>)}-<div className="rounded-md shadow-sm space-y-4">- {/* Champ username */}<div>- <label htmlFor="username" className="block text-sm font-medium text-gray-700">- Nom d'utilisateur- </label>- <input+ <FormField+ label="Username"id="username"{...register('username')}type="text"- className="mt-1 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"disabled={registerMutation.isPending}/>{errors.username && (<p className="mt-1 text-sm text-red-600">{errors.username.message}</p>)}</div>-- {/* Champ email */}<div>- <label htmlFor="email" className="block text-sm font-medium text-gray-700">- Adresse email- </label>- <input+ <FormField+ label="Email"id="email"{...register('email')}type="email"- className="mt-1 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"disabled={registerMutation.isPending}/>{errors.email && (@@ -112,31 +102,23 @@ function Register() {{/* Champ mot de passe */}<div>- <label htmlFor="password" className="block text-sm font-medium text-gray-700">- Mot de passe- </label>- <input+ <FormField+ label="Password"id="password"{...register('password')}type="password"- className="mt-1 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"disabled={registerMutation.isPending}/>{errors.password && (<p className="mt-1 text-sm text-red-600">{errors.password.message}</p>)}</div>-- {/* Champ confirmation de mot de passe */}<div>- <label htmlFor="confirmPassword" className="block text-sm font-medium text-gray-700">- Confirmer le mot de passe- </label>- <input+ <FormField+ label="Confirm password"id="confirmPassword"{...register('confirmPassword')}type="password"- className="mt-1 appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"disabled={registerMutation.isPending}/>{errors.confirmPassword && (@@ -144,13 +126,11 @@ function Register() {)}</div></div>-- {/* Bouton de soumission */}<div>- <button+ <Buttontype="submit"disabled={registerMutation.isPending || isSubmitting}- className="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 disabled:bg-indigo-400"+ className="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md focus:outline-none focus:ring-2 focus:ring-offset-2">{registerMutation.isPending || isSubmitting ? (<span className="flex items-center">@@ -158,24 +138,22 @@ function Register() {<circle className="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" strokeWidth="4"></circle><path className="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path></svg>- Inscription en cours...+ Registering...</span>- ) : 'S\'inscrire'}- </button>+ ) : 'Register'}+ </Button></div></form>-- {/* Lien vers la page de connexion */}<div className="text-center mt-4">- <p className="text-sm text-gray-600">- Vous avez déjà un compte?{' '}- <Link to="/login" className="font-medium text-indigo-600 hover:text-indigo-500">- Se connecter+ <p className="text-sm">+ Already have an account ?{' '}+ <Link to="/login" className="font-medium text-primary underline">+ Login</Link></p></div>- </div>- </div>+ </div >+ </div >);};diff --git a/flowsint-app/src/renderer/src/stores/graph-settings-store.ts b/flowsint-app/src/renderer/src/stores/graph-settings-store.tsnew file mode 100644index 00000000..8a8f64eb--- /dev/null+++ b/flowsint-app/src/renderer/src/stores/graph-settings-store.ts@@ -0,0 +1,243 @@+import { type Settings } from '@/types';+import { create } from 'zustand';+import { persist } from 'zustand/middleware';++const DEFAULT_SETTINGS = {+ nodeSize: {+ value: 14,+ min: 1,+ max: 100,+ step: .1,+ description: "Defined the width of the link between two nodes."+ },+ linkWidth: {+ value: 2,+ min: 1,+ max: 10,+ step: .1,+ description: "Defined the width of the link between two nodes."+ },+ dagLevelDistance: {+ value: 50,+ min: 0,+ max: 100,+ step: 1,+ description: "Distance between different graph depths when using DAG (directed acyclic graph) layout mode"+ },+ linkDirectionalArrowRelPos: {+ value: 0.99,+ min: 0,+ max: 1,+ step: 0.01,+ description: "Position of directional arrows along the link line (0 = source node, 1 = target node, 0.5 = middle)"+ },+ linkDirectionalArrowLength: {+ value: 3,+ min: 1,+ max: 100,+ step: 0.1,+ description: "Length of the arrow heads that indicate link direction"+ },+ linkDirectionalParticleSpeed: {+ value: 0.005,+ min: 0,+ max: 0.05,+ step: 0.001,+ description: "Speed of moving particles along links (higher = faster movement)"+ },+ cooldownTicks: {+ value: 200,+ min: 50,+ max: 1000,+ step: 10,+ description: "Number of simulation frames to render before stopping and freezing the layout"+ },+ cooldownTime: {+ value: 15000,+ min: 1000,+ max: 60000,+ step: 1000,+ description: "Maximum time in milliseconds to run the simulation before stopping (15000 = 15 seconds)"+ },+ d3AlphaDecay: {+ value: 0.045,+ min: 0,+ max: 0.3,+ step: 0.005,+ description: "Rate at which the simulation intensity decays (higher = faster convergence, lower = longer simulation)"+ },+ d3AlphaMin: {+ value: 0,+ min: 0,+ max: 0.1,+ step: 0.001,+ description: "Minimum simulation intensity threshold - simulation stops when reaching this value"+ },+ d3VelocityDecay: {+ value: 0.41,+ min: 0,+ max: 1,+ step: 0.01,+ description: "Velocity decay factor that simulates friction/resistance (higher = more damping, nodes slow down faster)"+ },+ warmupTicks: {+ value: 0,+ min: 0,+ max: 100,+ step: 1,+ description: "Number of simulation cycles to run in background before starting to render (improves initial layout)"+ },+ // Additional Force Parameters+ d3AlphaTarget: {+ value: 0,+ min: 0,+ max: 1,+ step: 0.01,+ description: "Target alpha value for the simulation (0 = stop, higher values = continuous motion)"+ },+ linkStrength: {+ value: 1,+ min: 0,+ max: 2,+ step: 0.1,+ description: "Strength of the link force (higher = stronger connection between linked nodes)"+ },+ chargeStrength: {+ value: -30,+ min: -500,+ max: 100,+ step: 10,+ description: "Strength of the charge force (negative = repulsion, positive = attraction)"+ },+ centerStrength: {+ value: 1,+ min: 0,+ max: 2,+ step: 0.1,+ description: "Strength of the centering force (higher = stronger pull towards center)"+ },+ collisionRadius: {+ value: 0,+ min: 0,+ max: 50,+ step: 1,+ description: "Collision radius for nodes (0 = no collision detection, higher = larger collision area)"+ },+ collisionStrength: {+ value: 1,+ min: 0,+ max: 2,+ step: 0.1,+ description: "Strength of collision force (higher = stronger collision avoidance)"+ }+}++type GraphSettingsStore = {+ // Settings state+ settings: Settings+ updateSetting: (key: string, val: number) => void+ // UI State+ settingsModalOpen: boolean+ setSettingsModalOpen: (open: boolean) => void+ resetSettings: () => void+ getSettings: () => any+ // Force Presets+ currentPreset: string | null+ applyPreset: (presetName: string) => void+ getPresets: () => Record<string, any>+};+export const useGraphSettingsStore = create<GraphSettingsStore>()(+ persist((set, get) => ({+ settingsModalOpen: false,+ settings: DEFAULT_SETTINGS,+ currentPreset: null,+ setSettingsModalOpen: (open) => set({ settingsModalOpen: open }),+ updateSetting: (key, val) => set((state) => ({+ settings: {+ ...state.settings,+ [key]: {+ ...state.settings[key],+ value: val+ },+ },+ currentPreset: null, // Clear preset when manually changing settings+ })),+ getSettings: () => {+ let flatSettings = {}+ Object.keys(get().settings).map((key) => {+ flatSettings[key] = get().settings[key].value+ })+ return flatSettings+ },+ resetSettings: () => set({ settings: DEFAULT_SETTINGS, currentPreset: null }),++ // Force Presets Implementation+ getPresets: () => ({+ 'Tight Clusters': {+ chargeStrength: -10,+ linkStrength: 2.5,+ centerStrength: 1.5,+ d3VelocityDecay: 0.8,+ collisionRadius: 8+ },+ 'Compact Network': {+ chargeStrength: -20,+ linkStrength: 2.0,+ centerStrength: 1.2,+ d3VelocityDecay: 0.7,+ collisionRadius: 5+ },+ 'Balanced Layout': {+ chargeStrength: -40,+ linkStrength: 1.5,+ centerStrength: 1.0,+ d3VelocityDecay: 0.6,+ collisionRadius: 6+ },+ 'Loose Organic': {+ chargeStrength: -80,+ linkStrength: 1.0,+ centerStrength: 0.8,+ d3VelocityDecay: 0.4,+ collisionRadius: 10+ },+ 'High Energy': {+ chargeStrength: -60,+ linkStrength: 1.2,+ centerStrength: 0.5,+ d3VelocityDecay: 0.3,+ d3AlphaTarget: 0.1,+ collisionRadius: 12+ }+ }),++ applyPreset: (presetName: string) => {+ const presets = get().getPresets();+ const preset = presets[presetName];+ if (!preset) return;++ set((state) => {+ const newSettings = { ...state.settings };+ Object.entries(preset).forEach(([key, value]) => {+ if (newSettings[key]) {+ newSettings[key] = {+ ...newSettings[key],+ value: value as number+ };+ }+ });+ return {+ settings: newSettings,+ currentPreset: presetName+ };+ });+ }+ } ),+ {+ name: 'graph-controls-storage',+ partialize: (state) => ({+ settings: state.settings,+ currentPreset: state.currentPreset+ }),+ }+ ));diff --git a/flowsint-app/src/renderer/src/stores/graph-store.ts b/flowsint-app/src/renderer/src/stores/graph-store.tsindex d7b4d6cb..6e8731f3 100644--- a/flowsint-app/src/renderer/src/stores/graph-store.ts+++ b/flowsint-app/src/renderer/src/stores/graph-store.ts@@ -15,8 +15,8 @@ import { type ActionItem } from "@/lib/action-items"export type GraphNode = Node<NodeData> & {collapsed?: boolean;hidden?: boolean;- targetPosition?: "left" | "right" | "top" | "bottom";- sourcePosition?: "left" | "right" | "top" | "bottom";+ x?: number;+ y?: number;}export type GraphEdge = Edge<EdgeData>@@ -32,6 +32,7 @@ interface GraphState {removeEdges: (edgeIds: string[]) => voidupdateGraphData: (nodes: GraphNode[], edges: GraphEdge[]) => voidupdateNode: (nodeId: string, updates: Partial<NodeData>) => void+ updateEdge: (edgeId: string, updates: Partial<EdgeData>) => voidonNodesChange: OnNodesChangeonEdgesChange: OnEdgesChangeonConnect: OnConnect@@ -135,6 +136,15 @@ export const useGraphStore = create<GraphState>()((set, get) => ({)set({ nodes: updatedNodes })},+ updateEdge: (edgeId, updates) => {+ const { edges } = get()+ const updatedEdges = edges.map(edge =>+ edge.id === edgeId+ ? { ...edge, data: { ...edge.data, ...updates } as EdgeData }+ : edge+ )+ set({ edges: updatedEdges })+ },onNodesChange: (changes) => {set({nodes: applyNodeChanges(changes, get().nodes) as GraphNode[],diff --git a/flowsint-app/src/renderer/src/stores/layout-store.ts b/flowsint-app/src/renderer/src/stores/layout-store.tsindex 65f9a726..b12a3e67 100644--- a/flowsint-app/src/renderer/src/stores/layout-store.ts+++ b/flowsint-app/src/renderer/src/stores/layout-store.ts@@ -4,6 +4,7 @@ import { persist } from 'zustand/middleware'interface LayoutStore {isOpenConsole: booleanisOpenPanel: boolean+ isOpenDetails: booleanisOpenChat: booleanisOpenAnalysis: booleanchatWidth: number@@ -11,6 +12,7 @@ interface LayoutStore {toggleConsole: () => voidtogglePanel: () => voidtoggleChat: () => void+ toggleDetails: () => voidtoggleAnalysis: () => voidclosePanel: () => voidopenPanel: () => void@@ -30,6 +32,7 @@ export const useLayoutStore = create<LayoutStore>()((set) => ({isOpenConsole: false,isOpenPanel: true,+ isOpenDetails: false,isOpenChat: false,isOpenAnalysis: false,chatWidth: 500,@@ -38,6 +41,7 @@ export const useLayoutStore = create<LayoutStore>()(activeTransformTab: "transforms",toggleConsole: () => set((state) => ({ isOpenConsole: !state.isOpenConsole })),togglePanel: () => set((state) => ({ isOpenPanel: !state.isOpenPanel })),+ toggleDetails: () => set((state) => ({ isOpenDetails: !state.isOpenDetails })),toggleChat: () => set((state) => ({ isOpenChat: !state.isOpenChat })),toggleAnalysis: () => set((state) => ({ isOpenAnalysis: !state.isOpenAnalysis })),closePanel: () => set({ isOpenPanel: false }),@@ -55,6 +59,7 @@ export const useLayoutStore = create<LayoutStore>()(partialize: (state) => ({isOpenPanel: state.isOpenPanel,isOpenAnalysis: state.isOpenAnalysis,+ isOpenDetails: state.isOpenDetails,chatWidth: state.chatWidth,chatHeight: state.chatHeight,activeTab: state.activeTab,diff --git a/flowsint-app/src/renderer/src/stores/node-display-settings.ts b/flowsint-app/src/renderer/src/stores/node-display-settings.tsindex 33cf4a2d..4e4c92b1 100644--- a/flowsint-app/src/renderer/src/stores/node-display-settings.ts+++ b/flowsint-app/src/renderer/src/stores/node-display-settings.ts@@ -226,59 +226,59 @@ const DEFAULT_ICONS: Record<ItemType, string> = {};const DEFAULT_SIZES: Record<ItemType, number> = {- individual: 10,- phone: 8,- location: 7,- email: 7,- ip: 7,- socialprofile: 7,- organization: 10,- vehicle: 7,- car: 7,- motorcycle: 7,- boat: 7,- plane: 7,- website: 7,- domain: 8,- subdomain: 7,- document: 7,- financial: 7,- event: 7,- device: 7,- media: 7,- education: 7,- relationship: 7,- online_activity: 7,- digital_footprint: 7,- biometric: 7,- credential: 7,- username: 8,- siret: 5,- siren: 5,- cryptowallet: 7,- cryptotransaction: 7,- cryptonft: 7,- asn: 11,- cidr: 10,- whois: 6,- gravatar: 7,- breach: 8,- webtracker: 7,- session: 7,- dns: 7,- ssl: 7,- message: 7,- malware: 8,- weapon: 8,- script: 7,- reputation: 7,- risk: 8,- file: 7,- bank: 7,- creditcard: 7,- alias: 7,- affiliation: 7,- phrase: 7+ individual: 24, // Large - key entities+ phone: 16, // Medium-large+ location: 14, // Medium+ email: 14, // Medium+ ip: 16, // Medium-large+ socialprofile: 14, // Medium+ organization: 28, // Very large - important entities+ vehicle: 12, // Small-medium+ car: 12, // Small-medium+ motorcycle: 12, // Small-medium+ boat: 12, // Small-medium+ plane: 12, // Small-medium+ website: 14, // Medium+ domain: 20, // Large+ subdomain: 16, // Medium-large+ document: 12, // Small-medium+ financial: 18, // Medium-large+ event: 12, // Small-medium+ device: 12, // Small-medium+ media: 12, // Small-medium+ education: 12, // Small-medium+ relationship: 10, // Small+ online_activity: 10, // Small+ digital_footprint: 10, // Small+ biometric: 14, // Medium+ credential: 16, // Medium-large+ username: 14, // Medium+ siret: 8, // Very small+ siren: 8, // Very small+ cryptowallet: 18, // Medium-large+ cryptotransaction: 14, // Medium+ cryptonft: 14, // Medium+ asn: 32, // Largest - network infrastructure+ cidr: 28, // Very large - network ranges+ whois: 10, // Small+ gravatar: 10, // Small+ breach: 20, // Large - security important+ webtracker: 12, // Small-medium+ session: 10, // Small+ dns: 16, // Medium-large+ ssl: 16, // Medium-large+ message: 12, // Small-medium+ malware: 24, // Large - security critical+ weapon: 22, // Large - high importance+ script: 12, // Small-medium+ reputation: 14, // Medium+ risk: 20, // Large - important for analysis+ file: 12, // Small-medium+ bank: 22, // Large - financial importance+ creditcard: 18, // Medium-large+ alias: 12, // Small-medium+ affiliation: 14, // Medium+ phrase: 10 // Small}interface NodesDisplaySettingsState {@@ -326,7 +326,7 @@ export const useNodesDisplaySettings = create<NodesDisplaySettingsState>()(return get().icons[itemType] || ""},getSize: (itemType) => {- return get().sizes[itemType]+ return get().sizes[itemType] * 0.4}}),{diff --git a/flowsint-app/src/renderer/src/stores/store-settings.ts b/flowsint-app/src/renderer/src/stores/store-settings.tsdeleted file mode 100644index 31d6a728..00000000--- a/flowsint-app/src/renderer/src/stores/store-settings.ts+++ /dev/null@@ -1,15 +0,0 @@-import { create } from "zustand"--interface ModalState {- isSettingsOpen: boolean- openSettings: () => void- closeSettings: () => void- toggleSettings: () => void-}--export const useModalStore = create<ModalState>((set) => ({- isSettingsOpen: false,- openSettings: () => set({ isSettingsOpen: true }),- closeSettings: () => set({ isSettingsOpen: false }),- toggleSettings: () => set((state) => ({ isSettingsOpen: !state.isSettingsOpen })),-}))diff --git a/flowsint-app/src/renderer/src/stores/tab-slice.ts b/flowsint-app/src/renderer/src/stores/tab-slice.tsdeleted file mode 100644index cdb3703c..00000000--- a/flowsint-app/src/renderer/src/stores/tab-slice.ts+++ /dev/null@@ -1,133 +0,0 @@-import type { TabsSlice } from '../types/tabs'-import type { TabInfo } from '../types/tabs'-import { produce } from 'immer'-import type { StateCreator } from 'zustand'--export const createTabSlice: StateCreator<TabsSlice, [], [], TabsSlice> = (set) => ({- tabs: {- items: [],- selectedTabId: null,- selectedTabIndex: 0,- initialize: async () => {- set(- produce((state: TabsSlice) => {- state.tabs.items = []- state.tabs.selectedTabId = null- state.tabs.selectedTabIndex = 0- })- )- },- setSelectedTab: (tab: TabInfo) => {- set(- produce((state: TabsSlice) => {- state.tabs.selectedTabId = tab.id- state.tabs.selectedTabIndex = state.tabs.items.findIndex((item) => tab.id === item.id)- })- )- },- remove: (tab: TabInfo) =>- set(- produce((state: TabsSlice) => {- if (state.tabs.items.length === 1) {- // If we are deleting the last tab, close it and add a new tab- state.tabs.items.splice(0, 1)- state.tabs.selectedTabId = null- state.tabs.selectedTabIndex = 0- return- }- const index = state.tabs.items.findIndex((t) => t.id === tab.id)-- if (tab.id === state.tabs.selectedTabId) {- // Set new selected tab if the current tab is selected- if (index === -1) {- state.tabs.selectedTabId = state.tabs.items[0].id- } else if (index === state.tabs.items.length - 1) {- state.tabs.selectedTabId = state.tabs.items[state.tabs.items.length - 2].id- } else {- state.tabs.selectedTabId = state.tabs.items[index + 1].id- }- }-- if (index === -1) return- state.tabs.items.splice(index, 1)- })- ),- add: async (params) => {- const { id, type, investigationId, data, title, isLoading } = params-- if (!id || !type || !investigationId) {- console.warn("Missing required parameters for tab creation")- return- }-- set(- produce((state: TabsSlice) => {- const existingTab = state.tabs.items.find(- (tab) =>- tab.id === id &&- tab.type === type &&- tab.investigationId === investigationId- )-- if (existingTab) {- state.tabs.selectedTabId = id- return- }-- const newTab: TabInfo = {- id,- title: title || `${type} ${id}`,- data,- investigationId,- type,- isDirty: false,- isLoading: isLoading || false,- }-- state.tabs.items.push(newTab)- state.tabs.selectedTabId = id- state.tabs.selectedTabIndex = state.tabs.items.length - 1- })- )- },- reorder: (tabs: TabInfo[]) => {- set(- produce((state: TabsSlice) => {- state.tabs.items = tabs- state.tabs.selectedTabIndex = tabs.findIndex((tab) => state.tabs.selectedTabId === tab.id)- })- )- },- updateTabData: (id: string, data: any) => {- if (!id || !data) return-- set(- produce((state: TabsSlice) => {- state.tabs.items = state.tabs.items.map((tab) =>- tab.id === id ? { ...tab, ...data } : tab- )- })- )- },- markTabDirty: (id: string, isDirty = true) => {- if (!id) return-- set(- produce((state: TabsSlice) => {- state.tabs.items = state.tabs.items.map((tab) =>- tab.id === id ? { ...tab, isDirty } : tab- )- })- )- },- clearTabs: () => {- set(- produce((state: TabsSlice) => {- state.tabs.items = []- state.tabs.selectedTabId = null- state.tabs.selectedTabIndex = 0- })- )- }- }-})\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/stores/use-bound-store.ts b/flowsint-app/src/renderer/src/stores/use-bound-store.tsdeleted file mode 100644index 3b3f0273..00000000--- a/flowsint-app/src/renderer/src/stores/use-bound-store.ts+++ /dev/null@@ -1,9 +0,0 @@-import { create } from 'zustand'-import type { TabsSlice } from '../types/tabs'-import { createTabSlice } from './tab-slice'--type Store = TabsSlice--export const useBoundStore = create<Store>()((...args) => ({- ...createTabSlice(...args)-}))\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/styles.css b/flowsint-app/src/renderer/src/styles.cssindex 14066e99..ebeb1e37 100644--- a/flowsint-app/src/renderer/src/styles.css+++ b/flowsint-app/src/renderer/src/styles.css@@ -1,10 +1,35 @@@import "tailwindcss";-+@plugin "@tailwindcss/typography";@plugin "tailwindcss-animate";@custom-variant dark (&:is(.dark *));+/* Container Queries */+@container (min-width: 640px) {+ .cq-sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }+}++@container (min-width: 768px) {+ .cq-md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }+}++@container (min-width: 1024px) {+ .cq-lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }+}++@container (min-width: 1280px) {+ .cq-xl\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }+}++/* Electron title bar draggable region */+.-webkit-app-region-drag {+ -webkit-app-region: drag;+ user-select: none;+}+.-webkit-app-region-no-drag {+ -webkit-app-region: no-drag;+}body {@apply m-0;@@ -693,7 +718,7 @@ html {--font-sans: Inter, sans-serif;--font-serif: Source Serif 4, serif;--font-mono: JetBrains Mono, monospace;- --radius: .875rem;+ --radius: .275rem;--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);@@ -711,7 +736,7 @@ html {--foreground: oklch(0.9219 0 0);--card: oklch(0.2186 0 0);--card-foreground: oklch(0.9219 0 0);- --popover: oklch(0.2686 0 0);+ --popover: oklch(0.2186 0 0);--popover-foreground: oklch(0.9219 0 0);--primary: oklch(0.6612 0.2003 37.74);--primary-foreground: oklch(0 0 0);@@ -742,7 +767,7 @@ html {--font-sans: Inter, sans-serif;--font-serif: Source Serif 4, serif;--font-mono: JetBrains Mono, monospace;- --radius: .875rem;+ --radius: .275rem;--shadow-2xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);--shadow-xs: 0px 4px 8px -1px hsl(0 0% 0% / 0.05);--shadow-sm: 0px 4px 8px -1px hsl(0 0% 0% / 0.10), 0px 1px 2px -2px hsl(0 0% 0% / 0.10);@@ -913,3 +938,16 @@ th,}+body {+ letter-spacing: var(--tracking-normal);+}++code,+pre {+ @apply p-0;+}++.react-flow__minimap {+ @apply rounded-2xl overflow-hidden bg-background border border-border;+}+diff --git a/flowsint-app/src/renderer/src/types/graph.ts b/flowsint-app/src/renderer/src/types/graph.tsindex 722bc793..10a598c7 100644--- a/flowsint-app/src/renderer/src/types/graph.ts+++ b/flowsint-app/src/renderer/src/types/graph.ts@@ -23,4 +23,17 @@ export type EdgeData = {export type InvestigationGraph = {nodes: Node[];edges: Edge[];-};\ No newline at end of file+};++export type Setting = {+ value: any,+ min?: number,+ max?: number,+ step?: number,+ type?: string,+ description?: string,+}++export type Settings = {+ [key: string]: Setting,+}\ No newline at end of filediff --git a/flowsint-app/src/renderer/src/types/transform.ts b/flowsint-app/src/renderer/src/types/transform.tsindex 521fe687..5f1e371d 100644--- a/flowsint-app/src/renderer/src/types/transform.ts+++ b/flowsint-app/src/renderer/src/types/transform.ts@@ -30,7 +30,8 @@ export interface Scanner {category: stringname: stringmodule: string- doc: string | null+ documentation: string | null+ description: string | nullinputs: ScannerIOoutputs: ScannerIOtype: stringdiff --git a/flowsint-app/yarn.lock b/flowsint-app/yarn.lockindex a56e00b3..f791d1c3 100644--- a/flowsint-app/yarn.lock+++ b/flowsint-app/yarn.lock@@ -257,7 +257,7 @@"@babel/plugin-transform-modules-commonjs" "^7.27.1""@babel/plugin-transform-typescript" "^7.27.1"-"@babel/runtime@^7.17.8", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":+"@babel/runtime@^7.17.8", "@babel/runtime@^7.26.0", "@babel/runtime@^7.3.1", "@babel/runtime@^7.5.5", "@babel/runtime@^7.8.7":version "7.27.6"resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.27.6.tgz#ec4070a04d76bae8ddbb10770ba55714a417b7c6"integrity sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==@@ -292,6 +292,14 @@"@babel/helper-string-parser" "^7.27.1""@babel/helper-validator-identifier" "^7.27.1"+"@babel/types@^7.26.0":+ version "7.28.2"+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b"+ integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==+ dependencies:+ "@babel/helper-string-parser" "^7.27.1"+ "@babel/helper-validator-identifier" "^7.27.1"+"@cosmograph/[email protected]":version "1.4.2"resolved "https://registry.yarnpkg.com/@cosmograph/cosmograph/-/cosmograph-1.4.2.tgz#73956de6908e0a2b99cf78186aba3af926bb328f"@@ -367,6 +375,11 @@ajv "^6.12.0"ajv-keywords "^3.4.1"+"@dimforge/rapier3d-compat@~0.12.0":+ version "0.12.0"+ resolved "https://registry.yarnpkg.com/@dimforge/rapier3d-compat/-/rapier3d-compat-0.12.0.tgz#7b3365e1dfdc5cd957b45afe920b4ac06c7cd389"+ integrity sha512-uekIGetywIgopfD97oDL5PfeezkFpNhwlzlaEYNOA0N6ghdsOvh/HYjSMek5Q2O1PYvRSDFcqFVJl4r4ZBwOow==+"@electron-toolkit/eslint-config-prettier@^2.0.0":version "2.0.0"resolved "https://registry.yarnpkg.com/@electron-toolkit/eslint-config-prettier/-/eslint-config-prettier-2.0.0.tgz#a258a28fc0a09b7f910fd71e0aa18ea6ee440735"@@ -945,6 +958,18 @@lodash "^4.17.15"tmp-promise "^3.0.2"+"@mediapipe/[email protected]":+ version "0.10.17"+ resolved "https://registry.yarnpkg.com/@mediapipe/tasks-vision/-/tasks-vision-0.10.17.tgz#2c1c73ed81902b21d37336a587b96183bb6882d5"+ integrity sha512-CZWV/q6TTe8ta61cZXjfnnHsfWIdFhms03M9T7Cnd5y2mdpylJM0rF1qRq+wsQVRMLz1OYPVEBU9ph2Bx8cxrg==++"@monogrid/gainmap-js@^3.0.6":+ version "3.1.0"+ resolved "https://registry.yarnpkg.com/@monogrid/gainmap-js/-/gainmap-js-3.1.0.tgz#4ac1f88abd6affdf0b51d79318109183b499c502"+ integrity sha512-Obb0/gEd/HReTlg8ttaYk+0m62gQJmCblMOjHSMHRrBP2zdfKMHLCRbh/6ex9fSUJMKdjjIEiohwkbGD3wj2Nw==+ dependencies:+ promise-worker-transferable "^1.0.4"+"@napi-rs/wasm-runtime@^0.2.11":version "0.2.11"resolved "https://registry.yarnpkg.com/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.11.tgz#192c1610e1625048089ab4e35bc0649ce478500e"@@ -1613,6 +1638,96 @@dependencies:"@react-sigma/layout-core" "^5.0.4"+"@react-spring/animated@~10.0.1":+ version "10.0.1"+ resolved "https://registry.yarnpkg.com/@react-spring/animated/-/animated-10.0.1.tgz#d081ff8986caebc653c7589fd54a248519109d69"+ integrity sha512-BGL3hA66Y8Qm3KmRZUlfG/mFbDPYajgil2/jOP0VXf2+o2WPVmcDps/eEgdDqgf5Pv9eBbyj7LschLMuSjlW3Q==+ dependencies:+ "@react-spring/shared" "~10.0.1"+ "@react-spring/types" "~10.0.1"++"@react-spring/core@~10.0.1":+ version "10.0.1"+ resolved "https://registry.yarnpkg.com/@react-spring/core/-/core-10.0.1.tgz#35b6b8fca4bc388baed9975904b88b69c5e712d1"+ integrity sha512-KaMMsN1qHuVTsFpg/5ajAVye7OEqhYbCq0g4aKM9bnSZlDBBYpO7Uf+9eixyXN8YEbF+YXaYj9eoWDs+npZ+sA==+ dependencies:+ "@react-spring/animated" "~10.0.1"+ "@react-spring/shared" "~10.0.1"+ "@react-spring/types" "~10.0.1"++"@react-spring/rafz@~10.0.1":+ version "10.0.1"+ resolved "https://registry.yarnpkg.com/@react-spring/rafz/-/rafz-10.0.1.tgz#ee439b428b1f94fedb9a32486ec2dd4a3b6ab0de"+ integrity sha512-UrzG/d6Is+9i0aCAjsjWRqIlFFiC4lFqFHrH63zK935z2YDU95TOFio4VKGISJ5SG0xq4ULy7c1V3KU+XvL+Yg==++"@react-spring/shared@~10.0.1":+ version "10.0.1"+ resolved "https://registry.yarnpkg.com/@react-spring/shared/-/shared-10.0.1.tgz#51dc556a3b25f78984cdf27023e42ac3fe84515b"+ integrity sha512-KR2tmjDShPruI/GGPfAZOOLvDgkhFseabjvxzZFFggJMPkyICLjO0J6mCIoGtdJSuHywZyc4Mmlgi+C88lS00g==+ dependencies:+ "@react-spring/rafz" "~10.0.1"+ "@react-spring/types" "~10.0.1"++"@react-spring/[email protected]":+ version "10.0.1"+ resolved "https://registry.yarnpkg.com/@react-spring/three/-/three-10.0.1.tgz#63bb2dcc0336ad76a9cadf2e860c391b18d85341"+ integrity sha512-JAgA573EqG1WkDGameWv0HYlPL5KYwVCRhXroBq5Ed0Chc9xXuAZU8fyNg9/uup8Pc32iGSW0PHRt0msvPNg+w==+ dependencies:+ "@react-spring/animated" "~10.0.1"+ "@react-spring/core" "~10.0.1"+ "@react-spring/shared" "~10.0.1"+ "@react-spring/types" "~10.0.1"++"@react-spring/types@~10.0.1":+ version "10.0.1"+ resolved "https://registry.yarnpkg.com/@react-spring/types/-/types-10.0.1.tgz#749b5d11785555a14179c37b8f9d34c69ae5268d"+ integrity sha512-Fk1wYVAKL+ZTYK+4YFDpHf3Slsy59pfFFvnnTfRjQQFGlyIo4VejPtDs3CbDiuBjM135YztRyZjIH2VbycB+ZQ==++"@react-three/drei@^10.1.2":+ version "10.6.0"+ resolved "https://registry.yarnpkg.com/@react-three/drei/-/drei-10.6.0.tgz#60fedada7cbb804844faaf53e3f95648c4cd31bf"+ integrity sha512-edjwtUxhQzFVnHpOgndnaKf0NBrlYD8fyEnwILgIDHWsBZ5LcX2Tao19WjYPYR21Gzzc0OMQZVNrQeUOU5cfHA==+ dependencies:+ "@babel/runtime" "^7.26.0"+ "@mediapipe/tasks-vision" "0.10.17"+ "@monogrid/gainmap-js" "^3.0.6"+ "@use-gesture/react" "^10.3.1"+ camera-controls "^3.1.0"+ cross-env "^7.0.3"+ detect-gpu "^5.0.56"+ glsl-noise "^0.0.0"+ hls.js "^1.5.17"+ maath "^0.10.8"+ meshline "^3.3.1"+ stats-gl "^2.2.8"+ stats.js "^0.17.0"+ suspend-react "^0.1.3"+ three-mesh-bvh "^0.8.3"+ three-stdlib "^2.35.6"+ troika-three-text "^0.52.4"+ tunnel-rat "^0.1.2"+ use-sync-external-store "^1.4.0"+ utility-types "^3.11.0"+ zustand "^5.0.1"++"@react-three/[email protected]":+ version "9.1.2"+ resolved "https://registry.yarnpkg.com/@react-three/fiber/-/fiber-9.1.2.tgz#c988f3aa916f64771483784ca3bb6ba4b116395e"+ integrity sha512-k8FR9yVHV9kIF3iuOD0ds5hVymXYXfgdKklqziBVod9ZEJ8uk05Zjw29J/omU3IKeUfLNAIHfxneN3TUYM4I2w==+ dependencies:+ "@babel/runtime" "^7.17.8"+ "@types/react-reconciler" "^0.28.9"+ "@types/webxr" "*"+ base64-js "^1.5.1"+ buffer "^6.0.3"+ its-fine "^2.0.0"+ react-reconciler "^0.31.0"+ react-use-measure "^2.1.7"+ scheduler "^0.25.0"+ suspend-react "^0.1.3"+ use-sync-external-store "^1.4.0"+ zustand "^5.0.3"+"@remirror/[email protected]":version "3.0.0"resolved "https://registry.yarnpkg.com/@remirror/core-constants/-/core-constants-3.0.0.tgz#96fdb89d25c62e7b6a5d08caf0ce5114370e3b8f"@@ -1733,6 +1848,11 @@resolved "https://registry.yarnpkg.com/@standard-schema/utils/-/utils-0.3.0.tgz#3d5e608f16c2390c10528e98e59aef6bf73cae7b"integrity sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==+"@storybook/manager-api@^8.6.14":+ version "8.6.14"+ resolved "https://registry.yarnpkg.com/@storybook/manager-api/-/manager-api-8.6.14.tgz#1e0740193fbfd4a66e9ff5f75c7f976e16028752"+ integrity sha512-ez0Zihuy17udLbfHZQXkGqwtep0mSGgHcNzGN7iZrMP1m+VmNo+7aGCJJdvXi7+iU3yq8weXSQFWg5DqWgLS7g==+"@supabase/[email protected]":version "2.70.0"resolved "https://registry.yarnpkg.com/@supabase/auth-js/-/auth-js-2.70.0.tgz#d4a0021d8a229d1ec23dd49ca76c486a686b6c14"@@ -1906,7 +2026,17 @@"@tailwindcss/oxide-win32-arm64-msvc" "4.1.11""@tailwindcss/oxide-win32-x64-msvc" "4.1.11"-"@tailwindcss/vite@^3.4.1":+"@tailwindcss/typography@^0.5.16":+ version "0.5.16"+ resolved "https://registry.yarnpkg.com/@tailwindcss/typography/-/typography-0.5.16.tgz#a926c8f44d5c439b2915e231cad80058850047c6"+ integrity sha512-0wDLwCVF5V3x3b1SGXPCDcdsbDHMBe+lkFzBRaHeLvNi+nrrnZ1lA18u+OTWO8iSWU2GxUOCvlXtDuqftc1oiA==+ dependencies:+ lodash.castarray "^4.4.0"+ lodash.isplainobject "^4.0.6"+ lodash.merge "^4.6.2"+ postcss-selector-parser "6.0.10"++"@tailwindcss/vite@^4.1.11":version "4.1.11"resolved "https://registry.yarnpkg.com/@tailwindcss/vite/-/vite-4.1.11.tgz#9af1c9d328b31e67c6a0657500bcaa78be6df9f7"integrity sha512-RHYhrR3hku0MJFRV+fN2gNbDNEh3dwKvY8XJvTxCSXeMOsCRSr+uKvDWQcbizrHgjML6ZmTE5OwMrl5wKcujCw==@@ -2339,6 +2469,11 @@resolved "https://registry.yarnpkg.com/@tweenjs/tween.js/-/tween.js-25.0.0.tgz#7266baebcc3affe62a3a54318a3ea82d904cd0b9"integrity sha512-XKLA6syeBUaPzx4j3qwMqzzq+V4uo72BnlbOjmuljLrRqdsd3qnzvZZoxvMHZ23ndsRS4aufU6JOZYpCbU6T1A==+"@tweenjs/tween.js@~23.1.3":+ version "23.1.3"+ resolved "https://registry.yarnpkg.com/@tweenjs/tween.js/-/tween.js-23.1.3.tgz#eff0245735c04a928bb19c026b58c2a56460539d"+ integrity sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==+"@tybys/wasm-util@^0.9.0":version "0.9.0"resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.9.0.tgz#3e75eb00604c8d6db470bf18c37b7d984a0e3355"@@ -2474,6 +2609,11 @@dependencies:"@types/ms" "*"+"@types/draco3d@^1.4.0":+ version "1.4.10"+ resolved "https://registry.yarnpkg.com/@types/draco3d/-/draco3d-1.4.10.tgz#63ec0ba78b30bd58203ec031f4e4f0198c596dca"+ integrity sha512-AX22jp8Y7wwaBgAixaSvkoG4M/+PlAcm3Qs4OW8yT9DM4xUpWKeFhLueTAyZF39pviAdcDdeJoACapiAceqNcw==+"@types/estree-jsx@^1.0.0":version "1.0.5"resolved "https://registry.yarnpkg.com/@types/estree-jsx/-/estree-jsx-1.0.5.tgz#858a88ea20f34fe65111f005a689fa1ebf70dc18"@@ -2570,6 +2710,11 @@dependencies:undici-types "~6.21.0"+"@types/offscreencanvas@^2019.6.4":+ version "2019.7.3"+ resolved "https://registry.yarnpkg.com/@types/offscreencanvas/-/offscreencanvas-2019.7.3.tgz#90267db13f64d6e9ccb5ae3eac92786a7c77a516"+ integrity sha512-ieXiYmgSRXUDeOntE1InxjWyvEelZGP63M+cGuquuRLuIKKT1osnkXjxev9B7d1nXSug5vpunx+gNlbVxMlC9A==+"@types/phoenix@^1.6.6":version "1.6.6"resolved "https://registry.yarnpkg.com/@types/phoenix/-/phoenix-1.6.6.tgz#3c1ab53fd5a23634b8e37ea72ccacbf07fbc7816"@@ -2593,6 +2738,11 @@resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.3.7.tgz#b89ddf2cd83b4feafcc4e2ea41afdfb95a0d194f"integrity sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==+"@types/react-reconciler@^0.28.9":+ version "0.28.9"+ resolved "https://registry.yarnpkg.com/@types/react-reconciler/-/react-reconciler-0.28.9.tgz#d24b4864c384e770c83275b3fe73fba00269c83b"+ integrity sha512-HHM3nxyUZ3zAylX8ZEyrDNd2XZOnQ0D5XfunJF5FLQnZbHHYq4UWvW1QfelQNXv1ICNkwYhfxjwfnqivYB6bFg==+"@types/react@^18.3.3":version "18.3.23"resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.23.tgz#86ae6f6b95a48c418fecdaccc8069e0fbb63696a"@@ -2608,6 +2758,24 @@dependencies:"@types/node" "*"+"@types/stats.js@*":+ version "0.17.4"+ resolved "https://registry.yarnpkg.com/@types/stats.js/-/stats.js-0.17.4.tgz#1933e5ff153a23c7664487833198d685c22e791e"+ integrity sha512-jIBvWWShCvlBqBNIZt0KAshWpvSjhkwkEu4ZUcASoAvhmrgAUI2t1dXrjSL4xXVLB4FznPrIsX3nKXFl/Dt4vA==++"@types/three@*":+ version "0.178.1"+ resolved "https://registry.yarnpkg.com/@types/three/-/three-0.178.1.tgz#c96bbd9331dfb8ca93b89fbd6d97161f89dea18f"+ integrity sha512-WSabew1mgWgRx2RfLfKY+9h4wyg6U94JfLbZEGU245j/WY2kXqU0MUfghS+3AYMV5ET1VlILAgpy77cB6a3Itw==+ dependencies:+ "@dimforge/rapier3d-compat" "~0.12.0"+ "@tweenjs/tween.js" "~23.1.3"+ "@types/stats.js" "*"+ "@types/webxr" "*"+ "@webgpu/types" "*"+ fflate "~0.8.2"+ meshoptimizer "~0.18.1"+"@types/unist@*", "@types/unist@^3.0.0":version "3.0.3"resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.3.tgz#acaab0f919ce69cce629c2d4ed2eb4adc1b6c20c"@@ -2628,6 +2796,11 @@resolved "https://registry.yarnpkg.com/@types/verror/-/verror-1.10.11.tgz#d3d6b418978c8aa202d41e5bb3483227b6ecc1bb"integrity sha512-RlDm9K7+o5stv0Co8i8ZRGxDbrTxhJtgjqjFyVh/tXQyl/rYtTKlnTvZ88oSTeYREWurwx20Js4kTuKCsFkUtg==+"@types/webxr@*", "@types/webxr@^0.5.2":+ version "0.5.22"+ resolved "https://registry.yarnpkg.com/@types/webxr/-/webxr-0.5.22.tgz#d8a14c12bbfaaa4a13de21ec2d4a8197b3e1b532"+ integrity sha512-Vr6Stjv5jPRqH690f5I5GLjVk8GSsoQSYJ2FVd/3jJF7KaqfwPi3ehfBS96mlQ2kPCwZaX6U0rG2+NGHBKkA/A==+"@types/ws@^8.18.1":version "8.18.1"resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.18.1.tgz#48464e4bf2ddfd17db13d845467f6070ffea4aa9"@@ -2728,6 +2901,18 @@resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.3.0.tgz#d06bbb384ebcf6c505fde1c3d0ed4ddffe0aaff8"integrity sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==+"@use-gesture/[email protected]":+ version "10.3.1"+ resolved "https://registry.yarnpkg.com/@use-gesture/core/-/core-10.3.1.tgz#976c9421e905f0079d49822cfd5c2e56b808fc56"+ integrity sha512-WcINiDt8WjqBdUXye25anHiNxPc0VOrlT8F6LLkU6cycrOGUDyY/yyFmsg3k8i5OLvv25llc0QC45GhR/C8llw==++"@use-gesture/react@^10.3.1":+ version "10.3.1"+ resolved "https://registry.yarnpkg.com/@use-gesture/react/-/react-10.3.1.tgz#17a743a894d9bd9a0d1980c618f37f0164469867"+ integrity sha512-Yy19y6O2GJq8f7CHf7L0nxL8bf4PZCPaVOCgJrusOeFHY1LvHgYXnmnXg6N5iwAnbgbZCDjo60SiM6IPJi9C5g==+ dependencies:+ "@use-gesture/core" "10.3.1"+"@vitejs/plugin-react@^4.3.1":version "4.6.0"resolved "https://registry.yarnpkg.com/@vitejs/plugin-react/-/plugin-react-4.6.0.tgz#2707b485f44806d42d41c63921883cff9c54dfaa"@@ -2740,6 +2925,11 @@"@types/babel__core" "^7.20.5"react-refresh "^0.17.0"+"@webgpu/types@*":+ version "0.1.64"+ resolved "https://registry.yarnpkg.com/@webgpu/types/-/types-0.1.64.tgz#62c5f9d345d4d270fcf3ecbb111c3b98dcc1aca3"+ integrity sha512-84kRIAGV46LJTlJZWxShiOrNL30A+9KokD7RB3dRCIqODFjodS5tCD5yyiZ8kIReGVZSDfA3XkkwyyOIF6K62A==+"@xmldom/xmldom@^0.8.8":version "0.8.10"resolved "https://registry.yarnpkg.com/@xmldom/xmldom/-/xmldom-0.8.10.tgz#a1337ca426aa61cef9fe15b5b28e340a72f6fa99"@@ -2769,6 +2959,11 @@d3-selection "^3.0.0"d3-zoom "^3.0.0"+"@yomguithereal/helpers@^1.1.1":+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/@yomguithereal/helpers/-/helpers-1.1.1.tgz#185dfb0f88ca2beec53d0adf6eed15c33b1c549d"+ integrity sha512-UYvAq/XCA7xoh1juWDYsq3W0WywOB+pz8cgVnE1b45ZfdMhBvHDrgmSFG3jXeZSr2tMTYLGHFHON+ekG05Jebg==+abbrev@^1.0.0:version "1.1.1"resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8"@@ -3101,6 +3296,13 @@ babel-dead-code-elimination@^1.0.10:"@babel/traverse" "^7.23.7""@babel/types" "^7.23.6"+babel-plugin-react-compiler@^19.1.0-rc.2:+ version "19.1.0-rc.2"+ resolved "https://registry.yarnpkg.com/babel-plugin-react-compiler/-/babel-plugin-react-compiler-19.1.0-rc.2.tgz#ef77f4316a2086d81f95ad8edbe081e2840d87a4"+ integrity sha512-kSNA//p5fMO6ypG8EkEVPIqAjwIXm5tMjfD1XRPL/sRjYSbJ6UsvORfaeolNWnZ9n310aM0xJP7peW26BuCVzA==+ dependencies:+ "@babel/types" "^7.26.0"+bail@^2.0.0:version "2.0.2"resolved "https://registry.yarnpkg.com/bail/-/bail-2.0.2.tgz#d26f5cd8fe5d6f832a31517b9f7c356040ba6d5d"@@ -3121,6 +3323,13 @@ base64-js@^1.3.1, base64-js@^1.5.1:resolved "https://registry.yarnpkg.com/bezier-js/-/bezier-js-6.1.4.tgz#c7828f6c8900562b69d5040afb881bcbdad82001"integrity sha512-PA0FW9ZpcHbojUCMu28z9Vg/fNkwTj5YhusSAjHHDfHDGLxJ6YUKrAN2vk1fP2MMOxVw4Oko16FMlRGVBGqLKg==+bidi-js@^1.0.2:+ version "1.0.3"+ resolved "https://registry.yarnpkg.com/bidi-js/-/bidi-js-1.0.3.tgz#6f8bcf3c877c4d9220ddf49b9bb6930c88f877d2"+ integrity sha512-RKshQI1R3YQ+n9YJz2QQ147P66ELpa1FQEg20Dk8oW9t2KgLbpDLLp9aGZ7y8WHSshDknG0bknqGw5/tyCs5tw==+ dependencies:+ require-from-string "^2.0.2"+binary-extensions@^2.0.0:version "2.3.0"resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522"@@ -3190,6 +3399,14 @@ buffer@^5.1.0, buffer@^5.5.0:base64-js "^1.3.1"ieee754 "^1.1.13"+buffer@^6.0.3:+ version "6.0.3"+ resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"+ integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==+ dependencies:+ base64-js "^1.3.1"+ ieee754 "^1.2.1"+version "9.3.1"resolved "https://registry.yarnpkg.com/builder-util-runtime/-/builder-util-runtime-9.3.1.tgz#0daedde0f6d381f2a00a50a407b166fe7dca1a67"@@ -3299,6 +3516,16 @@ callsites@^3.0.0:resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73"integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==+camera-controls@^2.8.3:+ version "2.10.1"+ resolved "https://registry.yarnpkg.com/camera-controls/-/camera-controls-2.10.1.tgz#78bc58001a2d5925c29312154ce77d16967dec56"+ integrity sha512-KnaKdcvkBJ1Irbrzl8XD6WtZltkRjp869Jx8c0ujs9K+9WD+1D7ryBsCiVqJYUqt6i/HR5FxT7RLASieUD+Q5w==++camera-controls@^3.1.0:+ version "3.1.0"+ resolved "https://registry.yarnpkg.com/camera-controls/-/camera-controls-3.1.0.tgz#06735c0022020a941e813492499e3c110a890b0a"+ integrity sha512-w5oULNpijgTRH0ARFJJ0R5ct1nUM3R3WP7/b8A6j9uTGpRfnsypc/RBMPQV8JQDPayUe37p/TZZY1PcUr4czOQ==+caniuse-lite@^1.0.30001702, caniuse-lite@^1.0.30001726:version "1.0.30001726"resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001726.tgz#a15bd87d5a4bf01f6b6f70ae7c97fdfd28b5ae47"@@ -3406,6 +3633,11 @@ classcat@^5.0.3:resolved "https://registry.yarnpkg.com/classcat/-/classcat-5.0.5.tgz#8c209f359a93ac302404a10161b501eba9c09c77"integrity sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==+classnames@^2.5.1:+ version "2.5.1"+ resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.5.1.tgz#ba774c614be0f016da105c858e7159eae8e7687b"+ integrity sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==+clean-stack@^2.0.0:version "2.2.0"resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b"@@ -3561,6 +3793,13 @@ crelt@^1.0.0:resolved "https://registry.yarnpkg.com/crelt/-/crelt-1.0.6.tgz#7cc898ea74e190fb6ef9dae57f8f81cf7302df72"integrity sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g==+cross-env@^7.0.3:+ version "7.0.3"+ resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-7.0.3.tgz#865264b29677dc015ba8418918965dd232fc54cf"+ integrity sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==+ dependencies:+ cross-spawn "^7.0.1"+cross-spawn@^7.0.1, cross-spawn@^7.0.2, cross-spawn@^7.0.6:version "7.0.6"resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.6.tgz#8a58fe78f00dcd70c370451759dfbfaf03e8ee9f"@@ -3582,6 +3821,11 @@ css-what@^6.1.0:resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.2.2.tgz#cdcc8f9b6977719fdfbd1de7aec24abf756b9dea"integrity sha512-u/O3vwbptzhMs3L1fQE82ZSLHQQfto5gyZzwteVIEyeaY5Fc7R4dapF/BvRoSYFeqfBk4m0V1Vafq5Pjv25wvA==+cssesc@^3.0.0:+ version "3.0.0"+ resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee"+ integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==+csstype@^3.0.2, csstype@^3.1.0:version "3.1.3"resolved "https://registry.yarnpkg.com/csstype/-/csstype-3.1.3.tgz#d80ff294d114fb0e6ac500fbf85b60137d7eff81"@@ -3643,7 +3887,7 @@ d3-brush@^3.0.0:resolved "https://registry.yarnpkg.com/d3-ease/-/d3-ease-3.0.1.tgz#9658ac38a2140d59d346160f1f6c30fda0bd12f4"integrity sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==-"d3-force-3d@2 - 3":+"d3-force-3d@2 - 3", d3-force-3d@^3.0.6:version "3.0.6"resolved "https://registry.yarnpkg.com/d3-force-3d/-/d3-force-3d-3.0.6.tgz#7ea4c26d7937b82993bd9444f570ed52f661d4aa"integrity sha512-4tsKHUPLOVkyfEffZo1v6sFHvGFwAIIjt/W8IThbp08DYAsXZck+2pSHEG5W1+gQgEvFLdZkYvmJAbRM2EzMnA==@@ -3668,6 +3912,11 @@ d3-force@^3.0.0:resolved "https://registry.yarnpkg.com/d3-format/-/d3-format-3.1.0.tgz#9260e23a28ea5cb109e93b21a06e24e2ebd55641"integrity sha512-YyUI6AEuY/Wpt8KWLgZHsIU86atmikuoOmCfommt0LYHiQSPjvX2AcFc38PX0CBpr2RCyZhjex+NS/LPOv6YqA==+d3-hierarchy@^3.1.2:+ version "3.1.2"+ resolved "https://registry.yarnpkg.com/d3-hierarchy/-/d3-hierarchy-3.1.2.tgz#b01cd42c1eed3d46db77a5966cf726f8c09160c6"+ integrity sha512-FX/9frcub54beBdugHjDCdikxThEqjnR93Qt7PvQTOHxyiNCAlvMrHhclk3cD5VeAaq9fxmfRp+CnWw9rEMBuA==+"d3-interpolate@1 - 3", "[email protected] - 3", d3-interpolate@^3.0.1:version "3.0.1"resolved "https://registry.yarnpkg.com/d3-interpolate/-/d3-interpolate-3.0.1.tgz#3c47aa5b32c5b3dfb56ef3fd4342078a632b400d"@@ -3762,6 +4011,11 @@ d3-shape@^3.1.0:d3-selection "2 - 3"d3-transition "2 - 3"+dagre-d3-react@^0.2.4:+ version "0.2.4"+ resolved "https://registry.yarnpkg.com/dagre-d3-react/-/dagre-d3-react-0.2.4.tgz#df6037e0c117fc207f7513ee5f175aefb4a96749"+ integrity sha512-spYk0zaI8Mm+5E+99veMDS7CG2Prpce1CcjQINHTKmJe0XUkmFEey5yRr4Ag7htXdirw1Lf/rlBiZgORcc1Nyg==+data-bind-mapper@1:version "1.0.3"resolved "https://registry.yarnpkg.com/data-bind-mapper/-/data-bind-mapper-1.0.3.tgz#275e55fd170331b1146479f3c7eb4256b8239481"@@ -3796,10 +4050,10 @@ data-view-byte-offset@^1.0.1:es-errors "^1.3.0"is-data-view "^1.0.1"-date-fns@^4.1.0:- version "4.1.0"- resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-4.1.0.tgz#64b3d83fff5aa80438f5b1a633c2e83b8a1c2d14"- integrity sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==+date-fns@^3.6.0:+ version "3.6.0"+ resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-3.6.0.tgz#f20ca4fe94f8b754951b24240676e8618c0206bf"+ integrity sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==debounce-fn@^6.0.0:version "6.0.0"@@ -3879,6 +4133,13 @@ dequal@^2.0.0:resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be"integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==+detect-gpu@^5.0.56:+ version "5.0.70"+ resolved "https://registry.yarnpkg.com/detect-gpu/-/detect-gpu-5.0.70.tgz#db2202d3cd440714ba6e789ff8b62d1b584eabf7"+ integrity sha512-bqerEP1Ese6nt3rFkwPnGbsUF9a4q+gMmpTVVOEzoCyeCc+y7/RvJnQZJx1JwhgQI5Ntg0Kgat8Uu7XpBqnz1w==+ dependencies:+ webgl-constants "^1.1.1"+detect-libc@^2.0.1, detect-libc@^2.0.3, detect-libc@^2.0.4:version "2.0.4"resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.4.tgz#f04715b8ba815e53b4d8109655b6508a6865a7e8"@@ -3990,6 +4251,11 @@ dotenv@^16.4.5:resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.6.1.tgz#773f0e69527a8315c7285d5ee73c4459d20a8020"integrity sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==+draco3d@^1.4.1:+ version "1.5.7"+ resolved "https://registry.yarnpkg.com/draco3d/-/draco3d-1.5.7.tgz#94f9bce293eb8920c159dc91a4ce9124a9e899e0"+ integrity sha512-m6WCKt/erDXcw+70IJXnG7M3awwQPAsZvJGX5zY7beBqpELw6RDGkYVU0W43AFxye4pDZ5i2Lbyc/NNGqwjUVQ==+dunder-proto@^1.0.0, dunder-proto@^1.0.1:version "1.0.1"resolved "https://registry.yarnpkg.com/dunder-proto/-/dunder-proto-1.0.1.tgz#d7ae667e1dc83482f8b70fd0f6eefc50da30f58a"@@ -4089,6 +4355,11 @@ electron@^31.0.2:"@types/node" "^20.9.0"extract-zip "^2.0.1"+ellipsize@^0.5.1:+ version "0.5.1"+ resolved "https://registry.yarnpkg.com/ellipsize/-/ellipsize-0.5.1.tgz#2ac8bba69b2190d629cc5065a9c2bf28d99f237e"+ integrity sha512-0jEAyuIRU6U8MN0S5yUqIrkK/AQWkChh642N3zQuGV57s9bsUWYLc0jJOoDIUkZ2sbEL3ySq8xfq71BvG4q3hw==+embla-carousel-react@^8.6.0:version "8.6.0"resolved "https://registry.yarnpkg.com/embla-carousel-react/-/embla-carousel-react-8.6.0.tgz#b737042a32761c38d6614593653b3ac619477bd1"@@ -4609,6 +4880,16 @@ fd-slicer@~1.1.0:dependencies:pend "~1.2.0"+fflate@^0.6.9:+ version "0.6.10"+ resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.6.10.tgz#5f40f9659205936a2d18abf88b2e7781662b6d43"+ integrity sha512-IQrh3lEPM93wVCEczc9SaAOvkmcoQn/G8Bo1e8ZPlY3X3bnAxWaBdvTdvM1hP62iZp0BXWDy4vTAy4fF0+Dlpg==++fflate@~0.8.2:+ version "0.8.2"+ resolved "https://registry.yarnpkg.com/fflate/-/fflate-0.8.2.tgz#fc8631f5347812ad6028bbe4a2308b2792aa1dea"+ integrity sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==+file-entry-cache@^6.0.1:version "6.0.1"resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027"@@ -4963,6 +5244,11 @@ globby@^11.1.0:merge2 "^1.4.1"slash "^3.0.0"+glsl-noise@^0.0.0:+ version "0.0.0"+ resolved "https://registry.yarnpkg.com/glsl-noise/-/glsl-noise-0.0.0.tgz#367745f3a33382c0eeec4cb54b7e99cfc1d7670b"+ integrity sha512-b/ZCF6amfAUb7dJM/MxRs7AetQEahYzJ8PtgfrmEdtw6uyGOr+ZSGtgjFm6mfsBkxJ4d2W7kg+Nlqzqvn3Bc0w==+goober@^2.1.16:version "2.1.16"resolved "https://registry.yarnpkg.com/goober/-/goober-2.1.16.tgz#7d548eb9b83ff0988d102be71f271ca8f9c82a95"@@ -5000,6 +5286,14 @@ graphemer@^1.4.0:resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6"integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==+graphology-indices@^0.17.0:+ version "0.17.0"+ resolved "https://registry.yarnpkg.com/graphology-indices/-/graphology-indices-0.17.0.tgz#b93ad32162ff8b09814547aedb101248f0fcbd2e"+ integrity sha512-A7RXuKQvdqSWOpn7ZVQo4S33O0vCfPBnUSf7FwE0zNCasqwZVUaCXePuWo5HBpWw68KJcwObZDHpFk6HKH6MYQ==+ dependencies:+ graphology-utils "^2.4.2"+ mnemonist "^0.39.0"+graphology-layout-force@^0.2.4:version "0.2.4"resolved "https://registry.yarnpkg.com/graphology-layout-force/-/graphology-layout-force-0.2.4.tgz#a9b5f2aa5c7b56985503d302dbce4c73c76b9eb3"@@ -5014,7 +5308,43 @@ graphology-layout-forceatlas2@^0.10.1:dependencies:graphology-utils "^2.1.0"-graphology-utils@^2.1.0, graphology-utils@^2.4.2, graphology-utils@^2.5.2:+graphology-layout-noverlap@^0.4.2:+ version "0.4.2"+ resolved "https://registry.yarnpkg.com/graphology-layout-noverlap/-/graphology-layout-noverlap-0.4.2.tgz#2ffa054ceeebaa31fcffe695d271fc55707cd29c"+ integrity sha512-13WwZSx96zim6l1dfZONcqLh3oqyRcjIBsqz2c2iJ3ohgs3605IDWjldH41Gnhh462xGB1j6VGmuGhZ2FKISXA==+ dependencies:+ graphology-utils "^2.3.0"++graphology-layout@^0.6.1:+ version "0.6.1"+ resolved "https://registry.yarnpkg.com/graphology-layout/-/graphology-layout-0.6.1.tgz#e7c1d65c022e337b11c977e2d30abe4076a0327d"+ integrity sha512-m9aMvbd0uDPffUCFPng5ibRkb2pmfNvdKjQWeZrf71RS1aOoat5874+DcyNfMeCT4aQguKC7Lj9eCbqZj/h8Ag==+ dependencies:+ graphology-utils "^2.3.0"+ pandemonium "^2.4.0"++graphology-metrics@^2.4.0:+ version "2.4.0"+ resolved "https://registry.yarnpkg.com/graphology-metrics/-/graphology-metrics-2.4.0.tgz#307254f5c594f5558a9aa1147ee4b0b2c7672834"+ integrity sha512-7WOfOP+mFLCaTJx55Qg4eY+211vr1/b3D/R3biz3SXGhAaCVcWYkfabnmO4O4WBNWANEHtVnFrGgJ0kj6MM6xw==+ dependencies:+ graphology-indices "^0.17.0"+ graphology-shortest-path "^2.0.0"+ graphology-utils "^2.4.4"+ mnemonist "^0.39.0"+ pandemonium "2.4.1"++graphology-shortest-path@^2.0.0, graphology-shortest-path@^2.1.0:+ version "2.1.0"+ resolved "https://registry.yarnpkg.com/graphology-shortest-path/-/graphology-shortest-path-2.1.0.tgz#b5c5a568e7c86b24cbfd2042f9d84f2a54e0b331"+ integrity sha512-KbT9CTkP/u72vGEJzyRr24xFC7usI9Es3LMmCPHGwQ1KTsoZjxwA9lMKxfU0syvT/w+7fZUdB/Hu2wWYcJBm6Q==+ dependencies:+ "@yomguithereal/helpers" "^1.1.1"+ graphology-indices "^0.17.0"+ graphology-utils "^2.4.3"+ mnemonist "^0.39.0"++graphology-utils@^2.1.0, graphology-utils@^2.3.0, graphology-utils@^2.4.2, graphology-utils@^2.4.3, graphology-utils@^2.4.4, graphology-utils@^2.5.2:version "2.5.2"resolved "https://registry.yarnpkg.com/graphology-utils/-/graphology-utils-2.5.2.tgz#4d30d6e567d27c01f105e1494af816742e8d2440"integrity sha512-ckHg8MXrXJkOARk56ZaSCM1g1Wihe2d6iTmz1enGOz4W/l831MBCKSayeFQfowgF8wd+PQ4rlch/56Vs/VZLDQ==@@ -5128,6 +5458,16 @@ highlightjs-vue@^1.0.0:resolved "https://registry.yarnpkg.com/highlightjs-vue/-/highlightjs-vue-1.0.0.tgz#fdfe97fbea6354e70ee44e3a955875e114db086d"integrity sha512-PDEfEF102G23vHmPhLyPboFCD+BkMGu+GuJe2d9/eH4FsCwvgBpnc9n0pGE+ffKdph38s6foEZiEjdgHdzp+IA==+hls.js@^1.5.17:+ version "1.6.7"+ resolved "https://registry.yarnpkg.com/hls.js/-/hls.js-1.6.7.tgz#1b45ed55dfc92e06edc15b98e6374bd13f78af65"+ integrity sha512-QW2fnwDGKGc9DwQUGLbmMOz8G48UZK7PVNJPcOUql1b8jubKx4/eMHNP5mGqr6tYlJNDG1g10Lx2U/qPzL6zwQ==++hold-event@^0.2.0:+ version "0.2.0"+ resolved "https://registry.yarnpkg.com/hold-event/-/hold-event-0.2.0.tgz#1e8848ba42fb9098aa55006a5f450589dcaf0564"+ integrity sha512-rko5P1XgHzy4B0NR0xVHEpWPgj0i23f8Mf8qsOugd1CHvfLR0PyIyy+8TAQQA9v8qAa1OZ4XuCKk04rxmPGHNQ==+hosted-git-info@^4.1.0:version "4.1.0"resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224"@@ -5208,7 +5548,7 @@ iconv-lite@^0.6.2:dependencies:safer-buffer ">= 2.1.2 < 3.0.0"-ieee754@^1.1.13:+ieee754@^1.1.13, ieee754@^1.2.1:version "1.2.1"resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==@@ -5218,6 +5558,11 @@ ignore@^5.2.0, ignore@^5.3.1:resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.2.tgz#3cd40e729f3643fd87cb04e50bf0eb722bc596f5"integrity sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==+immediate@~3.0.5:+ version "3.0.6"+ resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b"+ integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ==+immer@^10.1.1:version "10.1.1"resolved "https://registry.yarnpkg.com/immer/-/immer-10.1.1.tgz#206f344ea372d8ea176891545ee53ccc062db7bc"@@ -5497,6 +5842,11 @@ is-plain-obj@^4.0.0:resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0"integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==+is-promise@^2.1.0:+ version "2.2.2"+ resolved "https://registry.yarnpkg.com/is-promise/-/is-promise-2.2.2.tgz#39ab959ccbf9a774cf079f7b40c7a26f763135f1"+ integrity sha512-+lP4/6lKUBfQjZ2pdxThZvLUAafmZb8OAxFb8XXtiQmS35INgr85hdOGoEs124ez1FCnZJt6jau/T+alh58QFQ==+is-regex@^1.2.1:version "1.2.1"resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.2.1.tgz#76d70a3ed10ef9be48eb577887d74205bf0cad22"@@ -5610,6 +5960,13 @@ iterator.prototype@^1.1.4:has-symbols "^1.1.0"set-function-name "^2.0.2"+its-fine@^2.0.0:+ version "2.0.0"+ resolved "https://registry.yarnpkg.com/its-fine/-/its-fine-2.0.0.tgz#a90b18a3ee4c211a1fb6faac2abcc2b682ce1f21"+ integrity sha512-KLViCmWx94zOvpLwSlsx6yOCeMhZYaxrJV87Po5k/FoZzcPSahvK5qJ7fYhS61sZi5ikmh2S3Hz55A2l3U69ng==+ dependencies:+ "@types/react-reconciler" "^0.28.9"+jackspeak@^3.1.2:version "3.4.3"resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a"@@ -5754,6 +6111,13 @@ levn@^0.4.1:prelude-ls "^1.2.1"type-check "~0.4.0"+lie@^3.0.2:+ version "3.3.0"+ resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a"+ integrity sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ==+ dependencies:+ immediate "~3.0.5"+version "1.30.1"resolved "https://registry.yarnpkg.com/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.1.tgz#3d47ce5e221b9567c703950edf2529ca4a3700ae"@@ -5846,6 +6210,11 @@ lodash-es@4:resolved "https://registry.yarnpkg.com/lodash-es/-/lodash-es-4.17.21.tgz#43e626c46e6591b7750beb2b50117390c609e3ee"integrity sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==+lodash.castarray@^4.4.0:+ version "4.4.0"+ resolved "https://registry.yarnpkg.com/lodash.castarray/-/lodash.castarray-4.4.0.tgz#c02513515e309daddd4c24c60cfddcf5976d9115"+ integrity sha512-aVx8ztPv7/2ULbArGJ2Y42bG1mEQ5mGjpdvrbJcJFU3TbYybe+QlLS4pst9zV52ymy2in1KpFPiZnAOATxD4+Q==+lodash.debounce@^4.0.8:version "4.0.8"resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af"@@ -5861,6 +6230,11 @@ lodash.isequal@^4.5.0:resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0"integrity sha512-pDo3lu8Jhfjqls6GkMgpahsF9kCyayhgykjyLMNFTKWrpVdAQtYyB4muAMWozBB4ig/dtWAmsMxLEI8wuz+DYQ==+lodash.isplainobject@^4.0.6:+ version "4.0.6"+ resolved "https://registry.yarnpkg.com/lodash.isplainobject/-/lodash.isplainobject-4.0.6.tgz#7c526a52d89b45c45cc690b88163be0497f550cb"+ integrity sha512-oSXzaWypCMHkPC3NvBEaPHf0KsA5mvPrOPgQWDsbg8n7orZ290M0BmC/jgRZ4vcJ6DTAhjrsSYgdsW/F+MFOBA==+lodash.merge@^4.6.2:version "4.6.2"resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a"@@ -5942,6 +6316,11 @@ lucide-react@^0.511.0:resolved "https://registry.yarnpkg.com/lucide-react/-/lucide-react-0.511.0.tgz#1dfef3065c725ac83f5fe0a6f02d1e0b0c36e641"integrity sha512-VK5a2ydJ7xm8GvBeKLS9mu1pVK6ucef9780JVUjw6bAjJL/QXnd4Y0p7SPeOUMC27YhzNCZvm5d/QX0Tp3rc0w==+maath@^0.10.8:+ version "0.10.8"+ resolved "https://registry.yarnpkg.com/maath/-/maath-0.10.8.tgz#cf647544430141bf6982da6e878abb6c4b804e24"+ integrity sha512-tRvbDF0Pgqz+9XUa4jjfgAQ8/aPKmQdWXilFu2tMy4GWj4NOsx99HlULO4IeREfbO3a0sA145DZYyvXPkybm0g==+magic-string@^0.25.7:version "0.25.9"resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.9.tgz#de7f9faf91ef8a1c91d02c2e5314c8277dbcdd1c"@@ -6202,6 +6581,16 @@ merge2@^1.3.0, merge2@^1.4.1:resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae"integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==+meshline@^3.3.1:+ version "3.3.1"+ resolved "https://registry.yarnpkg.com/meshline/-/meshline-3.3.1.tgz#20decfd5cdd25c8469e862ddf0ab1ad167759734"+ integrity sha512-/TQj+JdZkeSUOl5Mk2J7eLcYTLiQm2IDzmlSvYm7ov15anEcDJ92GHqqazxTSreeNgfnYu24kiEvvv0WlbCdFQ==++meshoptimizer@~0.18.1:+ version "0.18.1"+ resolved "https://registry.yarnpkg.com/meshoptimizer/-/meshoptimizer-0.18.1.tgz#cdb90907f30a7b5b1190facd3b7ee6b7087797d8"+ integrity sha512-ZhoIoL7TNV4s5B6+rx5mC//fw8/POGyNxS/DZyCJeiZ12ScLfVwRE/GfsxwiTkMYYD5DmK2/JXnEVXqL4rF+Sw==+micromark-core-commonmark@^2.0.0:version "2.0.3"resolved "https://registry.yarnpkg.com/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz#c691630e485021a68cf28dbc2b2ca27ebf678cd4"@@ -6634,6 +7023,13 @@ mkdirp@^3.0.1:resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-3.0.1.tgz#e44e4c5607fb279c168241713cc6e0fea9adcb50"integrity sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==+mnemonist@^0.39.0, mnemonist@^0.39.2:+ version "0.39.8"+ resolved "https://registry.yarnpkg.com/mnemonist/-/mnemonist-0.39.8.tgz#9078cd8386081afd986cca34b52b5d84ea7a4d38"+ integrity sha512-vyWo2K3fjrUw8YeeZ1zF0fy6Mu59RHokURlld8ymdUPjMlD9EC9ov1/YPqTgqRvUN9nTr3Gqfz29LYAmu0PHPQ==+ dependencies:+ obliterator "^2.0.1"+motion-dom@^12.22.0:version "12.22.0"resolved "https://registry.yarnpkg.com/motion-dom/-/motion-dom-12.22.0.tgz#aeb06948fa306590ece081af5a73a79476ce85e2"@@ -6805,6 +7201,11 @@ object.values@^1.1.6, object.values@^1.2.1:define-properties "^1.2.1"es-object-atoms "^1.0.0"+obliterator@^2.0.1:+ version "2.0.5"+ resolved "https://registry.yarnpkg.com/obliterator/-/obliterator-2.0.5.tgz#031e0145354b0c18840336ae51d41e7d6d2c76aa"+ integrity sha512-42CPE9AhahZRsMNslczq0ctAEtqk8Eka26QofnqC346BZdHDySk3LWka23LI7ULIw11NmltpiLagIq8gBozxTw==+once@^1.3.0, once@^1.3.1, once@^1.4.0:version "1.4.0"resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"@@ -6891,6 +7292,13 @@ package-json-from-dist@^1.0.0:resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz#4f1471a010827a86f94cfd9b0727e36d267de505"integrity sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==[email protected], pandemonium@^2.4.0:+ version "2.4.1"+ resolved "https://registry.yarnpkg.com/pandemonium/-/pandemonium-2.4.1.tgz#bd51ca72184c6ae135f9049a33c8605bfdb9574d"+ integrity sha512-wRqjisUyiUfXowgm7MFH2rwJzKIr20rca5FsHXCMNm1W5YPP1hCtrZfgmQ62kP7OZ7Xt+cR858aB28lu5NX55g==+ dependencies:+ mnemonist "^0.39.2"+parent-module@^1.0.0:version "1.0.1"resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2"@@ -7002,6 +7410,14 @@ possible-typed-array-names@^1.0.0:resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz#93e3582bc0e5426586d9d07b79ee40fc841de4ae"integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==+ version "6.0.10"+ resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.10.tgz#79b61e2c0d1bfc2602d549e11d0876256f8df88d"+ integrity sha512-IQ7TZdoaqbT+LCpShg46jnZVlhWD2w6iQYAcYXfHARZ7X1t/UGhhceQDs5X0cGqKvYlHNOuv7Oa1xmb0oQuA3w==+ dependencies:+ cssesc "^3.0.0"+ util-deprecate "^1.0.2"+postcss-value-parser@^4.2.0:version "4.2.0"resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"@@ -7016,6 +7432,11 @@ postcss@^8.4.35, postcss@^8.4.43:picocolors "^1.1.1"source-map-js "^1.2.1"+potpack@^1.0.1:+ version "1.0.2"+ resolved "https://registry.yarnpkg.com/potpack/-/potpack-1.0.2.tgz#23b99e64eb74f5741ffe7656b5b5c4ddce8dfc14"+ integrity sha512-choctRBIV9EMT9WGAZHn3V7t0Z2pMQyl0EZE6pFc/6ml3ssw7Dlf/oAOvFwjm1HVsqfQN8GfeFyJ+d8tRzqueQ==+preact@10:version "10.26.9"resolved "https://registry.yarnpkg.com/preact/-/preact-10.26.9.tgz#b3898d1b65140640799062ad73b89846c293b6a7"@@ -7071,6 +7492,14 @@ promise-retry@^2.0.1:err-code "^2.0.2"retry "^0.12.0"+promise-worker-transferable@^1.0.4:+ version "1.0.4"+ resolved "https://registry.yarnpkg.com/promise-worker-transferable/-/promise-worker-transferable-1.0.4.tgz#2c72861ba053e5ae42b487b4a83b1ed3ae3786e8"+ integrity sha512-bN+0ehEnrXfxV2ZQvU2PetO0n4gqBD4ulq3MI1WOPLgr7/Mg9yRQkX5+0v1vagr74ZTsl7XtzlaYDo2EuCeYJw==+ dependencies:+ is-promise "^2.1.0"+ lie "^3.0.2"+prop-types@15, prop-types@^15.6.2, prop-types@^15.8.1:version "15.8.1"resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"@@ -7361,6 +7790,13 @@ react-medium-image-zoom@^5.2.14:resolved "https://registry.yarnpkg.com/react-medium-image-zoom/-/react-medium-image-zoom-5.2.14.tgz#87032d079fce4a21a17770d6709f739872580906"integrity sha512-nfTVYcAUnBzXQpPDcZL+cG/e6UceYUIG+zDcnemL7jtAqbJjVVkA85RgneGtJeni12dTyiRPZVM6Szkmwd/o8w==+react-reconciler@^0.31.0:+ version "0.31.0"+ resolved "https://registry.yarnpkg.com/react-reconciler/-/react-reconciler-0.31.0.tgz#6b7390fe8fab59210daf523d7400943973de1458"+ integrity sha512-7Ob7Z+URmesIsIVRjnLoDGwBEG/tVitidU0nMsqX/eeJaLY89RISO/10ERe0MqmzuKUUB1rmY+h1itMbUHg9BQ==+ dependencies:+ scheduler "^0.25.0"+react-refresh@^0.17.0:version "0.17.0"resolved "https://registry.yarnpkg.com/react-refresh/-/react-refresh-0.17.0.tgz#b7e579c3657f23d04eccbe4ad2e58a8ed51e7e53"@@ -7429,6 +7865,11 @@ react-transition-group@^4.4.5:loose-envify "^1.4.0"prop-types "^15.6.2"+react-use-measure@^2.1.7:+ version "2.1.7"+ resolved "https://registry.yarnpkg.com/react-use-measure/-/react-use-measure-2.1.7.tgz#36b8a2e7fd2fa58109ab851b3addcb0aad66ad1d"+ integrity sha512-KrvcAo13I/60HpwGO5jpW7E9DfusKyLPLvuHlUyP5zqnmAPhNc6qTRjUQrdTADl0lpPpDVU2/Gg51UlOGHXbdg==+react@^18.3.1:version "18.3.1"resolved "https://registry.yarnpkg.com/react/-/react-18.3.1.tgz#49ab892009c53933625bd16b2533fc754cab2891"@@ -7459,6 +7900,34 @@ readdirp@~3.6.0:dependencies:picomatch "^2.2.1"+reagraph@^4.25.0:+ version "4.25.0"+ resolved "https://registry.yarnpkg.com/reagraph/-/reagraph-4.25.0.tgz#a8c58d5edf076564411eda9ec05571868fac4cc7"+ integrity sha512-vTXmFuHNO/OMvo5TNNjbUJqbKwnvbhQM76TODCdcP8f36j7UMJvASizSZt9r8eqYljo3ZNacR0v6r7867fQOmA==+ dependencies:+ "@react-spring/three" "10.0.1"+ "@react-three/drei" "^10.1.2"+ "@react-three/fiber" "9.1.2"+ "@storybook/manager-api" "^8.6.14"+ "@use-gesture/react" "^10.3.1"+ camera-controls "^2.8.3"+ classnames "^2.5.1"+ d3-array "^3.2.4"+ d3-force-3d "^3.0.6"+ d3-hierarchy "^3.1.2"+ d3-scale "^4.0.2"+ ellipsize "^0.5.1"+ graphology "^0.26.0"+ graphology-layout "^0.6.1"+ graphology-layout-forceatlas2 "^0.10.1"+ graphology-layout-noverlap "^0.4.2"+ graphology-metrics "^2.4.0"+ graphology-shortest-path "^2.1.0"+ hold-event "^0.2.0"+ three "^0.177.0"+ three-stdlib "^2.36.0"+ zustand "5.0.5"+recast@^0.23.11:version "0.23.11"resolved "https://registry.yarnpkg.com/recast/-/recast-0.23.11.tgz#8885570bb28cf773ba1dc600da7f502f7883f73f"@@ -7764,6 +8233,11 @@ scheduler@^0.23.2:dependencies:loose-envify "^1.1.0"+scheduler@^0.25.0:+ version "0.25.0"+ resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.25.0.tgz#336cd9768e8cceebf52d3c80e3dcf5de23e7e015"+ integrity sha512-xFVuu11jh+xcO7JOAGJNOXld8/TcEHK/4CituBUeUb5hqxJLj9YuemAEuvm9gQ/+pgXYfbQuqAkiYu+u7YEsNA==+seedrandom@^3.0.5:version "3.0.5"resolved "https://registry.yarnpkg.com/seedrandom/-/seedrandom-3.0.5.tgz#54edc85c95222525b0c7a6f6b3543d8e0b3aa0a7"@@ -8019,6 +8493,19 @@ stat-mode@^1.0.0:resolved "https://registry.yarnpkg.com/stat-mode/-/stat-mode-1.0.0.tgz#68b55cb61ea639ff57136f36b216a291800d1465"integrity sha512-jH9EhtKIjuXZ2cWxmXS8ZP80XyC3iasQxMDV8jzhNJpfDb7VbQLVW4Wvsxz9QZvzV+G4YoSfBUVKDOyxLzi/sg==+stats-gl@^2.2.8:+ version "2.4.2"+ resolved "https://registry.yarnpkg.com/stats-gl/-/stats-gl-2.4.2.tgz#28a6c869fc3a36a8be608ef21df63c0aad99d1ba"+ integrity sha512-g5O9B0hm9CvnM36+v7SFl39T7hmAlv541tU81ME8YeSb3i1CIP5/QdDeSB3A0la0bKNHpxpwxOVRo2wFTYEosQ==+ dependencies:+ "@types/three" "*"+ three "^0.170.0"++stats.js@^0.17.0:+ version "0.17.0"+ resolved "https://registry.yarnpkg.com/stats.js/-/stats.js-0.17.0.tgz#b1c3dc46d94498b578b7fd3985b81ace7131cc7d"+ integrity sha512-hNKz8phvYLPEcRkeG1rsGmV5ChMjKDAWU7/OJJdDErPBNChQXxCo3WZurGpnWc6gZhAzEPFad1aVgyOANH1sMw==+stop-iteration-iterator@^1.1.0:version "1.1.0"resolved "https://registry.yarnpkg.com/stop-iteration-iterator/-/stop-iteration-iterator-1.1.0.tgz#f481ff70a548f6124d0312c3aa14cbfa7aa542ad"@@ -8192,6 +8679,11 @@ supports-preserve-symlinks-flag@^1.0.0:resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09"integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==+suspend-react@^0.1.3:+ version "0.1.3"+ resolved "https://registry.yarnpkg.com/suspend-react/-/suspend-react-0.1.3.tgz#a52f49d21cfae9a2fb70bd0c68413d3f9d90768e"+ integrity sha512-aqldKgX9aZqpoDp3e8/BZ8Dm7x1pJl+qI3ZKxDN0i/IQTWUwBx/ManmlVJ3wowqbno6c2bmiIfs+Um6LbsjJyQ==+synckit@^0.11.7:version "0.11.8"resolved "https://registry.yarnpkg.com/synckit/-/synckit-0.11.8.tgz#b2aaae998a4ef47ded60773ad06e7cb821f55457"@@ -8272,6 +8764,11 @@ three-forcegraph@1:ngraph.graph "20"tinycolor2 "1"+three-mesh-bvh@^0.8.3:+ version "0.8.3"+ resolved "https://registry.yarnpkg.com/three-mesh-bvh/-/three-mesh-bvh-0.8.3.tgz#c5e72472e7f062ff79084157a25c122d73184163"+ integrity sha512-4G5lBaF+g2auKX3P0yqx+MJC6oVt6sB5k+CchS6Ob0qvH0YIhuUk1eYr7ktsIpY+albCqE80/FVQGV190PmiAg==+three-render-objects@^1.35:version "1.40.2"resolved "https://registry.yarnpkg.com/three-render-objects/-/three-render-objects-1.40.2.tgz#9cf449d01fe05c6d39edc3aed2c0f5610b5c240f"@@ -8288,11 +8785,33 @@ three-spritetext@^1.9.6:resolved "https://registry.yarnpkg.com/three-spritetext/-/three-spritetext-1.10.0.tgz#479717cbf7ea64ee2e5879952bb5e15f608bf13d"integrity sha512-t08iP1FCU1lQh8T5MmCpdijKgas8GDHJE0LqMGBuVu3xqMMpFnEZhTlih7FlxLPQizHIGoumUSpfOlY1GO/Tgg==+three-stdlib@^2.35.6, three-stdlib@^2.36.0:+ version "2.36.0"+ resolved "https://registry.yarnpkg.com/three-stdlib/-/three-stdlib-2.36.0.tgz#1d806b8db9156a6c87ed10f61f56f8a3ab634b42"+ integrity sha512-kv0Byb++AXztEGsULgMAs8U2jgUdz6HPpAB/wDJnLiLlaWQX2APHhiTJIN7rqW+Of0eRgcp7jn05U1BsCP3xBA==+ dependencies:+ "@types/draco3d" "^1.4.0"+ "@types/offscreencanvas" "^2019.6.4"+ "@types/webxr" "^0.5.2"+ draco3d "^1.4.1"+ fflate "^0.6.9"+ potpack "^1.0.1"+"three@>=0.118 <1":version "0.178.0"resolved "https://registry.yarnpkg.com/three/-/three-0.178.0.tgz#470fb4bc35bc0782dfe9a2c9b157fcbc1944bc44"integrity sha512-ybFIB0+x8mz0wnZgSGy2MO/WCO6xZhQSZnmfytSPyNpM0sBafGRVhdaj+erYh5U+RhQOAg/eXqw5uVDiM2BjhQ==+three@^0.170.0:+ version "0.170.0"+ resolved "https://registry.yarnpkg.com/three/-/three-0.170.0.tgz#6087f97aab79e9e9312f9c89fcef6808642dfbb7"+ integrity sha512-FQK+LEpYc0fBD+J8g6oSEyyNzjp+Q7Ks1C568WWaoMRLW+TkNNWmenWeGgJjV105Gd+p/2ql1ZcjYvNiPZBhuQ==++three@^0.177.0:+ version "0.177.0"+ resolved "https://registry.yarnpkg.com/three/-/three-0.177.0.tgz#e51f2eb2b921fbab535bdfa81c403f9993b9dd83"+ integrity sha512-EiXv5/qWAaGI+Vz2A+JfavwYCMdGjxVsrn3oBwllUoqYeaBO75J63ZfyaQKoiLrqNHoTlUc6PFgMXnS0kI45zg==+version "1.3.0"resolved "https://registry.yarnpkg.com/tiny-async-pool/-/tiny-async-pool-1.3.0.tgz#c013e1b369095e7005db5595f95e646cca6ef8a5"@@ -8356,6 +8875,26 @@ trim-lines@^3.0.0:resolved "https://registry.yarnpkg.com/trim-lines/-/trim-lines-3.0.1.tgz#d802e332a07df861c48802c04321017b1bd87338"integrity sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==+troika-three-text@^0.52.4:+ version "0.52.4"+ resolved "https://registry.yarnpkg.com/troika-three-text/-/troika-three-text-0.52.4.tgz#f7b2389a2067d9506a5757457771cf4f6356e738"+ integrity sha512-V50EwcYGruV5rUZ9F4aNsrytGdKcXKALjEtQXIOBfhVoZU9VAqZNIoGQ3TMiooVqFAbR1w15T+f+8gkzoFzawg==+ dependencies:+ bidi-js "^1.0.2"+ troika-three-utils "^0.52.4"+ troika-worker-utils "^0.52.0"+ webgl-sdf-generator "1.1.1"++troika-three-utils@^0.52.4:+ version "0.52.4"+ resolved "https://registry.yarnpkg.com/troika-three-utils/-/troika-three-utils-0.52.4.tgz#9292019e93cab97582af1cf491c4c895e5c03b66"+ integrity sha512-NORAStSVa/BDiG52Mfudk4j1FG4jC4ILutB3foPnfGbOeIs9+G5vZLa0pnmnaftZUGm4UwSoqEpWdqvC7zms3A==++troika-worker-utils@^0.52.0:+ version "0.52.0"+ resolved "https://registry.yarnpkg.com/troika-worker-utils/-/troika-worker-utils-0.52.0.tgz#ba5525fc444345006ebab0bc9cabdd66f1561e66"+ integrity sha512-W1CpvTHykaPH5brv5VHLfQo9D1OYuo0cSBEUQFFT/nBUzM8iD6Lq2/tgG/f1OelbAS1WtaTPQzE5uM49egnngw==+trough@^2.0.0:version "2.2.0"resolved "https://registry.yarnpkg.com/trough/-/trough-2.2.0.tgz#94a60bd6bd375c152c1df911a4b11d5b0256f50f"@@ -8388,6 +8927,13 @@ tsx@^4.19.2:optionalDependencies:fsevents "~2.3.3"+tunnel-rat@^0.1.2:+ version "0.1.2"+ resolved "https://registry.yarnpkg.com/tunnel-rat/-/tunnel-rat-0.1.2.tgz#1717efbc474ea2d8aa05a91622457a6e201c0aeb"+ integrity sha512-lR5VHmkPhzdhrM092lI2nACsLO4QubF0/yoOhzX7c+wIpbN1GjHNzCc91QlpxBi+cnx8vVJ+Ur6vL5cEoQPFpQ==+ dependencies:+ zustand "^4.3.2"+tw-animate-css@^1.3.2:version "1.3.4"resolved "https://registry.yarnpkg.com/tw-animate-css/-/tw-animate-css-1.3.4.tgz#635c5e8f9378ff6a98283850400e70859e0c2672"@@ -8609,7 +9155,7 @@ use-sidecar@^1.1.3:detect-node-es "^1.1.0"tslib "^2.0.0"-use-sync-external-store@^1, use-sync-external-store@^1.2.2, use-sync-external-store@^1.5.0:+use-sync-external-store@^1, use-sync-external-store@^1.2.2, use-sync-external-store@^1.4.0, use-sync-external-store@^1.5.0:version "1.5.0"resolved "https://registry.yarnpkg.com/use-sync-external-store/-/use-sync-external-store-1.5.0.tgz#55122e2a3edd2a6c106174c27485e0fd59bcfca0"integrity sha512-Rb46I4cGGVBmjamjphe8L/UnvJD+uPPtTkNvX5mZgqdbavhI4EbgIWJiIHXJ8bc/i9EQGPRh4DwEURJ552Do0A==@@ -8626,11 +9172,16 @@ utf8-byte-length@^1.0.1:resolved "https://registry.yarnpkg.com/utf8-byte-length/-/utf8-byte-length-1.0.5.tgz#f9f63910d15536ee2b2d5dd4665389715eac5c1e"integrity sha512-Xn0w3MtiQ6zoz2vFyUVruaCL53O/DwUvkEeOvj+uulMm0BkUGYWmBYVyElqZaSLhY6ZD0ulfU3aBra2aVT4xfA==-util-deprecate@^1.0.1:+util-deprecate@^1.0.1, util-deprecate@^1.0.2:version "1.0.2"resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==+utility-types@^3.11.0:+ version "3.11.0"+ resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.11.0.tgz#607c40edb4f258915e901ea7995607fdf319424c"+ integrity sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw==+vaul@^1.1.2:version "1.1.2"resolved "https://registry.yarnpkg.com/vaul/-/vaul-1.1.2.tgz#c959f8b9dc2ed4f7d99366caee433fbef91f5ba9"@@ -8706,6 +9257,16 @@ wcwidth@^1.0.1:dependencies:defaults "^1.0.3"+webgl-constants@^1.1.1:+ version "1.1.1"+ resolved "https://registry.yarnpkg.com/webgl-constants/-/webgl-constants-1.1.1.tgz#f9633ee87fea56647a60b9ce735cbdfb891c6855"+ integrity sha512-LkBXKjU5r9vAW7Gcu3T5u+5cvSvh5WwINdr0C+9jpzVB41cjQAP5ePArDtk/WHYdVj0GefCgM73BA7FlIiNtdg==++ version "1.1.1"+ resolved "https://registry.yarnpkg.com/webgl-sdf-generator/-/webgl-sdf-generator-1.1.1.tgz#3e1b422b3d87cd3cc77f2602c9db63bc0f6accbd"+ integrity sha512-9Z0JcMTFxeE+b2x1LJTdnaT8rT8aEp7MVxkNwoycNmJWwPdzoXzMh0BjJSh/AEFP+KPYZUli814h8bJZFIZ2jA==+webidl-conversions@^3.0.0:version "3.0.1"resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871"@@ -8905,14 +9466,19 @@ zod@^3.24.2, zod@^3.25.42:resolved "https://registry.yarnpkg.com/zod/-/zod-3.25.69.tgz#bf63dd5b91b28a02424395e13cb1abf5146d9084"integrity sha512-cjUx+boz8dfYGssYKLGNTF5VUF6NETpcZCDTN3knhUUXQTAAvErzRhV3pgeCZm2YsL4HOwtEHPonlsshPu2I0A==-zustand@^4.4.0:+ version "5.0.5"+ resolved "https://registry.yarnpkg.com/zustand/-/zustand-5.0.5.tgz#3e236f6a953142d975336d179bc735d97db17e84"+ integrity sha512-mILtRfKW9xM47hqxGIxCv12gXusoY/xTSHBYApXozR0HmQv299whhBeeAcRy+KrPPybzosvJBCOmVjq6x12fCg==++zustand@^4.3.2, zustand@^4.4.0:version "4.5.7"resolved "https://registry.yarnpkg.com/zustand/-/zustand-4.5.7.tgz#7d6bb2026a142415dd8be8891d7870e6dbe65f55"integrity sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==dependencies:use-sync-external-store "^1.2.2"-zustand@^5.0.3:+zustand@^5.0.1, zustand@^5.0.3:version "5.0.6"resolved "https://registry.yarnpkg.com/zustand/-/zustand-5.0.6.tgz#a2da43d8dc3d31e314279e5baec06297bea70a5c"integrity sha512-ihAqNeUVhe0MAD+X8M5UzqyZ9k3FFZLBTtqo6JLPwV53cbRB/mJwBI0PxcIgqhBBHlEs8G45OTDTMq3gNcLq3A==diff --git a/package.json b/package.jsonindex 2683cc77..46612140 100644--- a/package.json+++ b/package.json@@ -9,5 +9,8 @@"scripts": {"dev": "docker compose up -d","compose:start": "docker compose -f docker-compose.yml up -d"+ },+ "dependencies": {+ "babel-plugin-react-compiler": "^19.1.0-rc.2"}-}\ No newline at end of file+}diff --git a/yarn.lock b/yarn.locknew file mode 100644index 00000000..30561649--- /dev/null+++ b/yarn.lock@@ -0,0 +1,28 @@+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.+# yarn lockfile v1+++"@babel/helper-string-parser@^7.27.1":+ version "7.27.1"+ resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687"+ integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==++"@babel/helper-validator-identifier@^7.27.1":+ version "7.27.1"+ resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz#a7054dcc145a967dd4dc8fee845a57c1316c9df8"+ integrity sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==++"@babel/types@^7.26.0":+ version "7.28.2"+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.2.tgz#da9db0856a9a88e0a13b019881d7513588cf712b"+ integrity sha512-ruv7Ae4J5dUYULmeXw1gmb7rYRz57OWCPM57pHojnLq/3Z1CK2lNSLTCVjxVk1F/TZHwOZZrOWi0ur95BbLxNQ==+ dependencies:+ "@babel/helper-string-parser" "^7.27.1"+ "@babel/helper-validator-identifier" "^7.27.1"++babel-plugin-react-compiler@^19.1.0-rc.2:+ version "19.1.0-rc.2"+ resolved "https://registry.yarnpkg.com/babel-plugin-react-compiler/-/babel-plugin-react-compiler-19.1.0-rc.2.tgz#ef77f4316a2086d81f95ad8edbe081e2840d87a4"+ integrity sha512-kSNA//p5fMO6ypG8EkEVPIqAjwIXm5tMjfD1XRPL/sRjYSbJ6UsvORfaeolNWnZ9n310aM0xJP7peW26BuCVzA==+ dependencies:+ "@babel/types" "^7.26.0"