autobrr/web
soup 2bd1a68a94
feat(feeds): add force run (#1243)
* feat(feeds): add force run

* fix: simplify ForceRun

* add confirmation modal

* handle errors by using the test func

* require user input to run

* make sure to reschedule next job after forcerun

* refactor modal centering with grid

* refactor: Simplify startJob and forceRun logic

- Refactor `startJob` to accept a `runImmediately` flag. This flag controls whether the job should be run immediately or scheduled for later. This change simplifies the `ForceRun` function by allowing it to call `startJob` with `runImmediately` set to `true`.

- Remove redundant checks in `ForceRun` related to feed type. These checks are handled in `startJob`.

BREAKING CHANGE: The `startJob` function now requires a second argument, `runImmediately`. This change affects all calls to `startJob`.

* fix(web) Invalidate queries after forceRun

* refactor(feeds): init and test run

---------

Co-authored-by: ze0s <43699394+zze0s@users.noreply.github.com>
2023-11-18 21:54:53 +01:00
..
dist refactor(web): migrate create-react-app to vite (#823) 2023-04-10 14:28:24 +02:00
public fix(web): Inter font (#1133) 2023-09-22 18:37:56 +02:00
src feat(feeds): add force run (#1243) 2023-11-18 21:54:53 +01:00
.eslintrc.js enhancement(web): ui overhaul (#1155) 2023-11-18 14:46:16 +01:00
.gitignore refactor(web): migrate create-react-app to vite (#823) 2023-04-10 14:28:24 +02:00
build.go fix(web): PWA asset and route handling (#898) 2023-05-02 19:06:53 +02:00
index.html fix(web): Inter font (#1133) 2023-09-22 18:37:56 +02:00
package.json build(deps): bump the npm group in /web with 18 updates (#1266) 2023-11-18 16:31:11 +01:00
pnpm-lock.yaml build(deps): bump the npm group in /web with 18 updates (#1266) 2023-11-18 16:31:11 +01:00
postcss.config.js enhancement(web): improve font loading performance and avoid page reflow (#1087) 2023-09-09 23:07:00 +02:00
README.md chore(build): change to pnpm from yarn (#919) 2023-05-08 20:28:43 +02:00
tailwind.config.js enhancement(web): ui overhaul (#1155) 2023-11-18 14:46:16 +01:00
tsconfig.json chore(web): relocations and cleanups (#957) 2023-07-21 17:33:51 +02:00
vite.config.ts fix(web): Inter font (#1133) 2023-09-22 18:37:56 +02:00

web

This project uses React built with Vite.

Available Scripts

In the project directory, you can run:

pnpm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

pnpm run build

Builds the app for production to the dist folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Learn More

To learn React, check out the React documentation.