Search, dashboards, and news
Search, dashboards, summary cards, newsroom messages, and welcome messages form the main information surfaces in the back office. They turn CMDB data and product messages into focused views that users can query, arrange, scan, and acknowledge.
This page is part of Application experience. It connects with Request routing and UI rendering for page and endpoint delivery and with Identity and user state for access and per-user choices.
Search experience
Search has two related forms. Universal search gives a fast text path across object classes. Criteria search gives a structured path in which users build filters that match the data model and the current application context.
Universal search
Universal search is a top-bar entry point for finding objects by words or by a class-qualified phrase. It sends the request to the main UI entry point, records the query in the current user's history, and presents results in groups by object class.
The search accepts a class name or class label before a colon to narrow the search. Quoted text is treated as one phrase. Unquoted words become separate terms that must all match. Terms below the configured minimum length do not take part in the search. Results load in chunks so the page can show early matches before every class has been checked.
The search drawer also exposes recent queries. The history removes duplicates, keeps the newest entries first, and stores only the configured number of entries for the user. A keyboard shortcut can open the drawer, and an empty form cannot start a search.
The flow below shows how a universal search becomes grouped result lists.
flowchart LR
A[Top-bar search] --> B[Class and phrase parsing]
B --> C[Term checks and user history]
C --> D[Class-wide object searches]
D --> E[Grouped result lists]
E --> F[Optional wider class search]
References: sources/…/GlobalSearch.php• L36-47 sources/…/GlobalSearchHelper.php• L55-125 js/…/global-search.js• L20-160 pages/UI.php• L454-560 pages/ajax.render.php• L1340-1486
Criteria-based search
Criteria-based search is a data-model-aware filter editor. It builds its field choices from the selected class and its readable subclasses, then selects a suitable input type for each attribute. This lets the same search experience handle text, numbers, dates, enumerations, tags, external keys, and hierarchical values without exposing a separate search design for each class.
The search form starts from a DBSearch, which is the system's reusable search definition. Existing conditions become editable criteria. Default criteria come from the class model, while values from the application context are added as read-only restrictions when the search is used inside a contextual page. The result request carries the filter to the search endpoint and keeps the result list tied to the form.
The search definition also carries data visibility rules. Read access filters the selected classes, and archive or obsolete-data settings affect which records can appear. A search can be serialized and restored so dashboards, links, and result pages can reuse the same filter without rebuilding it.
References: sources/…/searchform.class.inc.php• L48-117 sources/…/searchform.class.inc.php• L220-304 sources/…/searchform.class.inc.php• L315-409 sources/…/searchform.class.inc.php• L437-492 sources/…/searchform.class.inc.php• L506-589 core/dbsearch.class.php• L79-123 core/dbsearch.class.php• L495-568 core/dbsearch.class.inc.php• L1515-1541
Dashboard experience
A dashboard is a user-facing arrangement of data views. A dashboard definition supplies a title, a layout, refresh behavior, and ordered cells. Each cell holds one or more dashlets that turn a query or a presentation choice into a visible panel.
Dashboard composition
The dashboard model separates placement from content. Layouts map cells to one, two, or three columns. Dashlets fill those cells and can show object lists, grouped counts, charts, text, headers, or badges. A list dashlet uses a query to select objects. A grouped dashlet turns the same kind of query into counts by an attribute or time unit.
This separation lets the same data view move between layouts without changing its purpose. Context parameters can also pass from an object or page into a dashlet query, so a dashboard can show information for the object currently in view.
The main composition path is:
flowchart TD
A[Dashboard definition] --> B[Layout]
B --> C[Ordered cells]
C --> D[Dashlets]
D --> E[Queries and context]
E --> F[Lists, counts, charts, and text]
References: application/dashboard.class.inc.php• L67-167 application/dashboard.class.inc.php• L205-267 application/dashboardlayout.class.inc.php• L31-51 application/dashboardlayout.class.inc.php• L53-175 application/dashlet.class.inc.php• L51-79 application/dashlet.class.inc.php• L884-1037 application/dashlet.class.inc.php• L1039-1188
Dashboard customization and refresh
Users can create a personal dashboard from the standard dashboard. The personal version is stored for the user and dashboard menu, while the standard definition remains available as the source to restore. The dashboard selector switches between these two views.
The editor supports layout selection, dashlet placement, and dashlet property changes. A dashlet property change can redraw the view. Save and revert actions update the personal version rather than changing the packaged standard view. Dashlet identifiers and related table preferences remain distinct when the same dashlet appears in different positions or in a custom view.
A dashboard can refresh itself at a configured interval. The refresh updates its visible dashlets and does not run while a dialog is open. This keeps live counts useful without interrupting an edit or another active dialog.
References: application/dashboard.class.inc.php• L764-814 application/dashboard.class.inc.php• L828-912 application/dashboard.class.inc.php• L918-981 application/dashboard.class.inc.php• L994-1047 application/dashboard.class.inc.php• L1073-1148 application/dashboard.class.inc.php• L1196-1328 application/user.dashboard.class.inc.php• L28-60
Summary cards
A summary card is a compact object view shown when a user points to an object link. It gives the user a quick view of selected object fields and a path to the full object page, without forcing a page change.
The card is available only when the user can read the class and the class has summary fields or a complementary name field. The card uses the model's summary presentation and includes actions that match the user's permissions. Its content is loaded through the object summary route, which allows links in lists and dashboards to use the same presentation.
References: sources/…/SummaryCardService.php• L32-89 sources/…/ObjectController.php• L712-737 sources/…/ObjectSummary.php• L28-92 sources/…/ObjectSummary.php• L94-135
Newsroom notifications
The newsroom is a notification surface for messages from one or more providers. A provider supplies unread messages and the URLs needed to fetch, view, and mark them as read. The back office combines those sources into one menu and offers a full page for notification management.
Notification collection
The newsroom menu loads provider data asynchronously. It uses each provider's time-to-live value in browser storage, then merges the messages and sorts them by priority and start date. Opening the menu clears the cache and fetches again so recent messages are not hidden by an old cache entry.
The menu shows a count or an empty state. It limits the number of visible messages and keeps provider labels and message links. A message click marks that message as read locally, opens its target, and starts a fresh load. If a provider request fails, that provider contributes no messages for the current load.
References: application/newsroomprovider.class.inc.php• L20-81 js/…/newsroom-menu.js• L98-194 js/…/newsroom-menu.js• L195-337 js/…/newsroom-menu.js• L360-420 js/…/newsroom-menu.js• L422-463
Notification management
The view-all page turns newsroom entries into persistent notifications for the current contact. It shows each entry as an object summary with read state, an object link, and actions. Users can mark one or many entries as read or unread, or delete selected entries after confirmation.
The page keeps the all-items and selected-items action modes separate. Server requests use transaction tokens for state-changing actions. Successful actions update the visible state and emit notification events so other parts of the page can react.
References: sources/…/iTopNewsroomController.php• L58-83 sources/…/iTopNewsroomController.php• L85-221 sources/…/iTopNewsroomController.php• L223-363 sources/…/iTopNewsroomController.php• L365-517
Welcome popup experience
The welcome popup presents important product or module messages when a user starts a session. It is separate from the newsroom: the popup guides the user through a small set of messages, while acknowledgement records prevent the same message from returning for that user.
Welcome message selection
Welcome messages come from extensions that implement the welcome-popup provider contract. Each provider returns message objects with an ID, text, optional illustration, and importance. The service discovers providers, removes invalid or already acknowledged messages, then orders the remaining messages by importance and ID.
Acknowledgement is user-specific. The service stores a message UUID with the connected user and can notify the provider after the record is saved. This allows a provider to perform extra work when a user accepts a message.
References: application/…/iWelcomePopupExtension.php• L9-37 sources/…/Message.php• L19-57 sources/…/WelcomePopupService.php• L78-135 sources/…/WelcomePopupService.php• L137-204 application/datamodel.application.xml• L45-74 sources/…/DefaultProvider.php• L20-76
Welcome message flow
The application checks the session before it opens the popup. It shows the popup at most once per session when at least one message remains. With several messages, the dialog displays a stack of titles and one active message at a time. The user can select a message, acknowledge it and move to the next message, acknowledge the last message and close, or close the dialog to read it later.
The acknowledgement request goes through the welcome-popup controller. A successful response marks the item as acknowledged in the dialog and advances the stack. An error leaves the message active and shows an error modal instead of silently losing the message.
References: pages/UI.php• L32-53 templates/…/layout.html.twig• L1-28 templates/…/layout.ready.js.twig• L1-105 sources/…/WelcomePopupController.php• L11-43 css/…/_welcome-popup.scss• L39-142
Portal request search
The standard portal gives end users a focused request view alongside the back-office search surfaces. Its request bricks separate open and resolved work, provide a view of all requests, and expose a filter that targets that all-requests view.
The portal's English dictionary supplies the user-facing names and descriptions for these entry points. The ticket model connects the search brick to the all-requests brick, so a user searches across requests regardless of status rather than opening a separate result area.
References: datamodels/…/en.dict.itop-portal.php• L33-49 datamodels/…/datamodel.itop-tickets.xml• L1087-1158 datamodels/…/datamodel.itop-tickets.xml• L1210-1295 datamodels/…/datamodel.itop-portal.xml• L3-20
Change checklist
When these files or sections are changed, remember to consider these:
- A change to universal-search parsing must stay aligned with query-history entries, result chunk parameters, and the class-grouped result renderer.
- A change to search criteria fields must preserve the link between attribute search types, allowed values, context criteria, and the serialized filter consumed by result pages.
- A change to a dashboard layout or dashlet ID must preserve custom dashboard records and dashlet table preferences for both standard and personal dashboards.
- A change to summary presentation must update the class permission check and the object-summary route together. Otherwise links can offer a card that the route cannot safely render.
- A change to the newsroom provider contract must preserve fetch, view-all, mark-read, placeholder, and TTL data for every provider.
- A change to notification state actions must keep the view-all CSS state, server state, transaction token, and notification events in step.
- A change to welcome message IDs or provider identity must account for stored per-user acknowledgement UUIDs. A changed identity can make an old message appear again.
- A change to portal request-search labels or brick links must keep the English dictionary keys aligned with the portal brick definitions and the target all-requests view.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The universal-search input is empty or all terms are shorter than the minimum length. | No useful search starts and the page shows a no-search message. | Keep the input check and minimum-term rule aligned with the user-facing search help. |
| A criteria search contains a missing query argument. | The search form cannot build its criteria and logs the query error. | Supply all context and internal parameters before rendering a saved or contextual filter. |
| A dashboard definition contains invalid XML or an unavailable dashlet type. | The dashboard can fail to load or show an unknown-dashlet fallback instead of the intended panel. | Validate dashboard definitions and keep dashlet types available when publishing them. |
| A custom dashboard is saved under a changed menu identifier. | The user's saved layout is no longer found for the visible dashboard. | Treat the user-and-menu key as a stable contract when changing menu definitions. |
| A summary card is requested for a class without readable summary data. | The user receives an access or unavailable-summary response instead of object details. | Check read access and summary presentation support before adding summary-card links. |
| A newsroom provider request or browser cache read fails. | Its messages are absent from the current menu until a later fetch succeeds. | Return an empty provider result safely and allow the next load to retry. |
| A welcome acknowledgement request fails. | The active message is not marked as acknowledged and the popup remains open. | Keep the message UUID valid and surface the server error to the user. |
| A portal search brick points to a missing or renamed all-requests brick. | The user-facing request search cannot open its intended result view. | Keep the target brick identifier stable when changing portal request labels or navigation. |
Key files
| File | Why to read it |
|---|---|
| sources/…/GlobalSearch.php | Defines the universal-search surface and its user-history inputs. |
| sources/…/GlobalSearchHelper.php | Shows how recent searches are kept per user and turned into usable links. |
| pages/UI.php | Connects a submitted universal search to parsing, history, and the results page. |
| sources/…/searchform.class.inc.php | Explains how model fields, default criteria, and context restrictions become a search form. |
| core/dbsearch.class.php | Defines the reusable search contract, visibility filtering, OQL form, and serialization boundary. |
| application/dashboard.class.inc.php | Coordinates dashboard definitions, personal copies, editing, rendering, and refresh. |
| application/dashboardlayout.class.inc.php | Shows how cells become rows and columns and how dashlets enter the page. |
| application/dashlet.class.inc.php | Illustrates the main data-view roles: lists, grouped views, headers, and badges. |
| sources/…/SummaryCardService.php | Defines when a summary card may be shown and how its route is exposed. |
| sources/…/ObjectSummary.php | Defines the compact object presentation and its permitted actions. |
| application/newsroomprovider.class.inc.php | Defines the provider boundary for unread messages and message actions. |
| js/…/newsroom-menu.js | Shows how provider data becomes the notification menu and how browser caching works. |
| sources/…/iTopNewsroomController.php | Shows the persistent notification list and its read, unread, and delete flows. |
| sources/…/WelcomePopupService.php | Coordinates provider messages and per-user acknowledgement state. |
templates/application/welcome-popup/layout.ready.js.twig | Shows the popup interaction model, message advance, and acknowledgement response. |
| datamodels/…/datamodel.itop-tickets.xml | Defines the portal request views and links request search to the all-requests view. |
| datamodels/…/en.dict.itop-portal.php | Defines the English names and descriptions shown for portal request views. |