Skip to content

Add initial page structure for Clients, Orders and Services pages#18

Merged
reenatoteixeira merged 3 commits intostagefrom
feat/add-pages-structure
Mar 30, 2026
Merged

Add initial page structure for Clients, Orders and Services pages#18
reenatoteixeira merged 3 commits intostagefrom
feat/add-pages-structure

Conversation

@reenatoteixeira
Copy link
Copy Markdown
Member

This pull request refactors the Clients, Orders, and Services pages to introduce reusable table components, add entity-specific type definitions, and improve the overall user interface for managing these entities. The changes lay the groundwork for CRUD operations by adding placeholder data, action buttons, and TODO comments for future database integration and routing.

Key changes include:

UI and Table Refactoring:

  • Replaced the previous static and placeholder content on ClientsPage, OrdersPage, and ServicesPage with a consistent table-based layout using the shared Table component. Each page now supports search, pagination, and action buttons for editing and deleting entries, with "New" buttons to add new entities. [1] [2] [3] [4] [5] [6]

Type Definitions and Exports:

  • Added new TypeScript interfaces for Client, Order, and Service entities, ensuring type safety and consistency across modules. [1] [2] [3]
  • Exported these types from their respective index.ts files for easier imports throughout the codebase. [1] [2] [3]

Preparation for CRUD Operations:

  • Added placeholder arrays and TODO comments in each entity page to indicate where data fetching and CRUD logic will be implemented in the future. Action buttons for edit and delete are wired with placeholder handlers and routes. [1] [2] [3]

These changes establish a scalable foundation for entity management and set up clear next steps for database integration and routing.

@reenatoteixeira reenatoteixeira self-assigned this Mar 30, 2026
@reenatoteixeira reenatoteixeira added the enhancement New feature or request label Mar 30, 2026
@reenatoteixeira reenatoteixeira merged commit 9f71e56 into stage Mar 30, 2026
2 checks passed
@reenatoteixeira reenatoteixeira deleted the feat/add-pages-structure branch March 30, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant