Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: CI

on:
push:
branches:
- main
pull_request:

permissions:
contents: read

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true

jobs:
frontend:
name: Frontend quality
runs-on: ubuntu-22.04
steps:
- name: Check out source
uses: actions/checkout@v6

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
cache: npm

- name: Install dependencies
run: npm ci

- name: Check types
run: npm run typecheck

- name: Run frontend tests
run: npm test

- name: Check bilingual starter library
run: npm run library:check

- name: Check release version consistency
run: npm run release:check

- name: Build frontend
run: npm run build

backend:
name: Rust quality
runs-on: ubuntu-22.04
steps:
- name: Check out source
uses: actions/checkout@v6

- name: Install Linux build dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf \
libssl-dev \
libgtk-3-dev

- name: Install Rust 1.93
uses: dtolnay/rust-toolchain@1.93
with:
components: clippy, rustfmt

- name: Cache Rust build
uses: swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

- name: Check Rust formatting
run: cargo fmt --manifest-path src-tauri/Cargo.toml -- --check

- name: Run Clippy
run: cargo clippy --manifest-path src-tauri/Cargo.toml --locked --all-targets -- -D warnings

- name: Run Rust tests
run: cargo test --manifest-path src-tauri/Cargo.toml --locked
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,7 @@ dist/
src-tauri/target/
tmp/
references/
docs/
设计思路/
CODEX_HANDOFF.md
AGENTS.md
DESIGN.md
.DS_Store
Thumbs.db
*.log
Expand Down
45 changes: 45 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Coffee Note agent notes

Coffee Note is a sister product forked from the original longevity app. Its visible
product name is **Coffee Note**. The repository directory uses `Coffee-Note`;
internal package names, storage keys, and identifiers use `coffee-note` or
`CoffeeNote` where spaces are invalid; the reverse-domain bundle identifier is
`app.coffeenote.desktop`.
The copied longevity content is transitional and will be replaced with a clean,
general-purpose note model. The homepage tier list remains the core experience.

Before making product or design changes, read `CODEX_HANDOFF.md`. It is the
portable project memory for continuing development on another machine.
Also read `DESIGN.md` before changing the desktop UI; it is the desktop design
source of truth and does not apply to the separate public website.

Project rules:

- Treat the desktop app and the future public website as separate products sharing
one brand. The current `website/` directory intentionally keeps only the
Windows remote installer reference until the public site is rebuilt.
- The desktop app must use its own product library. Never bind it to
`C:\Life extension` or any developer-specific directory.
- Preserve the bilingual starter library and run `npm run library:check` after
changing it.
- Keep user data local by default. Persist the AI provider configuration,
including API keys, as plaintext JSON only in the current user's app-data
directory; never write it into the repository or knowledge library.
- Preserve the restrained neutral black/gray visual language, large readable
type, and low-chrome desktop UI. Avoid hover tooltips, unnecessary borders,
redundant labels, and web-like decoration inside the desktop app.
- No native `title` attributes anywhere in the desktop app — we are not a
website. Hover tooltips are a web pattern; show information inline or behind
an explicit click and keep `aria-label` for accessibility. One explicit
rule: non-interactive readouts (like the AI composer model ID) are plain
text — no cursor change, no hover effects, no tooltip.
- Enforce the desktop minimum type floor from `DESIGN.md`: no readable UI text
below 13px, no metadata below 12px, 15px left navigation, 14px directory/file
tree. Never ship smaller text to fix a layout; enlarge the component instead.
- Do not commit generated dependencies or build output (`node_modules/`,
`dist/`, `src-tauri/target/`).
- Keep `website/install.ps1` and `website/version.json` usable as the remote
Windows install/update infrastructure. The remaining public website will be
rebuilt later.
- Commit as `codex` (lowercase, the https://github.com/codex identity) in this
repository; local `user.name` and `user.email` are already configured for it.
Loading