Conversation
…rvableQuery, CommandDialog Co-authored-by: einari <134365+einari@users.noreply.github.com>
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot fix the build |
|
Also, let's drop the Arc.MVVM package and MobX for this - which means dropping the Bindings.ts file also. |
…ve() for observable queries Co-authored-by: einari <134365+einari@users.noreply.github.com>
Fixed in commit
|
AnApp→CratisApp) and addGlobalUsings.csListing.cswithIMongoCollection<Listing>.Observe()+IProjectionFor<Listing>projectionappsettings.jsonroute configuration (SegmentsToSkipForRoute: 2) to match proxy generatorpackage.jsonwith all required dependencies (@cratis/components,@cratis/arc.*, PrimeReact, mobx, etc.)vite.config.tswithEmitMetadataPlugin, tailwindcss plugin, and path aliases (Api→Features)tsconfig.jsonwith decorator support (experimentalDecorators,emitDecoratorMetadata) and path aliasesindex.cssto import PrimeReact theme and Tailwind CSSBindings.tsfor MVVM initializationmain.tsxwithPrimeReactProvider,Bindings, and mobx setupApp.tsxwithBrowserRouter,DialogComponents(using@cratis/components/Dialogs)Features/SomeFeature/SomeFeature.tsxwithDataTableForObservableQueryandCommandDialogRegister.ts(command),Listing.ts(read model type),AllListings.ts(observable query)Cratis.Arc.MongoDB, singleyarn install)package.jsonexclusion toCratisApp.csproj<IncludeBuildOutput>false</IncludeBuildOutput>toCratis.Templates.csprojsodotnet pack --no-buildworksListing.csto useIMongoCollection<Listing>.Observe()(correctISubject<IEnumerable<T>>return type)global using MongoDB.DrivertoGlobalUsings.cs✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.