summary refs log tree commit diff
path: root/src/components
Commit message (Collapse)AuthorAgeFilesLines
* Deal with Clippy warningsVika2024-09-042-2/+1
| | | | | | | | | | | 1. narrow_layout is indeed unused, `AdwBreakpoint` remembers initial values and restores them on load 2. `TagPillWidgets` is not exactly dead code, I'm adding all the widgets to it to emulate how Relm4 macros do it. Perhaps it'll be used in the future. 3. We currently ignore the libsecret result on clearing the tokens because dealing with libsecret errors is annoying and requires unsafe code due to outdated dependencies.
* Gettextize and add Russian translationVika2024-09-043-20/+24
| | | | | | This is a very shitty translation, but it can be improved later. I added it mostly as a test for translations working correctly, since I know Russian and might as well translate the app into the language.
* Set global CSS instead of adding a style context to every widgetVika2024-08-281-9/+0
|
* Clear tags on post submitVika2024-08-261-1/+1
|
* Style changes to work better with the default themeVika2024-08-252-20/+41
| | | | Yes, I'm stupid and I'm developing under a custom theme
* TagPill: remove the commented macro invocationVika2024-08-251-1/+0
|
* PostEditor: reset internal tracker on updatesVika2024-08-251-0/+1
|
* SignIn: Provide scopes granted in the outputVika2024-08-251-5/+11
| | | | TODO: make requested scopes parametrized
* Bring child components onto the top-level and use a single SoupSessionVika2024-08-251-3/+3
| | | | | | | This helps unify HTTP-related settings in one place. In Relm4 Matrix chatroom, it was said that deconstructing child components makes little sense in terms of optimizations.
* Prototype for signing in with IndieAuthVika2024-08-251-0/+535
| | | | | | The code is really janky and unpolished, the error handling is TERRIBLE, and I think I can't publish it like this. This'll need a refactor, but it'll come tomorrow.
* Tags in postsVika2024-08-232-6/+127
|
* Comply with GNOME HIG by ensuring our window can scale to a small sizeVika2024-08-231-126/+148
|
* Factor out the post editor UI into a separate componentVika2024-08-221-0/+489
| | | | | Now it's easy to use the same UI for sending a new post or editing an existing one (by loading it with `?q=source` and then comparing).
* SmartSummaryButton: un-asyncify and move summarization to a commandVika2024-08-221-21/+44
| | | | | | | What this command should do is construct a summarization request and return a future which would return chunks from the LLM. Perhaps this component will be asyncified in the future.
* SmartSummaryButton: ask parent component for textVika2024-08-221-31/+42
| | | | | On receving `smart_summary::Output::Start`, one must reply with `smart_summary::Input::Text(text)` to start the actual summarization.
* Factor out the smart summary buttonVika2024-08-221-0/+84
This is a little bit janky in my opinion, because it takes a reference to the buffer which contents its gonna be summarizing. In a perfect world, it would ask the parent component for the text.