-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
modified #8287
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
modified #8287
Conversation
Reviewer's GuideThis PR implements a responsive footer fix that ensures Save/Delete buttons wrap and stay right-aligned on narrow viewports, integrates a robust AuthProvider with complete methods and error handling to prevent infinite redirect loops on session expiry, and replaces the outdated README with a comprehensive, up-to-date documentation guide. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `frontend/appflowy_flutter/README.md:119` </location>
<code_context>
+All these restrictions necessitate our mission - to make it possible for anyone to create apps that suit their needs
+well.
+
+- To individuals, we would like to offer Notion's functionality, data security, and cross-platform native experience.
+- To enterprises and hackers, AppFlowy is dedicated to offering building blocks and collaboration infra services to
+ enable you to make apps on your own. Moreover, you have 100% control of your data. You can design and modify AppFlowy
+ your way, with a single codebase written in Flutter and Rust supporting multiple platforms armed with long-term
+ maintainability.
+
+We decided to achieve this mission by upholding the three most fundamental values:
</code_context>
<issue_to_address>
**issue (typo):** Correct 'one-size fits all solution' to 'one-size-fits-all solution.'
```suggestion
come up with a one-size-fits-all solution in such a fragmented market.
```
</issue_to_address>
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
led to our firm belief that there is a glass ceiling on what's possible for these tools in the future. This emanates | ||
from the fact that these tools will probably struggle to scale horizontally at some point and be forced to prioritize a | ||
proportion of customers whose needs differ from the rest. While decision-makers want a workplace OS, it is impossible to | ||
come up with a one-size fits all solution in such a fragmented market. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
issue (typo): Correct 'one-size fits all solution' to 'one-size-fits-all solution.'
come up with a one-size fits all solution in such a fragmented market. | |
come up with a one-size-fits-all solution in such a fragmented market. |
Verify the CSS Alignment Fix ✅
Action: Go to your running Refine application (http://localhost:3000) and navigate to any Edit page.
Test: Slowly resize your browser window to simulate a mobile screen (make it very narrow).
Expected Result: The "Save" and "Delete" buttons in the footer should wrap neatly to a new line when space runs out, and both buttons should remain aligned to the right of the card footer.
Verify the Authentication Loop Fix ✅
Action: You need to trigger a session expiry or manually simulate an unauthorized state.
Test (Simulated):
Log in successfully.
Open your browser's Developer Tools → Application → Local Storage and delete the stored authToken (or whatever key you use).
Attempt to navigate to a restricted page or refresh the current page.
You should be redirected immediately to the /login page.
Expected Result: You should not see a flash of the main application or get stuck in a loop of redirects. The application should handle the session expiry cleanly and immediately land on the login screen.
Summary by Sourcery
Provide a sample refine authProvider implementation in place of the old README, including secure token storage, identity retrieval, and handling of expired sessions to prevent infinite redirects.
New Features:
Add a complete Refine AuthProvider implementation with login, logout, checkAuth, and getIdentity methods
Bug Fixes:
Fix infinite authentication redirect loop by handling 401/403 errors in onError and triggering logout
Documentation:
Replace outdated README content with usage example for the custom authProvider
Summary by Sourcery
Documentation: