feat: major UI/UX overhaul + user management + ticket detail refactor

- 5-tab navigation (Home/Clients/Collect/Tickets/Profile)
- Inline styles throughout (17px min font, SafeAreaView)
- Dashboard fixed to match real API shape
- Ticket detail: 2 tabs (Details + Comments), always-visible comment input
- Installation confirmation: GPS coordinate capture + client location update
- User management screens (Admin only): list, create, detail + role/active toggle
- Tasks folder replaces tickets folder
- Remittance detail: inline styles
- Record payment: prefill from client, live button text
- Icon component with SVG icons
- Color system: primary #0891B2
This commit is contained in:
Nemo
2026-03-24 10:37:57 +08:00
parent baed6dc8d5
commit 4644a3194d
38 changed files with 4967 additions and 2984 deletions

View File

@@ -11,7 +11,7 @@ export const api = axios.create({
});
api.interceptors.request.use(async (config) => {
const token = await SecureStore.getItemAsync(STORAGE_KEYS.TOKEN);
const token = await SecureStore.getItemAsync('fiberops_token');
if (token) {
config.headers.Authorization = `Bearer ${token}`;
}
@@ -22,8 +22,8 @@ api.interceptors.response.use(
(response) => response,
async (error) => {
if (error.response?.status === 401) {
await SecureStore.deleteItemAsync(STORAGE_KEYS.TOKEN);
await SecureStore.deleteItemAsync(STORAGE_KEYS.USER);
await SecureStore.deleteItemAsync('fiberops_token');
await SecureStore.deleteItemAsync('fiberops_tenant');
}
return Promise.reject(error);
}