@ramme-io/create-app 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ramme-io/create-app",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "create-ramme-app": "./index.js"
@@ -10,19 +10,19 @@ import {
10
10
 
11
11
  // Mock data is fine as is
12
12
  const mockData = [
13
- { id: 34982, name: 'Entity Name 1', sector: 'Technology' },
14
- { id: 34983, name: 'Entity Name 2', sector: 'Finance' },
15
- { id: 34984, name: 'Entity Name 3', sector: 'Healthcare' },
16
- { id: 34985, name: 'Global Corp', sector: 'Finance' },
17
- { id: 34986, name: 'Innovate LLC', sector: 'Technology' },
13
+ { id: 34561, name: 'Item Name 1', color: 'Blue' },
14
+ { id: 76552, name: 'Item Name 2', color: 'Red' },
15
+ { id: 54364, name: 'Item Name 3', color: 'Yellow' },
16
+ { id: 87655, name: 'Item Name 3', color: 'Red' },
17
+ { id: 98676, name: 'Item Name 3', color: 'Yellow' },
18
18
  ];
19
19
 
20
- interface AddEntitiesModalProps {
20
+ interface AddItemsModalProps {
21
21
  isOpen: boolean;
22
22
  onClose: () => void;
23
23
  }
24
24
 
25
- export const AddEntitiesModal: React.FC<AddEntitiesModalProps> = ({
25
+ export const AddItemsModal: React.FC<AddItemsModalProps> = ({
26
26
  isOpen,
27
27
  onClose,
28
28
  }) => {
@@ -48,8 +48,8 @@ export const AddEntitiesModal: React.FC<AddEntitiesModalProps> = ({
48
48
  field: 'id',
49
49
  },
50
50
  {
51
- headerName: 'Sector',
52
- field: 'sector',
51
+ headerName: 'Color',
52
+ field: 'color',
53
53
  },
54
54
  ], []);
55
55
 
@@ -60,7 +60,7 @@ export const AddEntitiesModal: React.FC<AddEntitiesModalProps> = ({
60
60
  <Button variant="secondary" onClick={onClose}>
61
61
  Cancel
62
62
  </Button>
63
- <Button variant="primary">Add to Workflow</Button>
63
+ <Button variant="primary">Add Items</Button>
64
64
  </div>
65
65
  </div>
66
66
  );
@@ -69,11 +69,11 @@ export const AddEntitiesModal: React.FC<AddEntitiesModalProps> = ({
69
69
  <Modal
70
70
  isOpen={isOpen}
71
71
  onClose={onClose}
72
- title="Add Entities"
72
+ title="Add Items"
73
73
  footer={modalFooter}
74
74
  >
75
75
  <div className="space-y-4">
76
- <h3 className="text-lg font-semibold">Select Entity(s)</h3>
76
+ <h3 className="text-lg font-semibold">Select Item(s)</h3>
77
77
  <SearchInput placeholder="Search by name" />
78
78
  <DataTable
79
79
  // --- FIX: Use the correct prop names ---
@@ -1,17 +1,17 @@
1
1
  import { useState } from 'react';
2
2
  import { Button, PageHeader } from '@ramme-io/ui';
3
- import { AddEntitiesModal } from '../../components/AddEntitiesModal';
3
+ import { AddItemsModal } from '../../components/AddItemsModal';
4
4
 
5
5
 
6
6
 
7
- const EntitySelectorPage = () => {
7
+ const ItemSelectorPage = () => {
8
8
  const [isModalOpen, setIsModalOpen] = useState(false);
9
9
 
10
10
  return (
11
11
  <div>
12
12
  <PageHeader
13
- title="Prototype: Entity Selection"
14
- description="This page demonstrates the 'Add Entities' modal component."
13
+ title="Prototype: Item Selection"
14
+ description="This page demonstrates the 'Add Items' modal component."
15
15
  />
16
16
  <div className="mt-8">
17
17
  <Button onClick={() => setIsModalOpen(true)}>
@@ -19,7 +19,7 @@ const EntitySelectorPage = () => {
19
19
  </Button>
20
20
  </div>
21
21
 
22
- <AddEntitiesModal
22
+ <AddItemsModal
23
23
  isOpen={isModalOpen}
24
24
  onClose={() => setIsModalOpen(false)}
25
25
  />
@@ -27,4 +27,4 @@ const EntitySelectorPage = () => {
27
27
  );
28
28
  };
29
29
 
30
- export default EntitySelectorPage;
30
+ export default ItemSelectorPage;
@@ -4,7 +4,6 @@ import { type SitemapEntry } from '../../core/sitemap-entry';
4
4
  import Dashboard from '../../pages/Dashboard';
5
5
  import AiChat from '../../pages/AiChat';
6
6
  import DataGridPage from '../../pages/DataGridPage';
7
- import AccountingLedgerPage from '../../pages/AccountingLedgerPage';
8
7
  import Styleguide from '../../pages/styleguide/Styleguide';
9
8
  import DataLayout from '../../layouts/DataLayout';
10
9
 
@@ -23,7 +22,7 @@ import ColorsSection from '../../pages/styleguide/sections/colors/ColorsSection'
23
22
  import IconsSection from '../../pages/styleguide/sections/icons/IconsSection';
24
23
 
25
24
  // --- ADD THIS IMPORT ---
26
- import EntitySelectorPage from '../../pages/prototypes/EntitySelectorPage';
25
+ import ItemSelectorPage from '../../pages/prototypes/ItemSelectorPage';
27
26
 
28
27
 
29
28
  export const dashboardSitemap: SitemapEntry[] = [
@@ -41,7 +40,7 @@ export const dashboardSitemap: SitemapEntry[] = [
41
40
  path: 'prototypes/entity-selector',
42
41
  title: 'Entity Prototype',
43
42
  icon: 'beaker',
44
- component: EntitySelectorPage,
43
+ component: ItemSelectorPage,
45
44
  },
46
45
  {
47
46
  id: 'ai-chat',
@@ -57,8 +56,7 @@ export const dashboardSitemap: SitemapEntry[] = [
57
56
  icon: 'database',
58
57
  component: DataLayout,
59
58
  children: [
60
- { id: 'grid', path: 'grid', title: 'Data Grid', component: DataGridPage, icon: 'table' },
61
- { id: 'ledger', path: 'ledger', title: 'Ledger', component: AccountingLedgerPage, icon: 'book-open' },
59
+ { id: 'users', path: 'users', title: 'Users', component: DataGridPage, icon: 'table' }
62
60
  ],
63
61
  },
64
62
  {