Commit dfec6f7
authored
Modified Crawling and graceful error handling with streamlined UI. (#48)
Patch Fixes:
- Fixed MCP Docker Build Failure: Resolved the build error for the mcp
service by removing the invalid readme reference in
fast-markdown-mcp/pyproject.toml.
- Refactored File Handling (Removed In-Memory Storage):
- Investigated the complex in-memory file handling mechanism and its
inconsistencies.
- Removed the in-memory storage logic from backend/app/crawler.py.
- Removed the associated API endpoints (/api/memory-files,
/api/memory-files/{file_id}) from backend/app/main.py.
- Added a new backend API endpoint (/api/storage/file-content) to read
files directly from the storage/markdown directory.
- Deleted the old frontend API proxy route
(app/api/memory-file/route.ts).
- Created a new frontend API proxy route
(app/api/storage/file-content/route.ts).
- Updated frontend components (StoredFiles.tsx, DiscoveredFiles.tsx) to
use the new API route for downloading file content.
- Documentation: Created markdown plans for the MCP build fix and the
in-memory feature removal.
- This simplifies the architecture by relying solely on disk-based
consolidated files in storage/markdown. Please remember to test the file
download functionality after restarting the services.
feat: Enhance crawl workflow, UI, and fix backend issues
This commit addresses several issues and implements enhancements across
the crawling workflow:
Fixes:
- Resolved 400 Bad Request error caused by incorrect query parameter
(`file_path`) in the file content API route.
- Fixed backend `NameError` (`set_task_context`) in crawler.py that
prevented result file saving.
- Corrected 500 Internal Server Error caused by Docker networking issue
(localhost vs. service name) in the file content API route proxy.
- Ensured 'Data Extracted' statistic is correctly saved in the backend
status and displayed in the UI.
UI Enhancements:
- Made "Consolidated Files" section persistent, rendering as soon as a
job ID is available.
- Relocated "Crawl Selected" button inline with status details.
- Updated "Crawl Selected" button to show dynamic count and disable
appropriately.
- Renamed "Job Status" section title to "Discovered Pages".
- Renamed "Processing Summary" section title to "Statistics".
- Removed the unused "Extracted Content" display section.
Backend Enhancements:
- Implemented file appending logic in crawler.py for consolidated `.md`
and `.json` files. Subsequent crawls for the same job now append data
and update timestamps instead of overwriting.
feat(frontend): Update Consolidated Files component for polling and
downloads
- Implements polling every 10 seconds in ConsolidatedFiles.tsx to
automatically refresh the list of files from the /api/storage endpoint,
ensuring newly added files appear in the UI.
- Modifies the MD and JSON icon links to point to the
/api/storage/download endpoint and adds the 'download' attribute,
triggering file downloads instead of opening content in the browser.1 parent 88b0517 commit dfec6f7
File tree
56 files changed
+4920
-1271
lines changed- .roo/rules-boomerang
- app
- api
- all-files
- memory-file
- storage
- file-content
- assets
- backend/app
- components
- ui
- docker
- compose
- dockerfiles
- docs
- architecture
- features
- local
- mcp
- fast-markdown-mcp/src/fast_markdown_mcp
- lib
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
56 files changed
+4920
-1271
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
111 | 119 | | |
112 | 120 | | |
113 | 121 | | |
114 | 122 | | |
115 | | - | |
| 123 | + | |
116 | 124 | | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
120 | 128 | | |
| 129 | + | |
121 | 130 | | |
122 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
123 | 148 | | |
124 | 149 | | |
125 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | | - | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
44 | 59 | | |
45 | | - | |
| 60 | + | |
46 | 61 | | |
47 | 62 | | |
48 | 63 | | |
| |||
162 | 177 | | |
163 | 178 | | |
164 | 179 | | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
198 | 184 | | |
199 | 185 | | |
200 | | - | |
| 186 | + | |
201 | 187 | | |
202 | 188 | | |
203 | 189 | | |
| |||
0 commit comments