Skip to content

chore(demo): Use _module.pageId for cross-module links#66

Open
StephanieJKS wants to merge 1 commit into
mainfrom
chore/demo-module-pageid-refs
Open

chore(demo): Use _module.pageId for cross-module links#66
StephanieJKS wants to merge 1 commit into
mainfrom
chore/demo-module-pageid-refs

Conversation

@StephanieJKS

Copy link
Copy Markdown
Contributor

Summary

  • Replace hardcoded module/page page-id strings with _module.pageId operator references in the demo app's menus, home page, and router.
  • Bump @lowdefy/community-plugin-mongodb from 2.4.1 to 3.0.0 and normalize quote style in apps/demo/lowdefy.yaml.

Why

Hardcoded module/page strings break when a module entry is renamed or rescoped. Resolving page ids through the module system makes the demo a clean reference for the documented pattern.

Test plan

  • pnpm ldf:b (or equivalent) builds the demo app without errors
  • Menu links (Profile, Release Notes, User Admin, Logout) navigate correctly
  • Home-page tiles (Activities, User Admin, Companies, Contacts, Notifications, Profile, Release Notes) navigate correctly
  • Router redirects unauthenticated users to login, and users without a created profile to the new-profile page

PR Checklist

  • /r:docs-update - Documentation updated for behavioral changes
  • /r:pr-review - Self-review completed before requesting team review

Request: commit the pending demo app changes
Motivation: Demo app referenced module pages via hardcoded "module/page" strings, which break if a module entry is renamed or its scoping changes. Switching to _module.pageId makes the references resolve through the module system.

Changes:
- apps/demo/menus.yaml: profile, release-notes, users, logout menu links now resolve pageId via _module.pageId
- apps/demo/pages/home.yaml: all home-page tile Link buttons (activities, user-admin, companies, contacts, notifications, profile, release-notes) use _module.pageId
- apps/demo/pages/router.yaml: login/new redirect targets use _module.pageId
- apps/demo/lowdefy.yaml: bump @lowdefy/community-plugin-mongodb 2.4.1 -> 3.0.0; normalize quote style to single quotes

Tags: demo-app, module-pageid, cross-module-refs, menus, router, home-page, plugin-bump, mongodb-plugin

$30m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants