Commit Graph
100 Commits
Author SHA1 Message Date
klmp200 4ac09ac08b Use tomselect instead of jquery autoselect for counter clicks 2024-12-21 15:56:18 +01:00
klmp200 87b619794d Fix groups displayed on user profile group edition 2024-12-19 18:57:50 +01:00
klmp200 ad44fd52a4 Apply review comments 2024-12-17 10:54:41 +01:00
klmp200 03c27b10e5 Fix refill permissions
* Remove ability to refill from counters
* Fix bug where you could refill without any board member on a BAR
* Add a warning message explaining why refilling are disabled
2024-12-17 02:42:07 +01:00
klmp200 fc0ef29738 Remove GetCustomer API endpoint 2024-12-17 01:42:10 +01:00
klmp200 a0eb53a607 Apply review comments 2024-12-17 01:41:45 +01:00
klmp200 66e5ef64fd Don't use API to update amount after a refilling query 2024-12-17 00:47:43 +01:00
klmp200 4c65939bbe Fix crash when admin gets to preferences of an user subscribed to a trombinoscope 2024-12-16 09:31:43 +01:00
klmp200 379527cd58 Add a nice animation on successful refilling 2024-12-16 00:58:23 +01:00
klmp200 f63fb59cbf Allow filtering of refilling options
* Move settings.SITH_COUNTER_PAYMENT_METHOD to counter.apps.PAYMENT_METHOD
* Move student cards to an accordion on counter click
* Make cash default refilling option
* Disable bank selection option in refilling if CHECK are not allowed
* Disable refilling with CHECK from the frontend
2024-12-16 00:15:21 +01:00
klmp200 cde864fdc7 Apply review comments 2024-12-15 22:47:59 +01:00
klmp200 e9361697f7 Convert customer refill to a fragment view 2024-12-15 21:33:19 +01:00
klmp200 6bdc1b73ae Enable sentry workflow again 2024-12-15 17:31:41 +01:00
klmp200 0631c77a1c Apply review comments 2024-12-15 17:02:44 +01:00
klmp200 2cc4308a58 Fix tooltip shadow and position and improve unittests 2024-12-15 16:49:24 +01:00
klmp200 4975475e85 Add tooltip on current registered card, allow barmen to delete cards and make card deletion a fragment 2024-12-15 16:49:24 +01:00
klmp200 fa60ecb25a Upgrade dependencies 2024-12-15 00:59:55 +01:00
klmp200 29a5425259 Add spinner to student card form 2024-12-08 13:17:56 +01:00
klmp200 de7aa6f6a6 Create a generic form fragment renderer 2024-12-08 11:45:16 +01:00
klmp200 66d2dc74e7 Pre-fetch forms for student card 2024-12-08 00:32:28 +01:00
klmp200 2f613607af Update number of queries in test_num_queries 2024-12-07 23:35:35 +01:00
klmp200 d4b9c3afb1 Make StudentCardFormView fragment only 2024-12-07 22:36:15 +01:00
klmp200 b81cf49d0a Remove student card creation from CounterClick view and use fragment instead
Intercept htmx on submit requests, this allows auto submit from nfc fields

Fix super call with parameters

