* chore: added `rel="noopener noreferrer"` to external links for improved security on homepage
* fix: reused variable name
* feat: make the item table use a link instead of a click event
* fix: pagination now shows correct page if loading page that isnt 1
* fix: make save button sticky again on item edit page
* fix: adjust sticky header positioning based on whether legacy header is enabled
* fix: navigate to homepage on unauthorized request in useUserApi function
* fix: enhance link handling in DetailsSection
* fix: improve markdown rendering, don't add big breaks between lines, make the gap smaller and dont have a trailing newline
* fix: use secondary colour as switch secondary colour so its more visible against bg
* fix: call refresh methods on location and label stores during component mount for better data consistency
* fix: loading indicators
* fix: convert detail.text to string for correct URL handling in DetailsSection component
* fix: use replace instead of splice to remove newline at end of markdown
* fix: use css vars for header height
* add missing translations and translate page titles
* fix: actually use the declared localized variables
* lint and prettier fixes
* add missing translations for toasts and confirms
* use components for shift/enter keys, add pluralization for photos, and fix primary photo conditional
* remove prop defaults since we're computing these anyways
* feat: begin work on topbar refresh
* feat: implement search input functionality
* feat: add ScannerModal component based on scanner page
* feat: add toggle to enable legacy topbar, remove scanner page
* feat: update scanner menu item to use SidebarMenuButton for legacy header support
* chore: lint
* style: make margin and padding more consistent
* feat: fun hack
* fix: remove uneeded log and class=""
* Create a rotate 90 degrees clockwise button for each image
* Added more error handling and turned rotate function to async as recommended by coderabbitai
* Remove documents table (WIP)
* Further cleanup of documents table
* This should clean up the errors, but actual attachment handling still needs added.
* Full generation to update the JS side of things too
* Further fixes
* Fix cyclic dependency issue
* In theory the API side works now
* Fix go linting issues
* Fix frontend issues
* Way closer, but has a foreign key constrant issue
* UI actually works now
* Fix deduplication feature not working right
* Upgrade to `golangci-lint` v2 file
* Add ability to set primary during attachment creation
* Update swagger with new primary attachment during creation stuff
* Files are actually saved now, but there's still a bug
* Fix critical issue whith how deletions were working
* Fix the byte copy issue
* Hopefully everything is fixed now
* Fix golangci-lint config and lint files
* Fix lint issue
* Fix a few more tests
* Fix lint issues again
* More minor test fixes
* Update backend/internal/core/services/service_items_attachments.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Fix migration (I think)
* Fixed postgres migration
* Change some migration options to work better
* Some more little things that I tried
* Fix merge go.mod
* Fix migrations
* Little lint thing
* Fix AttachmentsList.vue with updated API
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add a quantity field to the item create modal form.
* Fix prettier code format complaint.
* Update en.json allowing the label of the field to be translated.
* Including changes generated by swag and typescript-types tasks.
* Fixed tests, item duplication and lint errors.
* Fix linter issues again and an error introduced in 912e5b2
* Fixed a test that creates an item through the go:coverage task
* feat: sort themes and remove daisyui
* docs: update docs to reflect daisyui being removed
* feat: remove specific colours for better theme compatibility
* feat: migrate tools page and label generator to shadcn
* chore: lint issues
* feat: also do profile page
* feat: shadcn 404 page
* feat: login page shadcn
* fix: daisyui ironically breaks the z height for the login page
* feat: componentise the language selector and add it to the login page
* feat: use nuxtlink
* feat: card and table made more shadcn
* feat: shadcn statscard
* chore: lint
* feat: shadcn labelchip and locationcard
* feat: shadcn locations page
* refactor: remove unused new item page
* chore: lint
* feat: shadcn item card
* fix: wrapping of location and lint
* feat: ctrl enter in text area in form submits form
* feat: begin shadcn locations page and remove pageqrcode comp in favour of integrating it into labelmaker
* chore: lint + remove unused code
* fix: remove uneeded margin
* feat: shadcn labels page and fix some issues with location
* feat: shadcn scanner
* chore: lint
* feat: begin shadcning item pages
* feat: shadcn maintenance page
* feat: begin shadcn search page
* fix: quick switch blurry text and crashing page when switching + incorrect z height for create menu
* feat: finish shadcn search page
* chore: lint
* feat: shadcn edit item page
* fix: quickmenumodal bug
* feat: shadcn item details page
* feat: remove all non-color related daisyui classes
* fix: type error
* fix: quick menu modal again :(
* feat: begin switching sonner, currently this breaks all alerts
* feat: switch to using new sonner and fix class names
* feat: add Shortcut component for improved keyboard shortcuts display in default layout
* feat: rewrite quick menu modal in shadcn
* feat: update QuickMenu modal placeholders and localize no results message in default layout
* feat: begin switching modals in layout to use shadcn dialog, needs bug fixing
* feat: implement DialogProvider for consistent dialog management across components
* fix: types
* feat: begin adding shadcn label selector (wip)
* feat: shadcnify textarea
* feat: begin adding location selector
* feat: add hotkey support for opening create modals in dialog provider components
* fix: update click event on NuxtLink and reorder sidebar menu item IDs for consistency
* feat: unify shortcut text across create modals and sort issue with text centring
* feat: prevent dialog from opening when a dialog alert is open
* fix: prevent potential out of bounds error
* feat: enhance button group UI in create modals for better layout and introduce new item photo label in the form
* fix: search on label selector
* chore: lint
* fix: oops
* feat: make selector usable
* feat: add actual data to label selector
* feat: label selector kinda works
* fix: add legacy selector for edit page
* fix: enable camera capture in image upload for CreateModal component
* fix: z levels for sidebar mobile
* fix: gap between inputs
* feat: update radix-vue, custom search function for location selector
* feat: add fuzzysort (can always remove it and go to lunr if we want to)
* feat: limit label name to 50 characters in create modal and selector, helps with issues with ui not working with larger labels, as it is only enforced on the frontend could be easily bypassed but thats a them problem
* feat: add colours to toast
* chore: lint
* feat: abstract the dialog for creation modals
* feat: add drawer component and responsive dialog for create modals
* feat: enhance photo preview in CreateModal
* fix: remember state of sidebar
* feat: add ui functionality for changing primary image
* feat: use button for file upload
* style: lint
* fix: dont clone asset id
* fix: using create and add label breaks selector
* chore: oops remove logging
* chore: lint
* fix: cut length of label dramatically to ensure maximal compatibility, not sure if too much
* fix: more limiting of label length
* feat: update reka-ui (prev radix-vue)
* chore: cleanup dialog provider and siebar provider a bit
* fix: improve accessibility
* fix: docs for shadcn error
* fix: hack to prevent issues with lots of toasts in quick succession
* feat: cleanup toast file and lint
* feat: improvements to dialog scroll and disable the ability to set default photo for now
* feat: add tooltips for photo buttons
* chore: substring to length check
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Add a delete icon to every photo added in the create item modal form.
* Add a delete icon to every photo added in the create item modal form.
* Corrected margin of filename.
* Format the layout of the delete button using daisyUI indicator component CSS classes.
* Moved PhotoPreview interface to the local component file, it should not go in data-contracts.ts, this file is generated based on the contents of swagger.json, that is generated based on the contents of the backend, the type definition if it needs to be shared should go inside non-generated.ts
* Update Container.vue to allow max 7 for xl
* Update items.vue to allow 5 cols to large screen
* Change to use pageSize to 30
Least common multiple is 30 for cols if 2, 3 or 5.
---------
Co-authored-by: Matt Kilgore <tankerkiller125@users.noreply.github.com>
* fix: #321 use date-fns for localized datetime formatting
* chore: lint fixes for use-formatters
* chore: more lint fixes for use-formatters
* date and currency localization fixes
---------
Co-authored-by: Ádám Kleizer <adkl@boyum-it.com>