Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
4034654
feat(support): package scaffold with ticket lifecycle, visibility and…
ussaama Nov 23, 2026
eee3294
feat(support): expand migration renames account tickets to support_ti…
ussaama Nov 23, 2026
740bae3
refactor(support): name legacy ticket statuses, trim comments
ussaama Nov 23, 2026
2abce35
feat(support): storage and service own every ticket read and write
ussaama Nov 23, 2026
3463c7a
fix(support): resolving twice keeps the resolve time, legacy open rea…
ussaama Nov 23, 2026
cde2b0c
refactor(support): name the visibility guard and the unchecked read, …
ussaama Nov 23, 2026
bccd1f0
fix(support): repeat resolve writes nothing, notes are staff-only, la…
ussaama Nov 23, 2026
8546f51
feat(accounts): questions run on the support service, pointer mode ke…
ussaama Nov 23, 2026
5bd3595
chore(support): drop comments the code already says
ussaama Nov 23, 2026
65de12f
feat(staff): privacy export and erase cover support tickets
ussaama Nov 23, 2026
90b9bf3
fix(staff): privacy export leaves internal notes out
ussaama Nov 23, 2026
acdf037
refactor(staff): name the support ticket export and erase steps
ussaama Nov 23, 2026
2d9f318
feat(accounts): questions follow the support ticket contract, Resolve…
ussaama Nov 23, 2026
843be50
fix(support): 0058 first response skips internal notes, source is che…
ussaama Nov 23, 2026
fc3b199
refactor(accounts): ticket views hide internal notes through support'…
ussaama Nov 23, 2026
99f5682
fix(staff): erasure dry run counts every message on the person's tickets
ussaama Nov 23, 2026
424df41
docs(config): SUPPORT_FORWARD_CONTENT covers account questions and th…
ussaama Nov 23, 2026
d6e0243
chore(support): postgres is a dev dependency
ussaama Nov 23, 2026
4fd75ee
fix(accounts): fixture state key v3 after the ticket contract change
ussaama Nov 23, 2026
be2414f
refactor(support): viewer facts per org and per workspace
ussaama Nov 24, 2026
be831e3
feat(support): ticket outbox column and staff:support permission
ussaama Nov 24, 2026
9ba5d25
feat(support): raise and follow tickets from anywhere in the app
ussaama Nov 24, 2026
07ce30e
feat(support): staff inbox, notes, assignment and tickets on behalf
ussaama Nov 24, 2026
9fd4351
feat(support): customer and staff support routes
ussaama Nov 24, 2026
58a4abf
feat(support): tell sam about new support tickets
ussaama Nov 24, 2026
504451e
feat(support): Support page in the Help menu
ussaama Nov 24, 2026
82ebbe9
feat(support): staff support inbox
ussaama Nov 24, 2026
ad1235e
feat(support): every ticket is shared, clearer workspace labels
ussaama Nov 24, 2026
13dd0a9
feat(support): open tickets first, resolved apart, where each ticket …
ussaama Nov 24, 2026
570f8e9
fix(support): rate limits, search across queues, reply reopens, reque…
ussaama Nov 24, 2026
efdf4e7
feat(support): readable came-from trail and browser context for staff
ussaama Nov 24, 2026
5d075cb
feat(support): email the requester on every staff reply
ussaama Nov 24, 2026
e91a0f2
feat(support): screenshots and session replay on tickets
ussaama Nov 24, 2026
036dc1d
feat(support): Give feedback raises tickets
ussaama Nov 24, 2026
43e385a
feat(support): assistant and MCP raise tickets
ussaama Nov 24, 2026
55d350e
feat(support): Contact support on errors opens a prefilled ticket
ussaama Nov 24, 2026
c32aee8
feat(support): import old support requests as tickets, retire support…
ussaama Nov 24, 2026
12c4d7e
feat(support): support metrics and ticket counts on accounts
ussaama Nov 24, 2026
fd0c8a7
fix(support): limits, export, held contract, clearer staff and custom…
ussaama Nov 24, 2026
7ee55d9
fix(accounts): Talk to us lists only its own conversations, links to …
ussaama Nov 25, 2026
4c7d010
fix(accounts): declutter Talk to us: open conversations as rows, comp…
ussaama Nov 25, 2026
cce83d8
fix(accounts): Talk to us brings back smaller cards above the open co…
ussaama Nov 25, 2026
74ab687
fix(accounts): Talk to us cards a little larger
ussaama Nov 25, 2026
69161ed
feat(accounts): Talk to us as a messenger: ways to reach us beside re…
ussaama Nov 25, 2026
08bc71b
fix(accounts): Ask a question opens a dialog; a sent question shows a…
ussaama Nov 25, 2026
56df733
fix(support): a ticket opened from Talk to us goes Back to the overview
ussaama Nov 25, 2026
c08762c
feat(support): two-panel customer Support, three-panel staff inbox, a…
ussaama Nov 25, 2026
e2f6e54
fix(support): the list and an open ticket are one layout, not two
ussaama Nov 27, 2026
2ed611b
fix(support): an open ticket slides in as a side peek over the list
ussaama Nov 27, 2026
841ac63
feat(support): turn the page: the list and each ticket are their own …
ussaama Nov 27, 2026
011f0e8
fix(support): the title glides on the first open after a refresh too
ussaama Nov 27, 2026
6c881c4
feat(support): start fresh: old support requests are not imported
ussaama Nov 30, 2026
f7bb503
style(core): format the support line in the project context scan test
ussaama Nov 30, 2026
49030e7
feat(support): staff inbox opens as the queue alone; no session repla…
ussaama Nov 30, 2026
5bf07d4
feat(support): customer help desk home and staff answering workbench
ussaama Nov 30, 2026
2dedab8
feat(support): tickets carry the recent page trail and what they are …
ussaama Nov 30, 2026
97562c0
fix(support): the trail keeps organisation pages the requester belong…
ussaama Nov 30, 2026
2e6ff8b
fix(support): old pods and the account card reach account questions only
ussaama Nov 30, 2026
599182e
test(support): fail when the dashboard routes and the trail's page na…
ussaama Nov 30, 2026
3a73cdc
feat(support): help desk and staff inbox in the Frappe-informed layout
ussaama Nov 30, 2026
f7b5fe7
fix(support): brand-blue bulk bar, labelled ask fields, Send says wha…
ussaama Nov 30, 2026
9144266
feat(support): staff see which trail pages they can open; Context rea…
ussaama Nov 30, 2026
520f741
refactor(support): simpler screens after design review
ussaama Nov 30, 2026
c250f16
fix(support): plainer message bodies, smaller browser facts without t…
ussaama Dec 1, 2026
c713a62
feat(support): the ask box as a labelled form
ussaama Dec 1, 2026
900ece7
feat(support): the whole image area picks and takes dropped images; W…
ussaama Dec 1, 2026
6e4dcbd
fix(support): the chosen workspace reads as chosen, like the picked k…
ussaama Dec 1, 2026
c2cccf0
Merge main into feat/support-ticketing-foundation
ussaama Dec 1, 2026
47a25a5
fix(support): release hardening from the support audit
ussaama Dec 1, 2026
6e93c4b
fix(support): drafts, live inbox and safe retries in the support screens
ussaama Dec 1, 2026
cc14f53
docs(support): release runbook, getting help and data model brought u…
ussaama Dec 1, 2026
d30a03c
docs(support): forwarding failures need no new alert; the inbox holds…
ussaama Dec 1, 2026
7d99723
feat(support): unread replies, paging and a safe staff reply on the a…
ussaama Dec 1, 2026
871dcd8
feat(support): unread badge, kept drafts and links in the support scr…
ussaama Dec 1, 2026
010794e
docs(support): unread badge, paging, drafts and the round-trip check
ussaama Dec 1, 2026
8a3ac16
fix(support): drafts expire after sign-out, unread replies are easy t…
ussaama Dec 1, 2026
4a4fc75
ci(support): run the support round trip on every PR
ussaama Dec 1, 2026
848e440
docs(support): team address set for staging and in gitops; round trip…
ussaama Dec 1, 2026
8db6d15
fix(support): derive the assistant ticket id with SHA-256
ussaama Dec 1, 2026
fb480de
fix(support): any sign-in ends the draft grace; empty tabs stop pagin…
ussaama Dec 1, 2026
7de3c87
feat(support): staff see each person's avatar on tickets, notes and t…
ussaama Dec 1, 2026
ba295d3
feat(support): calmer staff and customer support screens
ussaama Dec 1, 2026
2cb5ca6
docs(support): getting help describes the new Support pages
ussaama Dec 1, 2026
4238cee
fix(support): review fixes after the redesign
ussaama Dec 1, 2026
c3a4b96
fix(support): list /support/new for the route checks; no empty gap on…
ussaama Dec 1, 2026
0384a2b
fix(support): refresh the catalogs; name the page crumb apart from th…
ussaama Dec 1, 2026
cb6764c
chore(support): staging tells usama+support@dembrane.com about unassi…
ussaama Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
121 changes: 121 additions & 0 deletions .github/scripts/e2e-support.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
#!/usr/bin/env bash
# The support round-trip end to end (dembrane/frontend/e2e/support-roundtrip.spec.ts) against a
# whole stack this script brings up and tears down: a throwaway database, the bun API, and the
# built dashboard served by the web server, which forwards /api so sign-in cookies stay
# first-party. 22-e2e-support in .github/workflows/platform.yml runs exactly this.
#
# Locally, from the repository root, with the dev Postgres on :5433 and the user's own stack
# holding :8080 and :5173:
#
# E2E_DB_ADMIN_URL=postgres://echo:echo@localhost:5433/postgres \
# E2E_API_PORT=8180 E2E_WEB_PORT=5273 .github/scripts/e2e-support.sh
#
# Everything it starts is stopped and the database dropped on the way out, failure included.
# Logs land in $E2E_LOG_DIR (default: a temporary directory) and are printed when a step fails.
set -euo pipefail

root=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
platform=$root/dembrane/platform
frontend=$root/dembrane/frontend

: "${E2E_DB_ADMIN_URL:=postgres://echo:echo@localhost:5432/postgres}"
: "${E2E_DB_NAME:=echo_e2e_support}"
: "${E2E_API_PORT:=8080}"
: "${E2E_WEB_PORT:=5173}"
: "${E2E_LOG_DIR:=$(mktemp -d)}"
# Throwaway logins on a throwaway database: no secret here is worth hiding.
: "${E2E_SUPPORT_CUSTOMER_EMAIL:=e2e-customer@example.test}"
: "${E2E_SUPPORT_CUSTOMER_PASSWORD:=e2e-support-customer-password}"
: "${E2E_SUPPORT_STAFF_EMAIL:=e2e-staff@example.test}"
: "${E2E_SUPPORT_STAFF_PASSWORD:=e2e-support-staff-password}"
export E2E_DB_ADMIN_URL E2E_DB_NAME
export E2E_SUPPORT_CUSTOMER_EMAIL E2E_SUPPORT_CUSTOMER_PASSWORD
export E2E_SUPPORT_STAFF_EMAIL E2E_SUPPORT_STAFF_PASSWORD

db_url=${E2E_DB_ADMIN_URL%/*}/$E2E_DB_NAME
web_url=http://localhost:$E2E_WEB_PORT
api_url=http://localhost:$E2E_API_PORT
mkdir -p "$E2E_LOG_DIR"

api_pid=
web_pid=
cleanup() {
local code=$?
[ -n "$api_pid" ] && kill "$api_pid" 2>/dev/null || true
[ -n "$web_pid" ] && kill "$web_pid" 2>/dev/null || true
wait "$api_pid" "$web_pid" 2>/dev/null || true
(cd "$platform" && bun apps/migrate/src/e2e-support-seed.ts down) || true
if [ "$code" -ne 0 ]; then
for log in "$E2E_LOG_DIR"/*.log; do
[ -e "$log" ] || continue
echo "::group::$(basename "$log")"
tail -n 200 "$log"
echo "::endgroup::"
done
fi
return $code
}
trap cleanup EXIT

# Waits for a URL to answer, and fails naming the log when the process never came up.
wait_for() {
local url=$1 name=$2 tries=${3:-120}
for _ in $(seq 1 "$tries"); do
curl -sf -o /dev/null "$url" && return 0
sleep 1
done
echo "::error::$name did not answer $url"
return 1
}

echo "--- database $E2E_DB_NAME"
(cd "$platform" && bun apps/migrate/src/e2e-support-seed.ts up)

# The API, on the throwaway database. Mail stays in memory and files on disk: no outside
# service is reachable from here, and the round trip needs none.
echo "--- api on :$E2E_API_PORT"
(
cd "$platform"
APP_ENV=test \
PORT=$E2E_API_PORT \
API_PUBLIC_URL=$api_url \
DASHBOARD_URL=$web_url \
PORTAL_URL=$web_url \
DATABASE_URL=$db_url \
AUTH_SECRET=e2e-support-auth-secret-0000000000000000 \
INVITE_HASH_SECRET=e2e-support-invite-secret-0000 \
FILES_LOCAL_ROOT=$E2E_LOG_DIR/files \
AUDIO_LOCAL_ROOT=$E2E_LOG_DIR/audio \
exec bun apps/api/src/main.ts
) >"$E2E_LOG_DIR/api.log" 2>&1 &
api_pid=$!
wait_for "$api_url/health" api

# The dashboard, built once and served by the web server. A built bundle, not the dev server:
# the first page of a cold dev server compiles for as long as the test is allowed to run.
if [ "${E2E_SKIP_BUILD:-}" != "1" ]; then
echo "--- build the dashboard"
(cd "$frontend" && pnpm exec vite build) >"$E2E_LOG_DIR/build.log" 2>&1
fi

echo "--- dashboard on :$E2E_WEB_PORT"
(
cd "$platform"
APP_ENV=test \
PORT=$E2E_WEB_PORT \
API_PUBLIC_URL=$api_url \
DASHBOARD_URL=$web_url \
PORTAL_URL=$web_url \
WEB_ROLE=dashboard \
WEB_API_ORIGIN=$api_url \
WEB_ANALYTICS=false \
WEB_DIST_DIR=$frontend/dist \
exec bun apps/web/src/main.ts
) >"$E2E_LOG_DIR/web.log" 2>&1 &
web_pid=$!
wait_for "$web_url/login" dashboard 60

echo "--- support round trip"
cd "$frontend"
E2E_BASE_URL=$web_url \
pnpm exec playwright test -c e2e/playwright.config.ts e2e/support-roundtrip.spec.ts "$@"
106 changes: 103 additions & 3 deletions .github/workflows/platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ name: platform
#
# A run checks only the side it changed: 00-plan diffs the commit against its base (a PR's base
# branch, or the previous commit of a push) and skips the server checks when only
# dembrane/frontend changed, and the frontend checks the other way round. Each image is tagged
# dembrane/frontend changed, and the frontend checks the other way round. 22-e2e-support drives
# one support ticket through a whole stack it brings up itself, so it runs when either side
# changed. Each image is tagged
# with a hash of its inputs, and an image whose inputs are already in the registry is tagged
# for the new commit instead of built again (.github/scripts/build-images.sh). A PR preview rolls out
# only the services whose image or settings changed (.github/scripts/deploy-env.sh).
Expand Down Expand Up @@ -458,6 +460,103 @@ jobs:
path: dembrane/frontend/node_modules/.vite/vitest
key: vitest-${{ runner.os }}-${{ hashFiles('dembrane/frontend/pnpm-lock.yaml', 'dembrane/frontend/vite.config.ts') }}-${{ github.sha }}

# One support ticket end to end, through the real UI and the real API: a customer raises it,
# staff reply, the customer sees the reply and the badge, and opening the ticket clears it.
# The job owns a whole stack (.github/scripts/e2e-support.sh brings it up and tears it down):
# its own Postgres, the migrations, two seeded logins, the bun API, and the built dashboard
# served by the web server, which forwards /api so the sign-in cookie stays first-party. It
# runs whenever either side changed, because the round trip crosses both.
e2e-support:
name: 22-e2e-support
needs: plan
if: >-
needs.plan.outputs.teardown != 'true'
&& (needs.plan.outputs.server == 'true' || needs.plan.outputs.frontend == 'true')
runs-on: ubuntu-latest
timeout-minutes: 20
services:
postgres:
image: pgvector/pgvector:0.8.1-pg16
env: { POSTGRES_USER: echo, POSTGRES_PASSWORD: echo, POSTGRES_DB: postgres }
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U echo -d postgres" --health-interval 1s --health-retries 60
env:
E2E_DB_ADMIN_URL: postgres://echo:echo@localhost:5432/postgres
SAVE_CACHE: ${{ github.event_name != 'pull_request' }}
steps:
- name: Check out code
uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with: { ref: "${{ env.REF }}", persist-credentials: false }
- name: Set up Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
with:
bun-version-file: dembrane/platform/.bun-version
no-cache: ${{ github.event_name == 'pull_request' }}
- name: Restore Bun cache
id: bun-cache
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('dembrane/platform/bun.lock') }}
restore-keys: bun-
- name: Set up pnpm
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
with: { version: 10 }
- name: Set up Node
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
with:
node-version-file: .tool-versions
- name: Find pnpm store
id: pnpm
working-directory: dembrane/frontend
run: echo "store=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Restore pnpm cache
id: pnpm-cache
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ${{ steps.pnpm.outputs.store }}
key: pnpm-${{ runner.os }}-${{ hashFiles('dembrane/frontend/pnpm-lock.yaml') }}
restore-keys: pnpm-${{ runner.os }}-
# The browser the spec drives. Only Chromium: the spec checks behaviour, not rendering.
- name: Restore Playwright cache
id: playwright-cache
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('dembrane/frontend/pnpm-lock.yaml') }}
restore-keys: playwright-${{ runner.os }}-
- name: Install dependencies
run: bun install --frozen-lockfile
- name: Install frontend dependencies
working-directory: dembrane/frontend
run: pnpm install --frozen-lockfile
- name: Install Chromium
working-directory: dembrane/frontend
run: pnpm exec playwright install --with-deps chromium
# Brings the stack up, runs the spec, and stops everything it started.
- name: Support round trip
working-directory: .
run: .github/scripts/e2e-support.sh
- name: Save pnpm cache
if: env.SAVE_CACHE == 'true' && steps.pnpm-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ${{ steps.pnpm.outputs.store }}
key: pnpm-${{ runner.os }}-${{ hashFiles('dembrane/frontend/pnpm-lock.yaml') }}
- name: Save Bun cache
if: env.SAVE_CACHE == 'true' && steps.bun-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.bun/install/cache
key: bun-${{ hashFiles('dembrane/platform/bun.lock') }}
- name: Save Playwright cache
if: env.SAVE_CACHE == 'true' && steps.playwright-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.cache/ms-playwright
key: playwright-${{ runner.os }}-${{ hashFiles('dembrane/frontend/pnpm-lock.yaml') }}

# Builds the images whose inputs changed and proves they start. A run that deploys a PR
# preview or staging also pushes them, to that environment's registry, and tags every image
# it did not need to build for this commit, so the deploy job only rolls out. prod pushes in
Expand Down Expand Up @@ -568,7 +667,7 @@ jobs:
deploy-pr:
name: 50-deploy-pr-preview
if: ${{ !cancelled() && needs.plan.outputs.deploy_pr == 'true' }}
needs: [plan, check-server, check-frontend, test-frontend, images]
needs: [plan, check-server, check-frontend, test-frontend, e2e-support, images]
runs-on: ubuntu-latest
timeout-minutes: 20
environment: pr-preview
Expand All @@ -594,6 +693,7 @@ jobs:
10-check-server=${{ needs.check-server.result }}
20-check-frontend=${{ needs.check-frontend.result }}
21-test-frontend=${{ needs.test-frontend.result }}
22-e2e-support=${{ needs.e2e-support.result }}
40-build-images=${{ needs.images.result }}
run: |
failed=$(awk -F= '$2 != "success" && $2 != "skipped" { printf "%s%s", (n++ ? ", " : ""), $1 }' <<<"$RESULTS")
Expand Down Expand Up @@ -1015,7 +1115,7 @@ jobs:
&& ((github.event_name != 'pull_request' && needs.deploy-staging.result != 'failure' && needs.deploy-prod.result != 'failure')
|| (needs.plan.outputs.deploy_pr == 'true' && needs.deploy-pr.result != 'failure')
|| needs.plan.outputs.teardown == 'true')
needs: [plan, check-server, check-frontend, test-frontend, images, deploy-pr, teardown-pr, deploy-staging, deploy-prod]
needs: [plan, check-server, check-frontend, test-frontend, e2e-support, images, deploy-pr, teardown-pr, deploy-staging, deploy-prod]
runs-on: ubuntu-latest
timeout-minutes: 2
permissions:
Expand Down
13 changes: 13 additions & 0 deletions dembrane/frontend/e2e/flows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export const flows: Record<string, Flow> = {
"usage-and-billing",
"payments",
"accounts",
"support",
"partners",
"managed-billing",
"training",
Expand All @@ -126,6 +127,9 @@ export const flows: Record<string, Flow> = {
roles: ["staff"],
},
"/admin/accounts/new-demo": { roles: ["staff"] },
"/admin/support/:ticketId": {
skip: "needs a support ticket; no fixture raises one",
},
"/check-your-email": { auth: false },
"/connect-agent": {},
"/invite/accept": TOKEN("invite"),
Expand Down Expand Up @@ -166,6 +170,15 @@ export const flows: Record<string, Flow> = {
"/settings/agents/authorize": {
skip: "an OAuth consent step: needs a pending agent authorisation request",
},
"/support": {
states: [{ clicks: ["support-ask-send"], name: "send empty" }],
},
"/support/new": {
states: [{ clicks: ["support-ask-send"], name: "send empty" }],
},
"/support/:ticketId": {
skip: "needs a support ticket the check's login can see; no fixture raises one",
},
"/verify-email": TOKEN("email-verification"),

"/w/:workspaceId": REDIRECT,
Expand Down
16 changes: 12 additions & 4 deletions dembrane/frontend/e2e/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,25 +102,33 @@ export function routerPaths(
};

const out: RouterPath[] = [];
const walk = (list: ts.Expression, prefix: string, router: Router) => {
// A child with no element of its own shows its parent's page (SupportRoute draws the
// list and the open ticket itself), so it counts as that page at its own path.
const walk = (
list: ts.Expression,
prefix: string,
router: Router,
inherited = "",
) => {
const arr = unwrap(list);
if (!ts.isArrayLiteralExpression(arr)) return;
for (const el of arr.elements) {
if (ts.isSpreadElement(el)) {
walk(el.expression, prefix, router);
walk(el.expression, prefix, router, inherited);
continue;
}
const o = unwrap(el);
if (!ts.isObjectLiteralExpression(o)) continue;
const p = prop(o, "path");
const here =
p && ts.isStringLiteral(p) ? join(prefix, p.text) : join(prefix, "");
const own = tagOf(prop(o, "element"));
const children = prop(o, "children");
if (children) {
walk(children, here, router);
walk(children, here, router, own || inherited);
continue;
}
const element = tagOf(prop(o, "element"));
const element = own || inherited;
if (!element) continue;
out.push({
element,
Expand Down
Loading
Loading