Fix public services page filtering and messaging thread detail #16
Labels
No milestone
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coopcloud_code/projectmycelium_marketplace#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem 1: Public Services Page Empty
The public "Human Energy Services" page at
/marketplace/servicesis empty despite having service listings in hero_osis.Root Cause
In
src/controllers/marketplace.rs(line ~900), the services handler filters products by:But all hero_osis listings have
category_id = "compute". The seed script needs to create listings withcategory_id = "service"and"application", and/or the filter logic needs to be reviewed.Fix
category_idvalues ("service", "application", "compute")Problem 2: Messaging Thread Detail Empty
Message threads appear in the list, but clicking a thread shows empty conversation.
Root Cause
Thread-to-message association uses
thread_idfield, but there is a mismatch between the thread IDs stored in threads vs thethread_idfield in messages in hero_osis.Fix
Acceptance Criteria
Dependencies
scripts/seed-hero-osis.sh)Public services page uses services.products.search_products_advanced(). Messaging uses services.messaging.* for all public handlers.
Reopened — remaining work
Remaining bypasses in messaging.rs:
UserPersistencecalls for message thread operationsThese should be rewired to use
services.messaging.*— the MessagingManager trait already has all needed methods (get_threads, get_thread_messages, create_thread, send_message, mark_thread_read).archived repo, closing