-
Notifications
You must be signed in to change notification settings - Fork 18
1706 chat 04 chat attachments option a composer upload ux scheduler task UI #1712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
simcariou
wants to merge
27
commits into
swift
Choose a base branch
from
1706-chat-04-chat-attachments-option-a-composer-upload-ux-scheduler-task-ui
base: swift
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
a82e305
wip: rework chat attachments
simcariou 3676665
Merge branch 'swift' into 1706-chat-04-chat-attachments-option-a-comp…
simcariou ba5d497
feat: Add drag n' drop in chat + xlsx, txt, image in fast ingest
simcariou ade8727
Merge branch 'swift' into 1706-chat-04-chat-attachments-option-a-comp…
simcariou e9878a3
fix: make test
simcariou 18bb42b
Merge branch 'swift' into 1706-chat-04-chat-attachments-option-a-comp…
simcariou bc6cfbc
fix: remove "synthia" from pyproject.toml
simcariou 09162de
fix: type-check
simcariou bae2af8
fix: kics on frontend Dockerfile
simcariou 72418fc
fix: add transparency on drag and drop page
simcariou 2033eed
impr: Overall design and use slices instead of hardcoded queries in f…
simcariou 65106bf
impr: scrollable attachment list
simcariou 62e5a62
wip: Add persisted attachments management
simcariou 01d3543
impr: fast/delete and various fixes
simcariou d9a521a
impr: Deleting a conversation deletes all associated attachments
simcariou 6e03295
impr: rework SearchConfig in chat
simcariou eb74424
impr: close SearchConfig when clicking away
simcariou bf4ae42
impr: Bind mcp chat options to managed chat
simcariou 75cd0e4
fix: code-quality
simcariou 401727f
Merge branch 'swift' into 1706-chat-04-chat-attachments-option-a-comp…
simcariou feeb6be
Merge branch 'swift' into 1706-chat-04-chat-attachments-option-a-comp…
simcariou 3b0757b
fix: jsons schema for cp & test
simcariou 26e5119
fix: kf json schema
simcariou 3e205f9
fix: make test cp
simcariou 22f9d96
fix: code-quality
simcariou e749865
fix: use the same library picker in the SearchConfig and in the agent…
simcariou fbe2019
impr: add translations and better chat ui
simcariou File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
apps/control-plane-backend/alembic/versions/f2b3c4d5e6f7_add_session_attachments.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| """add session attachments | ||
|
|
||
| Revision ID: f2b3c4d5e6f7 | ||
| Revises: be753abe25d7 | ||
| Create Date: 2026-06-11 12:30:00.000000 | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from alembic import op | ||
| import sqlalchemy as sa | ||
|
|
||
|
|
||
| # revision identifiers, used by Alembic. | ||
| revision = "f2b3c4d5e6f7" | ||
| down_revision = "b4c5d6e7f8a9" | ||
| branch_labels = None | ||
| depends_on = None | ||
|
|
||
|
|
||
| def upgrade() -> None: | ||
| op.create_table( | ||
| "session_attachments", | ||
| sa.Column("session_id", sa.String(), nullable=False), | ||
| sa.Column("attachment_id", sa.String(), nullable=False), | ||
| sa.Column("name", sa.String(), nullable=False), | ||
| sa.Column("mime", sa.String(), nullable=True), | ||
| sa.Column("size_bytes", sa.Integer(), nullable=True), | ||
| sa.Column("summary_md", sa.Text(), nullable=False), | ||
| sa.Column("document_uid", sa.String(), nullable=True), | ||
| sa.Column("storage_key", sa.String(), nullable=True), | ||
| sa.Column("created_at", sa.DateTime(timezone=True), nullable=False), | ||
| sa.Column("updated_at", sa.DateTime(timezone=True), nullable=False), | ||
| sa.PrimaryKeyConstraint("session_id", "attachment_id"), | ||
| ) | ||
|
|
||
|
|
||
| def downgrade() -> None: | ||
| op.drop_table("session_attachments") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
apps/control-plane-backend/control_plane_backend/models/session_attachment_models.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from datetime import datetime | ||
|
|
||
| from sqlalchemy import DateTime, Integer, String, Text | ||
| from sqlalchemy.orm import Mapped, mapped_column | ||
|
|
||
| from control_plane_backend.models.base import Base, utcnow | ||
|
|
||
|
|
||
| class SessionAttachmentRow(Base): | ||
| """ORM model for the ``session_attachments`` table.""" | ||
|
|
||
| __tablename__ = "session_attachments" | ||
|
|
||
| session_id: Mapped[str] = mapped_column(String, primary_key=True) | ||
| attachment_id: Mapped[str] = mapped_column(String, primary_key=True) | ||
| name: Mapped[str] = mapped_column(String, nullable=False) | ||
| mime: Mapped[str | None] = mapped_column(String, nullable=True) | ||
| size_bytes: Mapped[int | None] = mapped_column(Integer, nullable=True) | ||
| summary_md: Mapped[str] = mapped_column(Text, nullable=False) | ||
| document_uid: Mapped[str | None] = mapped_column(String, nullable=True) | ||
| storage_key: Mapped[str | None] = mapped_column(String, nullable=True) | ||
| created_at: Mapped[datetime] = mapped_column( | ||
| DateTime(timezone=True), nullable=False, default=utcnow | ||
| ) | ||
| updated_at: Mapped[datetime] = mapped_column( | ||
| DateTime(timezone=True), | ||
| nullable=False, | ||
| default=utcnow, | ||
| onupdate=utcnow, | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.