Skip to content

Conversation

@SebastiaanKloos
Copy link
Collaborator

Summary

  • Automatic project pre-filling: When creating items from within a project or board view, the project field is now automatically pre-filled with the current project
  • Users can still override the pre-filled project if needed
  • Includes comprehensive test coverage for the new functionality

Implementation

The feature passes the current project ID through the component hierarchy:

  • Project/board views pass the project ID to the App component
  • App component stores and passes it to the Header Livewire component
  • Header component pre-fills the project field in the submit item action

🤖 Generated with Claude Code

SebastiaanKloos and others added 5 commits November 26, 2025 14:47
This adds a new public property to store the current project ID, which will be used to pre-fill the project field when creating items from within a project context.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updates the App component to accept a currentProjectId parameter in its constructor and store it as a property. This enables the component to pass project context down to child components.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updates the app layout to pass the currentProjectId property to the Header Livewire component, enabling it to pre-fill the project field when creating items.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updates both the project and board views to pass the current project ID to the App component. This ensures that when users create items from within a project context, the project field is automatically pre-filled with the current project.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
…nality

Adds a complete test suite for the Header Livewire component covering:
- Basic component rendering
- Project pre-fill when currentProjectId is set
- No pre-fill when currentProjectId is null
- Guest user login notifications
- User can create items with pre-filled project
- User can override pre-filled project
- Project field visibility based on settings
- Project field requirement validation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@Cannonb4ll Cannonb4ll merged commit a1d8f8b into ploi:main Nov 26, 2025
4 checks passed
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.

2 participants