Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AI-Generated Eco News Feature to Manage Eco News Page #8050

Open
Maryna-511750 opened this issue Jan 21, 2025 · 0 comments · Fixed by #8083
Open

Add AI-Generated Eco News Feature to Manage Eco News Page #8050

Maryna-511750 opened this issue Jan 21, 2025 · 0 comments · Fixed by #8083

Comments

@Maryna-511750
Copy link
Collaborator

As a GreenCity admin I want to add an AI-generated Eco News feature to the "Manage Eco News" page so that I can easily create new Eco News articles using artificial intelligence.

Assumptions & Constraints

  1. Assumption: The AI endpoint /ai/generate/eco-news is already implemented and functional.
  2. Assumption: The endpoint supports requests both with and without a topic parameter.
  3. Dependency: The AI service must be accessible and return responses in a reasonable time.

Business rules

  1. If the AI endpoint returns an error, a user-friendly error message must be displayed.
  2. Users must have the option to edit the AI-generated text before submission.

Acceptance Criteria

  • A new button labeled "Generate AI Eco News" is added to the "Add Eco News" form.
  • Clicking the button opens a modal or input field where the user can optionally provide a topic for the Eco News.
  • If a topic is provided, a request is sent to /ai/generate/eco-news with the topic as a parameter.
  • If no topic is provided, a request is sent to /ai/generate/eco-news without a topic.
  • The AI-generated text is displayed in the Eco News form for review and editing.
  • Errors during the AI generation process are handled gracefully, with clear feedback to the user.

Epic link
Epic #910 [Epic] (#910)

@Maryna-511750 Maryna-511750 self-assigned this Jan 21, 2025
@github-project-automation github-project-automation bot moved this to Sprint Backlog in GreenCity Jan 21, 2025
@Maryna-511750 Maryna-511750 moved this from To Do to In Progress in Java GreenCity Sprint Jan 21, 2025
@Maryna-511750 Maryna-511750 moved this from Sprint Backlog to Bugs in progress in GreenCity Jan 21, 2025
@softservedata softservedata added this to the Java S53.4 milestone Jan 22, 2025
@Maryna-511750 Maryna-511750 modified the milestones: Java S53.4, Java S53.5 Jan 30, 2025
@softservedata softservedata modified the milestones: Java S53.5, Java S54.1 Jan 31, 2025
@Maryna-511750 Maryna-511750 moved this from Bugs in progress to Ready for testing in GreenCity Feb 3, 2025
@Maryna-511750 Maryna-511750 removed their assignment Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready for testing
Development

Successfully merging a pull request may close this issue.

2 participants