Félix Baylac-Jacqué
75c606b3de
Frontend: rewrite address-based search form
...
We give up on the autocomplete library we tried in favor of a new one.
We also lose our minds trying to align some FREAKING FLEX-BOXES before
kind of giving up.
2022-02-18 18:39:51 +01:00
b69ec04aff
Merge pull request 'Ajout du frontend et branchement sur l'API axione' ( #9 ) from johan/frontend into master
...
Reviewed-on: felix.baylac/axione-elig-test#9
2022-02-13 18:39:11 +00:00
Johan Le Baut
3e69f83b66
factorise spinner & css result.html
2022-02-13 16:53:04 +01:00
Johan Le Baut
68b137c8f9
add button spinner
2022-02-13 12:54:39 +01:00
Félix Baylac-Jacqué
d0715b0d15
autocomplete: switch autocomplete.js
...
Turns out implementing a autocomplete widget from scratch is more
tricky than expected. It's a shame no such widget has been implemented
part of the HTML standart :(
2022-02-13 12:24:43 +01:00
Johan Le Baut
68434bf446
handle axione erreur
2022-02-13 12:12:58 +01:00
Johan Le Baut
8c7ff6a11b
send codeRivoli to back
2022-02-13 00:26:31 +01:00
Félix Baylac-Jacqué
bd24f9044c
Autocomplete: set input to selected value when 1 option
2022-02-12 23:51:17 +01:00
Johan Le Baut
fde1a65d6a
fix axione api: return result
2022-02-12 23:39:40 +01:00
Félix Baylac-Jacqué
c9a0a898aa
frontend: implement fetchwithBackoff
...
We're fetching too soon and too often stuff from the backend. Making
the search input behaviour a bit flaky.
Implementing a backoff fetching strategy. We'll trigger the query only
after 500ms of inactivity and will cancel the previous requests before
triggering a new one.
2022-02-12 23:32:32 +01:00
Johan Le Baut
3fe2a4af9c
fix selection commune/voie
2022-02-12 21:31:23 +01:00
Johan Le Baut
7672a52239
cancel promise on keyup
2022-02-12 20:04:05 +01:00
Johan Le Baut
136bf01df7
update elig-test.ini.sample
2022-02-12 18:47:06 +01:00
Johan Le Baut
3f7d4b6331
fantoir voie: limite de recherche et recherche ''
2022-02-12 18:39:08 +01:00
Félix Baylac-Jacqué
01c8f2b37b
Fantoir: implement actual Axione fantoir request
...
Kind of untested :/
2022-02-12 18:37:18 +01:00
Félix Baylac-Jacqué
3acd1dd349
Adapt backend to new fantoir data schema
...
We updated the fantoir DB schema. See
https://git.alternativebit.fr/NinjaTrappeur/fast-fantoir/src/branch/master
for more informations.
2022-02-12 16:30:07 +01:00
Johan Le Baut
46aeaf7da4
adresses API: add limit param
2022-01-28 15:42:08 +01:00
Johan Le Baut
768418258e
webapp
2022-01-28 10:26:34 +01:00
Johan Le Baut
71229491f7
remove logging
2022-01-27 23:59:53 +01:00
Johan Le Baut
202fda826f
complete parcours
2022-01-27 23:53:19 +01:00
Johan Le Baut
2d4b428093
remove duplicates communes
2022-01-26 21:36:28 +01:00
Johan Le Baut
50dd783b57
frontend: enter commune
2022-01-26 15:57:46 +01:00
Johan Le Baut
c8d2e1868d
init front with bootstrap
2022-01-26 10:00:01 +01:00
f8ba58b120
Logique pour chercher les voies d'une communes dans la DB fantoir/rivoli
...
Reviewed-on: felix.baylac/axione-elig-test#8
2021-11-10 22:26:08 +00:00
Johan Le Baut
d6ee46ccda
update README
2021-11-10 23:23:58 +01:00
Johan Le Baut
d2b53be534
add tests
2021-11-10 23:22:46 +01:00
Johan Le Baut
7a70f693b3
Update README
2021-11-02 15:35:21 +01:00
Johan Le Baut
6e2899a91b
Endpoints to find a Fantoir address
2021-11-02 15:21:34 +01:00
Félix Baylac-Jacqué
f53d5b6373
First aquilenet deployment
...
It's hacky as hell, but it's what we currently have deployed... We'll
have to come back to that later.
2021-10-19 18:41:05 +02:00
Félix Baylac-Jacqué
682b538e16
Add deployment scripts
...
We add a rudimentary deployment setup based on gunicorn and systemd.
2021-10-19 16:59:23 +02:00
Félix Baylac-Jacqué
2daf6ab8e2
PTO lookup webapp
...
We add a small flask-powered web application in charge of retrieving
the PBO-related data from axione.
2021-10-18 19:49:35 +02:00
Félix Baylac-Jacqué
53af975601
Pep-8 reformat
...
I did not really used a standard python format so far. Running the
codebase through black to make everything pep-8 compliant.
2021-10-17 22:31:06 +02:00
Félix Baylac-Jacqué
8c4c540fb8
Add response parser
...
This parser is not extensively tested yet. We need to generate more
test cases to make sure we're not falling in any of the numerous
Python traps.
We basically retrieve the data for:
- The FTTH lines.
- The stairs reference for each line.
- The building reference/status for each stairs.
2021-10-17 22:30:42 +02:00
Félix Baylac-Jacqué
cfae863043
init
2021-10-17 18:28:51 +02:00