Enhance landing page and admin features for version 2 - #2
Open
daniel-teddy wants to merge 59 commits into
Open
daniel-teddy wants to merge 59 commits into
daniel-teddy wants to merge 59 commits into
Conversation
…tion; add CI workflow and Vitest configuration
Centralize marketing content for every landing section in English and French so the UI can stay high-fidelity without hard-coded strings.
Introduce copyable contact command, provider tabs, work-card visuals, and FAQ list support for bullet answers to match SuperCmd section patterns.
Wire feature stats, work grid with visuals, stack inventory, comparison tables, architecture, FAQ, and closing CTA from locale copy.
Serve the landing page under locale paths, redirect `/` by preference, and expose an English/French toggle in the floating nav.
…kers - Added new deployment scripts for live updates to Cloudflare Workers. - Updated package.json with new preview and deploy commands. - Configured wrangler.jsonc to enable workers_dev and preview_urls for improved development experience.
- Added locale support to the Work and Dashboard components for English and French. - Introduced a new ProviderTabs component displaying technology stacks based on the selected tab. - Updated the README with local development instructions and deployment scripts for Cloudflare Workers.
- Updated HeroMock component to support additional callouts with titles and bodies. - Refactored Hero component to improve layout and integrate new copy fields. - Added className prop to CopyCommand for customizable styling. - Enhanced global styles for improved visual presentation of hero elements. - Updated content types and translations to include new fields for better localization.
- Removed IconButton component from SiteNav for cleaner code. - Updated brand name from "Stackwise" to "Stackwise Technologies" in English and French site copy. - Reformatted content structure for better readability.
…n deploy script - Changed the deployment message format to remove spaces for compatibility with OpenNext. - Updated argument passing in the deployment command to use the preferred format for better token handling.
…branding in SiteNav
- Updated package versions and added new dependencies for database and email functionalities. - Created migration scripts for initializing database tables related to OTP and payment links. - Developed admin layout and dashboard components for managing payment links. - Implemented login functionality with OTP verification for admin access. - Added API routes for handling payment link creation, retrieval, and email notifications. - Introduced new components for displaying payment links and their statuses. - Enhanced middleware to include new admin routes for better access control.
- Added a new utility function to retrieve the application secret, prioritizing KPay webhook secret and ensuring it meets length requirements. - Updated session management to utilize the new secret retrieval method instead of relying on SESSION_SECRET. - Modified tests to use KPay webhook secret for session token generation. - Adjusted hashing logic to use KPAY_SECRET_KEY for password salting. - Updated email delivery configuration to use SMTP_FROM_ADDRESS as the user if available.
- Added a new WithdrawPage component for admin withdrawal management. - Created API routes for fetching wallet balances and processing withdrawals. - Developed a WithdrawPanel component for user interaction, including form handling and balance display. - Introduced KPay provider configurations for withdrawal options. - Updated AdminShell to include a link to the withdrawal page.
- Added environment file loading functionality to the migration script for better configuration management. - Refactored migration execution to handle multiple SQL statements individually, improving error handling and logging. - Updated PaymentLinkBuilder component to change default currency to KES and disabled email sending by default. - Introduced preview mode for payment links, allowing users to see a live preview before creation. - Added validation to ensure customer name and email are provided before processing payment links.
- Introduced a new ensureSchema function to manage database schema initialization. - Updated payment link and admin OTP functionalities to ensure the database schema is ready before operations. - Added loading of the .env.example file in the migration script for improved environment configuration.
…ements - Updated InvoiceHeader, InvoiceStamp, and InvoiceView components to support a compact mode for better responsiveness. - Improved styling for buttons and layout in the PaymentLinkBuilder component. - Added live preview enhancements and adjusted grid layouts for better visual consistency.
- Removed unused company tagline from InvoiceHeader component for cleaner presentation. - Updated PayButton text to reflect a more concise payment option. - Enhanced payment receipt email template by removing the tagline for a streamlined look. - Specified payment method as "CARD" in payment initiation metadata for clarity.
- Introduced support for Mobile Money as a payment method alongside Card in the payment initiation process. - Updated the PaymentLinkBuilder component to display a warning when the total exceeds the KPay card limit, indicating Mobile Money as the only available option. - Adjusted service catalog pricing to ensure all default prices are below the KPay card limit, enhancing compliance with payment processing constraints. - Refactored payment button to handle different payment methods and improve user experience during payment processing.
- Added support for distinguishing between test and production environments in payment links. - Introduced new EnvironmentBadge component to visually indicate the payment environment. - Updated PaymentLinkBuilder and PaymentLinksList components to accommodate the new environment handling. - Enhanced migration scripts to include new database schema for kpay_is_test field. - Improved admin dashboard to display payment links with their respective environments. - Refactored migration and deployment scripts for better environment configuration management.
…gement - Introduced a new script `db:reset:prod-payments` for cleaning up sandbox payment links in production. - Updated README to document the new script and its usage. - Enhanced `PaymentLinkBuilder` and `PaymentLinksList` components to improve display of payment amounts and exchange rates. - Added summary functionality for payment links to provide better insights in the admin dashboard. - Refactored currency handling in payment link processing for improved accuracy.
- Updated AdminDashboardPage to display payment links directly, improving user experience. - Refactored AdminLoginPage to utilize a new OtpInput component for better OTP handling. - Enhanced WithdrawPage to include environment-specific wallet balance loading. - Introduced WalletBalances and WalletBalancesLoader components for improved wallet balance management. - Updated PaymentLinksList to show wallet balances alongside payment links for better financial insights. - Refactored KPay API interactions to support environment-specific credentials and wallet fetching.
…display - Updated AdminDashboardPage to fetch and display both live and test payment links based on the environment. - Refactored PaymentLinksList to accept separate live and test links, improving clarity in the UI. - Introduced PaymentSectionTotals component to summarize invoiced and collected amounts for each environment. - Enhanced listPaymentLinks function to support filtering by production and test environments. - Updated tests to reflect changes in payment link environment handling.
…ndling - Replaced file-based migration loading with embedded migration statements in a new migration-statements module for improved performance and reliability in serverless environments. - Updated ensureSchema function to utilize the new MIGRATION_STATEMENTS, simplifying the schema initialization process. - Refactored email template rendering to use a centralized template registry, enhancing maintainability and reducing filesystem dependencies.
- Added Metadata type to the admin layout for improved type safety. - Included favicon configuration in the metadata to enhance branding and user experience.
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
stackwise-technologies | a72c684 | Sep 23 2026, 11:15 AM |
- Modified EnvironmentBadge and StatusBadge components to use rounded-sm and w-fit classes for better visual alignment. - Adjusted PaymentLinksList to enhance layout with flex properties and updated date formatting for improved readability. - Refined InvoiceHeader and InvoiceView components for better spacing and responsive design, including adjustments to text sizes and layout structure. - Removed redundant company website information from company footer lines for a cleaner presentation.
…nsistency - Updated margin and padding values in the InvoiceView component to enhance visual alignment and spacing. - Modified class names to ensure a more cohesive design, particularly in the display of billing and invoice details.
- Changed the text from "Contact" to "Reach out to" in the InvoiceView component to enhance the tone of communication.
- Changed the date display in the InvoiceView component from toLocaleDateString to toLocaleString for a more detailed timestamp presentation.
- Added a section on payments legal & compliance, linking to relevant documentation for customer payment pages. - Included a reference to the new PAYMENTS.md file for details on payment flow, receipts, and legal notices.
- Added a new Payments legal & compliance section in README and created a detailed PAYMENTS.md file outlining payment processing, data handling, and receipt access. - Introduced PaymentLegalNotice component to display legal information on payment pages. - Implemented access control for receipt viewing based on payment status, ensuring only paid links can access receipts. - Enhanced InvoiceView and ReceiptPage components to support new receipt access logic and printing styles. - Updated email templates to clarify receipt access instructions for customers.
- Introduced a new migration to alter the invoice_number column type to VARCHAR(64) in the payment_links table for improved flexibility. - Updated the nextInvoiceNumber function to generate UUID-based invoice numbers, replacing the previous year-based format. - Adjusted test cases to reflect the new invoice number format, ensuring consistency across the application.
…logic - Deleted the migration statement for altering the invoice_number column type in the payment_links table. - Updated the nextInvoiceNumber function to generate a new format for invoice numbers, using a prefix and a random suffix instead of UUIDs. - Adjusted test cases to reflect the new invoice number format, ensuring consistency across the application.
- Introduced a new CSS file for the pay portal to implement a light document theme. - Updated the PayLayout component to apply the new pay-portal class for consistent styling across payment pages. - Enhanced body styles to improve readability and visual appeal in the pay portal.
- Added PayCheckoutLayout for consistent layout across payment pages. - Created PayPage to handle payment link retrieval and display payment status. - Introduced ReceiptPage for displaying payment receipts with access control. - Developed PayReturnPage to manage payment gateway responses and user redirection. - Established a legal layout and PaymentLegalPage to inform users about payment processing and data handling.
- Added audit logging for customer interactions on payment pages, capturing IP address and user agent. - Created a new `payment_audit_logs` table to store audit events with relevant metadata. - Integrated logging into payment flow, including events for page views, payment initiation, receipt views, and return callbacks. - Developed `PaymentAuditLog` component to display audit logs on the admin payment-link detail page. - Updated relevant components to record audit events during payment interactions.
- Updated the payment audit logging system to display logs at `/admin/audit-logs` and on payment-link detail pages. - Created a new `AuditLogsPage` component for viewing recent payment access logs with session validation. - Introduced `PaymentAuditLogTable` component for structured display of audit logs, including event details and user information. - Refactored metadata handling across various layouts to utilize a centralized `createPageMetadata` function for consistency. - Added navigation link to access logs in the admin shell.
- Replaced `PaymentAuditLogTable` with `PaymentAuditLogsPanel` for improved log display and filtering capabilities. - Adjusted the `listRecentPaymentAuditLogs` function to increase the default limit for fetched logs. - Enhanced the `PaymentAuditLog` component to support a larger number of logs and improved user experience with search and event filtering. - Updated the `PaymentAuditLogTable` to handle empty states more gracefully with customizable messages.
- Introduced a new column `allowed_payment_methods` in the `payment_links` table to specify available payment options. - Updated the `PaymentLinkBuilder` component to allow selection of payment methods during link creation. - Enhanced the `PayButton` component to dynamically render available payment options based on the selected methods. - Implemented logic to validate payment methods during payment initiation. - Added necessary types and utility functions to support the new payment methods feature.
- Added display for allowed payment methods in the PaymentLinkDetailPage. - Updated the test cases to include allowed payment methods in the PaymentLink structure. - Created new tests for payment method resolution and validation logic.
- Improved error handling in payment initiation to return specific status codes based on error types, including timeout scenarios. - Refactored the PayButton component to implement a timeout for payment requests and provide user feedback on loading states. - Added a new function to handle the response from the payment initiation API, ensuring proper error messages are displayed. - Updated the PayPage component to streamline the synchronization of pending payment links and improve user experience.
- Introduced a new utility module for date and time formatting, providing consistent formatting across the application. - Updated the PaymentLinksTable and InvoiceView components to utilize the new formatting functions for displaying timestamps. - Refactored the AdminShell component to improve header styling and mobile menu accessibility. - Adjusted SiteNav component for better mobile navigation experience with z-index management.
- Introduced new fields in the payment_links table to support manual payment recording, including payment source, method, and amounts received. - Implemented RecordManualPaymentForm component for recording manual payments with validation and receipt options. - Added ManualPaymentSummary component to display details of recorded manual payments. - Created API routes for recording manual payments and resending receipts, enhancing the admin interface for payment management. - Updated relevant components to integrate new manual payment features and improve user experience.
- Introduced a new `TablePagination` component to standardize pagination across the PaymentAuditLogsPanel and PaymentLinksTable. - Refactored both components to utilize the new pagination logic, improving user experience with consistent navigation controls. - Added pagination utility functions to handle item slicing and page calculations, enhancing performance and maintainability. - Updated tests to ensure pagination functionality works as expected.
…w module - Updated imports in ManualPaymentSummary, InvoiceView, and payments email module to source from the new payment-display module. - Moved payment display functions (paidAmountUsd, paidAmountLocal, displayPaymentReference) from manual-payment to payment-display for better organization and clarity. - Created payment-display module to encapsulate payment display logic, enhancing code maintainability.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement a comprehensive update to the landing page, introducing bilingual support, improved UI components, and enhanced navigation. Add new features for the admin dashboard, including payment link management and withdrawal functionalities. Update deployment processes and CI workflows for better integration and performance. Version bumped to 0.2.0 to reflect these significant enhancements.