Skip to content

Add category and payment fields for bills - #103

Open
magshee wants to merge 1 commit into
InteractionEngineer:mainfrom
magshee:cospend-payment-and-category-field
Open

Add category and payment fields for bills#103
magshee wants to merge 1 commit into
InteractionEngineer:mainfrom
magshee:cospend-payment-and-category-field

Conversation

@magshee

@magshee magshee commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

First of all, sorry for the long wait. I got a little busier than expected in the last weeks. Also I kind of ran too far on my first attempt, which resulted in changing more code than necessary for this PR. I threw my original branch away and started all over.

How this works

Category and payment tags are shipped via the general project endpoint. Every time when bills and members are loaded, we also load the category and payment tags. If they are not available for some reason, this does not cause the bill details to not show. Simply the picker for both category and payment tag is not shown then. Existing id's for both are kept upon updating in that case.

Design

The current design is like this, but feel free to propose changes.

Screenshot iPhone 17 Pro 05 09 2026 at 23 28 34 Screenshot iPhone 17 Pro 05 09 2026 at 23 31 24

Final note

This PR also fixes a bug where a reoccuring bill is set to non-reoccuring after it is edited in PayForMe.

I used claude code to get a better understand of the cospend API, translations, as well as for getting test coverage and figuring out what weird behaviour may appear, in order to get the best result possible. I am aware that the solution may still not be optimal. However, I thought that even a suboptimal solution may be better than waiting for anything at all.

I am still happy to be able to present something here, thanks for your patience!

@magshee

magshee commented Sep 6, 2026

Copy link
Copy Markdown
Contributor Author

Merging this would also fix the problem addressed in #98

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