Skip to content

Add additional organization billing information to the Svelte billing settings#2275

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/add-billing-information-support
Draft

Add additional organization billing information to the Svelte billing settings#2275
Copilot wants to merge 4 commits into
mainfrom
copilot/add-billing-information-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 31, 2026

Organizations can now store additional billing details needed for invoicing and tax handling in the new Svelte UI. This adds editable fields for billing identity and persists them through the existing organization data model rather than expanding the core organization patch contract.

  • Billing settings UI

    • Adds a new Billing information section on the organization billing page.
    • Supports:
      • organization billing name
      • organization billing address
      • VAT number
      • VAT ID
    • Uses debounced autosave so edits persist without a separate save flow.
  • Organization data persistence

    • Stores the new values in organization extended data using stable known keys.
    • Reuses the existing per-key organization data endpoints for create/update/delete behavior.
    • Removes keys when values are cleared instead of storing empty strings.
  • Frontend organization API support

    • Adds Svelte-side helpers for posting and deleting organization data entries.
    • Updates organization query cache consistently across the existing organization query variants.
  • Billing data normalization

    • Centralizes the billing data keys and extraction logic in a dedicated helper.
    • Normalizes whitespace-only values to null so UI behavior matches backend trim/delete semantics.
  • Coverage

    • Adds focused frontend tests for billing data extraction and normalization.
    • Adds controller tests covering trimmed persistence and key removal for organization data.
export const organizationBillingInformationDataKeys = {
    name: "billing_name",
    address: "billing_address",
    vatNumber: "billing_vat_number",
    vatId: "billing_vat_id",
} as const;

Copilot AI linked an issue May 31, 2026 that may be closed by this pull request
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Copilot AI and others added 3 commits June 1, 2026 00:13
Co-authored-by: niemyjski <1020579+niemyjski@users.noreply.github.com>
Co-authored-by: niemyjski <1020579+niemyjski@users.noreply.github.com>
Co-authored-by: niemyjski <1020579+niemyjski@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for additional billing information Add additional organization billing information to the Svelte billing settings Jun 1, 2026
Copilot AI requested a review from niemyjski June 1, 2026 00:23
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.

Add support for additional billing information

3 participants