Skip to content

Commit 590e0b0

Browse files
authored
Merge pull request #117 from ClayPulse/dev
Add app server developer settings
2 parents 8522315 + 9e8f755 commit 590e0b0

File tree

20 files changed

+839
-88
lines changed

20 files changed

+839
-88
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pulse Editor is a modular, cross-platform, AI-powered productivity platform with
1010
> Pulse Editor is still in its early development stage. We are trying hard to make sure everything works as expected for all different platforms. See [Beta Release Roadmap](#beta-release-roadmap) below.
1111
1212
<p align="center">
13-
<img alt="Pulse Editor" src="shared-assets/icons/pulse_logo.svg"/>
13+
<img alt="Pulse Editor" src="https://raw.githubusercontent.com/ClayPulse/pulse-editor/refs/heads/main/shared-assets/icons/pulse_logo.svg"/>
1414
</p>
1515

1616
<div align="center">
@@ -341,3 +341,9 @@ For developing main client and using recently modified npm libraries without pub
341341
```
342342

343343
Make sure to change back if using published versions.
344+
345+
# Acknowledgements
346+
347+
- Thanks to the developers and community of [Module Federation](https://module-federation.io/) for their groundbreaking work on micro-frontends.
348+
- Thanks to the developers and community of [Hero UI](https://www.heroui.com/) for their fantastic component library.
349+
- Thanks to the developers and community of [React Flow](https://reactflow.dev/) for their amazing node-based graph library.

npm-packages/react-api/src/hooks/editor/use-env.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,19 @@ export default function usePulseEnv() {
99
>();
1010

1111
const { imc, isReady } = useIMC(receiverHandlerMap, "env");
12-
const [envs, setEnvs] = useState<Record<string, string>>({});
12+
const [envs, setEnvs] = useState<Record<string, string>>(
13+
// default to process env
14+
process.env as Record<string, string>,
15+
);
1316

1417
useEffect(() => {
1518
if (isReady) {
1619
imc?.sendMessage(IMCMessageTypeEnum.EditorGetEnv).then((env) => {
17-
setEnvs(env);
20+
// Create or update envs state
21+
setEnvs((prev) => ({
22+
...prev,
23+
...env,
24+
}));
1825
});
1926
}
2027
}, [isReady]);

npm-packages/shared-utils/src/types/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ export type AppConfig = {
139139
displayName?: string;
140140
description?: string;
141141
materialIcon?: string;
142+
license?: string;
143+
repository?: string;
142144
appType?: AppTypeEnum;
143145
fileTypes?: string[];
144146
thumbnail?: string;

0 commit comments

Comments
 (0)