• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jumpinjackie / mapguide-react-layout / 26285754311

22 May 2026 11:42AM UTC coverage: 60.511% (-0.03%) from 60.54%
26285754311

push

github

web-flow
Replace webpack with Vite for viewer and Storybook builds (#1652)

* chore: migrate build pipeline to vite

Agent-Logs-Url: https://github.com/jumpinjackie/mapguide-react-layout/sessions/aaa9b90f-da3f-4a4d-90fc-02bf62e54100

Co-authored-by: jumpinjackie <563860+jumpinjackie@users.noreply.github.com>

* test: validate vite migration

Agent-Logs-Url: https://github.com/jumpinjackie/mapguide-react-layout/sessions/aaa9b90f-da3f-4a4d-90fc-02bf62e54100

Co-authored-by: jumpinjackie <563860+jumpinjackie@users.noreply.github.com>

* docs: address vite migration review feedback

Agent-Logs-Url: https://github.com/jumpinjackie/mapguide-react-layout/sessions/aaa9b90f-da3f-4a4d-90fc-02bf62e54100

Co-authored-by: jumpinjackie <563860+jumpinjackie@users.noreply.github.com>

* fix: update environment variable handling in Vite config and import Papa correctly in CSV driver

* Restore vendor bundle split

* refactor: replace require with import for JSON data in stories

* Code-split deArrayify module and add bundle analysis support

* More vendor code-splitting

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jumpinjackie <563860+jumpinjackie@users.noreply.github.com>
Co-authored-by: Jackie Ng <jumpinjackie@gmail.com>

3291 of 4039 branches covered (81.48%)

49 of 96 new or added lines in 10 files covered. (51.04%)

16232 of 26825 relevant lines covered (60.51%)

14.28 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/src/api/builders/de-arrayify-guards.ts
1
import type { ApplicationDefinition } from "../contracts/fusion";
2
import type { QueryMapFeaturesResponse } from "../contracts/query";
3
import type { RuntimeMap } from "../contracts/runtime-map";
4
import type { SiteVersionResponse } from "../contracts/common";
5
import type { TileSetDefinition } from "../contracts/tile-set-definition";
6
import type { MapDefinition } from "../contracts/map-definition";
7
import type { WebLayout } from "../contracts/weblayout";
8

9
export type DeArrayifiedResult = RuntimeMap | QueryMapFeaturesResponse | WebLayout | ApplicationDefinition | MapDefinition | TileSetDefinition | SiteVersionResponse;
10

11
export function isWebLayout(arg: DeArrayifiedResult): arg is WebLayout {
1✔
12
   return (arg as any).CommandSet != null
2!
NEW
13
      && (arg as any).ContextMenu != null
×
NEW
14
      && (arg as any).Map != null;
×
15
}
2✔
16

17
export function isAppDef(arg: DeArrayifiedResult): arg is ApplicationDefinition {
1✔
18
   return (arg as any).WidgetSet != null;
2✔
19
}
2✔
20

21
export function isMapDef(arg: DeArrayifiedResult): arg is MapDefinition {
1✔
NEW
22
   return (arg as any).Extents != null
×
NEW
23
      && (arg as any).BackgroundColor != null
×
NEW
24
      && (arg as any).CoordinateSystem != null
×
NEW
25
      && (arg as any).MapLayer != null
×
NEW
26
      && (arg as any).MapLayerGroup != null;
×
NEW
27
}
×
28

29
export function isTileSet(arg: DeArrayifiedResult): arg is TileSetDefinition {
1✔
NEW
30
   return (arg as any).Extents != null
×
NEW
31
      && (arg as any).TileStoreParameters != null
×
NEW
32
      && (arg as any).BaseMapLayerGroup != null;
×
NEW
33
}
×
34

35
export function isSiteVersion(arg: DeArrayifiedResult): arg is SiteVersionResponse {
1✔
NEW
36
   return (arg as any).Version != null;
×
NEW
37
}
×
38

39
export function isQueryMapFeaturesResponse(arg: DeArrayifiedResult): arg is QueryMapFeaturesResponse {
1✔
NEW
40
   return (arg as any).FeatureSet != null
×
NEW
41
      || (arg as any).Hyperlink != null
×
NEW
42
      || (arg as any).InlineSelectionImage != null
×
NEW
43
      || (arg as any).SelectedFeatures != null
×
NEW
44
      || (arg as any).Tooltip != null;
×
NEW
45
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc