forest_admin_agent 1.0.0.pre.beta.69 → 1.0.0.pre.beta.70

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8465236a364793fe23ce244c6b8a26aabc7e844818cc950fb2c9ceb298a844ad
4
- data.tar.gz: d2000c5a2ef8e4ce1baa624b8b2c9d874c98b3058a7654ad8bbe968031cfb2b0
3
+ metadata.gz: 250a2c4a19974f9d4658a54b9bed10460bb810d3ee48fd7d54635eb084ae93b5
4
+ data.tar.gz: 9a523b41aaffe9a6b17a50e4237458ebd1bb5a5a0d21db64afe8ffac3ec955a0
5
5
  SHA512:
6
- metadata.gz: a716f5f168cf68784799a371836caec5854980b202bbb31e6bd76f912ef1a0e5d665af4ef7ffcbc65561559a9410bb4965e5e5d0d40ff54d3b768a8877469790
7
- data.tar.gz: ea1b44c785131d1b6075b1b6cb05c164515c39d5afeb6d2aa043b9df3ac54414f916a7ccc649fb8e324c8004a82d3f2ef765c5c22f4614380c20d99faa137968
6
+ metadata.gz: e1ff743334eb20133c69b24d48258a0308ac1e6a8820b8dfccf92ffe53bfedae8d4fb3cea940e3664885c59b4eda3100250533138646645cfe3a86bbf7533978
7
+ data.tar.gz: 63fea12ae51f061c8724fdcd1d4a79b022e49960ee0637207d0c61659a8ae1b90a9459772fada1e3c7b5e43f3b04ad598d437890a259effd4364abdd63fb05e0
@@ -58,7 +58,7 @@ module ForestAdminAgent
58
58
  def self.make_form_data(datasource, raw_data, fields)
59
59
  data = {}
60
60
  raw_data.each do |key, value|
61
- field = fields.find { |f| f.label == key }
61
+ field = fields.find { |f| f.id == key }
62
62
  # Skip fields from the default form
63
63
  next if Schema::GeneratorAction::DEFAULT_FIELDS.map { |f| f[:field] }.include?(key)
64
64
 
@@ -7,6 +7,7 @@ module ForestAdminAgent
7
7
  DEFAULT_FIELDS = [
8
8
  {
9
9
  field: 'Loading...',
10
+ label: 'Loading...',
10
11
  type: 'String',
11
12
  isReadOnly: true,
12
13
  defaultValue: 'Form is loading',
@@ -79,7 +80,8 @@ module ForestAdminAgent
79
80
  description: field.description,
80
81
  isRequired: field.is_required,
81
82
  isReadOnly: field.is_read_only,
82
- field: field.label,
83
+ field: field.id,
84
+ label: field.label,
83
85
  value: ForestValueConverter.value_to_forest(field),
84
86
  widgetEdit: GeneratorActionFieldWidget.build_widget_options(field)
85
87
  }
@@ -146,7 +148,7 @@ module ForestAdminAgent
146
148
  else
147
149
  fields << element
148
150
  # frontend rule
149
- layout << Actions::ActionLayoutElement::InputElement.new(component: 'Input', field_id: element.label)
151
+ layout << Actions::ActionLayoutElement::InputElement.new(component: 'Input', field_id: element.id)
150
152
  end
151
153
  end
152
154
 
@@ -7,7 +7,7 @@ module ForestAdminAgent
7
7
  class SchemaEmitter
8
8
  LIANA_NAME = "agent-ruby"
9
9
 
10
- LIANA_VERSION = "1.0.0-beta.69"
10
+ LIANA_VERSION = "1.0.0-beta.70"
11
11
 
12
12
  def self.get_serialized_schema(datasource)
13
13
  schema_path = Facades::Container.cache(:schema_path)
@@ -1,3 +1,3 @@
1
1
  module ForestAdminAgent
2
- VERSION = "1.0.0-beta.69"
2
+ VERSION = "1.0.0-beta.70"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_admin_agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta.69
4
+ version: 1.0.0.pre.beta.70
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthieu
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-09-25 00:00:00.000000000 Z
12
+ date: 2024-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport