Commit graph

479 commits

Author SHA1 Message Date
323b7004ed Expose which search strategy produced each result
query_packages now assigns @search_sources - a hash mapping package
ids to the matching strategy that put them into the results: :exact,
:name_prefix, :name_contains, :semantic or :fulltext. The grid and
list views render a small badge with a humanized label per result,
making the search tiers observable. semantic_results() was folded
into search_packages() so each branch tags its own source. Adds the
rails-controller-testing gem for assigns() in tests.
2026-08-23 10:39:50 +02:00
4d07f43a2e Show related packages based on description embeddings
Package pages get a "Related packages" section: a nearest neighbor
query against the package's own stored embedding (no external service
call), excluding the package itself. Packages without an embedding
render no section.
2026-08-22 23:47:42 +02:00
4948fe50e3 Add semantic package search via pgvector embeddings
Package text search now combines several strategies: exact name match,
name prefix promotion, compound word splitting ("sqlite browser" finds
"sqlitebrowser") and semantic nearest neighbor search over description
embeddings computed by an external embedding service (all-MiniLM-L6-v2,
384 dims) stored with the pgvector extension. Classic PostgreSQL
full-text search remains as fallback when the vector service is
unreachable. Gibberish queries without lexical overlap with the package
data return empty results instead of random matches.

Embeddings can be backfilled with bin/rails debshots:compute_vectors.

Also drops the unused lograge gem from the Gemfile.
2026-08-22 22:07:56 +02:00
c9248c0af4 fix typo 2026-03-01 22:11:43 +01:00
cf7178fb34 real fix for the UDD import problems – it was looking for /json/screenshots and large_image_url 2026-02-26 20:21:19 +01:00
b42d99022b typo - fixes https://salsa.debian.org/debian/debshots/-/issues/87 2026-02-26 01:15:22 +01:00
8e95e4f9fd re-add large_image_url attribute that the UDD expects 2026-02-26 01:03:54 +01:00
8bf3b9e3ca fix image URLs 2026-02-04 00:15:05 +01:00
9d0009b129 return approved screenshots only in public json. fixes #96 2026-02-04 00:10:26 +01:00
9de9f93489 fix screenshot image in personal view 2025-06-23 00:46:48 +02:00
b601b2bbb6 move shrine files out of public. use x-sendfile to send files for security. 2025-06-16 00:24:11 +02:00
0e5c20118f minimal layout change 2025-06-08 20:23:01 +02:00
cc181c21ac salsa SSO button fixed by changing method to POST 2025-06-08 18:53:45 +02:00
9cdf7b76fd remains of fontawesome 2025-06-08 16:34:16 +02:00
823f427760 remove icons on topbar because they are vertically strangely aligned 2025-05-14 22:22:21 +02:00
74fb99b2c5 debug 2025-05-13 01:19:58 +02:00
368d4b9c27 fix icon. re-enable javascript to define upload paths 2025-05-13 01:19:37 +02:00
1cd784cb14 recover broken apt:// link# 2025-05-13 01:19:15 +02:00
522cd56807 disable turbo. unwanted side effects. 2025-05-13 01:19:03 +02:00
c3fecff878 change icons 2025-05-11 21:26:11 +02:00
d4196505b8 disable unused JS 2025-05-11 21:26:02 +02:00
d76bf164f1 lucene icons added, styling fixed 2025-05-09 00:41:11 +02:00
9164e2a636 Moved from Fancybox to Photoswipe for click-to-zoom 2025-05-08 01:10:03 +02:00
aaf1eb34c4 typo 2025-05-04 23:59:41 +02:00
fa8a7fc77a Fix JS and JS-based image upload 2025-05-02 00:38:42 +02:00
36984ff1d4 lab 2025-04-11 09:39:33 +02:00
7cd9c68a10 trying to get JS and cssbundling to work 2025-04-09 22:47:05 +02:00
b5534b1900 Massive revamping for Rails 8 and Zurb 2025-03-16 00:44:43 +01:00
7f9502fdfb update to rails 8.2 2025-03-13 23:05:41 +01:00
25672aabb0 Update to Rails 7.2 2025-02-25 21:57:16 +01:00
bc944d677b Removed cookie warning. Updated Gems.
Apparently functional cookies can be used without consent.
2021-05-28 15:54:36 +02:00
9635b3968c Added per-user counter of approved/rejected screenshots 2021-03-21 23:06:51 +01:00
c97a711e6b Only show Moderate link if permissions allow it 2021-03-21 22:31:03 +01:00
006a85a8a5 Old moderation view removed 2021-03-21 22:26:37 +01:00
33240846b2 Show hidden screenshots in a dark-grayish style 2021-03-21 22:05:22 +01:00
cc76ebcc28 Show abilities to hide/unhide properly 2021-03-21 22:02:56 +01:00
4e07bf00fd Add gravatar to profile page. Attempt to make profile look nicer. 2021-03-10 02:33:40 +01:00
90fc03e13a Rewording 2021-03-10 01:06:12 +01:00
f9130c6972 Cruft 2021-03-10 01:04:43 +01:00
f31502c333 Added colors to status label of a screenshot 2021-03-10 01:04:06 +01:00
a22f5128dc minor rewording 2021-03-10 00:03:04 +01:00
7c929ed7d2 Slight rewording 2021-03-09 23:55:35 +01:00
9a9101defe Help text fixed 2021-03-09 23:53:13 +01:00
711f06fcc4 Fix check for own screenshots 2021-03-09 23:36:14 +01:00
e04b54d6fd Show permissions properly
can? :foo, Screenshot only checks if the use can 'foo' any screenshot

can? :foo, Screenshot.new checks for new screenshots not assigned to
them
2021-03-09 23:31:45 +01:00
0207d6b392 My views improved. Own screenshots view added 2021-03-09 22:43:58 +01:00
330536cb7e Link to packages and screenshots (highlighted) from logs view 2021-03-06 20:47:33 +01:00
2fef9c7043 Audit logging improved. References users, screenshots, packages 2021-03-03 23:21:24 +01:00
b6dee6b93c Logging fixed. Debugging finished. 2021-03-03 01:29:26 +01:00
7f4eab3396 Further IP debugging 2021-03-03 01:12:37 +01:00