Add loading wheel on student card form for counter_click.jinja
2024-12-07 12:57:10 +01:00
klmp200 0739ce2fb4 Improve readability and usability 2024-11-21 00:33:40 +01:00
klmp200 8fc1a754de Integrates vite manifests to django 2024-11-20 18:24:28 +01:00
klmp200andBartuccio Antoine ca8c1c9d92 Mirror -index.css generation with their import location in -index.js/ts files 2024-11-19 21:22:14 +01:00
klmp200andBartuccio Antoine 0485ab1120 Remove defer from script where type=module is used 2024-11-19 21:22:14 +01:00
klmp200andBartuccio Antoine 8a8851847c Passage de webpack à vite.dev 2024-11-19 21:22:14 +01:00
klmp200andBartuccio Antoine 7b41051d0d Go for a more generic js bundling architecture
* Don't tie the output name to webpack itself
* Don't call js bundling webpack in python code
* Make the doc more generic about js bundling
2024-11-19 21:22:14 +01:00
klmp200andBartuccio Antoine 9991f5dc64 Create nice animation when scanning nfc cards 2024-11-15 14:51:45 +01:00
klmp200andBartuccio Antoine fce6c3d29c Convert nfc input to a web component 2024-11-15 14:51:45 +01:00
klmp200 5e8d8b8d5d Revert back curl install of poetry in pipelines 2024-11-15 14:41:25 +01:00
klmp200 dc1e1fc897 Fix typos 2024-11-12 21:38:38 +01:00
klmp200 37abde04d7 Improve fragment doc 2024-11-11 13:56:34 +01:00
klmp200 40f2f7033e Add test for AllowFragment mixin 2024-11-11 13:49:38 +01:00
klmp200 aebf909dc6 Apply review comments 2024-11-11 13:49:38 +01:00
klmp200 ec7d45fd91 Add documentation for htmx 2024-11-11 13:49:38 +01:00
klmp200 3af5d96bf5 Introduce htmx in sith files
* Convert FileModerationView into ListView and add pagination with htmx
* Don't allow sas moderation in file moderation view
* Split up base.jinja and introduce base_fragment.jinja
* Improve FileModerationView performances and make it root only
* Add permissions tests for file modération
2024-11-11 13:49:38 +01:00
klmp200 5e954bae6a Fix some doc typos 2024-11-11 00:32:04 +01:00
klmp200 0610794dbe Fix ajax-select visual 2024-10-28 18:18:56 +01:00
klmp200 a6b32fcad1 Fix readability and avoid instantiating too many TypeAdapter 2024-10-28 18:08:13 +01:00
klmp200 e583e78a4e Convert the whole request to json at once on select widget 2024-10-21 17:11:07 +02:00
klmp200 3eb3feea49 Fix deprecated usage of schema json method and avoid multiple inheritance on select widgets 2024-10-21 16:14:00 +02:00
klmp200 935914428b Remove ajax_select completely 2024-10-21 13:30:12 +02:00
klmp200 ab63ba1c54 Remove ajax_select from accounting 2024-10-21 13:26:11 +02:00
klmp200 afdc6b69df Remove ajax_select from sas 2024-10-21 10:30:35 +02:00
klmp200 8b419dcee6 Remove ajax_select from core 2024-10-20 23:25:56 +02:00
klmp200 e7181257e3 Remove ajax_select from core/views/forms.py 2024-10-20 23:04:54 +02:00
klmp200 8e7c09332f Remove ajax_select from core/views/group.py 2024-10-20 22:58:39 +02:00
klmp200 d9ea5e5538 Remove ajax_select from trombi 2024-10-20 22:41:35 +02:00
klmp200 a21460a1b8 Remove ajax_select from subscriptions 2024-10-20 22:36:55 +02:00
klmp200 b6a480ff61 Remove ajax_select from forum 2024-10-20 22:29:07 +02:00
klmp200 84ee6dd2f5 Remove ajax_select from clubs 2024-10-20 21:28:25 +02:00
klmp200 a950585a02 Remove ajax_select from rootplace 2024-10-20 20:55:07 +02:00
klmp200 7f8a2c1eaf Remove ajax_select from counters 2024-10-20 20:55:05 +02:00
klmp200 125157fdf4 Move gettext to the top 2024-10-20 18:35:55 +02:00
klmp200 517263dd58 Automatically move inner html in created node when inheriting from HTMLElement 2024-10-20 18:29:48 +02:00
klmp200 301fc73687 Fix markdown input initial value and crash when alpine is not loaded 2024-10-20 18:13:48 +02:00
klmp200 45441c351d Improve ajax-select style 2024-10-20 17:37:51 +02:00
klmp200 be5ce414ba Add proper delete button and fix item ordering 2024-10-20 16:57:38 +02:00
klmp200 bb3f277ba5 Extract js and css from select widgets to editable class attributes 2024-10-20 13:40:59 +02:00
klmp200 8bbebfdb13 Add AutoCompleteSelectGroup 2024-10-20 13:33:44 +02:00
klmp200 0af3505c2a Make a generic AjaxSelect abstract class 2024-10-20 02:26:32 +02:00
klmp200 f78b968075 Move markdown input and select widgets to a widget folder 2024-10-20 01:05:34 +02:00
klmp200 e3dcad62cc Migrates lookups
* products
* files
* Groups
* Clubs
* Accounting
2024-10-20 00:47:31 +02:00
klmp200 ce4f57bd8f Add ajax user widget and remove ajax_select from elections 2024-10-19 22:06:34 +02:00
klmp200 8be8328830 Create select widget based on tomselect on django backend
Replace make_ajax in elections by the new widget
2024-10-19 21:32:58 +02:00
klmp200 0a0092e189 Add link-once and script-once web components 2024-10-19 18:55:32 +02:00
klmp200 c50f0a2ac5 Simplify ajax-select inheritance and make simple auto complete 2024-10-19 16:02:54 +02:00
klmp200 6b3012d21c Fix broken sas ui in webkit based browsers 2024-10-18 23:50:04 +02:00
klmp200 729f848c14 Add min-characters-for-search attribute for user-ajax-select 2024-10-18 23:34:37 +02:00
klmp200 56cc4776a6 Create base class for ajax-select 2024-10-18 23:26:04 +02:00
klmp200 4165f8d4af Add register decorator for web components and a better inheriting system for html elements 2024-10-17 23:14:54 +02:00
klmp200 cac185634d Avoid keeping text after selecting item 2024-10-17 18:21:51 +02:00
klmp200 66dceefcf0 Fix bad constructor when adding attrs that are not part of the parent and fix tom-select on safari 2024-10-17 18:15:55 +02:00
klmp200 677ff51ea5 Create web component util 2024-10-17 18:15:55 +02:00
klmp200 645b8a543e Make easymde compatible with safari 2024-10-17 18:15:55 +02:00
klmp200 74a506c48b Add missing features
* Fix display
* Add internationalization
* Avoid querying under a certain amount of characters
* Update docs for translations with typescript
* Add interpolate to typescript globals
2024-10-17 18:15:55 +02:00
klmp200 deda2b4055 Replace selec2 with tom-select 2024-10-17 18:15:55 +02:00
klmp200 c1a85486cc Add test for sentry-debug endpoint 2024-10-15 14:09:51 +02:00
klmp200andBartuccio Antoine d114b01bcc Make sure Alpine is always loaded when using markdown-input component 2024-10-15 00:28:43 +02:00
klmp200andBartuccio Antoine dee54c3b41 Use manifest storage and correct webpack conversion on easymde form 2024-10-15 00:28:43 +02:00
klmp200andBartuccio Antoine 670d2fa12e Use a web component for easymde
* Bump tsconfig output to es6
* Fix wrong import behavior on typescript according to webpack's doc
* Create an easymde component
2024-10-15 00:28:43 +02:00
klmp200 0314aa6733 Upgrade python dependencies
* Upgrade pre-commit
* Upgrade model-bakery
* Uprgade mkdocstrings
* Upgrade mkdocstrings-python
* Upgrade mkdocs-material
2024-10-14 15:16:07 +02:00
klmp200andBartuccio Antoine 0b31b215f6 Remove check_front command 2024-10-14 00:55:48 +02:00
klmp200andBartuccio Antoine 7e1734aed5 Migrate chartjs to npm 2024-10-14 00:55:48 +02:00
klmp200andBartuccio Antoine cdf9519a9f Port galaxy to webpack 2024-10-13 20:09:55 +02:00
klmp200andBartuccio Antoine 9609a7615b Don't apply js minification to webpack generated files 2024-10-13 17:14:21 +02:00
klmp200andBartuccio Antoine 361a06e5b3 Migrate sentry to webpack 2024-10-13 17:14:21 +02:00
klmp200andBartuccio Antoine 1720307c21 Add biome for typescript in vscode config 2024-10-13 17:00:09 +02:00
klmp200andBartuccio Antoine 40c623b202 Optimize select2 import 2024-10-13 10:55:15 +02:00
klmp200andBartuccio Antoine 092ace8432 Add commands to easily analyze webpack outputs 2024-10-13 10:55:15 +02:00
klmp200andBartuccio Antoine 00cf619c68 Remove hand crafted urls on viewer-index.ts 2024-10-13 10:55:15 +02:00
klmp200andBartuccio Antoine b6e1c3bc88 Add helper function to export ts functions to html 2024-10-13 10:55:15 +02:00
klmp200andBartuccio Antoine 3b1d06a71d Update select2 documentation 2024-10-13 10:55:15 +02:00
klmp200andBartuccio Antoine a5d8c96bab Remove select2 from vendored
* Make core/utils/select2.ts
* Convert viewer-index.js to typescript
2024-10-13 10:55:15 +02:00
klmp200andBartuccio Antoine 768e2867b5 Fix wrong formatter doc on vscode 2024-10-12 19:43:07 +02:00
klmp200andBartuccio Antoine f07a855e7e Remove history management from script.js and migrate sas albums to webpack 2024-10-12 19:19:23 +02:00
klmp200 579d077b35 Fix docstring 2024-10-10 15:45:43 +02:00
klmp200 32444fac90 Apply review comments 2024-10-10 15:42:11 +02:00