- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
11 hours ago - edited 10 hours ago
A faster, search-first receptionist portal for Workplace Visitor Management
The standard receptionist portal in Workplace Visitor Management loads every visitor for the day as soon as the page opens. That’s fine for a small office. At a site with a few hundred visitors a day, though, the front desk can end up waiting for the screen, often during the morning rush, when waiting is most frustrating.
I built an alternative widget that loads only what’s needed, when it’s needed. This post explains the approach and walks through each record in the update set: what it does, why it’s there, and how it helps with speed or usability. It’s a prototype I created in AI go-working approach (used Claude as model) - maybe you see this within the Script in my Update Set.
What bothered me about the standard portal
Two things stood out.
First, loading. The portal builds a fairly large object for every visitor, including the picture, the full requirement structure and the requirement values. It does this for all of the day’s visitors before showing anything. From what I can tell in the code, the requirement lookup may even run twice for each visitor. I haven’t profiled it, but with hundreds of visitors, that seems like an obvious place to investigate.
Second, the layout. Three columns of visitors are useful only if someone is going to read through them. At the front desk, people usually search for a name to find the person standing in front of them. The portal is therefore doing a lot of work to load information that may never be viewed.
The idea
Load less, load it later, and let the screen fill in gradually. Instead of one large request, the page uses five smaller ones:
| Step | What happens | What comes back |
| 1 | The page opens | Counters per state, but no visitors |
| 2 | The first tab loads | The first 25 rows, with names, times, host and state only |
| 3 | In the background | Pre-check status (ready or tasks open), 10 visitors per request, with three requests at once and nearest arrivals first |
| 4 | Someone opens a visitor | The registration link, extra fields and that visitor’s location |
| 5 | Every 30 seconds | Only registrations changed since the last sync |
The receptionist sees names and times quickly. The "ready / tasks open" label follows shortly after. Until then, the row says "Checking tasks…"
The final result
Here are some screenshots of the final new Receptionist portal.
These images are AI-generated mock-ups designed to avoid displaying sensitive data, however, they are virtually identical to what you will receive with the update set.
The update set, record by record
The update set is called "Reception Queue Portal 1.0". It contains four kinds of records, all in the sn_wsd_visitor scope, and doesn’t change anything that ships with the application.
| Record Name | |
| Script Include | ReceptionQueuePortal |
| Widget | Reception Queue Portal (reception-queue-portal) |
| Angular provider relation | wsdVisitorRequirementService |
| Page with container, row, column and widget instance | reception_queue |
Script Include ReceptionQueuePortal
This Script Include extends the standard WSDVMReceptionistPortalSNC class and is accessible only from its own application scope. Extending the original class means the new code keeps the standard check-in and check-out logic, undo, no-show and location helpers. That’s important: rules such as refusing check-in when a visitor has open mandatory tasks remain part of the platform, rather than being reimplemented in the widget.
The new methods are:
| Method | What it does |
| getStateCounts | Runs one aggregate query, grouped by state |
| loadQueueTab | Loads one page of a tab, with a stable sort order |
| searchVisitors | Searches server-side across all states, returning up to 50 hits |
| getReadiness | Checks readiness for a small batch of visitors |
| getVisitorDetail | Gets everything the detail pane needs for one visitor |
| refreshDelta, refreshQueue | Returns changed registrations only, or reloads several tabs |
| bulkTransition | Checks in, checks out or undoes for up to 50 visitors |
It also overrides two inherited methods. getVisitorDataFromRegistration now builds a lightweight object containing only the information shown in a row. It doesn’t load a picture, requirement structure or location. Because the inherited check-in and check-out methods use the same builder, their results are lightweight too. _getRequirementFieldValues returns an empty object except when building the detail view for a single visitor.
The aim is to avoid requirement lookups while building the list. They now happen once per visitor, in getReadiness or getVisitorDetail, rather than as part of every list request. Paging uses chooseWindow(start, start + size + 1): that extra record tells the client whether another page is available. A secondary sort on sys_id keeps the order stable between pages.
For delta refreshes, the query looks for sys_updated_on values later than the last sync marker, with a 15-second overlap to avoid missing anything. If more than 100 records have changed, the server tells the client to reload instead.
There are a couple of usability details here too. getReadiness returns the names of open tasks, so a row can say "Tasks open: Phone, Company" instead of showing only a warning icon. getVisitorDetail supplies the Visitor Registration link. bulkTransition supports checking in a group and reports any problem per visitor.
The widget
The widget has five parts.
Server script. The server script runs on every c.server.get(), which is easy to overlook. If it performed its full setup on every call, staged loading wouldn’t buy us much. Translations and configuration are therefore built only on the first call.
Requests for a single registration, readiness, details, check-in, check-out, undo and bulk actions, skip the location lookup. The standard requirement interceptor is created only when the tasks modal needs it. The user’s locations and time zone are cached in the session for five minutes; if that cache fails, the values are calculated again. Action names are checked against a fixed list, and IDs, dates and JSON input are validated before use.
Client controller. Most of the perceived speed improvement comes from the client controller. It renders rows as soon as the first page arrives, then requests readiness in small batches. Visitors are ordered by how close their arrival time is to now, and a client-side cache keeps readiness answers for ten minutes.
Visitors with open tasks who are due within 90 minutes are checked again after each refresh, since they may have completed the tasks in the meantime. The Checked-in tab loads quietly in the background after the first page. Sorting, time buckets and the "overdue" flag are calculated in the browser from timestamps, so a timer can move visitors between buckets once a minute without making another request.
One detail worth bearing in mind: c.server.get can’t be cancelled. If the receptionist changes the day, location or search term while an older request is still running, the late response could overwrite the current view. The controller uses small counters to identify and discard those responses.
For the front desk, state changes show a toast with Undo. Rows can be selected for bulk actions, and one click selects an entire visit group. Pressing Enter in the search field acts on a single hit; / focuses the search, and Esc closes the detail pane. Density and "ready first" are remembered in the browser. If the optional provider is missing, the user sees a clear message rather than a broken screen.
Template. The header contains the location, date navigation, refresh and "Create new visit" controls, plus a dashboard button if one is configured. Below that are the search field, a progress bar showing how many visitors have arrived, tabs with filter chips, the list, a bulk-action bar, the detail pane and the toast area.
Each row has one main button, depending on its state: Check-in, Open tasks, Check-out or Undo check-out. The Expected tab groups visitors into Now, Expected earlier, Next 2 hours and Later today. In the Checked-in tab, overdue departures appear first.
While data is loading, small placeholders appear in the rows and detail pane to prevent the layout from jumping around. Template text is wrapped in ${} so it can be translated.
CSS. All selectors start with rq-, which helps avoid clashes with the portal theme or other widgets on the page. Rows are large enough for a touch screen, since many front desks use tablets, and desktop users can switch to a compact mode. Animations are disabled for users who have asked their system to reduce motion.
Link function. The link function is short. It sets the flag expected by the standard requirements modal and watches the list’s scroll position. When the user gets close to the end, it requests the next page automatically, there’s no "load all" button.
Angular provider relation wsdVisitorRequirementService
This record attaches the standard provider to the widget. The provider opens the standard tasks modal, so selecting "Open tasks" takes the receptionist to the same form the visitor would use, with the usual validation and saving. That avoids the need to build a separate form and gets the receptionist from the warning in the row to the task form in one tap.
The provider is optional. If it isn’t available, everything else works; only the tasks modal is unavailable.
The page reception_queue
The page has the sn_wsd_visitor.staff role, one full-width container, one row, one column and one widget instance. Its CSS removes the default top padding and column margins so the queue can use the full screen.
The page is deliberately minimal. Nothing else competes with the widget for loading time, and the front desk has one bookmarkable URL to keep open throughout the day. Add &location=<sys_id> to open a specific location.
Translations (not part of the update set)
I left translations out of the update set so you don’t import ones you may not want. The widget is still fully translatable: template text is wrapped in ${}, and server-generated text goes through gs.getMessage().
To translate the widget, create a sys_ui_message record for each text you need, using the English text as the key and adding the language and translation. Keep placeholders such as {0} unchanged.
Texts supplied by the platform, such as registration states and requirement labels, use the platform’s own translations. The widget resolves its texts once, on the first call, so translations don’t affect loading speed.
Usability principles I tried to follow
- Design for the busiest minute: make the common action one tap away, and make rows large enough to use on a tablet.
- Show the receptionist what needs attention, keep the rest in the detail pane.
- Make blockers clear. If tasks are open, show which ones and make them one tap away.
- Prefer Undo to "Are you sure?". A mistaken check-in should be quick to fix.
- Make search the primary way to find someone. Type-ahead works across all states, and Enter acts on a single hit.
- After check-in, remind the receptionist to hand over a visitor card. Our process uses physical cards, so adapt this to yours.
Installation
- Go to System Update Sets → Retrieved Update Sets, import the XML, then run Preview and Commit. The changes won’t take effect until you commit.
- Open /cache.do, then /<your portal>?id=reception_queue.
- Optional properties (prefix sn_wsd_visitor.): reception_queue.page_size (default 25, between 10 and 100) and reception_queue.dashboard_url (shows a dashboard button; leave it empty to hide the button).
- Translations are optional. Add messages for your language as described above, set your user language and reload.
The update set expects these standard components to exist: WSDVMReceptionistPortalSNC, WSDVMRequirementsHelperSNC, WSDVMUtils, wsdVisitorRequirementServiceInterceptor, the wsdVisitorRequirementService provider and the wsd-visitor-requirements widget from the OOTB Visitor Management Plugin.
What to keep in mind
This is a prototype please don't use it without proper testing.