Commit graph

40 commits

Author SHA1 Message Date
Anish Sarkar
c709def98d feat(frontend): add mp4 artifact playback 2026-08-24 14:28:34 +05:30
Anish Sarkar
3368629289 chore: linting 2026-08-18 05:16:44 +05:30
Anish Sarkar
deb67fbad7 feat(artifacts): update artifact handling for revisions and improve documentation
- Added support for loading current deliverables and context for artifact revisions with `load_artifact_for_revision`.
- Removed the deprecated `load_artifact_source` tool.
- Enhanced documentation for artifact skills, including detailed revision instructions for DOCX, PDF, PPTX, and XLSX formats.
- Updated the Dockerfile to include the `python-docx` package for document generation.
- Adjusted artifact file roles in the database schema to exclude the source role.
2026-08-18 04:25:10 +05:30
Anish Sarkar
116a728c68 feat(file-viewers): implement file viewer components and enhance artifact handling 2026-08-17 22:08:18 +05:30
Anish Sarkar
f896893b1a feat(artifacts): add file viewer retry states 2026-08-17 11:54:08 +05:30
Anish Sarkar
d28de0d4c1 feat(artifacts): add lazy viewer loading fallback 2026-08-17 11:54:03 +05:30
Anish Sarkar
09295881b6 feat(artifacts): show panel loading and retry states 2026-08-17 11:53:59 +05:30
Anish Sarkar
1607e57db7 refactor(frontend): remove legacy report interfaces 2026-08-16 20:01:19 +05:30
Anish Sarkar
3ab1b0be4f chore: linting 2026-08-16 03:18:58 +05:30
Anish Sarkar
ffd27e8373 feat(artifacts): enhance artifact panel state management and UI interactions
- Added `selectedCardToolCallId` to the artifact panel state for improved tracking of selected artifacts.
- Updated `openArtifactPanelAtom` to accept `selectedCardToolCallId` when opening the panel.
- Modified `ArtifactCard` component to pass `toolCallId` when opening the artifact panel, ensuring correct selection highlighting.
- Refactored `scroll-to-artifact` logic to utilize the new `selectedCardToolCallId` for better artifact navigation.
- Adjusted styles in the artifact card to visually indicate the selected state.
2026-08-14 12:06:34 +05:30
Anish Sarkar
0841c988f7 feat(documents): add artifact icon support in document type icon component
- Introduced support for displaying an `ArtifactFormatIcon` when the document type is "ARTIFACT".
- Updated the `FORMAT_META` to include a new presentation-only key for artifacts, enhancing the visual representation in the UI.
- Ensured consistent handling of document types across the application.
2026-08-14 01:39:10 +05:30
Anish Sarkar
54a0029a33 feat(artifacts): enhance artifact metadata handling and introduce format icons
- Added `document_id` to artifact listing for improved metadata association.
- Introduced `ArtifactFormatIcon` and `ArtifactFormatLabel` components for better visual representation of artifact formats.
- Updated various components to utilize new format handling, ensuring consistent display across the application.
- Refactored artifact-related schemas and hooks to accommodate new format data.
- Enhanced unit tests to cover new functionality and ensure robustness.
2026-08-14 01:34:50 +05:30
Anish Sarkar
1210e4fb41 refactor(artifacts): enhance artifact handling and update schemas
- Updated `ArtifactViewerContent` to conditionally display download filename based on workspace validity.
- Added `refetchOnWindowFocus` option to artifact query for improved data freshness.
- Replaced `documentStatus` with a Zod enum for `indexing_status` in artifact schemas.
- Refactored `collectArtifacts` to return `ArtifactCandidate` and adjusted related functions for better artifact management.
- Removed unused imports and streamlined the `ArtifactRow` component for clarity.
2026-08-14 00:50:10 +05:30
Anish Sarkar
53bcc19ed8 feat(artifacts): add thread scoping to artifact listing and enhance query handling
- Updated `list_artifacts` to accept an optional `thread_id` parameter for filtering artifacts by thread.
- Modified the query to conditionally include the `thread_id` in the selection criteria.
- Enhanced frontend components to support thread-specific artifact fetching and display.
- Added unit tests to verify the new functionality for scoping artifacts to a specific thread.
2026-08-13 23:49:38 +05:30
Anish Sarkar
e8556c1ae3 refactor(artifact-download-button): remove spinner during download state 2026-08-13 22:17:49 +05:30
Anish Sarkar
1de0aa384d feat(xlsx-viewer): implement spreadsheet grid for improved Excel file preview
- Added a new `SpreadsheetGrid` component to render Excel sheets using `react-data-grid`.
- Enhanced the viewer to display worksheets with dynamic column and row generation.
- Updated loading and error handling messages for better user experience.
- Refactored existing table structure to utilize the new grid component for better performance and styling.
2026-08-13 22:17:16 +05:30
CREDO23
499aa4d14d feat(artifacts): deliver generated images straight to an Artifact
generate_image now bills, calls the provider once and persists through
save_artifact, with the generation parameters and revised prompt kept as
provenance. The ImageGeneration model, its routes, schemas, RBAC permissions
and per-image access tokens are gone, along with the frontend service and
types; viewers fetch the primary file through the artifact manifest.

Shared chats keep working: the snapshot stores the artifact ids its messages
reference and a public route serves only those, so a token grants the thread's
own artifacts rather than the workspace's.
2026-08-13 14:58:06 +02:00
CREDO23
ee99110a4c merge(upstream/dev): DocumentType.ARTIFACT into media alignment
Keep mate's document-sidecar Artifact foundation; retain media dual-write
and Phase 3 legacy list/manifest bridges via persist_artifact shim.
2026-08-13 09:02:58 +02:00
CREDO23
f3c36a5d59 feat(artifacts): expose legacy refs on list and manifest
Phase 3 cutover: dual-written media need metadata.legacy so the library can
dedupe and open Remotion via the old presentation id.
2026-08-13 08:16:12 +02:00
CREDO23
a8f819a09c merge(upstream/dev): bring DocumentType.ARTIFACT foundation into sheet branch 2026-08-13 07:41:57 +02:00
Anish Sarkar
5f45e31719 feat(artifacts): enhance artifact schemas with document ID and status 2026-08-13 03:55:01 +05:30
CREDO23
ee8775ce86 test(artifacts): move parseWorkbook tests to tests/unit 2026-08-12 14:42:40 +02:00
CREDO23
ac0d9c78b5 fix(artifacts): auth XlsxViewer file fetch 2026-08-12 14:42:40 +02:00
CREDO23
ef59c5ddd2 feat(artifacts): add XlsxViewer 2026-08-12 13:56:47 +02:00
CREDO23
5276e42b0f test(artifacts): unit-test parseWorkbook 2026-08-12 13:56:47 +02:00
CREDO23
52e90f09a4 feat(artifacts): add parseWorkbook helper 2026-08-12 13:56:47 +02:00
Anish Sarkar
d8ece9e11c fix(pdf-viewer): update pdfjs-dist versioning and enhance viewer styles 2026-08-12 16:03:07 +05:30
Anish Sarkar
9ab5bd530b feat(artifacts): introduce mobile artifact drawer and refactor artifact panel to viewer 2026-08-12 15:19:52 +05:30
Anish Sarkar
df66baf759 feat(pdf-viewer): add zoom controls and support for custom container 2026-08-12 15:03:19 +05:30
Anish Sarkar
4b169c1f15 feat(artifact-download-button): add appearance prop for button styling 2026-08-12 14:50:10 +05:30
Anish Sarkar
4f9d616eb2 refactor(web-artifacts): migrate artifact UI to persisted manifests 2026-08-12 14:49:42 +05:30
Anish Sarkar
76b1137e53 feat(artifacts): register PPTX preview viewer 2026-08-12 05:46:04 +05:30
Anish Sarkar
2dc129341d feat(artifacts): implement stable download endpoint for current artifact generations and enhance caching strategies 2026-08-12 04:29:50 +05:30
Anish Sarkar
5790a01209 feat(artifacts): enhance artifact panel with file type display and separator 2026-08-12 04:10:57 +05:30
Anish Sarkar
1c926845d6 feat(artifacts): preview docx artifacts as pdf 2026-08-12 03:05:38 +05:30
Anish Sarkar
fc38f34d24 refactor(artifacts): extract shared unviewable fallback 2026-08-12 03:05:34 +05:30
Anish Sarkar
3f49a9098f feat(artifacts): implement artifact download functionality and refactor UI components 2026-08-11 16:26:58 +05:30
Anish Sarkar
96330b51db refactor(artifacts): enhance UI layout and improve accessibility in artifact panel 2026-08-11 11:36:47 +05:30
Anish Sarkar
dbb84601f8 feat(artifacts): render generated PDFs 2026-08-08 13:08:11 +05:30
Anish Sarkar
b46dadb0f1 feat(artifacts): render artifact content 2026-08-06 19:38:21 +05:30