133 Commits

Author SHA1 Message Date
Nico Miguelino
6705477e5b chore: update Ruff linting rules formatting (#2570) 2025-11-12 10:21:49 -08:00
Nico Miguelino
11589669da feat: use Bootstrap 5's built-in switches (#2559) 2025-11-04 17:39:58 -08:00
dependabot[bot]
26d9a711c9 chore(deps-dev): bump ruff from 0.8.6 to 0.14.3 (#2556)
* chore(deps-dev): bump ruff from 0.8.6 to 0.14.3

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.8.6 to 0.14.3.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](https://github.com/astral-sh/ruff/compare/0.8.6...0.14.3)

---
updated-dependencies:
- dependency-name: ruff
  dependency-version: 0.14.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: resolve Ruff linter warnings for shadowing Python builtins

Rename lambda parameters to avoid shadowing Python builtins:
- Change `input` to `file_input` in test file upload lambdas
- Change `id` to `asset_id` in viewer commands

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nicomiguelino <nicomiguelino2014@gmail.com>
2025-11-04 08:34:35 -08:00
Nico Miguelino
992e33f1e6 fix(viewer): make asset navigation instantaneous (#2539) 2025-10-22 12:55:42 -07:00
dependabot[bot]
84e05e2f45 chore(deps): bump the npm group across 1 directory with 24 updates (#2448)
* chore(deps): bump the npm group across 1 directory with 24 updates

Bumps the npm group with 23 updates in the / directory:

| Package | From | To |
| --- | --- | --- |
| [@reduxjs/toolkit](https://github.com/reduxjs/redux-toolkit) | `2.5.1` | `2.8.2` |
| [bootstrap](https://github.com/twbs/bootstrap) | `4.6.2` | `5.3.7` |
| [react](https://github.com/facebook/react/tree/HEAD/packages/react) | `19.0.0` | `19.1.1` |
| [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) | `19.1.8` | `19.1.10` |
| [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) | `19.0.0` | `19.1.1` |
| [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) | `19.1.6` | `19.1.7` |
| [react-icons](https://github.com/react-icons/react-icons) | `5.4.0` | `5.5.0` |
| [react-router](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router) | `7.7.1` | `7.8.0` |
| [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) | `7.7.1` | `7.8.0` |
| [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) | `7.27.7` | `7.28.3` |
| [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) | `7.26.7` | `7.28.3` |
| [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) | `6.6.4` | `6.7.0` |
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) | `8.39.0` | `8.39.1` |
| [eslint](https://github.com/eslint/eslint) | `8.57.1` | `9.33.0` |
| [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) | `7.37.4` | `7.37.5` |
| [jest](https://github.com/jestjs/jest/tree/HEAD/packages/jest) | `30.0.3` | `30.0.5` |
| [mini-css-extract-plugin](https://github.com/webpack-contrib/mini-css-extract-plugin) | `2.9.2` | `2.9.4` |
| [msw](https://github.com/mswjs/msw) | `2.10.2` | `2.10.5` |
| [sass](https://github.com/sass/dart-sass) | `1.83.4` | `1.90.0` |
| [sass-loader](https://github.com/webpack-contrib/sass-loader) | `16.0.4` | `16.0.5` |
| [ts-jest](https://github.com/kulshekhar/ts-jest) | `29.4.0` | `29.4.1` |
| [webpack](https://github.com/webpack/webpack) | `5.97.1` | `5.101.2` |
| [webpack-cli](https://github.com/webpack/webpack-cli) | `5.1.4` | `6.0.1` |



Updates `@reduxjs/toolkit` from 2.5.1 to 2.8.2
- [Release notes](https://github.com/reduxjs/redux-toolkit/releases)
- [Commits](https://github.com/reduxjs/redux-toolkit/compare/v2.5.1...v2.8.2)

Updates `bootstrap` from 4.6.2 to 5.3.7
- [Release notes](https://github.com/twbs/bootstrap/releases)
- [Commits](https://github.com/twbs/bootstrap/compare/v4.6.2...v5.3.7)

Updates `react` from 19.0.0 to 19.1.1
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v19.1.1/packages/react)

Updates `@types/react` from 19.1.8 to 19.1.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `react-dom` from 19.0.0 to 19.1.1
- [Release notes](https://github.com/facebook/react/releases)
- [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/react/commits/v19.1.1/packages/react-dom)

Updates `@types/react-dom` from 19.1.6 to 19.1.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `react-icons` from 5.4.0 to 5.5.0
- [Release notes](https://github.com/react-icons/react-icons/releases)
- [Commits](https://github.com/react-icons/react-icons/compare/v5.4.0...v5.5.0)

Updates `react-router` from 7.7.1 to 7.8.0
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router@7.8.0/packages/react-router)

Updates `react-router-dom` from 7.7.1 to 7.8.0
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@7.8.0/packages/react-router-dom)

Updates `@babel/core` from 7.27.7 to 7.28.3
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.28.3/packages/babel-core)

Updates `@babel/preset-env` from 7.26.7 to 7.28.3
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.28.3/packages/babel-preset-env)

Updates `@testing-library/jest-dom` from 6.6.4 to 6.7.0
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v6.6.4...v6.7.0)

Updates `@types/react` from 19.1.8 to 19.1.10
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

Updates `@types/react-dom` from 19.1.6 to 19.1.7
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

Updates `@typescript-eslint/eslint-plugin` from 8.39.0 to 8.39.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.39.1/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.39.0 to 8.39.1
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.39.1/packages/parser)

Updates `eslint` from 8.57.1 to 9.33.0
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.57.1...v9.33.0)

Updates `eslint-plugin-react` from 7.37.4 to 7.37.5
- [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases)
- [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.37.4...v7.37.5)

Updates `jest` from 30.0.3 to 30.0.5
- [Release notes](https://github.com/jestjs/jest/releases)
- [Changelog](https://github.com/jestjs/jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jestjs/jest/commits/v30.0.5/packages/jest)

Updates `mini-css-extract-plugin` from 2.9.2 to 2.9.4
- [Release notes](https://github.com/webpack-contrib/mini-css-extract-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/mini-css-extract-plugin/compare/v2.9.2...v2.9.4)

Updates `msw` from 2.10.2 to 2.10.5
- [Release notes](https://github.com/mswjs/msw/releases)
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md)
- [Commits](https://github.com/mswjs/msw/compare/v2.10.2...v2.10.5)

Updates `sass` from 1.83.4 to 1.90.0
- [Release notes](https://github.com/sass/dart-sass/releases)
- [Changelog](https://github.com/sass/dart-sass/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sass/dart-sass/compare/1.83.4...1.90.0)

Updates `sass-loader` from 16.0.4 to 16.0.5
- [Release notes](https://github.com/webpack-contrib/sass-loader/releases)
- [Changelog](https://github.com/webpack-contrib/sass-loader/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/sass-loader/compare/v16.0.4...v16.0.5)

Updates `ts-jest` from 29.4.0 to 29.4.1
- [Release notes](https://github.com/kulshekhar/ts-jest/releases)
- [Changelog](https://github.com/kulshekhar/ts-jest/blob/main/CHANGELOG.md)
- [Commits](https://github.com/kulshekhar/ts-jest/compare/v29.4.0...v29.4.1)

Updates `webpack` from 5.97.1 to 5.101.2
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.97.1...v5.101.2)

Updates `webpack-cli` from 5.1.4 to 6.0.1
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@5.1.4...webpack-cli@6.0.1)

---
updated-dependencies:
- dependency-name: "@reduxjs/toolkit"
  dependency-version: 2.8.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: bootstrap
  dependency-version: 5.3.7
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: react
  dependency-version: 19.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@types/react"
  dependency-version: 19.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: react-dom
  dependency-version: 19.1.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@types/react-dom"
  dependency-version: 19.1.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: react-icons
  dependency-version: 5.5.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: react-router
  dependency-version: 7.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: react-router-dom
  dependency-version: 7.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@babel/core"
  dependency-version: 7.28.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@babel/preset-env"
  dependency-version: 7.28.3
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@testing-library/jest-dom"
  dependency-version: 6.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: "@types/react"
  dependency-version: 19.1.10
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: "@types/react-dom"
  dependency-version: 19.1.7
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.39.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.39.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: eslint
  dependency-version: 9.33.0
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
- dependency-name: eslint-plugin-react
  dependency-version: 7.37.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: jest
  dependency-version: 30.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: mini-css-extract-plugin
  dependency-version: 2.9.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: msw
  dependency-version: 2.10.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: sass
  dependency-version: 1.90.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: sass-loader
  dependency-version: 16.0.5
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: ts-jest
  dependency-version: 29.4.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
  dependency-group: npm
- dependency-name: webpack
  dependency-version: 5.101.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: npm
- dependency-name: webpack-cli
  dependency-version: 6.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
  dependency-group: npm
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: resolve build errors

* fix: remove deprecated Bootstrap class names

* fix: get rid of underline in navbar links

* fix: homepage styles

* chore: refactor `_tooltip.scss` by nesting the existing styles

* fix: sort out the layout of `AddAssetModal`

* fix: make the progress bar yellow

* fix: sort out the layout of `EditAssetModal`

* fix: homepage and app-level themes

* fix: layout issues in the settings page

* test: fix Python integration tests

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: nicomiguelino <nicomiguelino2014@gmail.com>
2025-08-15 20:49:56 -07:00
Nico Miguelino
51e4511bba feat: migrate to React (#2265) 2025-05-26 21:04:19 -07:00
Emmanuel Ferdman
7423fb06c7 Resolve warnings of testing library
Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
2025-05-12 03:33:37 -07:00
Nico Miguelino
c94734deda refactor: split viewer.py into multiple files (#2271) 2025-04-27 09:44:40 -07:00
Nico Miguelino
490051585f Replace flake8 with ruff (#2092) 2025-01-14 06:47:52 -08:00
Nico Miguelino
188e3993d0 Migrate web server back-end from Flask to Django (#2040) 2024-10-16 14:07:45 -07:00
Nico Miguelino
a4ed15f2e9 Refactor non-API routes into separate files. (#2082) 2024-10-07 10:08:03 -07:00
Nico Miguelino
37f4d74744 Add support for x86 devices (#2048) 2024-09-19 09:24:23 -07:00
Nico Miguelino
71f4b5777f tests: use HTTPS urls in tests (#2068) 2024-09-12 13:53:40 -07:00
Nico Miguelino
8d74226522 chore: rename tests to anticipate merging of experimental changes (#2054) 2024-09-10 09:38:08 -07:00
Nico Miguelino
a52d0b15e5 Add new tests for updates_test.py (#2050)
* tests: remove obsolete update-related test cases; add new tests
* tests: make `updates_test` parametrized
2024-09-03 09:51:39 -07:00
Nico Miguelino
68d908fb8b tests: replaces nose attributes with unittest's skip (#2045) 2024-09-02 10:33:08 -07:00
Nico Miguelino
99233e97d1 tests: use time-machine in mocking the current date and time (#2044) 2024-08-31 11:35:42 -07:00
Nico Miguelino
dff1d26955 Adopt a singleton pattern for the media player instance (#2039)
* chore: adopt a singleton pattern for the media player instance
* chore: remove file-level/module-level mocks in tests
2024-08-28 07:16:26 -07:00
Nico Miguelino
f935b95115 Enables Flake8 E501 (#2019) 2024-08-13 15:48:33 -07:00
Nico Miguelino
5474ff9143 Adds error-handling when getting IP addresses from within the settings page (#2014) 2024-08-08 06:53:26 -07:00
Nico Miguelino
56fad54d96 Modifies audio output based on app settings and Pi version (#2002)
* fix: modify audio output based on app settings and pi version
* chore: refactore code for audio output
* tests: fix failing unit tests
2024-07-31 17:27:32 -07:00
Nico Miguelino
99a38d69ee Upgrade containers to use Bookworm (#1980)
* upgrade containers from using Buster to Bookworm
* replace OMX with VLC
* update the Qt version, webview hash, and the webview download URL
* enable FKMS for Raspberry Pi 1, 2, 3 and 4 devices
2024-07-22 14:26:01 -07:00
Nico Miguelino
9bc1bd30f0 Renames Screenly references to Anthias (#1946) 2024-07-03 11:00:58 -07:00
Nico Miguelino
6caf5aab73 chore: clean up unusued wifi-reset code (#1948) 2024-06-29 09:56:54 -07:00
Nico Miguelino
87e2d493ce Adds Python linting in CI (#1939) 2024-06-21 09:11:14 -07:00
Nico Miguelino
0fd729b019 Refactor all Celery tasks to a separate file (#1938) 2024-06-20 12:40:27 -07:00
nicomiguelino
5a82c77cf7 chore: cleanup code related to USB assets 2024-06-18 15:49:13 -07:00
nicomiguelino
7989920995 chore: clean up unused images 2024-06-17 15:23:37 -07:00
nicomiguelino
618be07f99 Write unit test cases for generating and recovering backup files. 2023-04-12 17:39:58 -07:00
nicomiguelino
466ddfaa56 Write a unit test for create_backup. 🧪 2023-04-12 10:26:21 -07:00
nicomiguelino
bf938cc669 Skip an update test case.
- Updates-related test cases seems to be very unstable.
2023-03-01 08:45:32 -08:00
nicomiguelino
ffb6cb0c82 Fix unicode/byte issue in viewer unit tests. 2023-02-24 11:18:03 -08:00
nicomiguelino
00d122314a Fix affected unit tests. 2023-02-22 11:39:45 -08:00
nicomiguelino
3e92a16cc6 Temporarily skip selected tests in CI. 2023-02-21 20:08:33 -08:00
nicomiguelino
79534040f6 Fix some failing unit test cases. Enforce unicode strings. 2023-02-21 15:02:54 -08:00
nicomiguelino
3d1e64a0f9 Apply Stage 2 changes to .py files using futurize
- Changes are not yet tested thoroughly.
2023-02-16 22:26:31 -08:00
nicomiguelino
c8869fa9f8 Apply Stage 1 changes to .py files using futurize. 2023-02-16 22:08:56 -08:00
nicomiguelino
cb85eb11f4 Skip an unstable test case. 2023-02-08 12:29:13 -08:00
nicomiguelino
ec14be1512 Make use of side effects when mocking. 2023-01-16 18:26:21 -08:00
nicomiguelino
edca303a1d Fix the test case by introducing new mock objects/functions. 2023-01-16 18:08:58 -08:00
Nico Miguelino
0a0b17c74d Merge branch 'Screenly:master' into 1626-fix-tests 2023-01-16 09:53:00 -08:00
nicomiguelino
20dc5e7d63 Remove unnecessary function definitions. 2023-01-13 11:16:34 -08:00
nicomiguelino
b92bfd4572 Clean up outdated test cases. 2023-01-13 11:05:07 -08:00
nicomiguelino
676f5f0081 "Uncomment" another test case from test_updates.py. 2023-01-13 10:35:11 -08:00
nicomiguelino
de0d3dfb26 "Uncomment" a test case from updates_test.py. 2023-01-12 10:19:29 -08:00
Nico Miguelino
c2fafc79ee Merge branch 'Screenly:master' into 1626-fix-tests 2023-01-12 09:42:39 -08:00
Emyll Almonte
3f75b06ef9 Update settings_test.py 2022-11-23 08:53:58 -05:00
Emyll Almonte
e5e32e6229 Update settings_test.py 2022-11-22 23:11:47 -05:00
Emyll Almonte
4464257669 Update settings_test.py 2022-11-22 16:14:21 -05:00
Nico Miguelino
f062317898 Merge branch 'Screenly:master' into 1626-fix-tests 2022-11-16 17:20:06 -08:00