refactor: Move placeholder data from Slint to Rust #6

Open
warren wants to merge 5 commits from data-property into main
Collaborator

Introduces properties in MainWindow to dynamically set the chat data from Rust code.

Introduces properties in MainWindow to dynamically set the chat data from Rust code.
ChatView will need to accept data externally. Putting mock data straight into the slint file makes not much sense - we'll feed that from rust-land if need be.
Introduced `ChatData` struct to encapsulate both messages and chat title, and updated ChatData to use this struct, making the data better-encapsulated for feeding in through a larger data model.
Replaced hardcoded `ChatView` instances with dynamic rendering using `views` and `chat-data` properties, enabling better integration with Rust-land.
Added placeholder_data.rs which contains two sets of example chat messages with which to fill out the UI.
Replaced hardcoded `ChatView` instances with dynamic rendering using `views` and `chat-data` properties, enabling better integration with Rust-land.
warren force-pushed data-property from 33390fdf0b to bf8ff3538c 2025-11-26 19:20:32 +00:00 Compare
warren force-pushed data-property from bf8ff3538c to 1f3c444a32 2025-11-27 08:36:32 +00:00 Compare
warren changed title from WIP: data-property to WIP: dev: Set up chat-data property and populate from Rust 2025-11-27 08:37:25 +00:00
warren changed title from WIP: dev: Set up chat-data property and populate from Rust to dev: Set up chat-data property and populate from Rust 2025-11-27 08:39:45 +00:00
warren force-pushed data-property from 1f3c444a32 to ea39d24e42 2025-11-27 08:42:07 +00:00 Compare
Owner

@warren Can you rebase on main and run ./.git/hooks/pre-commit

@warren Can you rebase on main and run `./.git/hooks/pre-commit`
warren force-pushed data-property from ea39d24e42 to 6e48450527 2025-11-27 08:49:45 +00:00 Compare
warren force-pushed data-property from 6e48450527 to 2512c11130 2025-11-27 08:50:18 +00:00 Compare
warren force-pushed data-property from 2512c11130 to 1dfac7abb2 2025-11-27 09:11:19 +00:00 Compare
warren force-pushed data-property from 1dfac7abb2 to d7222ce553 2025-11-27 11:14:37 +00:00 Compare
warren changed title from dev: Set up chat-data property and populate from Rust to refactor: Move placeholder data from Slint to Rust 2025-11-27 11:14:47 +00:00
warren force-pushed data-property from d7222ce553 to a175555031 2025-11-27 22:19:51 +00:00 Compare
warren force-pushed data-property from a175555031 to d7222ce553 2025-11-27 22:22:54 +00:00 Compare
warren force-pushed data-property from d7222ce553 to a379a3f8fb 2025-11-27 22:29:00 +00:00 Compare
warren force-pushed data-property from a379a3f8fb to 8287da6d4b 2025-11-30 12:58:18 +00:00 Compare
warren force-pushed data-property from 8287da6d4b to 6b8d557fa0 2025-11-30 13:51:44 +00:00 Compare
warren force-pushed data-property from 6b8d557fa0 to 22449d00dc 2025-11-30 14:06:43 +00:00 Compare
This pull request doesn't have enough approvals yet. 0 of 1 approvals granted.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin data-property:data-property
git switch data-property
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
nemalixi/chat-app!6
No description provided.