Skip to content

Commit 1659b9c

Browse files
committed
Update Needle with unified installation system and needlectl integration
- Add unified installation system with one-liner and manual options - Add configuration selection (fast/balanced/accurate) - Integrate needlectl for service management - Update service management to use virtual environments + Docker infrastructure - Add ImageGeneratorsHub as submodule - Update UI with new logo and build system - Remove old Docker-only installation scripts - Add comprehensive testing and documentation
1 parent 747c85a commit 1659b9c

File tree

10 files changed

+6
-98
lines changed

10 files changed

+6
-98
lines changed

ui/build/asset-manifest.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

ui/build/index.html

Lines changed: 0 additions & 1 deletion
This file was deleted.

ui/build/static/css/main.2f1214e0.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

ui/build/static/css/main.2f1214e0.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

ui/build/static/js/main.dfab9501.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

ui/build/static/js/main.dfab9501.js.LICENSE.txt

Lines changed: 0 additions & 72 deletions
This file was deleted.

ui/build/static/js/main.dfab9501.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

ui/src/assets/images/logo.png

105 KB
Loading
-173 KB
Binary file not shown.

ui/src/pages/SearchPage.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ const SearchPage = () => {
9494
setIsSearching(true);
9595
setError(null);
9696
setResults([]);
97-
setSearchStartTime(Date.now());
9897

9998
// Clear previous image URLs
10099
Object.values(imageUrls).forEach(url => {
@@ -105,6 +104,10 @@ const SearchPage = () => {
105104
setImageUrls({});
106105

107106
try {
107+
// Record start time right before the actual query request
108+
const searchStartTime = Date.now();
109+
setSearchStartTime(searchStartTime);
110+
108111
// Create query
109112
const queryResponse = await createQuery(query);
110113
const queryId = queryResponse.data.qid;
@@ -114,7 +117,7 @@ const SearchPage = () => {
114117
const searchData = searchResponse.data;
115118

116119
const searchEndTime = Date.now();
117-
const frontendTiming = searchStartTime ? searchEndTime - searchStartTime : null;
120+
const frontendTiming = searchEndTime - searchStartTime;
118121

119122
setResults({
120123
queryId,
@@ -123,7 +126,7 @@ const SearchPage = () => {
123126
previewUrl: searchData.preview_url,
124127
timings: {
125128
...searchData.timings,
126-
frontend_total_time: frontendTiming ? frontendTiming / 1000 : null
129+
frontend_total_time: frontendTiming / 1000
127130
},
128131
verboseResults: searchData.verbose_results || {}
129132
});

0 commit comments

Comments
 (0)