Skip to content

Admin App Applications & Application Instances#18

Merged
seanrcollings merged 11 commits into
feature/admin-appfrom
sc/admin-app-applications
Jul 1, 2024
Merged

Admin App Applications & Application Instances#18
seanrcollings merged 11 commits into
feature/admin-appfrom
sc/admin-app-applications

Conversation

@seanrcollings
Copy link
Copy Markdown
Contributor

@seanrcollings seanrcollings commented May 2, 2024

Implements support for Applications & Application Instances in atomic-admin

Related to: https://github.com/atomicjolt/atomic-admin/pull/31

Implements the concept of "Interactions" which are ways in which the admin app can interact with information contained without each of the apps. Interactions can be things like:

  • Analytics
  • Forms for modifying a record
  • Tables for listing records

The app determines what interactions it supports in an initializer, for example

# config/initializers/atomic_admin.rb

AtomicAdmin.application_instance_interactions.tap do |inter|
  inter.add(
    :analytics,
    type: :analytics,
    title: "Analytics",
    icon: "bar_chart",
  )

  inter.add(
    :general_settings,
    type: :jsonform,
    title: "General Settings",
    icon: "settings",
    # for schemas that all the apps will use, essentially unchanged, there 
    # be ones builtin to the gem, but the app can also implement it's own schemas if it 
    # so chooses
    schema: AtomicAdmin::Schema::ApplicationInstanceGeneralSettingsSchema
  )
end

Would make an "Analytics" and "General Setting" tab available for each app instance in the app.

@seanrcollings seanrcollings requested a review from blunckr-aj May 28, 2024 03:35
@seanrcollings seanrcollings force-pushed the sc/admin-app-applications branch from bd4326a to 9943f71 Compare June 29, 2024 00:07
@seanrcollings seanrcollings merged commit 681fbb5 into feature/admin-app Jul 1, 2024
@seanrcollings seanrcollings deleted the sc/admin-app-applications branch July 1, 2024 22:09
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