Matthew Kilgore
e00cebb7fa
Merge branch 'refs/heads/main' into mk/merge-entities
...
# Conflicts:
# backend/app/api/static/docs/docs.go
# backend/app/api/static/docs/swagger.json
# backend/go.mod
# backend/go.sum
# backend/internal/data/ent/entity_predicates_test.go
# backend/internal/data/repo/repo_items.go
# docs/en/api/openapi-2.0.json
2025-09-02 14:54:20 -04:00
Michael Manganiello
377c6c6e0d
fix: Remove log.Fatal in favor of returning errors ( #953 )
...
* fix: Remove log.Fatal in favor of returning errors
This change is useful for including error tracking, which needs the
application to not terminate immediately, and instead give the tracer
time to capture and flush errors.
* Fix CodeRabbit issues
---------
Co-authored-by: Matthew Kilgore <matthew@kilgore.dev >
2025-08-23 13:09:40 -04:00
Tonya
788d0b1c7e
feat: improved duplicate ( #927 )
...
* feat: improved duplicate
* feat: enhance item duplication process with transaction handling and error logging for attachments and fields
* feat: add error logging during transaction rollback in item duplication process for better debugging
* feat: don't try and rollback is the commit succeeded
* feat: add customizable duplication options for items, including prefix and field copying settings in API and UI
* fix: simplify duplication checks for custom fields, attachments, and maintenance entries in ItemsRepository duplication method
* refactor: import DuplicateSettings type from composables and sort import issues
2025-08-23 16:17:15 +01:00
Tonya
900604661b
fix: change Content-Disposition to inline for proper document display in attachments ( #950 )
2025-08-21 14:59:13 +00:00
Michael Manganiello
8af1e8fcba
fix: Allow up to 1000 characters for label description ( #948 )
...
The database schema already supports 1,000 characters for label
description, so this seems just like an oversight.
2025-08-20 15:29:49 -04:00
Matthew Kilgore
9f34f80a60
Update dependencies
2025-08-16 17:43:02 -04:00
Ahmed Al Hafoudh
624c1763ac
Add external label service support to label maker ( #913 )
...
* Add external label service support to label maker
* Make external label service fetch to include user agent, limit response size and allow any image type
* Fix linting errors
* Fix "response body closed" closing the Body to soon
2025-08-01 12:02:40 -04:00
Matthew Kilgore
b107ab026a
Refactor entity attachment handling and update API routes for entities
2025-07-27 18:20:34 -04:00
Matthew Kilgore
77b14f3a55
More merge fixing
2025-07-27 17:42:58 -04:00
Matthew Kilgore
de1491133b
Merge branch 'main' into mk/merge-entities
...
# Conflicts:
# .github/workflows/binaries-publish.yaml
# .github/workflows/e2e-partial.yaml
# .github/workflows/partial-backend.yaml
# .github/workflows/partial-frontend.yaml
# backend/app/api/handlers/v1/v1_ctrl_items.go
# backend/go.mod
# backend/go.sum
# backend/internal/data/ent/attachment.go
# backend/internal/data/ent/attachment/attachment.go
# backend/internal/data/ent/attachment/where.go
# backend/internal/data/ent/attachment_create.go
# backend/internal/data/ent/attachment_query.go
# backend/internal/data/ent/attachment_update.go
# backend/internal/data/ent/migrate/schema.go
# backend/internal/data/ent/mutation.go
# backend/internal/data/repo/repo_item_attachments.go
# backend/internal/data/repo/repo_items.go
2025-07-27 17:31:33 -04:00
Balki
e82f5084d4
Fix Windows build and re-apply unix socket support ( #906 )
...
* Reapply "Support listening on unix sockets and systemd sockets (#878 )"
This reverts commit 2f51ba419b .
* Fix windows build
Upgrade anyhttp to v0.5.2
2025-07-20 09:51:31 -04:00
Crumb Owl
6555c9277a
ProductBarcode: use json encoder from the project
2025-07-19 23:06:43 +02:00
Crumb Owl
6d516f6de6
ProductBarcode: backend: properly define max length of a barcode
2025-07-19 23:06:43 +02:00
Crumb Owl
36d5ae1466
ProductBarcode: backend: improve verbosity for user
2025-07-19 23:06:43 +02:00
Crumb Owl
f37f609dff
ProductBarcode: backend: prevent DoS with image download
2025-07-19 23:06:43 +02:00
Crumb Owl
a980d9f243
ProductBarcode: backend: remove API response verbosity
2025-07-19 23:06:43 +02:00
Crumb Owl
aac82c9236
ProductBarcode: backend: add timeout to external API calls
2025-07-19 23:06:43 +02:00
Crumb Owl
8dedfcca43
ProductBarcode: backend: fix error handling with http requests
2025-07-19 23:06:43 +02:00
Crumb Owl
f72fcb0800
ProductBarcode: backend: fix resource leak with defer
2025-07-19 23:06:43 +02:00
Crumb Owl
94e81809d3
ProductBarcode: backend: properly check barcodespider API response
2025-07-19 23:06:43 +02:00
Crumb Owl
e80e5744f7
ProductBarcode: backend: improve security of image fetching
2025-07-19 23:06:43 +02:00
Crumb Owl
8a60729153
ProductBarcode: clean code, add error handling
2025-07-19 23:06:43 +02:00
Crumb Owl
4a4bf9a175
ProductBarcode: rename API call from getproductfromean to products/search-from-barcode
2025-07-19 23:06:43 +02:00
Crumb Owl
24923f2a83
ProductBarcode: refactoring Go method
2025-07-19 23:06:43 +02:00
Crumb Owl
66c2de22ed
ProductBarcode: Go Linter fixing
2025-07-19 23:06:43 +02:00
Crumb Owl
c93fddae7f
ProductBarcode: move backend code in dedicated source file
2025-07-19 23:06:43 +02:00
Crumb Owl
a3c13a8a74
ProductBarcode: return an array of BarcodeProduct instead of one
2025-07-19 23:06:38 +02:00
Crumb Owl
79baf6b5ef
ProductBarcode: define Barcodespider API key using env variables
2025-07-19 22:51:48 +02:00
Crumb Owl
d691e908a4
ProductBarcode: add image downloading from remote product database
...
- Backend download images from the database
- Frontend retrieve the image as base64, no architecture change needed
2025-07-19 22:51:48 +02:00
Crumb Owl
ec8320bc42
ProductBarcode: update UPCItemDB parsing
...
- JSON response seems to have changed
2025-07-19 22:51:48 +02:00
Crumb Owl
6dbb243ba5
ProductBarcode: return more fields from DB (brand, model...)
...
- backend: change data structure returned to frontend
2025-07-19 22:51:48 +02:00
Crumb Owl
0ed69b75a1
ProductBarcode: add first backend API implementation
2025-07-19 22:51:48 +02:00
Matt
90bb6ed1fe
Daily Analytics ( #896 )
...
* Send analytics daily
* Clean up error handling, add uptime to analytics
* Better analytics scheduling
* Even better logic for scheduling the analytics (hopefully)
* Some cleanup
* Switch to minutes for uptime, remove duplicate event on startup
2025-07-15 04:24:19 -04:00
Matthew Kilgore
8f440e2a64
Fix setup directory for Windows binary
2025-07-12 22:21:38 -04:00
Matthew Kilgore
6a1f2549df
Cleanup main file after revert, add freebsd build
2025-07-12 16:37:01 -04:00
Matthew Kilgore
2f51ba419b
Revert "Support listening on unix sockets and systemd sockets ( #878 )"
...
This reverts commit 850ed476
2025-07-12 16:33:29 -04:00
Matt
23cecfb2a5
Refactor main file, add support for postgres certificate authentication ( #897 )
...
* Refactor main file, add support for postgres certificate authentication
* Fix potential issues.
* Remove legacy linting ignore comment
* Minor cleanup, documentation update
2025-07-12 16:11:50 -04:00
Copilot
c2cfa10336
Fix nil pointer dereference panic in thumbnail subscription during shutdown ( #892 )
...
* Initial plan
* Fix nil pointer dereference in thumbnail subscription handling
Add nil check for msg after subscription.Receive() returns error to prevent
panic when accessing msg.Metadata. When an error occurs or msg is nil,
continue to next iteration instead of trying to process the message.
Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com >
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com >
2025-07-12 11:40:50 -04:00
Balki
850ed476d4
Support listening on unix sockets and systemd sockets ( #878 )
2025-07-12 09:58:16 -04:00
Copilot
82bceb2185
Fix HBOX_LOG_LEVEL environment variable being ignored due to backwards logic ( #862 )
...
Co-authored-by: tankerkiller125 <3457368+tankerkiller125@users.noreply.github.com >
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
2025-07-04 23:44:20 -04:00
Matt
be1f3c0ad3
Use aspect ratio when making thumbnails and fix rotation ( #857 )
2025-07-04 11:44:08 -04:00
Matt
e159dd8a0b
Merge commit from fork
2025-07-01 09:56:34 -04:00
Matthew Kilgore
04c8e38ecf
Escape file name for content-disposition.
2025-06-30 20:55:11 -04:00
Matt
4861a8537f
More image type support for thumbnails ( #814 )
2025-06-26 10:19:34 -04:00
Tonya
ef39549c37
Custom Colored Labels ( #801 )
...
* feat: custom coloured labels
* chore: lint
* feat: add ColorSelector component for improved color selection in labels and integrate it into CreateModal and Selector components
* style: lint
* fix: update ColorSelector and Selector components to use empty string instead of null for default color values for types
2025-06-23 15:52:32 +01:00
Matt
989100d299
Thumbnails ( #797 )
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: tonya <tonya@tokia.dev >
2025-06-22 21:32:48 -04:00
Matt
e1b232e0d1
Abstract Attachment Storage ( #777 )
...
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
2025-06-19 10:26:12 -04:00
Matthew Kilgore
1d3d7b4788
Revert "fix: Uploads, downloads, etc. now work properly."
...
This reverts commit c02b77c3fd .
2025-06-07 12:43:39 -04:00
Matthew Kilgore
c02b77c3fd
fix: Uploads, downloads, etc. now work properly.
2025-06-07 12:40:59 -04:00
Matthew Kilgore
22cb2f868b
For some reason swaggo doesn't mark the endpoints as deprecated
2025-05-10 21:30:21 -04:00