* fix(ci): update workflow to use latest patch version of Go
* fix(ci): update all workflows to use latest patch version of Go
* chore(deps): bump Go version to latest patch in go.mod
* feat(docker): add Windows images
* Create ciwindows.Dockerfile
* freddy?
* no it's camel
* have as many words with him as you like
* better go get more men
* an eye for an arm, ricky
* mcr.microsoft.com/windows/nanoserver:ltsc2022
* make a dime an hour for the company man
---------
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
* bump(deps): lift language versions
* Update Dockerfile
* ask your doctor
* chore: update go to 1.23
* fix: go mod version
---------
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
* refactor(dockerfile): optimize Docker builds
Combined multiple run commands into single statements in both main and CI dockerfiles, leveraging Docker's caching mechanism more effectively. This change aims to reduce image size and build time.
* hmm.
* Update ci.Dockerfile
* newline
* what about this
* three quorum members, three opinions
* true believer, right?
* when needed
* it sounds like music
* equals what
* really though, what?
* which one of you is the captain
* is that Kwejian whiskey
* ARG
* ARGH
* k.
* take me to your leader
* asd
* Update ci.Dockerfile
* try cache
* Revert
* Run Seperate platforms
* docker_build
* mother
* aggressive elephant
* leave me to my bath
* introduce buildx cache
* czechout manifests
* front left paw
* kill tags
* dealing with a child
* Update release.yml
* try outputs
* consolidation
* - =
* oxygen depleted
* where's the soup
* thanks buildx
* what's a little avx among friends
* Fine, I'll bring my own matches
* zenuuuu
* space, the final frontier
* but why
* ARE YOU HAPPY NOW
* link those binaries
* fast fail
* just the time killer you need
* add back generic arm
* ruthless dictator barbie
* kat
* build: docker add more labels
---------
Co-authored-by: Kyle Sanderson <kyle.leet@gmail.com>
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
* refactor: this should be Debug() just like the rest.
* feat: catch error when updating client table.
Before if we provided the wrong ID it will just say it's successful when it shouldn't.
* chore: handle the errors.
* fix: defer tx.Rollback().
When I try handling the error we always hit the error no matter what even though there wasn't any error, This is due that defer block being executed unconditionally so even after we commit it successfully it will just give error. So add checking then commit it if all good.
* feat: added testing env.
This way we can use in memory sqlite.
* chore: Delete log should be debug as well.
* feat: enable foreign keys for testing for sqlite.
I recommend enabling all together. Not sure why it's commented but for now will keep it the same and only enable for testing.
* chore: catch error, if deleting a record fails.
* chore: catch error, if deleting a record fails.
* chore: catch error, when failed to enable toggle.
* chore: catch error, if updating failed.
* chore(filter): catch error, if deleting failed.
* chore(filter): catch error, if row is not modified for ToggleEnabled.
* chore(feed): Should be debug level to match with others.
* chore(feed): catch error when nothing is updated.
* chore: update docker-compose.yml add test_db for postgres.
* chore(ci): update include postgres db service before running tests.
* feat(database): Added database testing.
* feat(database): Added api integration testing.
* feat(database): Added action integration testing.
* feat(database): Added download_client integration testing.
* feat(database): Added filter integration testing.
* test(database): initial tests model (WIP)
* chore(feed): handle error when nothing is deleted.
* tests(feed): added delete testing.
* chore(feed): handle error when nothing is updated.
* chore(feed): handle error when nothing is updated.
* chore(feed): handle error when nothing is updated.
* feat(database): Added feed integration testing.
* fix(feed_cache): This should be time.Time not time.Duration.
* chore(feed_cache): handle error when deleting fails.
* feat(database): Added feed_cache integration testing.
* chore: add EOL
* feat: added indexer_test.go
* feat: added mock irc data
* fix: the column is not pass anymore it's password.
* chore: added assertion.
* fix: This is password column not pass test is failing because of it.
* feat: added tests cases for irc.
* feat: added test cases for release.
* feat: added test cases for notifications.
* feat: added Delete to the User DB that way it can be used for testing.
* feat: added user database tests.
* refactor: Make setupLogger and setupDatabase private also renamed them.
Changed the visibility of `setupLogger` to private based on feedback. Also renamed the function to `setupLoggerForTest` and `setupDatabaseForTest` to make its purpose more descriptive.
* fix(database): tests postgres ssl mode disable
* refactor(database): setup and teardown
---------
Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
* chore(goreleaser): parallel builds
* 8 seems like a good number
* 99 problems but a goreleaser... is one.
* fine?
* fine.
* Update release.yml
* Windows??
* bill
* flip to zip on Windows
* 4 minutes to zstd on windows... mac should be faster.
* long switch for clarity
* revert none hack
* flip web to mac
* bad touch
* mac web is a loss
* add zip
* feat(web): use pnpm packageManager on package.json
* build(web): add frozen-lockfile to Makefile
* build(docker): use the same node version as Docker image
* build(docker): enable corepack
* build(makefile): use --dir instead of cd for pnpm
* flip to npm
* try pnpm
* nothing good started with p anyway
* I want to go outside.
* Split out deps and build
* 30 seconds on the fetch, reintroduce the p
* lock it in
* flip lock file to pnpm
* nuke yarn.lock
* kirby no longer has yarn
* flip goreleaser to v4, was using node12.
* snapshots don't have tags
* Update README.md
* pin offline dockerfile
* Delete .yarnrc.yml
* Delete web/.yarn directory
* fix: update scripts
---------
Co-authored-by: ze0s <ze0s@riseup.net>
* refactor: move to tanstack/react-query and fix cache
* refactor(releases): move to tanstack/react-query
* refactor(logs): move to tanstack/react-query
* refactor(base): move to tanstack/react-query
* refactor(base): move to tanstack/react-query
* refactor(dashboard): move to tanstack/react-query
* refactor(auth): move to tanstack/react-query
* refactor(filters): move to tanstack/react-query
* refactor(settings): move to tanstack/react-query
* chore(pkg): add tanstack/react-query
* refactor(filters): move to tanstack/react-query
* refactor: move to tanstack/react-query
* refactor: invalidate queries
* chore(pkg): remove old react-query
* chore: change imports to root prefixes
* build: remove needs web from test
* set enableReinitialize to true to fix formik caching issues
* fix all property for apiKeys const
* fix toast when enabling/disabling feed
---------
Co-authored-by: martylukyy <35452459+martylukyy@users.noreply.github.com>
* fix(prs): don't push if not sourced from autobrr org
* when literals are strings, and strings are nothing.
* some say the beginning is like the end.
* Update release.yml?
* Update release.yml
* 🍺
* removed react-app type instead use vite.
* removed index.html from public since vite uses it from root: read more: https://vitejs.dev/guide/#index-html-and-project-root
* yarn.lock update.
* added vite config file. With commented rollUp option if we want the build to be called build but using default stuff for now.
* updated tsconfig to use vite and include vite.config.ts
* changed package json build commands to use vite.
* for some reason there is an error in vite config when we put project as tsconfig.json.
* build.go updated to use the new dist folder.
* refactored as well updated to use dist and web.AssetHandler again.
* Fixed issue forcing the frontend to be reloaded for all routes to work if logged in fresh without reloading it will always go back to dashboard.
* updated it to use the new function; need to fix the Index for baseUrl I believe, if enabled it works except logs route will crash due to cors.
* refactored and default port to 7474, don't think we need the rollUpOptions.
* added tmp/ to ignore .
* init air.toml, for dev hot reloading both app and backend. https://github.com/cosmtrek/air run it using air but make sure it's in PATH
* updated the start command to build and watch for changes, works great with air.
* revert
* added proxy for vite config. To be used for dev.
* refactor: I think this should fix it, when logs route etc getting accessed usually it throws error but by getting rid of the catch-all it should work as intended, since web.RegisterHandler(r) will catch the unmatched ones.
* fix: baseurl and build
* fix(build): docker ignore !web/dist
* fix(build): dockerignore add exclusions
* docs: update README.md
* build: update postcss config
---------
Co-authored-by: KaiserBh <kaiserbh@proton.me>
Co-authored-by: ze0s <ze0s@riseup.net>