feat: Add reports feature
Enables a new reports section in the application. This includes: - Adding a `reports` flag to `AppFeatures` and `AppSettings`. - Including a new "Reportistica" link in the main navigation for privileged users. - Adding a `getCondoPayments` endpoint to the mock DB service. - Updating the backend to support filtering payments by `condoId`. - Providing a basic `ReportsPage` component.
This commit is contained in:
4
App.tsx
4
App.tsx
@@ -6,6 +6,7 @@ import { FamilyList } from './pages/FamilyList';
|
||||
import { FamilyDetail } from './pages/FamilyDetail';
|
||||
import { SettingsPage } from './pages/Settings';
|
||||
import { TicketsPage } from './pages/Tickets';
|
||||
import { ReportsPage } from './pages/Reports';
|
||||
import { LoginPage } from './pages/Login';
|
||||
import { CondoService } from './services/mockDb';
|
||||
|
||||
@@ -34,6 +35,7 @@ const App: React.FC = () => {
|
||||
<Route index element={<FamilyList />} />
|
||||
<Route path="family/:id" element={<FamilyDetail />} />
|
||||
<Route path="tickets" element={<TicketsPage />} />
|
||||
<Route path="reports" element={<ReportsPage />} />
|
||||
<Route path="settings" element={<SettingsPage />} />
|
||||
</Route>
|
||||
|
||||
@@ -43,4 +45,4 @@ const App: React.FC = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default App;
|
||||
export default App;
|
||||
|
||||
Reference in New Issue
Block a user