Skip to content

Commit

Permalink
Merge branch 'main' into cs-7755-include-option-to-delete-card-even-w…
Browse files Browse the repository at this point in the history
…hen-card-cant-be
  • Loading branch information
jurgenwerk committed Jan 20, 2025
2 parents 62ba7b9 + cc54e6e commit 59ec571
Show file tree
Hide file tree
Showing 75 changed files with 2,874 additions and 1,183 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Live reloads are not available in this mode, however, if you use start the serve

#### Using `start:all`

Instead of running `pnpm start:base`, you can alternatively use `pnpm start:all` which also serves a few other realms on other ports--this is convenient if you wish to switch between the app and the tests without having to restart servers. Use the environment variable `WORKER_COUNT` to add additional workers. By default there is 1 worker for each realm server. Here's what is spun up with `start:all`:
Instead of running `pnpm start:base`, you can alternatively use `pnpm start:all` which also serves a few other realms on other ports--this is convenient if you wish to switch between the app and the tests without having to restart servers. Use the environment variable `WORKER_HIGH_PRIORITY_COUNT` to add additional workers that service only user initiated requests and `WORKER_ALL_PRIORITY_COUNT` to add workers that service all jobs (system or user initiated). By default there is 1 all priority worker for each realm server. Here's what is spun up with `start:all`:

| Port | Description | Running `start:all` | Running `start:base` |
| ----- | ------------------------------------------------------------- | ------------------- | -------------------- |
Expand Down Expand Up @@ -123,7 +123,7 @@ When running tests we isolate the database between each test run by actually cre
If you wish to drop the development databases you can execute:

```
pnpm drop-all-dbs
pnpm full-reset
```

You can then run `pnpm migrate up` (with `PGDATABASE` set accordingly if you want to migrate a database other than `boxel`) or just start the realm server (`pnpm start:all`) to create the database again.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ import SaveCardCommand from '@cardstack/boxel-host/commands/save-card';
export { CreateProductRequirementsInput };

