summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Very crude mock-up for an authentication screenVika2024-08-242-76/+149
| | | | | | This saves memory by dropping unneeded components. Once the app changes state, it can simply drop the unnecessary component, such as the login screen, to save memory.
* Tags in postsVika2024-08-233-7/+131
|
* Comply with GNOME HIG by ensuring our window can scale to a small sizeVika2024-08-233-157/+149
|
* Factor out the post editor UI into a separate componentVika2024-08-223-369/+537
| | | | | 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).
* Add librsvgVika2024-08-221-2/+2
| | | | Apparently not having it means we won't have our icons.
* Use a nice icon for the post buttonVika2024-08-221-1/+3
|
* SmartSummaryButton: un-asyncify and move summarization to a commandVika2024-08-222-31/+64
| | | | | | | 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-222-38/+67
| | | | | 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-222-71/+120
| | | | | | 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.
* Display toasts on submitted posts and errorsVika2024-08-221-157/+178
| | | | | Success toasts also display a button to open the post in your browser of choice.
* Don't submit empty postsVika2024-08-201-0/+4
|
* Visibility selectorVika2024-08-201-21/+84
|
* Make the TextView scrollableVika2024-08-201-12/+19
|
* Send posts made in the post composerVika2024-08-206-69/+1218
|
* Make the post composer asynchronousVika2024-08-202-12/+28
| | | | | This makes it able to execute unsendable futures, and unlocks ability for us to do asynchronous initialization and updates.
* Post composer UI prototypeVika2024-08-194-0/+351
| | | | | | | | | | Currently the UI does precisely nothing, but the ✨ Smart Summary button prints a message stating what it's supposed to do. The Post button currently just logs to the console, although ultimately it should send a message to a parent component or something. Perhaps even the composer UI itself should be a separate part that can provide an MF2-JSON document on a command.
* Initial Nix & Cargo boilerplate for a Relm4 projectVika2024-08-197-0/+1462