Commit Graph

422 Commits

Author SHA1 Message Date
Nathan
7262f50b6a chore: do not delete cache when fail to get data from server 2025-11-16 19:15:22 +08:00
Nathan.fooo
7d38382a85 Merge pull request #151 from AppFlowy-IO/fix_pro_plan_badge
fix: hide pro plan badge on self-hosted instances
0.9.138
2025-11-16 18:21:19 +08:00
Nathan
3991e85bb0 chore: ci build 2025-11-16 16:35:07 +08:00
Nathan
85ae0cb442 chore: update ci to build story book 2025-11-16 15:03:38 +08:00
Nathan
f35914baa1 chore: add test 2025-11-16 15:03:06 +08:00
Nathan
db52cdade4 refactor: extract subscription plan logic into reusable hook 2025-11-16 14:51:53 +08:00
Nathan
d7e622f700 fix: resolve OAuth redirect loop race condition 2025-11-16 14:50:26 +08:00
Nathan
67bf9ea607 refactor(storybook): consolidate configuration and eliminate code duplication
## Summary
Reviewed and refactored all Storybook stories to use shared utilities,
eliminating ~200 lines of duplicate code while ensuring stories use
current theme, config, and styles consistently.

## Changes

### New Shared Utilities (.storybook/)
- **argTypes.ts**: Shared argTypes definitions (hostname, subscription, etc.)
- **decorators.tsx**: Reusable decorators (context providers, hostname mocking)
- **mocks.ts**: Shared mock context values (AFConfig, AppContext)

### Refactored Story Files
- HomePageSetting.stories.tsx: Now uses shared utilities
- UpgradeBanner.stories.tsx: Reduced from ~195 to ~80 lines
- UpgradePlan.stories.tsx: Reduced from ~180 to ~95 lines
- TextColor.stories.tsx: Uses shared argTypes
- RecordNotFound.stories.tsx: Reduced from ~235 to ~170 lines

### Configuration Updates
- **main.ts**: Added MUI optimizeDeps for proper theme support, removed deprecated buildStoriesJson
- **GUIDE.md**: Comprehensive documentation with examples and best practices
- **tsconfig.web.json**: Explicitly exclude .storybook/ from production builds

### Lint Fixes & Improvements
- **ApproveRequestPage.tsx**: Added missing blank line (lint fix)
- **subscription.ts**: Fixed type casting to avoid @typescript-eslint/no-explicit-any
- **AppTheme.tsx**: Changed to named imports (better practice)

## Benefits
-  Zero code duplication across stories
-  Consistent theme, config, and styles across all stories
-  Better maintainability (change once, apply everywhere)
-  Improved type safety with shared utilities
-  Comprehensive documentation for future story development
-  Storybook files guaranteed excluded from production builds

## Testing
- All linting passes (pnpm run lint)
- Storybook configuration verified to not be included in production builds
- Multiple layers of protection ensure isolation from main application

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-16 14:48:48 +08:00
Nathan
db5353194c fix: remove pro plan for selfhoster 2025-11-16 11:45:09 +08:00
Nathan.fooo
e34086d618 Merge pull request #150 from AppFlowy-IO/image_auth_token
fix: attach token when requesting appflowy image/file
0.9.137
2025-11-16 10:22:37 +08:00
Nathan
0da022059e fix: ci 2025-11-16 10:22:23 +08:00
Nathan
2a52da9760 fix: ci 2025-11-16 09:47:12 +08:00
Nathan
874fb319fe fix: attach token when requesting appflowy image/file 2025-11-16 09:39:15 +08:00
Nathan.fooo
8de485d60a Merge pull request #149 from AppFlowy-IO/fix_remove_user_no_access2
fix: always navigated to /app after removing access
0.9.136
2025-11-16 09:13:53 +08:00
Nathan
1a115c9247 chore: lint 2025-11-16 00:42:08 +08:00
Nathan
e798916614 chore: update ci 2025-11-16 00:39:26 +08:00
Nathan
fff815a4ea chore: add test 2025-11-16 00:37:10 +08:00
Nathan
a7dcfd5c77 fix: always navigated to /app after removing access, without checking who was being removed 2025-11-15 23:38:36 +08:00
Nathan.fooo
0a9c27b792 Merge pull request #148 from AppFlowy-IO/fix_user_avatar
Fix: display user avatar issue. Support display workspace profile avatar
2025-11-15 23:01:19 +08:00
Nathan
9a0cd8a3d2 chore: fix ci 2025-11-15 22:57:49 +08:00
Nathan
cd861d3be0 chore: fix test 2025-11-15 22:52:56 +08:00
Nathan
e1a1b65c32 chore: run http test 2025-11-15 22:08:44 +08:00
Nathan.fooo
33276c19e4 Merge pull request #147 from AppFlowy-IO/storybook
chore: create storybook to display error related UI components
2025-11-15 21:54:55 +08:00
Nathan
d68679eaee chore: add test 2025-11-15 21:53:59 +08:00
Nathan
d73c3ab0a6 chore: add test 2025-11-15 16:11:26 +08:00
Nathan
2deaec5438 chore: create storybook to display error related UI components 2025-11-15 12:44:30 +08:00
Nathan
e920f009c7 refactor: api error code 2025-11-15 12:08:48 +08:00
Nathan
2ed6a89b9f chore: add test 2025-11-15 11:37:37 +08:00
Nathan
fb7dfcedfc fix: display wrong user avatar 2025-11-14 16:48:52 +08:00
Nathan
11c20e5926 Merge remote-tracking branch 'premium/main' 2025-11-14 11:48:19 +08:00
Nathan
6aaf462ca1 chore: ignore 2025-11-14 11:47:53 +08:00
Nathan.fooo
17f8b0d7ef Merge pull request #111 from AppFlowy-IO/error_code
chore: show more error information
2025-11-13 11:25:57 +08:00
Nathan
bb61d8966f chore: show more error information 2025-11-11 19:48:21 +08:00
Richard Shiue
dd15933ed8 chore: revamp outline block (#110)
* chore: revamp outline block

* chore: copilot review

* chore: adjustment
2025-11-01 15:15:40 +08:00
Nathan.fooo
4854f0eb06 Merge pull request #109 from AppFlowy-IO/e2e_test2
Publish/Unpublish/visit Link Test
2025-11-01 14:34:02 +08:00
Richard Shiue
664f9b3b6e chore: revamp callout block (#105)
* chore: revamp callout block

* chore: copilot review
2025-10-31 22:31:08 +08:00
Nathan
273ccffbe8 test: add more tests 2025-10-31 11:02:09 +08:00
Nathan
b6ed729a6e test: add more tests 2025-10-31 10:45:10 +08:00
Nathan
484aa3eceb test: visit publish link 2025-10-31 10:07:27 +08:00
Nathan.fooo
37a0d99fe0 Merge pull request #108 from AppFlowy-IO/chore/fix-publish-relation
chore: fix the relation cell bug
2025-10-31 09:04:38 +08:00
Nathan
82290382f6 fix: show ungroup type by default 2025-10-31 08:38:58 +08:00
Nathan
9037a202cd fix: Handle missing select options and async relation view lookups 2025-10-31 08:06:17 +08:00
Nathan
716b725cfa Merge branch 'main' into chore/fix-publish-relation 2025-10-31 07:53:35 +08:00
Nathan.fooo
8f92a3ed1d Merge pull request #107 from AppFlowy-IO/fix_undefine_get2
fix: undefined get
2025-10-31 07:53:00 +08:00
qinluhe
128e756c2b chore: fix the relation cell bug 2025-10-30 22:11:00 +08:00
Nathan
77dbd3c2a3 fix: undefined get 2025-10-30 21:08:41 +08:00
Nathan.fooo
66aae1653b Merge pull request #106 from AppFlowy-IO/fix_undefine_get
fix: date time undefined get
2025-10-30 20:59:11 +08:00
Nathan
864540e31c fix: date time undefined get 2025-10-30 20:47:18 +08:00
Kilu.He
da0a9dbc71 chore: modified mention page text (#104) 2025-10-29 18:33:56 +08:00
Richard Shiue
fe3934ad03 chore: import color tokens v0.0.10 (#103)
* chore: import json

* chore: generate css vars
2025-10-28 13:02:22 +08:00