Commit graph

57 commits

Author SHA1 Message Date
murmeldin 49ceea6871 removed unused imports 2025-01-06 08:09:42 +01:00
murmeldin 5aa6eb8179 ollama integration + better messages 2024-12-20 09:37:52 +01:00
murmeldin ac901ccf4a cargo fmt 2024-12-12 15:29:16 +01:00
murmeldin ec3a327c3e new matrix.rs and improved mail messages 2024-12-12 14:07:20 +01:00
murmeldin 7023e9445f mediawiki finally working properly, e-mail messages fixed, ran rustfmt 2024-12-11 16:07:25 +01:00
murmeldin 20b8ce40de restructuring of mediawiki (still in progress) 2024-12-10 21:38:35 +01:00
murmeldin 659e9f258a mediawiki work in progress 2024-12-10 21:38:35 +01:00
murmeldin bbd9b2c29e major improvements to plenum pad logic
- a lot of new comments for better doc
- removed unnecessary functions
- main plenum pad logic still in progress
- one additional comment in main
2024-12-10 21:38:35 +01:00
murmeldin aca180d6ba new state() function
- now, it is possible to use e.g. STATE_OVERRIDE=Waiting to override the state
- this is useful for development in order to ignore parts of the config.sqlite
2024-12-10 21:38:35 +01:00
nobody 3608838949 mediawiki: use OnceCell instead of mut
login_token and csrf_token are internally mutable now
2024-12-10 21:38:35 +01:00
murmeldin 12450ce5a3 mediawiki mutable in main.rs, less unwrap in mediawiki.rs 2024-12-10 21:38:35 +01:00
Marek Krug 2da4a149c9 mediawiki: new features
- Updated new_wiki_page
- New update_plenum_page function to download the main Plenum Page from Mediawiki, insert the Link to the new Page and replace the content of the mediawiki
- new get-page functions
- new edit-selection functions
(Wiki still in progress)
2024-12-10 21:38:35 +01:00
Marek Krug 9afc16ca0c moved all to-dos to readme.md 2024-12-10 21:38:35 +01:00
murmeldin e4444b8118 mediawiki progress
- mediawiki.rs:
 - new make_request function for easier post- and get-requests
 - new new_wiki_page function that creates new wiki pages
 - working csrf-Token-function
 - fixed read_txt_file function: Now properly working
 - pad_ins_wiki-function is now the main trigger for all the actions that should be done on day after plenum
- hedgedoc.rs + mediawiki.rs: Better error handling for common offline edge case
- main: ansi art moved in function, Timer and eta for time prediction during development
- still to do in mediawiki.rs: Date logic for pad generation and function for modifying the main Plenum Page
2024-12-10 21:38:35 +01:00
murmeldin f12f6d05b1 mediawiki: added login stuff
- mediawiki: login_token_get and login_post now working
- csrf still in progress
- added wiki-api-user + secret to wiki-init
- changed ascii-art to be more compact
2024-12-10 21:38:35 +01:00
nobody fd27541bbf move debug / util macros to lib.rs 2024-12-10 21:38:35 +01:00
nobody 0df0d9c5a4 more nyi reminders 2024-12-10 21:38:35 +01:00
nobody 9a6b7f8685 more cleanup & fixes 2024-12-10 21:38:35 +01:00
nobody 233a263b89 clippy 2024-12-10 21:38:35 +01:00
nobody 06457bd1c5 actions mostly completed (with NYIs) 2024-12-10 21:38:35 +01:00
nobody 92d87193a8 NYI macro, cleanup transition function 2024-12-10 21:38:35 +01:00
nobody 60956b6303 lib target; working doctests
also paves the way for further cleanups
2024-12-10 21:38:35 +01:00
nobody 7093280d80 announcement/reminder 2024-12-10 21:38:35 +01:00
murmeldin fecf6ebed5 small tweaks 2024-12-10 21:38:35 +01:00
nobody d152e0da61 state transition progress
- add notes what needs to happen
- hedgedoc summary
2024-12-10 21:38:35 +01:00
nobody 8bc7405d63 fix or silence most warnings 2024-12-10 21:38:35 +01:00
nobody 12501c8c73 improve debuggability
more Debug-derives, trace/verbose, …
2024-12-10 21:38:35 +01:00
nobody 2d3549a200 more env config (VERBOSE/TRACE, TODAY) 2024-12-10 21:38:35 +01:00
nobody 88450b7a61 main: more date logic 2024-12-10 21:38:35 +01:00
nobody 248f1f227a chaosknoten logo unicode ansi art 2024-12-10 21:38:35 +01:00
nobody 77842f1f6d (empty) state machine exists 2024-12-10 21:38:35 +01:00
nobody 124c1b2a55 date logic: parsing, computations, config, states
date:
- parse a date specification
- now has most of the date computations we need

main:
- add explicit state machine (states + config)
- has first steps towards figuring out intended state
- still needs more logic, and some stuff can probably move to date
2024-12-10 21:38:35 +01:00
nobody 3be7898cdb add mediawiki struct & move stuff onto it 2024-12-10 21:37:59 +01:00
nobody 473d131246 rustfmt, rustdoc, Cargo.toml fixes 2024-12-10 21:37:57 +01:00
murmeldin 81714dfdc0 colored std-output for better readability 2024-12-10 21:36:36 +01:00
murmeldin c4fc33bc50 Error fixes 2024-12-10 21:36:33 +01:00
nobody 8f09feb0fc templating code 2024-12-10 21:33:27 +01:00
nobody a34e4b7e1f reorder imports 2024-12-10 21:33:27 +01:00
nobody 0a992e2900 split config & move email out into own file
In preparation for separate programs, the config spec is now built in
main; each module defines its own group and main combines them all.
2024-12-10 21:33:27 +01:00
murmeldin 427bd27968 mediawiki function cleanup, login token working and to-do list in main 2024-12-10 21:33:23 +01:00
murmeldin c8031dfc01 mit cargo fmt alles formatiert 2024-12-10 21:30:13 +01:00
murmeldin c026a38239 überall async entfernt, lauffähiger Zustand 2024-12-10 21:30:02 +01:00
murmeldin 9db5955c1b wiki in extra datei + get_tuesdays wurde general purpose 2024-12-10 21:27:38 +01:00
murmeldin 1742f768bf Jetzt läuft alles wiededer nach dem merge (Error Correction) 2024-12-10 21:27:38 +01:00
nobody 8a00931f49 more cleanup, dry run mode, more config usage
- email templates as raw strings w/ inline vars
- email info from config db now
- dry run mode is honored by email
- hedgedoc interfacing in a separate file
- mediawiki stuff (incl.) pandoc moved to a separate file
…and more
2024-12-10 21:27:38 +01:00
nobody de57e2c316 improve dates & borrowing strings 2024-12-10 21:27:38 +01:00
nobody 9f38a41b46 basic arg parsing + config check mode 2024-12-10 21:27:38 +01:00
murmeldin 79fa94e5d8 Überall async entfernt und weiter beim Wiki gemacht 2024-12-10 21:27:38 +01:00
murmeldin 8526fa4fca Pandoc Umwandlung zu MediaWiki 2024-12-10 21:27:25 +01:00
nobody 19be226f11 Clean up key/value store, add convenience wrapper. 2024-12-10 21:27:25 +01:00