galadrim-feedback 1.0.5 โ 1.0.7
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/README.md +3 -37
- package/bin/cli.js +1 -30
- package/dist/index.cjs +119 -102
- package/dist/index.es +119 -102
- package/dist/styles.css +4 -0
- package/dist/types/src/utils/findClosestScrollableParent.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/molecules/feedbacks/menu/FastAccessButtons.tsx +9 -1
- package/src/components/molecules/feedbacks/shared/FeedbackPositioner.tsx +29 -42
- package/src/index.css +4 -0
- package/src/utils/findClosestScrollableParent.ts +23 -0
- package/src/utils/getInitials.ts +4 -4
package/README.md
CHANGED
|
@@ -206,7 +206,7 @@ This concludes the installation of **Galadrim Feedback** in your project!
|
|
|
206
206
|
|
|
207
207
|
## Account Creation
|
|
208
208
|
|
|
209
|
-
Once it's installed, you can sign up and then in the
|
|
209
|
+
Once it's installed, you can sign up and then in the Galadmin, you add yourself as a collaborator on the project
|
|
210
210
|
|
|
211
211
|
## Galadrim Feedback MCP Server
|
|
212
212
|
|
|
@@ -269,42 +269,8 @@ Galadrim Feedback includes a CLI tool for easier setup and management.
|
|
|
269
269
|
|
|
270
270
|
#### `cursor-init`
|
|
271
271
|
|
|
272
|
-
Automatically
|
|
272
|
+
Automatically copies the installation prompt to clipboard.
|
|
273
273
|
|
|
274
274
|
```bash
|
|
275
|
-
npx galadrim-feedback cursor-init
|
|
275
|
+
npx galadrim-feedback cursor-init --project-id=<project-id> --notion-database-id=<notion-database-id>
|
|
276
276
|
```
|
|
277
|
-
|
|
278
|
-
**What it does:**
|
|
279
|
-
|
|
280
|
-
- ๐ **Auto-detects** running IDEs (Cursor, VS Code)
|
|
281
|
-
- ๐ **Direct integration**:
|
|
282
|
-
- **macOS**: Uses AppleScript to interact directly with IDE
|
|
283
|
-
- **All platforms**: Creates temporary file with formatted prompt
|
|
284
|
-
- **Fallback**: Copies to clipboard if direct methods fail
|
|
285
|
-
- ๐ **Smart formatting**: Creates markdown file with copy-ready prompt
|
|
286
|
-
- ๐งน **Clean workflow**: Temporary files can be deleted after use
|
|
287
|
-
|
|
288
|
-
**Integration Methods:**
|
|
289
|
-
|
|
290
|
-
1. **AppleScript (macOS)**: Attempts to open AI chat and paste prompt directly
|
|
291
|
-
2. **File creation**: Opens a formatted `.md` file in your IDE
|
|
292
|
-
3. **Clipboard fallback**: Traditional copy-to-clipboard as backup
|
|
293
|
-
|
|
294
|
-
#### `help`
|
|
295
|
-
|
|
296
|
-
Shows all available CLI commands and usage information.
|
|
297
|
-
|
|
298
|
-
```bash
|
|
299
|
-
npx galadrim-feedback help
|
|
300
|
-
```
|
|
301
|
-
|
|
302
|
-
### Cross-Platform Support
|
|
303
|
-
|
|
304
|
-
The CLI automatically detects your operating system and uses the appropriate clipboard command:
|
|
305
|
-
|
|
306
|
-
- **macOS**: `pbcopy`
|
|
307
|
-
- **Linux**: `xclip`
|
|
308
|
-
- **Windows**: `clip`
|
|
309
|
-
|
|
310
|
-
If clipboard operations fail, the CLI will display the prompt text for manual copying.
|
package/bin/cli.js
CHANGED
|
@@ -47,35 +47,6 @@ If you're using a .babelrc file, add the plugin to the plugins section:
|
|
|
47
47
|
"plugins": ["babel-plugin-react-generate-paths"]
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
#### For React Router: (check the package.json to see if you are using react router, this config is only needed if you are using react router, but not for react-router-dom)
|
|
51
|
-
|
|
52
|
-
// vite.config.ts
|
|
53
|
-
import { reactRouter } from "@react-router/dev/vite";
|
|
54
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
55
|
-
import { defineConfig } from "vite";
|
|
56
|
-
import babel from "vite-plugin-babel";
|
|
57
|
-
import tsconfigPaths from "vite-tsconfig-paths";
|
|
58
|
-
|
|
59
|
-
export default defineConfig({
|
|
60
|
-
plugins: [
|
|
61
|
-
babel({
|
|
62
|
-
include: ["./app/**/*.tsx", "./app/**/*.ts"],
|
|
63
|
-
filter: (name) => name.endsWith(".tsx"),
|
|
64
|
-
}),
|
|
65
|
-
reactRouter(),
|
|
66
|
-
// [...]
|
|
67
|
-
],
|
|
68
|
-
});
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
// .babelrc
|
|
72
|
-
{
|
|
73
|
-
"presets": ["@babel/preset-typescript"],
|
|
74
|
-
"plugins": ["babel-plugin-react-generate-paths"]
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
50
|
|
|
80
51
|
3. Configure FeedbackRoot component:
|
|
81
52
|
- Run \`pwd\` command in the frontend root directory and use this absolute path for rootDir prop
|
|
@@ -106,7 +77,7 @@ export default defineConfig({
|
|
|
106
77
|
- navigate={(path) => navigate(path)} (using detected navigation method)
|
|
107
78
|
- position="bottom-right"
|
|
108
79
|
- notionDatabaseId="${NOTION_DATABASE_ID}"
|
|
109
|
-
* Place it inside the router context but outside main content areas
|
|
80
|
+
* Place it inside the router context but outside main content areas, if needed you can wrap it in a layout component that is parent to the rest of the app
|
|
110
81
|
|
|
111
82
|
4. Verification:
|
|
112
83
|
- Show all modified files
|