Smart Actions Not Appearing in Any Collections - Shows "No Smart Action" Message

Feature(s) impacted

Smart Actions are not appearing in any Forest Admin collections (QRCode, ServiceProvider, Hotel) despite being properly defined in both routes and actions files. The Smart Actions tab shows “No Smart Action - This collection does not have any Smart Action yet” for all collections.

Observed behavior

  • No Smart Actions appear in any Forest Admin collections

  • Smart Actions tab explicitly shows “No Smart Action - This collection does not have any Smart Action yet”

  • Server logs show “Forest Admin actions registered successfully”

  • Tried troubleshooting with:

  • Incognito mode

  • Disabled browser cache

  • Verified role permissions (single role with triggers allowed)

  • Checked layout editor and Smart View tab

  • Routes are properly defined in forest.js

  • Actions are defined in actions.js but using inconsistent registration methods

Expected behavior

Smart Actions should appear in:

  • ServiceProvider collection (Upload Photo action)

  • Hotel collection (Upload Photo action)

  • QRCode collection (Test Action, Generate QR Codes, Download QR Codes)

  • Smart Actions tab should show these actions and allow configuration

Failure Logs

// From app.js initialization

Forest Admin collections: [Object.keys(forest.collections)]

Forest Admin actions registered successfully

// Actions registration in actions.js using inconsistent methods:

Liana.collection(‘QRCode’).addAction(‘Test Action’, {…}) // One method

Liana.collection(‘ServiceProvider’, { actions: [{…}] }) // Different method

Context

  • Project name: HotelsConnect API

  • Team name: HotelsConnect

  • Environment name: Development

  • Agent technology: nodejs

  • Agent (forest package) name & version: forest-express-mongoose v9.5.0

  • Database type: MongoDB

  • Recent changes: Multiple attempts to register actions using different Forest Admin methods

  • Browser troubleshooting completed (incognito, cache disabled)

  • Role permissions verified (single role with triggers enabled)

  • UI configuration attempted through layout editor and Smart View tab

The core issue appears to be inconsistent action registration methods and potentially incorrect initialization timing in app.js. Client-side caching and permission issues have been ruled out through testing.

Hello @John_Zealand-Doyle,

Thank you for reaching out to us. To better understand the issue, could you please share the complete failure log of your agent?
Additionally, could you confirm that your project name is indeed HotelsConnect and not HotelsConnect API? Lastly, could you clarify which environment you are encountering this issue in development or production?

Best Regards,
Anthony

1 Like

Hi Anthony,

To clarify:

  • Project name is HotelsConnect (not HotelsConnect API)

  • This is occurring in the production environment

  • Here are the complete agent logs (sanitized - and the actions errors do not show on our agent any longer since we updated, this is just historical logs):

Forest Express Version: 10.6.0
Forest Express Mongoose Version: 9.5.0
Forest Admin Routes:

  • POST /forest/actions/generate-new-qr-codes
  • POST /forest/actions/download-qr-codes
  • POST /forest/actions/download-reports
    [forest] :deciduous_tree::deciduous_tree::deciduous_tree: Checking need for apimap update…
    Initializing Forest Admin actions…
    Error initializing Forest Admin actions: TypeError: Cannot read properties of undefined (reading ‘actions’)
    at exports.collection (forest-express/dist/index.js:434:50)
    at initForestActions (forest/actions.js:8:11)
    at app.js:123:5

Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency
Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency
Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency
Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency
DeprecationWarning: current Server Discovery and Monitoring engine is deprecated

The logs show Forest Admin successfully initializing but no Smart Actions are appearing in any collections despite being properly configured. I’ve verified:

  • Actions are defined in actions.js

  • Routes are defined in forest.js

  • All endpoints match

  • Browser cache/incognito testing completed

  • Role permissions are correct

  • Edit Layout>Collection Settings>Actions = No actions

Let me know if you need any additional information."