export default class CreateBoxelApp extends Command<
CreateProductRequirementsInput,
CardDef
typeof CreateProductRequirementsInput,
typeof CardDef
> {
inputType = CreateProductRequirementsInput;

protected async run(input: CreateProductRequirementsInput): Promise<CardDef> {
let createPRDCommand = new CreateProductRequirementsInstance(
this.commandContext,
undefined,
);

let { productRequirements: prdCard, roomId } =
Expand Down Expand Up @@ -78,9 +77,7 @@ export default class CreateBoxelApp extends Command<
return myAppCard;
}

async getInputType(): Promise<
new (args: any) => CreateProductRequirementsInput
> {
async getInputType() {
return CreateProductRequirementsInput;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class CreateProductRequirementsResult extends CardDef {
}

export default class CreateProductRequirementsInstance extends Command<
CreateProductRequirementsInput,
CreateProductRequirementsResult
typeof CreateProductRequirementsInput,
typeof CreateProductRequirementsResult
> {
inputType = CreateProductRequirementsInput;

Expand Down Expand Up @@ -117,9 +117,7 @@ export default class CreateProductRequirementsInstance extends Command<
return result;
}

async getInputType(): Promise<
new (args: any) => CreateProductRequirementsInput
> {
async getInputType() {
return CreateProductRequirementsInput;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ export class ConstructApplicationCodeInput extends CardDef {
}

class ConstructApplicationCodeCommand extends Command<
ConstructApplicationCodeInput,
ConstructApplicationCodeInput
typeof ConstructApplicationCodeInput,
typeof ConstructApplicationCodeInput
> {
public result: ConstructApplicationCodeInput =
new ConstructApplicationCodeInput();
async getInputType(): Promise<
new (args: any) => ConstructApplicationCodeInput
> {
async getInputType() {
console.log('Getting input type NEW', ConstructApplicationCodeInput);
return ConstructApplicationCodeInput;
}
Expand Down Expand Up @@ -112,10 +110,10 @@ import { restartableTask } from 'ember-concurrency';
}

export default class GenerateCodeCommand extends Command<
GenerateCodeInput,
ConstructApplicationCodeInput
typeof GenerateCodeInput,
typeof ConstructApplicationCodeInput
> {
async getInputType(): Promise<new (args: any) => GenerateCodeInput> {
async getInputType() {
return GenerateCodeInput;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"data": {
"type": "card",
"attributes": {
"status": {
"index": 2,
"label": "Done",
"color": "#66BB6A",
"completed": true
},
"dateRange": {
"start": null,
"end": null
},
"priority": {
"index": null,
"label": null
},
"name": "Quotation Adjustment",
"details": null,
"description": null,
"thumbnailURL": null
},
"relationships": {
"crmApp": {
"links": {
"self": "../CrmApp/4e73712d-2a31-4ffe-9c22-d3de277257a6"
}
},
"subtasks": {
"links": {
"self": null
}
},
"assignee": {
"links": {
"self": null
}
},
"contact": {
"links": {
"self": null
}
},
"account": {
"links": {
"self": null
}
},
"deal": {
"links": {
"self": null
}
},
"tags": {
"links": {
"self": null
}
}
},
"meta": {
"adoptsFrom": {
"module": "../crm/task",
"name": "CRMTask"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"data": {
"type": "card",
"attributes": {
"status": {
"index": 0,
"label": "Not Started",
"color": null,
"completed": false
},
"dateRange": {
"start": null,
"end": null
},
"priority": {
"index": 2,
"label": "Medium"
},
"name": "Meet Prospect Customer",
"details": null,
"description": null,
"thumbnailURL": null
},
"relationships": {
"crmApp": {
"links": {
"self": "../CrmApp/4e73712d-2a31-4ffe-9c22-d3de277257a6"
}
},
"subtasks": {
"links": {
"self": null
}
},
"assignee": {
"links": {
"self": "../Representative/e0b16307-04bd-4e48-bdf8-517bb35b8119"
}
},
"contact": {
"links": {
"self": null
}
},
"account": {
"links": {
"self": null
}
},
"deal": {
"links": {
"self": null
}
},
"tags": {
"links": {
"self": null
}
}
},
"meta": {
"adoptsFrom": {
"module": "../crm/task",
"name": "CRMTask"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"data": {
"type": "card",
"attributes": {
"status": {
"index": 1,
"label": "In Progress",
"color": "#FFB74D",
"completed": false
},
"dateRange": {
"start": null,
"end": null
},
"priority": {
"index": null,
"label": null
},
"name": "Edit Quotation on Item A",
"details": "The quantity should be 50, instead of 100.",
"description": null,
"thumbnailURL": null
},
"relationships": {
"crmApp": {
"links": {
"self": "../CrmApp/4e73712d-2a31-4ffe-9c22-d3de277257a6"
}
},
"subtasks": {
"links": {
"self": null
}
},
"assignee": {
"links": {
"self": "../Representative/880c1d41-2563-43da-999d-ef577fa3eac9"
}
},
"contact": {
"links": {
"self": null
}
},
"account": {
"links": {
"self": null
}
},
"deal": {
"links": {
"self": null
}
},
"tags": {
"links": {
"self": null
}
}
},
"meta": {
"adoptsFrom": {
"module": "../crm/task",
"name": "CRMTask"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
{
"data": {
"type": "card",
"attributes": {
"status": {
"index": 1,
"label": "In Progress",
"color": null,
"completed": false
},
"dateRange": {
"start": null,
"end": null
},
"priority": {
"index": null,
"label": null
},
"name": null,
"details": null,
"description": null,
"thumbnailURL": null
},
"relationships": {
"crmApp": {
"links": {
"self": "../CrmApp/4e73712d-2a31-4ffe-9c22-d3de277257a6"
}
},
"subtasks": {
"links": {
"self": null
}
},
"assignee": {
"links": {
"self": null
}
},
"contact": {
"links": {
"self": null
}
},
"account": {
"links": {
"self": null
}
},
"deal": {
"links": {
"self": null
}
},
"tags": {
"links": {
"self": null
}
}
},
"meta": {
"adoptsFrom": {
"module": "../crm/task",
"name": "CRMTask"
}
}
}
}
Loading

0 comments on commit 59ec571

Please sign in to comment.