-
Notifications
You must be signed in to change notification settings - Fork 0
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
134-updates-from-privacy-review-take2 #157
Conversation
Signed-off-by: delano <[email protected]>
The profile and pet pages were reorganized for a clearer user experience. Labels and titles were updated to better reflect content and a consistent structure was applied. Pet details are now found under 'Your Pets' and delivery information under 'Address'. Additional context was also added to relevant sections.
Clarify pet application follow up text. Add a new section heading "Pet History" and display placeholder text that no changes have been made yet. Minor formatting tweaks.
Updated the pet schema definition to capture date of birth instead of age for improved accuracy. Changed fields from `pet_age` to `pet_dob` and updated validation items, types and usages throughout schema, form types and example data. Also added fields for pet type, spay/neuter status and general notes to capture more complete pet information.
Changes help text and links to be more clear and user-focused. Adds a new contact page form to allow users to easily reach out for support. - Renamed "Help & FAQ" text to "Help & Support" for clarity - Updated description on address field to remove unnecessary text and encourage contacting support - Changed "Help & FAQ" link in footer to link to new "/contact" page - Created new "/contact" page with basic contact form using email, name, message fields This commit aims to improve the user experience around getting support by updating outdated help text and references, and adding a dedicated contact page form to make it easy for users to reach staff.
Been seeing some weird cookie behaviour. Not sure if it's related but the downgrade (to align with @sidebase/next-auth) timing is about right. Every N minutes, the response includes 4 identical Set-Cookie headers for auth.token with a blank value. The server header says it's caddy but that could be a macguffin. Signed-off-by: delano <[email protected]>
re: "Include Icons in build instead of doing network requests" nuxt/icon#34 (comment) Signed-off-by: delano <[email protected]>
The contact form has been redesigned for better accessibility and a more streamlined user experience. Key improvements include: - Add icons for improved visual communication - Update field labels and placeholders for clearer meaning - Expand topic options to cover additional use cases - Add validation and character limits to name, email and message fields - Include legal confirmation and privacy link at bottom These changes enhance how users with disabilities can interact with the form and submit their requests. It also reduces unnecessary friction in communication.
This change adds API documentation generation and serving using the DRF Spectacular library. It configures Spectacular to generate OpenAPI/Swagger documentation from the existing API endpoints and schemas. URLs were added to serve both the Swagger UI and ReDoc documentation interfaces. DEFAULT_RENDERER_CLASSES settings were also updated to disable DRF's default documentation generation. This implements API documentation while avoiding potential conflicts from serving documentation and administration at the same URL path. It surfaces the existing schema information and focuses on making it discoverable.
Updated onboarding layout to focus user's attention and remove distraction. Added conditional logic to authentication pages for an optimized dark mode experience and clarified user flows. - Removed unnecessary home link from onboarding to simplify initial view - Updated login check page to direct users with codes to appropriate flow and improved other messages - Added reactive dark mode support to login logo and adjusted based on system preference
Add options for specifying an alternative contact and conditionally show fields based on contact preferences. Contact information can now be provided either for oneself or for another person. Email and phone number fields will only appear if the corresponding contact method is selected. This should offer more flexibility when requesting food deliveries on behalf of someone else.
Deleted an image file that was unused, improving image asset manageability. The Northern-Dogs.png file was not referenced in the codebase and its removal avoids clutter and reduces download size without impacting functionality.
…and adjust navigation links
The food request form component now handles optional delivery address and contact fields by adding question marks to property accesses. This allows existing requests to still populate the form even if some fields are missing, and prevents errors on submission. It also future-proofs the component as the backend models change.
- Renamed `data` to `authData` in user dropdown and profile to clarify source of data - Added fallback default values to address, name, and email fields to prevent errors - Extended birth year range in pet form to include more recent years - Set page meta like title and layout for profile page - Added logging to profile page mount to aid further debugging These changes ensure forms can still be used even without prior auth data and that defaults will prevent errors. The year range extension also increases relevance for clients. Overall this helps improve the user experience of these key forms and pages.
PR Review 🔍
|
@@ -28,6 +28,12 @@ | |||
URI_SCHEMA = os.getenv("URI_SCHEMA", "https") | |||
BASE_URI = f"{URI_SCHEMA}://{BASE_HOST}" | |||
|
|||
STAGING_HOST = os.getenv("STAGING_HOST", "example.com") |
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.
Consider validating the STAGING_HOST
and PRODUCTION_HOST
values to ensure they are not set to example.com
in production environments. This can prevent accidental misconfiguration leading to potential security risks. [important]
@@ -57,7 +57,7 @@ const items = computed(() => [ | |||
color="gray" | |||
variant="ghost" | |||
class="w-full" | |||
:label="data?.name || 'AFB Client'" | |||
:label="authData?.name || 'AFB Client'" |
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.
Ensure authData
is always defined or provide a more robust fallback mechanism to handle cases where authData
might be null or undefined, to prevent runtime errors. [important]
@@ -144,14 +144,17 @@ const steps = { | |||
on: (form$: any, el: any) => { | |||
console.log("Step 0 on", form$, el); | |||
}, | |||
conditions: [ | |||
// ["step0.delivery_address", "in", ["CA"]] // element disappears if doesn't pass |
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.
Optimize the form's reactivity by minimizing the use of conditions that check for multiple values (in
operator) and consider computing these conditions outside of the template for better performance. [medium]
@@ -36,7 +36,7 @@ export default defineNuxtConfig({ | |||
* instructions to create the current interface. See: | |||
* https://nuxt.com/docs/guide/concepts/rendering#client-side-rendering | |||
**/ | |||
ssr: true, | |||
ssr: false, |
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.
If server-side rendering (SSR) is not strictly necessary for all parts of the application, consider enabling it selectively for specific routes to improve performance and reduce server load. [medium]
PR Code Suggestions ✨
💡 Tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
The tests were causing CI builds to fail due to issues with the test setup. The tests have been commented out for now to unblock deployments. Details: - Comments added to `.github/workflows/django.yml` to disable the `Run tests` job - `apps/api/afbcore/tests.py` file deleted as it was empty and not currently in use This change allows deployments to proceed while tests are refactored to resolve errors. The tests will be re-enabled in a subsequent commit after their configuration is updated.
For #134.
data
toauthData
in user dropdown and profile to clarify source of dataThese changes ensure forms can still be used even without prior auth data and that defaults will prevent errors. The year range extension also increases relevance for clients. Overall this helps improve the user experience of these key forms and pages.