Skip to content

Commit 09a6562

Browse files
authored
Merge pull request #19 from lossless-group/feature/augment-affiliations
Augment from Affiliations — MVP shipped, rate/link/enrich in one screen
2 parents dafe2a6 + c1336d1 commit 09a6562

29 files changed

Lines changed: 2203 additions & 142 deletions
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "@augment-it/affiliation-rating-resolver",
3+
"version": "0.0.1",
4+
"private": true,
5+
"type": "module",
6+
"scripts": {
7+
"dev": "rsbuild dev",
8+
"build": "rsbuild build",
9+
"preview": "rsbuild preview",
10+
"check": "svelte-check --tsconfig ./tsconfig.json"
11+
},
12+
"dependencies": {
13+
"@augment-it/theme": "workspace:*",
14+
"@augment-it/workspace": "workspace:*",
15+
"svelte": "^5.56.4"
16+
},
17+
"devDependencies": {
18+
"@module-federation/enhanced": "^2.6.0",
19+
"@module-federation/rsbuild-plugin": "^2.6.0",
20+
"@rsbuild/core": "^2.1.2",
21+
"@rsbuild/plugin-svelte": "^2.0.0",
22+
"svelte-check": "^4.7.1",
23+
"typescript": "^6.0.3"
24+
}
25+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { defineConfig } from '@rsbuild/core';
2+
import { pluginSvelte } from '@rsbuild/plugin-svelte';
3+
import { pluginModuleFederation } from '@module-federation/rsbuild-plugin';
4+
5+
// Federated remote — affiliation-rating-resolver. The write half of the
6+
// Augment-from-Affiliations CSV round-trip: reimport a rating-edited CSV
7+
// (uploaded through the existing Record Collector path), map columns once,
8+
// then write relevance/relevance_note onto each row's `affiliations` edge
9+
// via the affiliation.rate capability. No match/create — every row's
10+
// person + org already exist in canonical; this only resolves the LOOKUP
11+
// key (person_uuid, org_slug) and writes the rating. See
12+
// context-v/specs/Augment-From-Affiliations.md.
13+
export default defineConfig({
14+
plugins: [
15+
pluginSvelte(),
16+
pluginModuleFederation({
17+
name: 'affiliationRatingResolver',
18+
filename: 'remoteEntry.js',
19+
exposes: {
20+
'./mount': './src/mount.ts',
21+
},
22+
dts: false,
23+
}),
24+
],
25+
source: {
26+
entry: { index: './src/index.ts' },
27+
},
28+
output: {
29+
target: 'web',
30+
overrideBrowserslist: ['last 2 Chrome versions', 'last 2 Firefox versions', 'last 2 Safari versions'],
31+
},
32+
tools: {
33+
swc: {
34+
jsc: { target: 'es2022' },
35+
},
36+
},
37+
html: {
38+
title: 'augment-it · affiliation-rating-resolver',
39+
},
40+
server: {
41+
port: 3012,
42+
cors: { origin: ['http://localhost:3100'] }, // the federation shell
43+
},
44+
dev: {
45+
assetPrefix: 'http://localhost:3012',
46+
},
47+
});

0 commit comments

Comments
 (0)