Create simple bulletin board system#6
Open
mentatai[bot] wants to merge 4 commits intomainfrom
Open
Conversation
- 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 <50287275+granawkins@users.noreply.github.com>
- 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 <50287275+granawkins@users.noreply.github.com>
- 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 <50287275+granawkins@users.noreply.github.com>
- 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 <50287275+granawkins@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR transforms the template application into a community bulletin board where anyone can post and view messages.
Features Added
bulletins.txt(added to.gitignore)Technical Changes
GET/POST /api/bulletins) to Express serverUsage
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 ✨