Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
51e703f
progress on embedpdf viewer
InfinityBowman Jan 3, 2026
b3380d8
we can now see the pdf in headless mode
InfinityBowman Jan 3, 2026
01f39a5
Apply Prettier formatting
actions-user Jan 3, 2026
6bc814a
add zoom functionality
InfinityBowman Jan 3, 2026
abc42dd
Merge branch '209-embedpdf-viewer' of https://github.com/InfinityBowm…
InfinityBowman Jan 3, 2026
82aa529
Apply Prettier formatting
actions-user Jan 3, 2026
4e4bce1
remove dist
InfinityBowman Jan 3, 2026
9ada130
ignore dist
InfinityBowman Jan 3, 2026
fbac302
remove headless embedpdf, improve snippet version
InfinityBowman Jan 3, 2026
487b020
improve menu positioning
InfinityBowman Jan 3, 2026
2f9140a
Apply Prettier formatting
actions-user Jan 3, 2026
1b00556
remove shapes
InfinityBowman Jan 3, 2026
e3c128c
Merge branch '209-embedpdf-viewer' of https://github.com/InfinityBowm…
InfinityBowman Jan 3, 2026
5224706
reduce desktop mode threshold (mobile is only on very small)
InfinityBowman Jan 3, 2026
07707b3
Merge https://github.com/InfinityBowman/corates into 209-embedpdf-viewer
InfinityBowman Jan 3, 2026
a6c49b1
update plans and docs
InfinityBowman Jan 4, 2026
799a07a
Apply Prettier formatting
actions-user Jan 4, 2026
5d7229b
remove deps
InfinityBowman Jan 4, 2026
70b2e9b
Merge branch '209-embedpdf-viewer' of https://github.com/InfinityBowm…
InfinityBowman Jan 4, 2026
ad3c266
Apply Prettier formatting
actions-user Jan 4, 2026
31edeb2
fix import path
InfinityBowman Jan 4, 2026
2a3c5ec
Merge branch '209-embedpdf-viewer' of https://github.com/InfinityBowm…
InfinityBowman Jan 4, 2026
ffe4b93
fix resources link
InfinityBowman Jan 4, 2026
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ node_modules
npm-debug.log*
.wrangler
.turbo
/reference
reference/
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Check for any reference directories in the repository
echo "=== All reference directories ==="
fd --type d --full-path 'reference$' --exclude node_modules --exclude .git 2>/dev/null || echo "No reference directories found"

echo ""
echo "=== Current .gitignore content (around line 13) ==="
if [ -f .gitignore ]; then
  sed -n '10,16p' .gitignore
fi

Repository: InfinityBowman/corates

Length of output: 216


🏁 Script executed:

#!/bin/bash
# Check git history for .gitignore changes
echo "=== Recent .gitignore changes ==="
git log --oneline -n 20 -- .gitignore

echo ""
echo "=== Previous .gitignore content (showing reference pattern) ==="
git log -p -- .gitignore | grep -A 5 -B 5 'reference' | head -30

echo ""
echo "=== Commit that modified the reference pattern ==="
git log -p -- .gitignore | grep -B 20 'reference/' | grep -E '^\+reference/|^-/reference|^commit|^Author' | head -20

Repository: InfinityBowman/corates

Length of output: 297


Verify whether the reference directory ignore pattern change was intentional.

The pattern reference/ (matches any level) is technically broader than /reference (root-only), as noted. However, no reference/ directories currently exist in the repository that would be newly ignored by this change. If this broadening was unintentional, it should be reverted to /reference; if intentional to catch future reference/ directories at any level, the broader pattern is acceptable.

🤖 Prompt for AI Agents
.gitignore around line 13: the entry "reference/" is broader than the root-only
pattern "/reference" and may unintentionally ignore any nested reference/
directories; confirm whether the broader match was intended — if it was
unintentional, change the line back to "/reference" and commit the revert; if it
was intentional, keep "reference/" but add a brief comment above explaining the
reason (or update repo documentation) so future contributors understand why
nested reference/ dirs should be ignored.


# Vite cache
.vite/
Expand Down
47 changes: 47 additions & 0 deletions packages/docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default withMermaid({
nav: [
{ text: 'Home', link: '/' },
{ text: 'Architecture', link: '/architecture/' },
{ text: 'Plans', link: '/plans/' },
{ text: 'Guides', link: '/guides/' },
],

Expand Down Expand Up @@ -68,6 +69,52 @@ export default withMermaid({
},
],
},
{
text: 'Plans',
items: [
{ text: 'Overview', link: '/plans/' },
{
text: 'Product and Billing',
items: [
{ text: 'Pricing Model (Proposal)', link: '/plans/pricing-model' },
{
text: 'Ownership and Billing Model',
link: '/plans/ownership-billing-multitenancy',
},
{ text: 'Stripe Implementation', link: '/plans/stripe-implementation' },
{ text: 'Stripe Testing Guide', link: '/plans/stripe-testing-guide' },
],
},
{
text: 'Collaboration and Realtime',
items: [
{ text: 'Presence (Project WebSocket)', link: '/plans/presence' },
{ text: 'Yjs Awareness', link: '/plans/yjs-awareness' },
],
},
{
text: 'Quality and Architecture',
items: [
{ text: 'Ideal Error Model', link: '/plans/ideal-error-model' },
{ text: 'Audit Logs', link: '/plans/audit-logs' },
{
text: 'App Improvement Recommendations',
link: '/plans/application-improvement-recommendations',
},
],
},
{
text: 'Checklist Workflow',
items: [
{ text: 'Undo Checklist Completion', link: '/plans/undo-checklist-completion' },
{
text: 'Undo Checklist Completion Review',
link: '/plans/undo-checklist-completion-review',
},
],
},
],
},
],

search: {
Expand Down
5 changes: 5 additions & 0 deletions packages/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,17 @@ Learn about the system architecture, package structure, data models, and how dif
- API Actions
- Yjs Sync

### [Plans](/plans/)

Design docs and implementation plans (product, architecture, and major features).

### [Guides](/guides/)

Practical guides for common development tasks and patterns.

- [Error Handling](/guides/error-handling) - How to handle errors consistently across the application
- [Style Guide](/guides/style-guide) - UI/UX guidelines and design system
- [Pricing Model (Proposal)](/plans/pricing-model) - Proposed pricing model and billing scopes

## Getting Started

Expand Down
18 changes: 18 additions & 0 deletions packages/docs/plans/application-improvement-recommendations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Application improvement recommendations

This plan collects broad recommendations for improving CoRATES across:

- TypeScript migration strategy
- code organization
- testing
- performance
- accessibility
- monitoring and logging
- UI/UX polish
- tooling

## Canonical source

The full recommendations document currently lives at:

- `docs/plans/application_improvement_recommendations_285cfcae.plan.md`
20 changes: 20 additions & 0 deletions packages/docs/plans/audit-logs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Audit logs implementation plan

This is a plan for adding comprehensive audit logging across CoRATES (admin actions, auth events, billing events, project lifecycle events, and data events like PDF upload/delete).

## Summary

- Add a new `audit_logs` table in D1 (via Drizzle) keyed by a generated ID and timestamp.
- Add an audit middleware in Workers that:
- generates a request ID
- captures IP and user agent
- exposes a `ctx.audit.log(...)` helper
- Write audit events asynchronously (use `waitUntil`) so logging does not block responses.
- Expose an admin API to query and export audit logs.
- Add retention cleanup via a cron trigger.

## Canonical source

The full detailed plan (including schema, event catalog, and implementation phases) currently lives at:

- `docs/plans/audit-logs.plan.md`
Loading