Skip to content

feat: export Invoices page as a component and consume it in apps/admin#1357

Open
paanSinghCoder wants to merge 12 commits intorefactor/admin-ui-childfrom
feat/export-invoices-page
Open

feat: export Invoices page as a component and consume it in apps/admin#1357
paanSinghCoder wants to merge 12 commits intorefactor/admin-ui-childfrom
feat/export-invoices-page

Conversation

@paanSinghCoder
Copy link
Contributor

@paanSinghCoder paanSinghCoder commented Jan 29, 2026

  • Move Invoices page to @raystack/frontier/admin
  • Moved Invoices UI from apps/admin/src/pages/invoices/list/ into web/lib/admin/views/invoices/ as a router-agnostic page.
  • Exported InvoicesPage from @raystack/frontier/admin with optional prop: appName.
  • Reused lib/admin shared pieces: utils (connect-pagination, transform-query, connect-timestamp with isNullTimestamp), components (PageTitle, etc.) and CSS modules.
  • Wired the admin app via InvoicesPageWithRouter and route invoices.
  • Removed pages/invoices/list from the app; Invoices is implemented in the lib.
  • Exported shared pagination/query utils from the lib so existing app pages (org list/details, users list, audit logs, etc.) import them from @raystack/frontier/admin instead of ~/utils/....

Note: For local testing, use "@raystack/frontier": "workspace:^" in frontier/web/apps/admin/package.json.
Technical details

  • Page: lib/admin/views/invoices/ (index, columns, navbar, invoices.module.css).
  • Utils: connect-pagination, transform-query; connect-timestamp extended with isNullTimestamp for columns.
  • App: InvoicesPageWithRouter in apps/admin/src/pages/invoices/, route /invoices; Sidebar uses ~/assets/icons/invoices.svg.

Test plan

  • Manual testing completed.
  • Build and type checking pass.

@vercel
Copy link

vercel bot commented Jan 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
frontier Ready Ready Preview, Comment Feb 3, 2026 0:19am

@paanSinghCoder paanSinghCoder changed the base branch from main to refactor/admin-ui-child January 29, 2026 12:40
@paanSinghCoder paanSinghCoder marked this pull request as draft January 29, 2026 12:44
@coveralls
Copy link

coveralls commented Jan 31, 2026

Pull Request Test Coverage Report for Build 21629889516

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 37.983%

Totals Coverage Status
Change from base Build 21628546856: 0.0%
Covered Lines: 15956
Relevant Lines: 42008

💛 - Coveralls

@paanSinghCoder paanSinghCoder marked this pull request as ready for review January 31, 2026 05:27
@paanSinghCoder paanSinghCoder self-assigned this Jan 31, 2026
@paanSinghCoder paanSinghCoder added the Do not merge Label to indicate that the PR is not ready to be merged even though might be (or not) approvals. label Jan 31, 2026
@paanSinghCoder paanSinghCoder changed the title Feat/export invoices page feat: export Roles page as a component and consume it in apps/admin Jan 31, 2026
@paanSinghCoder paanSinghCoder changed the title feat: export Roles page as a component and consume it in apps/admin feat: export Invoices page as a component and consume it in apps/admin Jan 31, 2026
@paanSinghCoder paanSinghCoder removed the Do not merge Label to indicate that the PR is not ready to be merged even though might be (or not) approvals. label Feb 3, 2026
@paanSinghCoder paanSinghCoder requested a review from rsbh February 3, 2026 12:29
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