Commit Graph
91 Commits
Author SHA1 Message Date
Adrien d8adb4f52d ♻️ Remove code in charge or db filling from IdfmInterface 2023-06-11 22:22:05 +02:00
Adrien 5e7f440b54 ♻️ Add the db_updater package 2023-06-11 22:18:47 +02:00
Adrien 824536ddbe 💥 Rename API_KEY to IDFM_API_KEY 2023-05-28 12:45:03 +02:00
Adrien 7fbdd0606c ️ Reduce the size of the backend docker image 2023-05-28 12:40:10 +02:00
Adrien 581f6b7b8f 🐛 Add workaround for fastapi-cache issue #144 2023-05-28 10:45:14 +02:00
Adrien 404b228cbf 🔥 Remove env variables from backend dockerfile 2023-05-26 23:55:58 +02:00
Adrien e2ff90cd5f ️ Use Redis to cache REST responses 2023-05-26 18:10:47 +02:00
Adrien cd700ebd42 🐛 The backend shall serve requests once the database reachable 2023-05-26 18:09:24 +02:00
Adrien c44a52b7ae ♻️ Add backend and frontend to docker-compose 2023-05-26 18:01:04 +02:00
Adrien b3b36bc3de Replace rich with icecream for temporary tracing 2023-05-11 21:44:58 +02:00
Adrien 5e0d7b174c 🏷️ Fix some type issues (mypy) 2023-05-11 21:40:38 +02:00
Adrien b437bbbf70 🎨 Split main into several APIRouters 2023-05-11 21:17:02 +02:00
Adrien 85fdb28cc6 🐛 Set default value to Settings.clear_static_data 2023-05-11 20:31:24 +02:00
Adrien b894d68a7a ♻️ Use of pydantic to manage config+env variables
FastAPI release has been updated allowing to use lifespan parameter
to prepare/shutdown sub components.
2023-05-10 22:30:30 +02:00
Adrien ef26509b87 🐛 Fix invalid line id returned by /stop/{stop_id}/nextPassages endpoint 2023-05-09 23:25:30 +02:00
Adrien de82eb6c55 🔊 Reformat error logs generated by frontend BusinessData class 2023-05-08 17:25:14 +02:00
Adrien 0ba4c1e6fa ️ Stop.postal_region and Line.id/operator_id can be integer values 2023-05-08 17:15:21 +02:00
Adrien 0f1c16ab53 💄 Force App to use 100% of the shortest side 2023-05-08 16:17:56 +02:00
Adrien 5692bc96d5 🐛 Check backend return codes before handling data 2023-05-08 15:05:43 +02:00
Adrien d15fee75ca ♻️ Fix /stop/ endpoints inconsistency 2023-05-08 13:44:44 +02:00
Adrien 93047c8706 ♻️ Use declarative table configuration to define backend db tables 2023-05-08 13:17:09 +02:00
Adrien c84b78d3e2 🚑️ /stop responses didn't return StopArea.stops fields 2023-05-07 12:36:38 +02:00
Adrien c6e3881966 Add sqlalchemy-utils types dependency 2023-05-07 12:20:28 +02:00
Adrien b713042359 🗃️ Use of dedicated db sessions 2023-05-07 12:18:12 +02:00
Adrien 5505209760 ️ Replace asyncpg with psycopg 2023-05-07 11:24:02 +02:00
Adrien 6aa28f7bfb 🔨 Add OTel/Jeager to start HTTP/SQL requests monitoring 2023-05-02 23:02:09 +02:00
Adrien 07d43bfcb4 ⬆️ Add sqlalchemy-utils dep 2023-05-01 23:22:51 +02:00
Adrien 6eb78d7307 ️ /stop API endpoint uses stop and towns names to resolve queries 2023-05-01 22:42:02 +02:00
Adrien bcedf32bec Merge branch 'reduce-frontend-bundle-size' into develop 2023-05-01 22:36:37 +02:00
Adrien e9a651e47e ♻️ Refactor StopsSearchMenu + load Map lazily + placeholder 2023-04-25 21:47:10 +02:00
Adrien 245bc4d261 ️ All provided location are in EPSG:3857, remove proj4 from frontend 2023-04-23 11:20:44 +02:00
Adrien d94027da9a 💥 All location points provided by backend are in EPSG:3857 2023-04-23 11:14:11 +02:00
Adrien 8fafdb3dde ️ Replace hope-ui based IconHamburgerMenu with a custom one 2023-04-22 17:06:02 +02:00
Adrien da2fb1f41c ️ Replace hope-ui Input with a custom component in StopSearchMenu 2023-04-22 16:56:52 +02:00
Adrien e81f81b7a7 🚸 Add debounce mechanism to stop name input 2023-04-22 12:31:26 +02:00
Adrien 61610fa2ba Merge branch 'add-stop-area-repr-and-stop-destinations' into develop 2023-04-22 12:31:01 +02:00
Adrien ee14d60db7 🐛 Old stops still displayed on map once the stop search narrowed 2023-04-15 18:24:47 +02:00
Adrien a2728cfc0c 💄 Redesign StopSearchMenu (map panel)
- Replace leaflet with openlayers
- Add stop areas shape to map
- Display stop destinations sub-panel on click
2023-04-14 11:56:41 +02:00
Adrien 0a7d74a215 ♻️ Store StopArea Stops in BusinessDataStore when looking for stops 2023-04-14 11:36:54 +02:00
Adrien 1b713dbc0e Add StopDestinations to the frontend business data 2023-04-14 11:33:29 +02:00
Adrien 1ffd3cbe94 Add StopShape to the frontend business data 2023-04-14 11:29:25 +02:00
Adrien 42817f7b0c 🚚 Fix the transport mode location issue 2023-04-14 11:20:19 +02:00
Adrien 440a5faf3c 🗃️ Update StopArea db models: StopArea can´t be composed of another StopAreas 2023-04-13 21:40:35 +02:00
Adrien 61097fe9e2 Add /stop_shape/{stop_id} endpoint 2023-04-13 21:35:41 +02:00
Adrien 62a9000ec2 Add /stop/{stop_id}/destinations endpoint 2023-04-13 21:35:41 +02:00
Adrien 62b6425255 ♻️ Update stop destinations returned value 2023-04-13 21:35:41 +02:00
Adrien ac06df9f87 Handle IDFM stop areas shapes 2023-04-13 21:35:29 +02:00
Adrien ecfb3c8cb3 Handle IDFM connection areas 2023-04-13 20:57:15 +02:00
Adrien 293a1391bc Add ConnectionArea and StopShape models + Stop-ConnectionArea relationship 2023-04-13 20:55:56 +02:00
Adrien 71e2530c01 💄 Delete unused CSS rules and reformat PassagePanel ones 2023-03-05 21:11:19 +01:00
Adrien 65f284bc25 💄 Fix first passage misalignment when it's unavailable 2023-03-05 21:07:40 +01:00
Adrien d3a689cefc 🐛 Add forgotten @solid-primitives/scroll dependency 2023-03-05 19:42:18 +01:00
Adrien 726efd8e8c 💄 Add ScrollingText component and use it in StopAreaRepr component
Update DestinationPassages component to use it.
2023-03-05 19:20:40 +01:00
Adrien 546ec5a89f Merge branch 'idfm-style-for-search-display' into develop 2023-03-05 13:51:03 +01:00
Adrien 4a2fadb5b3 💄 Redesign stop search menu to follow the passage display style 2023-03-05 13:46:25 +01:00
Adrien f09ba4cc58 💄 Replace css files with scss and factorize CSS rules 2023-03-05 12:49:20 +01:00
Adrien a9d918fb0f 🐛 Time to wait shall be displayed in 2 digits 2023-02-18 15:38:25 +01:00
Adrien 033e27fb56 Add platform id to passages panels 2023-02-18 14:50:24 +01:00
Adrien 11c62e5795 💄 Fix passage delay format when waiting time > 1h
When waiting time is less than 1h, the duration shall be displayed, the arrival time otherwise.
2023-02-12 22:54:52 +01:00
Adrien 40b2704a15 🎨 Factorize tramLinePicto CSS class with metroLinePicto one 2023-02-12 22:44:22 +01:00
Adrien 04053e25ed 💄 Animate destination text when they´re too long for panel 2023-02-12 22:43:09 +01:00
Adrien 5d566648e5 💄 Fix no picto displayed for train and RER lines 2023-02-12 21:21:45 +01:00
Adrien 5c08780f98 ️ Reduce the refresh on passages update to the TtwPassage component 2023-02-12 19:01:32 +01:00
Adrien 3913209b28 Add button to PassagesDisplay to disable passages fetching 2023-02-11 18:12:26 +01:00
Adrien 7294f35622 🐛 Filter old passages
Only passages with a expectedDepartTs > now - 60s are kept.
2023-02-09 22:36:42 +01:00
Adrien 0dd44372e8 ♻️ Don´t overwrite store.passages structure during its update by the addPassage method 2023-02-09 21:27:47 +01:00
Adrien f0fe3f8803 🎨 Remove not essential store from the rendering of the PassagesDisplay component 2023-02-09 21:17:58 +01:00
Adrien 275954f52d 🎨 Replace for loop with a <For/> control flow for PassagesPanel component 2023-02-09 21:14:16 +01:00
Adrien e34355e8be 🏷️ Make python linters happy 2023-02-08 22:10:21 +01:00
Adrien d1db97554c 🧑‍💻 Use ruff/mypy/black linter/type-checker/formatter
* Use of python-lsp-server with emacs (cf. .dir-locals.el file)
 * Remove autopep8/pycodestyle/pydocstyle/pyflakes/pylint/yapf
2023-02-05 23:10:58 +01:00
Adrien aaab0a933b 🎨 Replace for loop with a <For/> control flow for StopsManager 2023-01-30 22:47:12 +01:00
Adrien bd8ccc5978 🔥 Remove unused functions from search module
removeStops, getMarkers and addMarkers are not used anymore... remove them.
2023-01-30 22:10:41 +01:00
Adrien d490236456 💄 Force root div to fit its content (all height before) 2023-01-30 22:08:54 +01:00
Adrien 2fd6783534 🚨 Try to make TS linter happy 2023-01-30 22:07:20 +01:00
Adrien 27f895ce0c 🔇 No need to log line stops 2023-01-28 17:58:43 +01:00
Adrien f4d6a3e684 💄 Fix the Metro picto rendering
No metro picto was displayed... lack of metroLinePicto CSS class.
2023-01-28 16:38:42 +01:00
Adrien 79f4ad0c4c Merge branch 'frontend-file-reorg' into develop 2023-01-28 16:37:13 +01:00
Adrien 43cbfc17b6 🚨 Make ts linter less depressed 2023-01-28 16:27:40 +01:00
Adrien 29ba26e80b ♻️ Replace methods called to render Component with small Components 2023-01-28 16:26:50 +01:00
Adrien e141aa15e5 🚚 Remove business logic from Component instances 2023-01-28 16:18:55 +01:00
Adrien 207fe12842 🚚 Move utils function from types.tsx to utils.tsx 2023-01-27 20:23:43 +01:00
Adrien cc5205c318 🐛 Fix PassageDisplay footer bullets behavior
The bullets was not updated according to the displayed panel.
2023-01-27 20:20:17 +01:00
Adrien 495b2bafe2 🔥 Remove ar16x9 CSS class 2023-01-23 22:50:29 +01:00
Adrien e96e7aeae0 🚚 Rename NextPassagesDisplay/NextPassagesPanel (remove Next prefix) 2023-01-23 22:34:33 +01:00
Adrien b8984e455c 🚚 Add a dedicated CSS file for NextPassagePanel component 2023-01-23 21:16:47 +01:00
Adrien f8786fc863 Merge branch 'remove-idfm-extra-references' into develop 2023-01-23 21:09:20 +01:00
Adrien dea6b928e1 🗃️ Create and use a db dedicated user for backend
* Rename the db name (idfm_matrix_bot -> cer_db).
 * Remove unused bot database.
 * Create a dedicated user (cer_user/cer_password).
2023-01-22 19:02:54 +01:00
Adrien 76d4c8a641 🚚 Rename backend project (idfm-matrix-widget -> carrramba-encore-rate)
Update the pyproject.toml file.
2023-01-22 19:01:15 +01:00
Adrien 7423511a51 🚚 Rename backend component (idfm_matrix_backend -> backend) 2023-01-22 18:58:47 +01:00
Adrien c81d234426 🙈 Add __pycache__ and lock files 2023-01-22 17:25:44 +01:00
Adrien dde835760a 🎉 First commit !!! 2023-01-22 16:53:45 +01:00