Skip to content

Conversation

@Vuk7912
Copy link

@Vuk7912 Vuk7912 commented Jun 28, 2025

Implement AddTodoActivity for Creating New Todo Items

Description

Task

Develop AddTodoActivity with UI components for todo item creation

Acceptance Criteria

  • Activity allows creating new todo items
  • Title input is mandatory
  • Description input is optional
  • Save button creates a new todo item
  • Input validation prevents empty titles

Summary of Work

This pull request adds a new AddTodoActivity to allow users to create new todo items with title and description inputs.

Key Implementation Details:

  • Created AddTodoActivity with UI components for todo item creation
  • Implemented input validation for todo item title
  • Added basic UI layout with Material Design TextInputLayouts
  • Prepared save functionality for todo items
  • Included error handling for empty title inputs

Components Implemented:

  1. UI Layout (activity_add_todo.xml):

    • Title input field with Material Design TextInputLayout
    • Description input field with multiline support
    • Save button for creating todo items
  2. Activity Logic (AddTodoActivity.kt):

    • View binding for input fields
    • Input validation
    • Placeholder for todo item saving mechanism
    • User feedback with Toast message

Future Improvements:

  • Integrate with TodoRepository for actual data persistence
  • Add more robust input validation
  • Implement error handling for repository interactions

Changes Made

  • Created AddTodoActivity.kt with todo item creation logic
  • Implemented activity_add_todo.xml layout
  • Added input validation for todo item title
  • Prepared save functionality with placeholder for data persistence

Tests

  • Verify title input cannot be empty
  • Ensure description can be optional
  • Check save button triggers activity finish
  • Validate Toast message appears on todo creation

Signatures

Staking Key

3oBzgQ4y8YtmkxYGkse1fKKefi25twpMKU9BBdsYtjDQ: 9GBvcEm7y7FNQpKHFWWFd759KPMNxLtdEyMXwebuetvZY4zPtYsCBWoKtWt2RcCc7QMQ2Wz7SKYARDDyczK1imENZRPt9ZmAx5DY2AaNDzmQ8zqrPtGZtqxDiy8SYRrgJd1HCckjVmJM5eh8D5LfLXoe9Pd2Dz8cfv8e3kHsgGwXAFQTHTvMSLXQUteWhNm2d48H9bV1sfXF58ikcPDQUP14WU6SdnYZMNRtk9571jMJaiE6G79BRZx1nDXj32mC5md7mGXh4eaLA7JXH6ZARJXQpdkCo9jm7zNdJvCBmC3fjWdsAiRF8d8tKr1euwhaW5QpCkmPrHfH6NvXBxiiogvWrjv2nsJYSi968RfiXg1MoZnUPSarhP2mrp5yeEsvGkQzUyAGy9i83MjUWwVWVu2rMqrnUCHVW

Public Key

4WA5vRJLthsg6sJqVc6DQuRkGzvoxZ11SkqzwbqxCo2V: 3Ju3nX4sKHFQqS2cRgLFbAwxofQsdzXq5a4SbVURJyxxMyGEK2eqJ5bWKuXP6oTritd8sb4S7dsYQLJNM9cWYs65DCCpqSGBMjC1rQVN2JgnCwP6GD6bwZ5sqAWBDujaR9W5cDwE9LA17Q4Wypg6ryAbW9wrxR3UfJS78tV4N78v9YvudfQywxMjF5JFAw5Jb9DJfqcSR9NxunbgszWhKfzxu9tUidhZ2epPvoeqsnG6czvu2eWP1dkcFZ2Zzm3qrSuJZfn5eGX2GeEBvgNxz3e5GMooUUwiwYMmbPXU1aqFQK2c8hgdvjQWwhPFZ8cnyTfSUsLvBhTYrFZDZkshEbDv5HA3eYeMhNSq2a1hocUFdm69E9iCuC2f69ogfJjLrh3ocyxgwgeXM5Jze5fyU92XiG2kavagC

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