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

Global code review #9

Open
wants to merge 117 commits into
base: reviewed
Choose a base branch
from
Open

Global code review #9

wants to merge 117 commits into from

Commits on Apr 8, 2024

  1. refactor: change repository (#1)

    * feat: bring interface from another repo
    
    * feat: bring code for the ESP32
    
    * feat: add graph in the readme
    
    * feat: recreate database
    
    * feat: bring user login from another repo
    Rignchen committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    be1792d View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2024

  1. feat: implement login (#5)

    * feat: display averages for the last two months, refactor the way data is retrieved and placed in the pie chart
    
    * feat: token added to link for API data, change to display of month element
    
    * feat: link login element with login backend
    
    * feat: link login element with login backend
    
    * feat: the token in sampleContext takes the value from the user who logged in
    
    * feat: store the token in localstorage
    
    * fix: fix small errors to launch npm run build
    
    * feat: added login functionality, created a function to get tokens from localstorage
    
    * style: change input form design
    
    * feat: redirect the user on login if the token is wrong
    
    * feat: create a function that checks for 401 errors
    
    * refactor: the method of collecting data and putting it into the monthly chart
    
    * feat: add log out button
    jordyBSK committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    70f6f43 View commit details
    Browse the repository at this point in the history
  2. feat: launch everything from the same docker compose (#2)

    * feat: group docker compose together
    
    * feat: move docker compose to root
    
    * fix: rename secret example file
    
    the name it had before made esphome think it was an esp32 config file
    
    * refactor: rename login_login to login
    
    login_login is a pleonasme, it's useless to say login twice
    
    * feat: Launch php login backend with the docker
    
    * refactor: move sql file to root
    
    it's the only required file for the database, therefore it doesn't need to be in another directory
    
    * refactor: rewrite Readme.md
    
    * feat: launch react build with the web server
    
    * feat: isolate the sub domain from the domain
    before if you were making a request to anything.domain.com, the domain would be domain.com. Now the domain will be anything.domain.com
    it means that now everything starting with login.memoires-info.com will be run as php code instead of being ignored
    the reason it worked before was because the uri contained "login."
    
    * feat: access everythign from the same web server
    
    * feat: update readme
    
    * feat: change web server port to be the default one
    User now don't need to specify the port when accessing the web server
    
    * refactor: move sql script to it's own directory
    now postgres data won't apear in root
    
    * refactor: rename assets folder to be hidden
    
    * refactor: move postgrest config in another file
    
    * feat: add a way to get postgrest error in php login
    
    * fix: update api test file
    
    * refactor: shorten gitignore file
    
    * feat: automatically create the db
    
    * feat: implement login (#5)
    
    * feat: display averages for the last two months, refactor the way data is retrieved and placed in the pie chart
    
    * feat: token added to link for API data, change to display of month element
    
    * feat: link login element with login backend
    
    * feat: link login element with login backend
    
    * feat: the token in sampleContext takes the value from the user who logged in
    
    * feat: store the token in localstorage
    
    * fix: fix small errors to launch npm run build
    
    * feat: added login functionality, created a function to get tokens from localstorage
    
    * style: change input form design
    
    * feat: redirect the user on login if the token is wrong
    
    * feat: create a function that checks for 401 errors
    
    * refactor: the method of collecting data and putting it into the monthly chart
    
    * feat: add log out button
    
    * fix: add link to esphome github page
    
    ---------
    
    Co-authored-by: jordyBSK <125542402+jordyBSK@users.noreply.github.com>
    Rignchen and jordyBSK committed Apr 12, 2024
    Configuration menu
    Copy the full SHA
    9042cb9 View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. Fix: fix a few issues on the backend (#6)

    fix: fix 404 when trying to access router path
    
    fix: rename ngnix conf file
    
    fix: add font back in esp32 config
    
    fix: post request of type json now get decoded
    
    feat: get esp jwt token from the php
    
    fix: "sequence user_id_seq not exist" when creating database
    
    fix: give nginx it's real name back
    
    I'll probably write it wrong next time I have to write it ^^"
    
    fix: add lockfile to ensure plugin's hash match
    
    feat: make production docker compose
    
    fix: take pg password from .env
    
    fix: put interface in the right directory and remove adminer
    
    fix: rename add-esp.php to esp.php cause ngnix fail with the -
    
    refactor: change docker images to take images from last feature version at this date
    
    fix: copy .env in the php container
    
    fix: handle web socker for esphome
    
    esphome needs web sockets to work, without them it just freezes right before the compilation
    
    dev: script to reset the state of the mounted volumes\n\n this script is ignored by the gitignore
    
    feat: specify default user in readme
    
    refactor: change the url to use Subdirectory instead of subdomain
    
    fix: repare sed at build of prod
    
    fix: postgrest subdirectory now redirect to postg-rest container
    
    fix: restore php and postgrest url call
    
    fix: 404 when sending data from esp to database
    
    refactor: group all .env file in a single one
    
    fix: update readme
    
    fix: update readme
    
    fix: make readme easier to understand
    
    fix: remove hard coded env variable from Dockerfile.Postgres
    Rignchen committed May 31, 2024
    Configuration menu
    Copy the full SHA
    308e75f View commit details
    Browse the repository at this point in the history

Commits on Jun 3, 2024

  1. feat: plan canvas (#8)

    * feat: add new plan card
    
    * feat: differentiate the different ip's in the database
    
    * feat: add a new room in database
    
    * feat: dislay name of room in api
    
    * feat: sorted all data by ip
    
    * feat: put the data in cardPlanElement
    
    * feat:change button for selected month, change function add room, change plan style
    
    * feat: add floor plan elements with sensors
    
    * feat: add a circle to the svg with the esp coordinates in the database
    jordyBSK committed Jun 3, 2024
    Configuration menu
    Copy the full SHA
    7752bef View commit details
    Browse the repository at this point in the history

Commits on Jun 7, 2024

  1. feat: get the ip address when averaging the values with the avg_date …

    …function (#21)
    
    * !feat: get ip in the sql average function ouput
    
    * feat: get count of entries in average function output
    
    now that data are separated from the other, some may accidentaly be more important than other ones when trying to get the global average, with the count as an information it is possible to weight the outputs to ensure none of them are more important
    Rignchen committed Jun 7, 2024
    Configuration menu
    Copy the full SHA
    d85de2d View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. feat: setup a sqitch to handle migrations (#23)

    feat: initialize sqitch
    
    feat: create schema and roles for the postgrest api
    
    feat: create roles to distinguish users esp & login
    
    feat: Add table to store data
    
    feat: add a table to store user and passwords
    
    fix: test migrations
    
    refactor: remove old useless stuff
    
    feat: launch migration on docker start
    
    fix: ensure container wait enougth before starting
    Rignchen committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    2b4b46f View commit details
    Browse the repository at this point in the history
  2. fix: readme and use latest docker images (#24)

    refactor: change docker image versions
    
    style: use latex instead of html to display color\n\nhtml isn't properly render on github while latex is\nthis line is here to show the user what the line with the ip address looks like on the esphone, the color matches the ones on esphome
    
    fix: ask to change the ip in secret.yaml
    
    refactor: use post request to send data to backend with curl
    
    dev: make gitignore more precise
    Rignchen committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    a5214ed View commit details
    Browse the repository at this point in the history
  3. refactor: reposition php code in the folder (#25)

    refactor: rename login/ -> php/\n\ncalling the folder php is more representative of what there is inside
    
    refactor: move files from public folder to private
    
    refactor: move Dockerfile in their own folder
    Rignchen committed Jun 10, 2024
    Configuration menu
    Copy the full SHA
    3148fca View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. fix: install php stan (#26)

    feat: install php stan to lint code
    
    fix: class NoReturn not exist
    
    fix: no value in iterrable array
    
    dev: set paths in phpstan config file
    
    Before you had to set it by hand every time you wanted to lint the code
    Rignchen committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    b983d79 View commit details
    Browse the repository at this point in the history

Commits on Jun 18, 2024

  1. Interface next js (#28)

    * revert: remove interface
    
    * feat: change interface with nextjs
    jordyBSK committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    6283251 View commit details
    Browse the repository at this point in the history
  2. Login (#29)

    * feat: implement login
    
    * fix: dashboard redirection
    jordyBSK committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    ad260bc View commit details
    Browse the repository at this point in the history
  3. Get data.ts files (#30)

    * feat: get lastdata from database
    
    * fix: function if in data.ts
    jordyBSK committed Jun 18, 2024
    Configuration menu
    Copy the full SHA
    16af540 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d94906a View commit details
    Browse the repository at this point in the history

Commits on Jun 19, 2024

  1. feat: implement logout (#32)

    jordyBSK committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    e095c1b View commit details
    Browse the repository at this point in the history
  2. add Esp table (#33)

    * feat: create table esp
    
    * feat: revert table esp
    
    * feat: verify table esp
    jordyBSK committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    32d7886 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5fd26f4 View commit details
    Browse the repository at this point in the history
  4. sort data by room ip (#35)

    * feat: avgData interface
    
    * feat: change type of data in data.ts
    
    * feat: change ip adress in EspLinksElement.tsx
    
    * feat: implement data in room chart
    
    * feat: change date format in chart
    
    * feat: add ip parameter in api ur
    
    * feat: implement sort data in page with esp ip
    jordyBSK committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    f12bde6 View commit details
    Browse the repository at this point in the history
  5. Revert "sort data by room ip (#35)" (#36)

    This reverts commit f12bde6.
    jordyBSK committed Jun 19, 2024
    Configuration menu
    Copy the full SHA
    48db262 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    00d6c9e View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Plan data (#38)

    * feat: add ip parameter in useLastData
    
    * refactor: refactor code with prettier
    
    * refactor: change esp ip in Plan.tsx
    
    * feat: add espMap.tsx components
    
    * feat: display last data on map point in plan
    
    * refactor: create AddPointElement.tsx to create new point in map
    
    * refactor: refactor code with prettier
    jordyBSK committed Jun 20, 2024
    Configuration menu
    Copy the full SHA
    6d4434c View commit details
    Browse the repository at this point in the history

Commits on Jun 21, 2024

  1. feat: added dynamic data in dashboard and esp pages (#39)

    * feat: added dynamic data in dashboard and esp pages
    
    * fix: fixed function in map
    Alex-zReeZ committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    38e1aec View commit details
    Browse the repository at this point in the history
  2. Date range (#40)

    * feat: retrieves and displays date in datepicker
    
    * refactor: refactor and remove unused import
    
    * feart: set the default date to the current month
    
    * feat: add date parameter in useFetchData function
    
    * feat: implement date range
    
    * refactor: refactor code
    jordyBSK committed Jun 21, 2024
    Configuration menu
    Copy the full SHA
    f3ed78b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8ec2912 View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    2be57e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4a1417d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3db6d23 View commit details
    Browse the repository at this point in the history
  4. refactor: reformated file

    Alex-zReeZ committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    0d16c0f View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. refactor: added new Ip adresse, rounded data, moved getColor file and…

    … changed build output dir (#45)
    
    * refactor: added new Ip adresse
    
    * refactor: removed output and added distdir to out
    
    * refactor: reformated file
    
    * refactor: rounded data to two decimals
    
    * refactor: changed test Ip to add new one
    
    * refactor: removed function param to use react-router params
    
    * refactor: moved file to lib folder
    Alex-zReeZ committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    8d04934 View commit details
    Browse the repository at this point in the history
  2. refactor: Rounded data (#42)

    * refactor: moved file position
    
    * fix: fixed import errors
    
    * refactor: rounded data to two decimal
    
    * refactor: reformated files
    
    * refactor: translated comment in english
    
    ---------
    
    Co-authored-by: jordyBSK <125542402+jordyBSK@users.noreply.github.com>
    Alex-zReeZ and jordyBSK committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    4197a28 View commit details
    Browse the repository at this point in the history
  3. fix: tofixed temperature in espmap

    jordybsk committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    16a782f View commit details
    Browse the repository at this point in the history
  4. feat: added Workflow to check the format and lint (#46)

    * refactor: added new Ip adresse
    
    * refactor: removed output and added distdir to out
    
    * refactor: reformated file
    
    * feat: created workflow file to check if the code is correctly formated
    Alex-zReeZ committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    36315e8 View commit details
    Browse the repository at this point in the history
  5. refactor: resolve conflit

    jordybsk committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    1619744 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d150924 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    fbf86e5 View commit details
    Browse the repository at this point in the history
  8. feat: serve interface using a nodejs server (#48)

    fix: allow program to compile by fixing syntaxe error
    
    feat: build the interface on docker start
    
    feat: start nodejs server
    
    feat: serve node server through ngnix
    Rignchen committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    27f2fc5 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b913fde View commit details
    Browse the repository at this point in the history
  10. fix: logout redirection (#49)

    refactor: reformat code
    
    fix: redirects the user to the login from any page if there is no token
    jordyBSK committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    ccd1027 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    226b0a3 View commit details
    Browse the repository at this point in the history
  12. refactor: changed workflow execution type (#47)

    * refactor: added new Ip adresse
    
    * refactor: removed output and added distdir to out
    
    * refactor: reformated file
    
    * feat: created workflow file to check if the code is correctly formated
    
    * refactor: moved .github directory to root
    
    * fix: added change directory to interface
    
    * fix: changed on which branch in execute name
    
    * refactor: added execution of workflow for new change in commit  (test purpose)
    
    * fix: remove useless ip adress
    
    * fix: remove github action from next interface folder
    
    ---------
    
    Co-authored-by: jordyBSK <125542402+jordyBSK@users.noreply.github.com>
    Alex-zReeZ and jordyBSK committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5934484 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    392eb9c View commit details
    Browse the repository at this point in the history
  14. style: properly format code

    jordybsk committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    f5864fb View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    2a20a7e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    28306f3 View commit details
    Browse the repository at this point in the history
  17. feat: push production ready version to main (#52)

    fix: change dockerfile to work with next js
    
    refactor: added new Ip adresse, rounded data, moved getColor file and changed build output dir (#45)
    
    refactor: added new Ip adresse
    
    refactor: removed output and added distdir to out
    
    refactor: reformated file
    
    refactor: rounded data to two decimals
    
    refactor: changed test Ip to add new one
    
    refactor: removed function param to use react-router params
    
    refactor: moved file to lib folder
    
    refactor: Rounded data  (#42)
    
    refactor: moved file position
    
    fix: fixed import errors
    
    refactor: rounded data to two decimal
    
    refactor: reformated files
    
    refactor: translated comment in english
    
    ---------
    
    Co-authored-by: jordyBSK <125542402+jordyBSK@users.noreply.github.com>
    
    fix: tofixed temperature in espmap
    
    feat: added Workflow to check the format and lint  (#46)
    
    refactor: added new Ip adresse
    
    refactor: removed output and added distdir to out
    
    refactor: reformated file
    
    feat: created workflow file to check if the code is correctly formated
    
    refactor: resolve conflit
    
    feat: serve interface using a nodejs server (#48)
    
    fix: allow program to compile by fixing syntaxe error
    
    feat: build the interface on docker start
    
    feat: start nodejs server
    
    feat: serve node server through ngnix
    
    fix: logout redirection (#49)
    
    refactor: reformat code
    
    fix: redirects the user to the login from any page if there is no token
    
    refactor: changed workflow execution type  (#47)
    
    refactor: added new Ip adresse
    
    refactor: removed output and added distdir to out
    
    refactor: reformated file
    
    feat: created workflow file to check if the code is correctly formated
    
    refactor: moved .github directory to root
    
    fix: added change directory to interface
    
    fix: changed on which branch in execute name
    
    refactor: added execution of workflow for new change in commit  (test purpose)
    
    fix: remove useless ip adress
    
    fix: remove github action from next interface folder
    
    ---------
    
    Co-authored-by: jordyBSK <125542402+jordyBSK@users.noreply.github.com>
    
    style: properly format code
    
    fix: fix bugs to prepare for release (#50)
    
    ---------
    
    Co-authored-by: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com>
    Co-authored-by: Nils Hofstetter <119439839+Rignchen@users.noreply.github.com>
    3 people committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    366d14c View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    0639d73 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    f7f65b8 View commit details
    Browse the repository at this point in the history
  20. Merge pull request #54 from museebolo/Dev

    push dev on main
    jordyBSK committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    fa206fd View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    df703d3 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    7940eae View commit details
    Browse the repository at this point in the history
  23. Merge remote-tracking branch 'origin/fix-prettier-config' into fix-pr…

    …ettier-config
    
    # Conflicts:
    #	nextjs-interface/tsconfig.json
    Alex-zReeZ committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    d456c85 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    5bb4b39 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    4a77a4a View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    7980609 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    92683b6 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    521ba26 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    3fb499b View commit details
    Browse the repository at this point in the history
  30. Merge pull request #51 from Alex-zReeZ/fix-prettier-config

    fix: Fixed prettier config
    jordyBSK committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    c125ea7 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. fix: update developpment docker compose to work with current state of…

    … the repo (#56)
    
    refactor: copy migration repo instead of mounting it
    
    feat: add modifications from docker compose prod to docker compose dev
    
    feat: make dev node server reload on change
    
    feat: update dev php on change
    Rignchen committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    57152bf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4ef8f0a View commit details
    Browse the repository at this point in the history

Commits on Jun 27, 2024

  1. Merge pull request #58 from museebolo/Dev

    chore: use main as dev branch
    fuzoh committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    7bcbfc3 View commit details
    Browse the repository at this point in the history
  2. Migration esp (#60)

    feat: create function to get all esp in database
    
    refactor: changed link to get data in api
    
    fix: display data in esp page
    
    feat: implementation of adding esp to the database
    
    refactor: lists the different esp from the database
    
    feat: update data table to use a foreign key instead of a string (#1)
    
    feat: create a view to easily select data with esp name & ip
    
    refactor: removed function add an esp on page plan
    
    fix: fix deleteEsp function
    
    ---------
    
    Co-authored-by: Nils Hofstetter <119439839+Rignchen@users.noreply.github.com>
    jordyBSK and Rignchen committed Jun 27, 2024
    Configuration menu
    Copy the full SHA
    5380f2a View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. Configuration menu
    Copy the full SHA
    f467e4d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ccd42e View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Middleware (#64)

    * refactor: removed redirection in getToken()
    
    * refactor: removed login redirection in /
    
    * refactor: add token in cookies
    
    * feat: implement middleware
    
    ---------
    
    Co-authored-by: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com>
    jordyBSK and Alex-zReeZ committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    d463987 View commit details
    Browse the repository at this point in the history
  2. feat: added dark theme (#63)

    * feat: added dark theme button to bar
    
    * style: changed svg to go back to light mode
    
    * style: reformated file and changed color on dark theme
    
    * feat: added button next to profile to turn website to dark mode
    
    * style: changed color of text in dark mode
    
    * style: changed room name color
    
    * fix(style): made the page take full of height
    
    * fix(style): add bottom padding to prevent plan from sticking to page bottom
    
    * style: changed hover color on add esp button in dark mode
    
    * style: cursor goes in pointer mode while hovering the button
    
    * style: reformated file and change room name color in dark theme
    
    * style: reformated file
    
    * revert: removed unused import
    
    * refactor: added context to get dark mode value in other files
    
    * refactor: added context toggle to set theme
    
    * refactor: removed comment
    
    * refactor: created new file with theme context
    
    * refactor: created Providers file to apply themeContext.provider to all project
    
    * refactor: moved providers component to root page
    
    * refactor: changed import directory
    
    * refactor: changed text color when going into dark mode
    
    * refactor: removed unused import
    
    * refactor: simplified text color choosing
    
    * refactor: added font color changing on theme on temperature graph
    
    * refactor: added dark theme to graph
    
    * refactor: reformated files
    Alex-zReeZ committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    164ee27 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. feat: edit esp position (#65)

    feat: implement move esp with mouse
    
    fix: fix all middleware redirection in website
    
    refactor: removed deletedesp function
    
    feat: implement change esp position
    
    refactor: format code
    
    refactor: format code
    
    ---------
    
    Co-authored-by: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com>
    jordyBSK and Alex-zReeZ committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2c78465 View commit details
    Browse the repository at this point in the history
  2. Feat: added possibility to rename an esp and added reload when adding…

    … new one (#66)
    
     refactor: added auto refresh when adding a esp
    
    
     feat: added possibility to modify esp name
    Alex-zReeZ committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    298994d View commit details
    Browse the repository at this point in the history
  3. fix: added missing import of useState and reformated code (#67)

    * fix: added missing import of useState react
    
    * style: formated files
    Alex-zReeZ committed Jul 2, 2024
    Configuration menu
    Copy the full SHA
    2567559 View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. refactor: refactoring html structure for simpler structure (#68)

    * refactor: removed border of input
    
    * refactor: simplified sidebar code
    
    * refactor: optimized layout code and changed dark mode bg color
    
    * refactor: changed margin/padding to go with layout style
    
    * refactor: added divs to simplify header code
    
    * refactor: added padding to add air to sidebar
    
    * refactor: changed text color in dark mode
    
    * refactor: removed bottom border and change w to screen
    
    * refactor: changed bg color of buttons
    
    * refactor: added dark theme color to data range selector
    
    * refactor: changed style for very little screen and color
    
    * refactor: changed bg color for responsive toggle navbar
    
    * refactor: changed fontcolor for pathname when on page
    
    * refactor: changed style in responsive mode
    
    * fix: fix switch to light mode when reloading page
    
    * refactor: dark mode stays active when user logout
    
    * refactor: added dark theme to login page
    Alex-zReeZ committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    57e298f View commit details
    Browse the repository at this point in the history
  2. fix: resolved conflit (#71)

    jordyBSK committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    38192a0 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. refactor: changed graph hover popup, reformated files and removed unu…

    …sed import (#72)
    
    * refactor: organized imports and revert button to add esp
    
    * refactor: changed colors of popup to add an esp
    
    * refactor: changed colors of rename and added margin
    
    * style: reformated files
    
    * refactor: changed graph hover info popup style
    
    * refactor: added margin to so that the popup does not stick de border
    
    * refactor: removed unused imports
    
    * refactor: fix href not finding file
    
    * refactor: removed unused function imports
    
    * fix: fixed header to big for screen causing bottom scroll bar
    
    * refactor: removed dark theme saving in localstorage
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    67625a7 View commit details
    Browse the repository at this point in the history
  2. fix: replace local storage for cookies to store theme of user (#73)

    * refactor: use cookies to store color theme instead of localstorage
    
    * refactor: create file with script to set and get cookies for theme
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    f694eb1 View commit details
    Browse the repository at this point in the history
  3. refactor: changed branch and type execution of workflow to main (#74)

    * refactor: changed branch and type execution of workflow
    
    * style: reformated files
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    35505ab View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8949ea8 View commit details
    Browse the repository at this point in the history
  5. style: change dark mode colors and use shadcn card (#77)

    style: change background dark mode color
    
    style: change dark mode color
    
    style: change dark mode color and use card element from shadcn
    
    refactor: format code
    
    style: change login color
    
    style: format code
    jordyBSK committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    5146d68 View commit details
    Browse the repository at this point in the history
  6. ci: added curl check to test (#78)

    * ci: added workflow to check if the docker builds
    
    * ci: added check login works
    
    It ensure that the database, the php, the nginx, postgrest and the migration works
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    968f8fe View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    0cc19ff View commit details
    Browse the repository at this point in the history
  8. Feat: added precision selector on esp page graph (#80)

    * refactor: added precision selector
    
    * style: reformated file
    
    * refactor: changed default value to Day
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    856f93b View commit details
    Browse the repository at this point in the history
  9. refactor: Fix responsive in esp rooms and little details (#81)

    * refactor: added style to precision selector
    
    * refactor: repaired responsive style
    
    * refactor: fix card size in home page dashboard
    
    * refactor: fix plan size in responsive mode
    
    * refactor: adjusted text in responsive (small)
    
    * style: reformated files
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    12f3cf3 View commit details
    Browse the repository at this point in the history
  10. fix: fixed workflow to check for token (#84)

    fix: fixed workflow to check for token
    
    fix: added " and ensure that the token is neither null nor empty
    Alex-zReeZ committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    84e7b48 View commit details
    Browse the repository at this point in the history
  11. refactor: check if token is valid (#85)

    refactor: check if token is valid in data.ts
    
    refactor: remove not used parameters
    jordyBSK committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    d0dce56 View commit details
    Browse the repository at this point in the history

Commits on Jul 5, 2024

  1. refactor: centered thermometer (#86)

    * refactor: adjusted sm responsive mode
    
    * style: reformated file
    Alex-zReeZ committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    a7a3995 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26cd04a View commit details
    Browse the repository at this point in the history
  3. refactor: changed border color in precision selector (#87)

    * refactor: changed border color
    
    * style: reformated file
    Alex-zReeZ committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    92b90cc View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    0056ec4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a856bbf View commit details
    Browse the repository at this point in the history
  6. feat: implement add users in database (#91)

    * refactor: add userIcon
    
    * refactor: create function to get all users in database
    
    * refactor: create user interface in context.tsx
    
    * refactor: install bcrypt package to hash password
    
    * revert: install bcrypt package to hash password
    
    * revert: install bcrypt package to hash password
    
    * feat: implement add an user in database
    
    * refactor: moves icon files into svgs files
    
    * refactor: change icon path in NavLinksElement.tsx
    
    * refactor: migration to give web user rights to delete and add a user
    
    * refactor: install bcrypt package to hash password
    
    * feat: implement add and delete an user in database
    
    * style: reformat code
    jordyBSK committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    b3115ec View commit details
    Browse the repository at this point in the history
  7. fix: fixed function getting user token instead of esp token (#92)

    * refactor: changed font size
    
    * refactor: removed unused import
    
    * refactor: created new component to get token
    
    * refactor: created new component to get token
    
    * fix: fixed function getting user token to get esp token
    
    * refactor: removed console.log
    
    * fix: only get token when asked
    
    * style: reformated files
    Alex-zReeZ committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    683f9ea View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4ec1499 View commit details
    Browse the repository at this point in the history
  9. fix: fixed jwt token fetch getting no Ip (#94)

    * fix: fixed jwt token fetch getting no Ip
    
    * style: reformated files
    Alex-zReeZ committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    79b8d1b View commit details
    Browse the repository at this point in the history
  10. refactor: install the slim router for the php (#27)

    feat: setup a router
    
    fix: correct nginx config to work with router
    
    feat: serve the web pages using the router
    
    refactor: require autoload and lib from index.php
    
    fix: update interface according to new format
    
    ---------
    
    Co-authored-by: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com>
    Rignchen and Alex-zReeZ committed Jul 5, 2024
    Configuration menu
    Copy the full SHA
    b7364e6 View commit details
    Browse the repository at this point in the history

Commits on Jul 8, 2024

  1. Configuration menu
    Copy the full SHA
    d8a64f5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9a1758 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. refactor: removed window reload when adding new esp to display new es…

    …p dynamically (#97)
    
    * chore: removed console.log
    
    * refactor: removed window.location.reload and added dynamically new esp in sidebar
    
    * refactor: remade logic to only use one map
    
    * refactor: fix warning exception caught locally
    
    * style: reformated file
    Alex-zReeZ committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    3aa4305 View commit details
    Browse the repository at this point in the history
  2. refactor: added verification of IP input with js (#99)

    * refactor: added verification of ip in js
    
    * style: reformated file
    
    * refactor: simplified regex (shorter)
    
    * style: reformated file
    
    * refactor: compacted regex
    Alex-zReeZ committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    313a2a9 View commit details
    Browse the repository at this point in the history
  3. docs: update readme (#101)

    Rignchen committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e591139 View commit details
    Browse the repository at this point in the history

Commits on Jul 10, 2024

  1. feat: Seperate days by a bar and added time stamp of data on graph (#103

    )
    
    * refactor: added timestamp on graph hover
    
    * refactor: added import react from reacr
    
    * feat: added bar for every new day
    
    * style: reformated file and removed unused import
    Alex-zReeZ committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    ed38067 View commit details
    Browse the repository at this point in the history
  2. fix: allow esp to know who they are (#106)

    Co-authored-by: Alex-zReeZ <145986307+Alex-zReeZ@users.noreply.github.com>
    Rignchen and Alex-zReeZ committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    4a32441 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f95ef11 View commit details
    Browse the repository at this point in the history
  4. refactor: added timestamp in graph xAxis (#108)

    * refactor: removed console log
    
    * refactor: added hour in graph xAxis
    Alex-zReeZ committed Jul 10, 2024
    Configuration menu
    Copy the full SHA
    4697933 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    bab4e08 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. fix: fix check build workflow and set timezon UTC+02:00 (#112)

    * fix: set timezon UTC+02:00 and removed seconde on timestamp
    
    * style: reformated file
    
    * fix: fix date possibly having no value
    
    * chore: showing returned error in auth thest
    
    * chore: added debugging
    
    * test: do only the curl to see if it works
    
    * refactor: merge docker and test in one run
    
    * refactor: added a waiting time for the server to be ready
    
    * refactor: changed method of waiting service to POST
    
    * refactor: moved sleep just before the curl
    
    * refactor: readded token content again
    Alex-zReeZ committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    5e7e65a View commit details
    Browse the repository at this point in the history

Commits on Aug 6, 2024

  1. Configuration menu
    Copy the full SHA
    26ed858 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2024

  1. feat: added zooming interface in plan (#121)

    * feat: added zooming interface in plan
    
    closes: #115
    
    * style: reformated code
    
    * style: reformated code
    adbme committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    01c45dc View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. feat: show the day when clicking on it (#122)

    * feat: show the day when clicking on it
    
    closes: #116
    
    * style: format
    adbme committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    04cba05 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Fix espid link when clicking on day (#123)

    * feat: correct espId link when clicking on the day, for each esp
    
    * style: reformat
    adbme committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    c5c372f View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. feat: show variance between days with two esp (#124)

    * feat: show variance between days with two esp
    
    * feat: show variance between days with two esp
    
    * style: reformat code
    
    * refactor: reformat code
    
    * refactor: reformat code
    
    * style: responsive esp page, dashboard
    
    * refactor: reformat code
    
    * style: remove comment
    adbme committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    5db9cfd View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. docs: add database and migrations documentation (#125)

    refactor(database): changed sqitch dockerfile to only docker compose
    
    No more need of the dedicated docker file.
    Migrations mounted in the container directly from docker compose.
    
    Closes: #127
    fuzoh committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    c451411 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    558a92a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8c667f1 View commit details
    Browse the repository at this point in the history
  4. build(deps): bump micromatch from 4.0.7 to 4.0.8 in /nextjs-interface (

    …#135)
    
    Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.7 to 4.0.8.
    - [Release notes](https://github.com/micromatch/micromatch/releases)
    - [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
    - [Commits](micromatch/micromatch@4.0.7...4.0.8)
    
    ---
    updated-dependencies:
    - dependency-name: micromatch
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    775dc2f View commit details
    Browse the repository at this point in the history
  5. build(deps-dev): bump @types/react in /nextjs-interface (#133)

    Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.3.3 to 18.3.4.
    - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
    - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)
    
    ---
    updated-dependencies:
    - dependency-name: "@types/react"
      dependency-type: direct:development
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    08e569a View commit details
    Browse the repository at this point in the history

Commits on Sep 4, 2024

  1. Configuration menu
    Copy the full SHA
    0e4ecff View commit details
    Browse the repository at this point in the history
  2. build(deps): bump @radix-ui/react-popover in /nextjs-interface (#131)

    Bumps [@radix-ui/react-popover](https://github.com/radix-ui/primitives) from 1.0.7 to 1.1.1.
    - [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
    - [Commits](https://github.com/radix-ui/primitives/commits)
    
    ---
    updated-dependencies:
    - dependency-name: "@radix-ui/react-popover"
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    e2b7852 View commit details
    Browse the repository at this point in the history
  3. build(deps): bump @radix-ui/react-label in /nextjs-interface (#130)

    Bumps [@radix-ui/react-label](https://github.com/radix-ui/primitives) from 2.0.2 to 2.1.0.
    - [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
    - [Commits](https://github.com/radix-ui/primitives/commits)
    
    ---
    updated-dependencies:
    - dependency-name: "@radix-ui/react-label"
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    7ee95a3 View commit details
    Browse the repository at this point in the history
  4. build(deps): bump @radix-ui/react-slot in /nextjs-interface (#129)

    Bumps [@radix-ui/react-slot](https://github.com/radix-ui/primitives) from 1.0.2 to 1.1.0.
    - [Changelog](https://github.com/radix-ui/primitives/blob/main/release-process.md)
    - [Commits](https://github.com/radix-ui/primitives/commits)
    
    ---
    updated-dependencies:
    - dependency-name: "@radix-ui/react-slot"
      dependency-type: direct:production
      update-type: version-update:semver-minor
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed Sep 4, 2024
    Configuration menu
    Copy the full SHA
    2964325 View commit details
    Browse the repository at this point in the history