Frontend shared libraries
Frontend shared libraries provide reusable client capabilities for the Gauzy web experience. They connect account access, tenant context, deployment settings, navigation, shared forms, tables, reports, language, app switching, and React presentation to one client shell. See Web client experience, Angular web application, and Identity and access control.
Library roles
The libraries divide shared client work by responsibility. An Angular application normally uses UI Core as its base, then adds UI Auth, UI Config, or the React packages when needed.
| Library | Purpose |
|---|---|
@gauzy/ui-core | Shared Angular rules, services, controls, forms, navigation, reports, themes, and language |
@gauzy/ui-auth | Public account entry and recovery journeys |
@gauzy/ui-config | Deployment and browser settings |
@gauzy/ui-react | Angular-to-React hosting and plugin boundary |
@gauzy/ui-react-components | Reusable React dashboard and presentation controls |
This diagram shows how the libraries meet at one client shell.
flowchart LR
Config[Deployment settings] --> Shell[Client shell]
Core[Angular UI Core] --> Shell
Auth[UI Auth] --> Core
Shell --> Bridge[Angular-React boundary]
Bridge --> React[React UI and components]
Shell --> Product[Product pages and plugins]
Shared client contract
UI Core exposes common rules through public areas for data helpers, services, controls, themes, and translations. This gives product pages one meaning for safe links, request ordering, access checks, display state, list filter state, user API-token access, and Ever app-link resolution (packages/…/index.ts• L1-17, packages/…/index.ts• L1-90).
References: packages/…/index.ts• L1-17 packages/…/index.ts• L1-90
Favorite navigation
The shared favorites model turns a saved record into an icon, label, description, and route. It loads the signed-in employee's favorites for the active organization. An administrator can also see organization-level pins. Record details choose the record's own page when one exists, with special handling for document kinds and estimates (packages/…/favorite-store.service.ts• L11-30, packages/…/favorite-store.service.ts• L112-165, packages/…/entities-mapping.ts• L55-100, packages/…/entities-mapping.ts• L110-165).
The sidebar orders entries by when they were added. Type-specific fields provide readable names for records such as invoices, expenses, payments, proposals, and products. Rich text becomes plain text before it is shown as a title or description (packages/…/favorite-store.service.ts• L167-235, packages/…/entities-mapping.ts• L184-247).
References: packages/…/favorite-store.service.ts• L11-30 packages/…/favorite-store.service.ts• L112-235 packages/…/entities-mapping.ts• L55-100 packages/…/entities-mapping.ts• L110-165 packages/…/entities-mapping.ts• L184-247 packages/…/entities-mapping.spec.ts• L15-78 packages/…/entities-mapping.spec.ts• L84-178
Angular client foundation
UI Core is the main Angular foundation for the signed-in product. It joins user, tenant, and organization context to shared navigation and product actions, while UI Core Shared supplies reusable controls and forms.
Identity and request context
The request layer keeps browser calls in the active deployment and scope. It carries the API location and identity context, including language, tenant, and organization. Authentication state and token renewal are shared so parallel calls use one refresh result rather than creating refresh races (packages/…/api.interceptor.ts• L20-33, packages/…/token.interceptor.ts• L6-35, packages/…/language.interceptor.ts• L24-41, packages/…/tenant.interceptor.ts• L19-56, packages/…/auth-refresh.interceptor.ts• L40-91).
References: packages/…/api.interceptor.ts• L20-33 packages/…/token.interceptor.ts• L6-35 packages/…/auth-refresh.interceptor.ts• L40-179 packages/…/language.interceptor.ts• L24-41 packages/…/tenant.interceptor.ts• L19-56
Access and route behavior
Shared guards separate public pages from signed-in pages and preserve a safe in-app return path. Registration and personal API-token pages follow server capability checks, so links and routes are hidden when the feature is off (packages/…/registration-enabled.guard.ts• L1-15, packages/…/user-api-tokens-enabled.guard.ts• L1-15, packages/…/user-api-token.service.ts• L21-50).
Page and plugin routes follow the same access model. The route registry rejects entries without a navigation target, prevents plugins from claiming reserved core paths, and allows only the guarded route sharing that Angular can match safely (packages/…/page-route-registry.service.ts• L99-157, packages/…/page-route-registry.service.ts• L215-301).
References: packages/…/registration-enabled.guard.ts• L1-15 packages/…/user-api-tokens-enabled.guard.ts• L1-15 packages/…/user-api-token.service.ts• L21-50 packages/…/page-route-registry.service.ts• L99-157 packages/…/page-route-registry.service.ts• L215-301
Navigation model
The shared navigation turns current user and workspace state into visible menu sections. Permissions, feature flags, deployment state, capability checks, and workspace data decide what a user may see. The sidebar chooses the most specific visible link as the active owner and keeps collapsed child destinations usable by pointer and keyboard (packages/…/base-nav-menu.component.ts• L44-78, packages/…/base-nav-menu.component.ts• L1300-1364, packages/…/menu-item.interface.ts• L9-21).
Menu items carry a common contract for translation, permissions, feature visibility, active paths, counts, and add actions. User-created names remain literal content rather than translation keys. This supports both built-in product areas and tenant-specific content (packages/…/nav-builder-types.ts• L14-35, packages/…/base-nav-menu.component.ts• L1316-1328).
The sidebar presents parent and child rows as a flat, readable navigation surface. It keeps labels aligned, marks the active child, and exposes row actions without changing the route contract (packages/…/children-menu-item.component.html• L1-56, packages/…/menu-item.component.scss• L91-220).
References: packages/…/base-nav-menu.component.ts• L44-78 packages/…/base-nav-menu.component.ts• L1300-1364 packages/…/nav-builder-types.ts• L14-35 packages/…/menu-item.interface.ts• L9-21 packages/…/children-menu-item.component.html• L1-56 packages/…/menu-item.component.scss• L91-220
Organization context
The organization selector gives the shell one active workspace context. It loads the user's organizations, restores a stored or default choice, and updates the URL so navigation and refresh keep the same organization (packages/…/organization.component.ts• L67-79, packages/…/organization.component.ts• L141-200).
Changing organizations asks the context service for the matching identity state before it updates the route. Creation, update, and deletion events keep the selector list and the shared store aligned (packages/…/organization.component.ts• L103-125, packages/…/organization.component.ts• L225-325).
References: packages/…/organization.component.ts• L67-125 packages/…/organization.component.ts• L141-215 packages/…/organization.component.ts• L225-325 packages/…/organization.component.ts• L348-392
List filter state
The shared list filter state keeps a list page's choices when a user opens a detail page and returns with browser Back or Forward. It stores the state in memory by list path and signed-in scope, restores it only for a history visit, and clears it when the user, tenant, or organization changes (packages/…/list-filter-state.service.ts• L26-45, packages/…/list-filter-state.service.ts• L74-109, packages/…/list-filter-state.service.ts• L149-173).
Shared table filters use the same service for text, range, select, and toggle choices. A restored choice goes through the normal filter path, so the control and list query stay aligned even when a table rebuilds its filter controls (packages/…/input-filter.component.ts• L31-53, packages/…/restorable-filter.component.ts• L21-39, packages/…/range-filter.component.ts• L44-67, packages/…/toggle-filter.component.ts• L35-57).
References: packages/…/list-filter-state.service.ts• L26-45 packages/…/list-filter-state.service.ts• L74-109 packages/…/list-filter-state.service.ts• L149-173 packages/…/input-filter.component.ts• L31-53 packages/…/restorable-filter.component.ts• L21-39 packages/…/range-filter.component.ts• L44-67 packages/…/toggle-filter.component.ts• L35-57
Integration services
Shared integration services connect product pages to external work systems while keeping the active tenant and organization in the request. The GitHub service starts an installation with a tenant-bound one-use state value, then supports repository discovery, issue reads, repository sync, and issue synchronization for the selected workspace (packages/…/github.service.ts• L27-51, packages/…/github.service.ts• L55-99, packages/…/github.service.ts• L120-170).
The service keeps pull-request identity in issue payloads so the server can distinguish pull requests from issues instead of creating the wrong task type (packages/…/github.service.ts• L194-210).
References: packages/…/github.service.ts• L27-51 packages/…/github.service.ts• L55-99 packages/…/github.service.ts• L120-170 packages/…/github.service.ts• L194-210
Shared presentation capabilities
UI Core Shared gives product pages common ways to collect, filter, display, and export business data. Its value is consistency across scope rules, empty states, keyboard behavior, date handling, record states, and visual language.
Forms and selectors
Shared selectors keep choices tied to the active organization, employee, project, team, and client context. They can offer permitted create actions while keeping the selected value and server scope aligned (packages/…/contact-selector.component.ts• L84-129, packages/…/task.component.ts• L136-155).
The task and project selectors clear dependent choices when their scope changes. Older responses cannot restore an invalid project or module list (packages/…/add-task-dialog.component.ts• L140-221, packages/…/project.component.ts• L396-447).
References: packages/…/contact-selector.component.ts• L84-129 packages/…/add-task-dialog.component.ts• L140-221 packages/…/project.component.ts• L396-447
Tag selection
The shared tag controls load tags at tenant or organization scope and only offer creation when the current permissions allow it. The mutation flow keeps the tag name, description, type, scope, and color in one form, then sends the chosen scope to the tag service (packages/…/tags-mutation.component.ts• L49-61, packages/…/tags-mutation.component.ts• L124-203, packages/…/tags.service.ts• L8-53).
Color input accepts values the picker can display and offers keyboard-accessible presets. Existing values can remain visible for editing, while newly changed values must use a supported color form (packages/…/tags-mutation.component.ts• L12-40, packages/…/tags-mutation.component.html• L30-76).
References: packages/…/tags-mutation.component.ts• L12-40 packages/…/tags-mutation.component.ts• L49-61 packages/…/tags-mutation.component.ts• L124-203 packages/…/tags-mutation.component.html• L30-76 packages/…/tags-mutation.component.scss• L95-158 packages/…/tags.service.ts• L8-53
Record views
The shared record view presents one business record as labeled sections instead of requiring a separate detail template for each entity. A field description selects the value, display type, permission, empty-value rule, and link behavior, so detail pages use the same language as their list views (packages/…/record-view.model.ts• L1-35, packages/…/record-view.model.ts• L64-123).
The view normalizes people, teams, tags, statuses, dates, money, links, and rich text into common display forms. It also supports copy actions, collapsible sections, employee links, and keyboard-safe team member popovers (packages/…/record-view.component.ts• L53-89, packages/…/record-view.component.ts• L138-210, packages/…/record-view.component.ts• L248-297, packages/…/record-view.component.html• L73-85).
References: packages/…/record-view.model.ts• L1-35 packages/…/record-view.model.ts• L64-155 packages/…/record-view.component.ts• L53-89 packages/…/record-view.component.ts• L138-210 packages/…/record-view.component.ts• L248-297 packages/…/record-view.component.html• L73-315
Image asset selection
The shared image picker gives product forms one flow to browse organization assets, upload a new image, preview its details, select one or many items, and delete permitted assets. The picker updates its gallery and selection as uploads and deletes finish (packages/…/select-asset.component.ts• L12-40, packages/…/select-asset.component.ts• L65-135).
The gallery and preview keep selection clear across pointer and keyboard use. A selected tile has a visible state, a delete action asks for confirmation, and the preview preserves the image's shape while showing its name, address, and dimensions (packages/…/img-asset.component.ts• L17-69, packages/…/img-asset.component.html• L1-29, packages/…/img-preview.component.html• L1-40).
References: packages/…/select-asset.component.ts• L12-135 packages/…/select-asset.component.html• L10-73 packages/…/img-asset.component.ts• L17-69 packages/…/img-asset.component.scss• L7-109 packages/…/img-preview.component.html• L1-40 packages/…/img-preview.component.scss• L10-91 packages/…/select-asset.component.scss• L69-180
Equipment forms
The equipment mutation form gives inventory pages one shared way to create or edit equipment. It joins identity details, purchase data, sharing rules, organization tags, and an optional image while using the active organization's currency and scope (packages/…/equipment-mutation.component.ts• L22-53, packages/…/equipment-mutation.component.ts• L80-144).
The form keeps save state visible and prevents duplicate submissions. Its image action opens the shared asset picker, while its grouped layout remains usable on narrow screens (packages/…/equipment-mutation.component.html• L11-21, packages/…/equipment-mutation.component.html• L83-197, packages/…/equipment-mutation.component.scss• L21-23, packages/…/equipment-mutation.component.scss• L273-285).
References: packages/…/equipment-mutation.component.ts• L22-144 packages/…/equipment-mutation.component.html• L11-197 packages/…/equipment-mutation.component.scss• L23-73 packages/…/equipment-mutation.component.scss• L106-189 packages/…/equipment-mutation.component.scss• L273-285
Data table presentation
Shared table components turn varied record shapes into a consistent presentation for people, names, notes, avatars, and tags. People cells normalize employee records, membership rows, and simple display records into readable names with avatar fallbacks, links only when a record can open, and an overflow count when the cell cannot show everyone (packages/…/people-list.component.ts• L4-35, packages/…/people-list.component.ts• L114-166, packages/…/people-list.component.ts• L168-255).
Record text and tag chips stay readable in both table and card layouts. Shared renderers keep user text as text and show related labels beside names or notes (packages/…/contact-with-tags.component.html• L1-26, packages/…/notes-with-tags.component.html• L1-39, packages/…/tags-only.component.html• L1-29, packages/…/picture-name-tags.component.ts• L4-34).
Server-backed tables treat the newest read as the one that owns the visible rows and completion state. This prevents a slower response from an earlier filter, sort, or page request from replacing a newer result (packages/…/server.data-source.ts• L30-61).
References: packages/…/people-list.component.ts• L4-35 packages/…/people-list.component.ts• L114-166 packages/…/contact-with-tags.component.html• L1-26 packages/…/notes-with-tags.component.html• L1-39 packages/…/tags-only.component.html• L1-29 packages/…/picture-name-tags.component.ts• L4-34 packages/…/server.data-source.ts• L30-61
Time-log filters
The shared time-log filter strip gives timesheet pages one filter model for source, log type, activity level, time zone, and time format. It can load saved choices, debounce changes, report whether any filter is active, and expose a clear action to the host page (packages/…/gauzy-filters.component.ts• L32-108, packages/…/gauzy-filters.component.ts• L121-175, packages/…/gauzy-filters.component.ts• L182-217).
The strip supports compact and full-width layouts. A page can choose how the controls use the available row without changing the filter contract (packages/…/gauzy-filters.component.ts• L44-72).
References: packages/…/gauzy-filters.component.ts• L32-108 packages/…/gauzy-filters.component.ts• L121-175 packages/…/gauzy-filters.component.ts• L182-217
Date and report views
The shared date range picker is the common time model for reports and time tracking. It supports preset and custom ranges, route state, organization date limits, time zones, keyboard access, and next or previous navigation (packages/…/date-picker.utils.ts• L90-153, packages/…/date-range-picker.component.ts• L311-365).
Date and date-time displays use the active organization's format and region. The date-time view also follows the organization's 12-hour or 24-hour setting, while both views use a safe long-date default when no organization format exists (packages/…/date-format.pipe.ts• L18-40, packages/…/date-format.pipe.ts• L54-86, packages/…/datetime-format.pipe.ts• L18-44, packages/…/datetime-format.pipe.ts• L56-79).
Reports use the same filters to show grouped business data and create exports from rows already visible to the user. The export boundary supports built-in CSV and plugin-provided formats (packages/…/daily-grid.component.ts• L200-229, packages/…/report-export.service.ts• L12-57).
References: packages/…/date-picker.utils.ts• L90-153 packages/…/date-range-picker.component.ts• L311-365 packages/…/date-format.pipe.ts• L18-40 packages/…/datetime-format.pipe.ts• L18-44 packages/…/daily-grid.component.ts• L200-229 packages/…/report-export.service.ts• L12-57
Account entry flows
UI Auth provides the public journeys that move a person into or out of the product. It shares UI Core access rules and settings so the public and signed-in shells agree about identity state.
Public authentication
The auth area covers sign-in, registration, password recovery, magic-code sign-in, workspace selection, invitations, email confirmation, OAuth authorization, account deletion, logout, and public content. Routes decide which journeys are public, signed-out, or proven by an emailed token (packages/…/auth.routes.ts• L25-100, packages/…/auth.module.ts• L77-136).
Registration visibility follows the server's public sign-up setting. When sign-up is closed, login and recovery pages do not offer a Register link and the route guard prevents direct access (packages/…/login.component.html• L211-228, packages/…/registration-switch.spec.ts• L11-53).
References: packages/…/auth.routes.ts• L25-100 packages/…/auth.module.ts• L77-136 packages/…/registration-switch.spec.ts• L11-53
External sign-in providers
Optional provider buttons appear only when the web client has a configured sign-in URL and the API reports that provider as enabled. Provider names render as text, so a disabled or malformed provider does not create an unsafe sign-in control (packages/…/social-links.component.ts• L29-75, packages/…/social-links.component.html• L1-34).
References: packages/…/social-links.component.ts• L29-75 packages/…/social-links.component.html• L1-34
Runtime client settings
UI Config defines the settings that describe a deployed client. It gives UI Core and UI Auth the API and client locations, provider links, feature links, analytics settings, legal links, maps, downloads, app-switcher destinations, demo state, and desktop flags (packages/…/model.ts• L1-158).
Deployment contract
The environment contract is the boundary between deployment values and browser services. Release and commit values identify the client build that a user is running, which helps the shell explain version drift. Optional app-link settings can replace catalog destinations for named Ever apps without changing the catalog itself (packages/…/model.ts• L1-26, packages/…/model.ts• L28-64, packages/…/ever-app-links.ts• L3-15).
References: packages/…/model.ts• L1-26 packages/…/model.ts• L28-64 packages/…/ever-app-links.ts• L3-15 packages/…/footer.component.html• L25-58
Theme and language
UI Core Theme and I18n keep the shell usable across deployments, languages, themes, and screen sizes. They provide shared settings, language loading, theme values, overlay behavior, color-picker behavior, and fallback behavior for Angular pages and React widgets.
Translation and visual rules
The language system loads locale resources without creating a startup dependency loop with API interceptors. Shared catalogs carry vocabulary for menus, forms, settings, reports, account entry, integrations, table filters, tags, equipment, record views, image selection, and interface choice across supported locales (packages/…/i18n.providers.ts• L5-22, packages/…/i18n.providers.ts• L40-114, packages/…/en.json• L1-20, packages/…/en.json• L1233-1263).
Theme maps provide one visual contract for density, action buttons, toolbar controls, tables, people cells, and light or dark surfaces. Shared controls then use those values for page actions, layout switching, overlays, and table rows instead of defining separate visual rules in each product page (packages/…/_gauzy-theme-maps.scss• L9-172, packages/…/_gauzy-theme-maps.scss• L303-358, packages/…/_overrides.scss• L441-592, packages/…/_gauzy-table.scss• L5-148).
References: packages/…/i18n.providers.ts• L5-22 packages/…/i18n.providers.ts• L40-114 packages/…/en.json• L1-20 packages/…/en.json• L1233-1263 packages/…/ar.json• L1-189 packages/…/de.json• L1-189 packages/…/zh.json• L1-202 packages/…/_gauzy-theme-maps.scss• L9-172 packages/…/_gauzy-theme-maps.scss• L303-358 packages/…/_overrides.scss• L441-592 packages/…/_gauzy-table.scss• L5-148
Layout choice
The shared layout choice lets a page offer table, card-grid, or other supported views while keeping a system default for pages that do not have a saved choice. Its compact segmented control keeps the selected view clear and expands its touch targets on coarse-pointer devices (packages/…/layout.constants.ts• L3-57, packages/…/layout-selector.component.scss• L7-75).
References: packages/…/layout.constants.ts• L3-57 packages/…/layout-selector.component.scss• L7-75
Icon vocabulary
The shared icon map preserves the product's existing icon names while the visual library uses Tabler glyphs. This gives Angular components one stable icon vocabulary and lets filled and outline states resolve to matching visual forms (packages/…/eva-to-tabler-icons.map.ts• L279-365, packages/…/eva-to-tabler-icons.map.ts• L429-475, packages/…/eva-to-tabler-icons.map.ts• L541-636).
References: packages/…/eva-to-tabler-icons.map.ts• L279-365 packages/…/eva-to-tabler-icons.map.ts• L429-475 packages/…/eva-to-tabler-icons.map.ts• L541-636
Application switching
The app switcher gives the shared shell one entry point to related Ever applications. Its catalog is supplied by the active UI plugin set, so a deployment without the platform plugin shows no destinations. The deployment may replace catalog addresses through EVER_APP_LINKS, but the current Gauzy entry always uses the deployed client address when it is valid (packages/…/ever-apps.constants.ts• L3-24, packages/…/ever-app-links.ts• L17-58, packages/…/app-switcher.component.ts• L101-108).
Only absolute HTTP or HTTPS links without credentials are accepted. Invalid pairs leave the catalog entry unchanged, and the switcher supports hover, press, keyboard movement, Escape, outside-click close, and external opening in desktop shells (packages/…/ever-app-links.ts• L17-71, packages/…/ever-app-links.spec.ts• L33-94, packages/…/app-switcher.component.ts• L142-231).
References: packages/…/ever-apps.constants.ts• L3-24 packages/…/ever-app-links.ts• L17-71 packages/…/ever-app-links.spec.ts• L33-94 packages/…/app-switcher.component.ts• L101-108 packages/…/app-switcher.component.ts• L142-231
Angular and React composition
The React libraries extend the Angular client without creating a second shell. UI React owns the boundary and plugin model, while UI React Components provides controls that follow shell theme values.
React host boundary
@gauzy/ui-react mounts a React tree inside an Angular host and passes the Angular injector and optional context into it. Angular owns the host lifecycle, while React content updates when its component, properties, or context change (packages/…/react-host.directive.ts• L16-27, packages/…/react-host.directive.ts• L34-73, packages/…/ng-react-context.tsx• L9-55).
References: packages/…/react-host.directive.ts• L16-27 packages/…/react-host.directive.ts• L34-73 packages/…/ng-react-context.tsx• L9-55
React plugin contributions
The bridge lets a React component become a named plugin-slot contribution. Contributions can express order, visibility, metadata, and lifecycle behavior. Optional contributions can load only when their slot is shown (packages/…/react-extension.helper.ts• L20-107, packages/…/react-extension.helper.ts• L256-333).
References: packages/…/react-extension.helper.ts• L20-107 packages/…/react-extension.helper.ts• L256-333
React presentation components
@gauzy/ui-react-components supplies dashboard surfaces such as cards, metrics, progress indicators, badges, avatars, popovers, spinners, and display helpers. Theme tokens point at active Gauzy shell values, so a React widget follows its Angular host (packages/…/index.ts• L8-50, packages/…/themeTokens.ts• L1-77).
References: packages/…/index.ts• L8-50 packages/…/themeTokens.ts• L1-77
Change checklist
When these files or sections are changed, remember to consider these:
- Keep registration state aligned across the API check, auth route guard, and every public Register link.
- Keep API-token availability aligned across the server capability check, Settings navigation, route guard, token page, and translations.
- Keep API scope, bearer handling, refresh sharing, session probing, language, tenant, organization, and static asset behavior aligned.
- Keep menu visibility, active-path scoring, collapsed flyouts, keyboard access, child-row actions, and app-switcher destinations aligned.
- Keep favorite identity, organization pins, record labels, descriptions, type-specific icons, detail-dependent routes, and served router targets aligned.
- Keep page route registrations aligned with reserved paths, navigation targets, duplicate-path rules, and the guards used to share a path.
- Keep list filter restoration aligned with router history triggers, list paths, current user and organization scope, filter control creation, and cleared values.
- Keep server-table request ordering aligned with row data, total counts, and the single completion signal used by loading states.
- Keep client-scoped project choices from leaving stale projects or modules in task and expense forms.
- Keep tag scope, tag-create permissions, tag color validation, picker presets, overflow counts, and text-only tag rendering aligned.
- Keep record-view field types, permission narrowing, empty-value rules, normalized people and team data, rich-text conversion, and linked employee routes aligned.
- Keep image picker selection, upload completion, deletion cleanup, preview state, and single- versus multi-select results aligned.
- Keep equipment form scope, currency defaults, image assets, tag scope, save locking, and retry behavior aligned.
- Keep date defaults aligned with organization region, date format, time format, and the date-time pipe's appended time.
- Keep shared translation keys present in every shipped locale.
- Keep GitHub installation state bound to the initiating tenant and organization, and keep repository, issue, sync, and pull-request payload contracts aligned.
- Keep shared control, overlay, sidebar, picker, table-density, people-renderer, tag-chip, status-badge, pager, card-layout, and theme tokens aligned.
- Keep
EVER_APP_LINKSparsing rules aligned with the environment contract, the catalog IDs, the current-app address rule, and safe external navigation. - Keep React slot access, metadata, lifecycle actions, lazy loading, and theme tokens aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Registration links stay visible after public sign-up closes | A visitor reaches a route the server refuses | Share registration state between links and route guard |
| API-token settings remain visible when the server does not offer tokens | A user reaches a page that cannot work | Treat a missing or failed capability check as off in navigation and the route guard |
| A request loses tenant or organization scope | The client can use the wrong workspace | Add current scope before the API call |
| A plugin registers a route with no target or claims a reserved core path | Angular can reject the route or a core page can be replaced | Reject invalid and reserved registrations before route assembly |
| A list restores filters for a link visit or a different account scope | A page shows stale choices or leaks one user's view state into another | Restore only on Back or Forward and clear state when scope changes |
| An older server-table response completes after a newer read | Rows and counts can revert to stale data | Let only the newest request update data and completion state |
| A secret remains in a query or hash-route URL sent to telemetry | An emailed-link token can reach a third party | Redact token and code values before recording the URL |
| A project remains selected after client or employee filtering | A form can keep an invalid project or its modules | Clear the list on scope change and reject stale responses |
| A favorite uses a list route or lacks the record fields needed for its type | The sidebar opens the wrong page or shows an unusable label | Resolve each entity through its served record route and type-specific title rules |
| A favorite detail read fails for one entity type | The sidebar hides some entries or reports an empty list as valid | Preserve successful entries and expose the partial-load failure state |
| A record-view field widens access or treats a missing relation as a value | A detail page can show restricted data or throw on a normal partial record | Allow field permissions to narrow the record guard and resolve missing paths as empty |
| Rich text reaches a favorite label or record view without text-safe handling | Markup can appear as content or unsafe content can be rendered | Convert rich text to plain or trusted display output at the shared boundary |
| An uploaded image is deleted while it remains selected | A form can submit an asset that no longer exists | Remove deleted assets from the gallery, selection, and preview |
| Equipment save accepts a second click while the first request is active | Duplicate equipment records can be created | Lock the save action until the request completes |
| An organization switch changes the URL without new identity context | Requests can run under the previous organization | Switch context first, then update the route |
| A locale misses a shared table, filter, tag, equipment, or integration key | One language shows a blank or raw key in a common control | Keep all shipped locale catalogs in sync |
| A theme omits shared density or surface tokens | Controls, tables, overlays, or widgets become unreadable or inconsistent | Merge shared theme maps into every registered theme |
| An app-link setting contains a relative, credentialed, or non-HTTP URL | The switcher can show a broken or unsafe destination | Accept only absolute HTTP(S) URLs without credentials and keep the catalog fallback |
| A React widget uses fixed colors | It does not match the selected theme | Use shell theme tokens |
Key files
| File | Why to read it |
|---|---|
| packages/…/index.ts | Public shared client rules. |
| packages/…/layout.constants.ts | Supported page areas and the default layout choice. |
| packages/…/ever-app-links.ts | Deployment-specific Ever app destinations and safe fallback behavior. |
| packages/…/index.ts | Public service surface, including integration and list-state services. |
| packages/…/github.service.ts | GitHub installation, repository, issue, and synchronization boundary. |
| packages/…/favorite-store.service.ts | Favorite identity, organization pins, partial reads, and sidebar entries. |
| packages/…/entities-mapping.ts | Favorite icons, titles, descriptions, and record routes. |
| packages/…/list-filter-state.service.ts | Browser-history restoration and scope rules for list filters. |
| packages/…/page-route-registry.service.ts | Plugin route validation and assembly. |
| packages/…/auth-refresh.interceptor.ts | Session renewal, session probing, and redirect behavior. |
| packages/…/base-nav-menu.component.ts | Permission-, feature-, workspace-, and capability-aware navigation. |
| packages/…/nav-builder-types.ts | Shared navigation item contract. |
| packages/…/organization.component.ts | Organization loading, switching, and URL context. |
| packages/…/restorable-filter.component.ts | Common contract for filters restored after browser history navigation. |
| packages/…/record-view.model.ts | Descriptor contract for reusable record detail views. |
| packages/…/record-view.component.ts | Shared record value normalization and interaction behavior. |
| packages/…/select-asset.component.ts | Organization image gallery, upload, selection, and deletion flow. |
| packages/…/equipment-mutation.component.ts | Shared equipment create and edit flow. |
| packages/…/people-list.component.ts | Normalized people display and overflow behavior in table cells. |
| packages/…/tags-mutation.component.ts | Scoped tag editing and color input behavior. |
| packages/…/gauzy-filters.component.ts | Shared time-log filter model and layout options. |
| packages/…/server.data-source.ts | Server-backed table reads and newest-request protection. |
| packages/…/date-format.pipe.ts | Organization-aware date display. |
| packages/…/datetime-format.pipe.ts | Organization-aware date and time display. |
| packages/…/date-range-picker.component.ts | Shared time range and route behavior. |
| packages/…/report-export.service.ts | Report export boundary. |
| packages/…/auth.routes.ts | Public account routes. |
| packages/…/model.ts | Deployment settings contract. |
| packages/…/i18n.providers.ts | Translation loading contract. |
| packages/…/en.json | Shared vocabulary for table, filter, integration, and product controls. |
| packages/…/eva-to-tabler-icons.map.ts | Stable icon-name mapping for shared client controls. |
| packages/…/_gauzy-theme-maps.scss | Shared density, action, toolbar, surface, and table visual tokens. |
| packages/…/_overlays.scss | Shared overlay surface and row behavior. |
| packages/…/_overrides.scss | Cross-page layout, table, dropdown, and title rules. |
| packages/…/_gauzy-table.scss | Shared toolbar action and table control styling. |
| packages/…/app-switcher.component.ts | App catalog display, keyboard behavior, and external navigation. |
| packages/…/react-host.directive.ts | Angular host for React. |
| packages/…/react-extension.helper.ts | React plugin contributions. |
| packages/…/themeTokens.ts | React theme bridge. |