Skip to content

Conversation

@mentatai
Copy link
Contributor

@mentatai mentatai bot commented Sep 25, 2025

This PR transforms the template application into a community bulletin board where anyone can post and view messages.

Features Added

  • 📝 Post Bulletins: Simple form to add new bulletins to the board
  • 📰 Live Feed: Display latest bulletins with timestamps (newest first)
  • 💾 File Storage: Save bulletins to bulletins.txt (added to .gitignore)
  • 🎨 Clean UI: Bulletin board themed interface with emojis and modern styling

Technical Changes

  • Add bulletin API endpoints (GET/POST /api/bulletins) to Express server
  • Replace template React app with bulletin board interface
  • Implement simple file-based storage system with correct path resolution
  • Add proper error handling and loading states
  • Include form validation and real-time updates
  • Update tests to match new bulletin board functionality

Usage

Users can now visit the application to post bulletins and see messages from the community in real-time. The system is intentionally simple with no authentication - perfect for a shared collaborative space.


🤖 This PR was created with Mentat. See my steps and cost here

  • Wake on any new activity.

- Add bulletin board API endpoints (GET/POST /api/bulletins)
- Transform React app into bulletin board interface
- Add file-based storage using bulletins.txt (with correct path)
- Add bulletins.txt to .gitignore
- Include form to post bulletins and feed to view them
- Show newest bulletins first with timestamps
- Update tests to match new bulletin board functionality

Mentat precommit script passed. Log: https://qa.mentat.ai/gh/AbanteAI/qa-party/log/4abacb59-b80a-4ad6-afef-9a017b21c4ce

Co-authored-by: granawkins <[email protected]>
@mentatai mentatai bot requested a review from granawkins September 25, 2025 07:04
mentatai bot and others added 3 commits September 25, 2025 07:06
- Update API welcome message test to match new bulletin board message
- Add comprehensive tests for bulletin board endpoints (GET/POST /api/bulletins)
- Add test cleanup to remove bulletins.txt file after each test
- Test error handling for empty messages
- Test bulletin creation and retrieval functionality

Mentat precommit script passed. Log: https://qa.mentat.ai/gh/AbanteAI/qa-party/log/4a10abb2-4cfe-4ba4-9d5f-4fd19255a283

Co-authored-by: granawkins <[email protected]>
- Add getApiUrl helper to detect forwarded port environment
- Use direct backend URL when accessing through userdata.qa.mentat.ai
- Replace port 5173 with 5000 in forwarded URLs to reach backend
- Maintain proxy functionality for local development
- This fixes HTTP 500 errors when using the bulletin board through forwarded ports

Mentat precommit script passed. Log: https://qa.mentat.ai/gh/AbanteAI/qa-party/log/16f68531-a7e3-4416-8ee9-83271d15d9a7

Co-authored-by: granawkins <[email protected]>
- Add console.log statements to see what URLs are being generated
- Log frontend URL, backend URL, and full API URL
- This will help debug the "not valid JSON" error
- User can check browser console to see what URLs are being accessed

Mentat precommit script passed. Log: https://qa.mentat.ai/gh/AbanteAI/qa-party/log/97cd6aaa-2f29-42d4-bd82-220dd3b9e156

Co-authored-by: granawkins <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant