Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alarm Modes #1904

Merged
merged 46 commits into from
Oct 30, 2023
Merged

Add Alarm Modes #1904

merged 46 commits into from
Oct 30, 2023

Conversation

Pierre-Gilles
Copy link
Contributor

@Pierre-Gilles Pierre-Gilles commented Sep 29, 2023

Pull Request check-list

To ensure your Pull Request can be accepted as fast as possible, make sure to review and check all of these items:

  • If your changes affects code, did your write the tests?
  • Are tests passing? (npm test on both front/server)
  • Is the linter passing? (npm run eslint on both front/server)
  • Did you run prettier? (npm run prettier on both front/server)
  • If you are adding a new features/services, did you run integration comparator? (npm run compare-translations on front)
  • Did you test this pull request in real life? With real devices? If this development is a big feature or a new service, we recommend that you provide a Docker image to the community (french forum/english forum) for testing before merging.
  • If your changes modify the API (REST or Node.js), did you modify the API documentation? (Documentation is based on comments in code)
  • If you are adding a new features/services which needs explanation, did you modify the user documentation? See the GitHub repo and the website.
  • Did you add fake requests data for the demo mode (front/src/config/demo.js) so that the demo website is working without a backend? (if needed) See https://demo.gladysassistant.com.

Description of change

Screenshot 2023-10-23 at 19 18 00

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Oct 9, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 617e3b7
Status: ✅  Deploy successful!
Preview URL: https://ccd453eb.gladys-plus.pages.dev
Branch Preview URL: https://alarm-mode.gladys-plus.pages.dev

View logs

@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
server/api/controllers/house.controller.js 100.00% <100.00%> (ø)
server/api/controllers/session.controller.js 100.00% <100.00%> (ø)
server/api/middlewares/errorMiddleware.js 91.66% <100.00%> (+8.33%) ⬆️
server/api/middlewares/rateLimitMiddleware.js 100.00% <ø> (ø)
server/api/routes.js 98.03% <ø> (ø)
server/api/setupRoutes.js 100.00% <100.00%> (ø)
server/api/websockets/index.js 79.36% <100.00%> (+21.03%) ⬆️
server/lib/house/house.arm.js 100.00% <100.00%> (ø)
server/lib/house/house.disarm.js 100.00% <100.00%> (ø)
server/lib/house/house.disarmWithCode.js 100.00% <100.00%> (ø)
... and 18 more

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@Pierre-Gilles Pierre-Gilles marked this pull request as ready for review October 23, 2023 17:17
@relativeci
Copy link

relativeci bot commented Oct 23, 2023

Job #1968: Bundle Size — 8.98MiB (+0.77%).

617e3b7(current) vs 45c2f07 master#1964(baseline)

Warning

Bundle contains 3 duplicate packages – View duplicate packages

Bundle metrics  Change 8 changes Regression 4 regressions
                 Current
Job #1968
     Baseline
Job #1964
Regression  Initial JS 4.84MiB(+0.81%) 4.8MiB
Regression  Initial CSS 301.85KiB(+0.06%) 301.67KiB
Change  Cache Invalidation 70.38% 53.7%
Change  Chunks 51(+6.25%) 48
Change  Assets 157(+1.95%) 154
Change  Modules 1395(+0.87%) 1383
Regression  Duplicate Modules 20(+5.26%) 19
Regression  Duplicate Code 0.82%(+18.84%) 0.69%
No change  Packages 124 124
No change  Duplicate Packages 3 3
Bundle size by type  Change 3 changes Regression 3 regressions
                 Current
Job #1968
     Baseline
Job #1964
Regression  JS 6.49MiB (+1.05%) 6.42MiB
Not changed  IMG 2.06MiB 2.06MiB
Regression  CSS 318.08KiB (+0.24%) 317.32KiB
Not changed  Fonts 93.55KiB 93.55KiB
Regression  Other 16.06KiB (+2.56%) 15.66KiB
Not changed  HTML 13.58KiB 13.58KiB

View job #1968 reportView alarm-mode branch activity

Copy link
Contributor

@callemand callemand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This banner is pretty weird. I think we should add a box around

Screenshot 2023-10-24 at 10 18 25

front/src/actions/house.js Outdated Show resolved Hide resolved
@callemand
Copy link
Contributor

On "fullscreen=force" mode, why the "Mode Tablette" appear. I think we cannot make modification in "fullscreen=force", no ?
Screenshot 2023-10-24 at 10 23 18

@callemand
Copy link
Contributor

When I click on all button, My alarm is activated and desactived in the same time

Screen.Recording.2023-10-24.at.10.28.16.mov

@callemand
Copy link
Contributor

Missing the "0", I cannot use a password like "1909"
Screenshot 2023-10-24 at 10 30 45

@Pierre-Gilles
Copy link
Contributor Author

@callemand Thanks for the review! 🙏

I fixed the console.log, the zero missing on the keypad and added a box around the tablet mode configuration.

For this:

Screenshot 2023-10-26 at 10 02 09

It's completely normal, the "full color" state is on when the button is clickable, and if you are partially armed, you can either "fully arm", or "disarm".

On "fullscreen=force" mode, why the "Mode Tablette" appear. I think we cannot make modification in "fullscreen=force", no ?

There is no link between the fullscreen=force and tablet mode. You need the tablet mode button to be visible to configure the house the tablet is currently in. You can have a tablet not in full screen=force & a fullscreen=force not in tablet :)

Copy link
Contributor

@cicoub13 cicoub13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some typos in FR

front/src/config/i18n/fr.json Outdated Show resolved Hide resolved
front/src/config/i18n/fr.json Outdated Show resolved Hide resolved
front/src/config/i18n/fr.json Outdated Show resolved Hide resolved
@Pierre-Gilles Pierre-Gilles merged commit 797d09c into master Oct 30, 2023
12 checks passed
@Pierre-Gilles Pierre-Gilles deleted the alarm-mode branch October 30, 2023 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants