Skip to content

Big Migration#143

Open
mois-ilya wants to merge 140 commits intomasterfrom
dev
Open

Big Migration#143
mois-ilya wants to merge 140 commits intomasterfrom
dev

Conversation

@mois-ilya
Copy link
Collaborator

No description provided.

…odal for currency selection and payment link generation
…alanceBlock and RefillModal for improved display and handling of balances
…illModal for better error handling and loading states
…on selected project and total balance changes
… billing history with enhanced transaction details
…ptionsBlock and update BalanceBlock layout for improved UI
…nd simplify checkValidChangeTier method in TonApiTiersStore
…ing and dashboard components, update subscription handling, and enhance UI for better clarity and functionality
… data, enhance SubscriptionList component for better rendering, and simplify SubscriptionsBlock integration
…nd RefillModalContent to support promo code functionality, and adjust BalanceBlock layout accordingly
…rade typescript to v5.9.3, and remove ton-core dependency
…to a new location and updating import paths across components
…essagesBalance components

- Removed unnecessary imports and streamlined the layout in the `MessagesRefillModal` component for improved readability.
- Adjusted the structure of the `AppMessagesBalance` component to use a `Flex` container instead of a `Box`, enhancing layout consistency.
- Consolidated message display logic to improve clarity and maintainability.

These changes enhance the overall code quality and user interface consistency across the messaging components.
…rmationModalContent

- Eliminated the CurrencyRate component from the MessagesPaymentConfirmationModalContent to simplify the layout and improve clarity.
- This change enhances the user interface by focusing on essential information without cluttering the display.

These modifications contribute to a cleaner and more streamlined user experience in the payment confirmation modal.
- Refactored the message display logic in the `AppMessagesBalance` component to conditionally render the message count and loading state more clearly.
- Enhanced the layout by ensuring the `Text` component is only rendered when not loading, improving readability and user experience.

These changes streamline the component's rendering process and provide clearer visual feedback regarding message availability.
…ng logic

- Updated the `mapRestApiTierToSubscription` function to directly use the tier type for the interval display, enhancing clarity.
- Introduced a new `intervalToText` function in `SubscriptionList` to convert interval types into user-friendly text, improving the user interface.
- Adjusted pricing logic in `mapTierToRestApiTier` to correctly calculate prices for pay-as-you-go tiers, ensuring accurate pricing representation.

These changes enhance the overall user experience by providing clearer subscription information and ensuring accurate pricing calculations.
- Introduced a new `PaymentRequiredError` response in the Swagger API documentation to handle insufficient balance scenarios.
- Updated the `InsufficientBalanceModal` component to utilize a structured error state, providing clearer feedback on balance requirements.
- Refactored analytics query handling to integrate a custom hook for managing insufficient balance errors, improving user experience during query execution.
- Adjusted various components to utilize the new error handling logic, ensuring consistent user feedback across the application.

These changes improve the overall user experience by providing clear notifications regarding balance requirements and enhancing error management in analytics queries.
…icing

- Changed the displayed cost message from "0.01 up to 1 TON" to "0.01 up to 5 USD" in the GraphAnalyticsForm component.
- This update ensures that users receive correct information regarding the potential costs associated with their requests, enhancing clarity and transparency.
…ponents

- Updated the `CNFTAddForm` and related queries to utilize `UsdCurrencyAmount` instead of `TonCurrencyAmount` for price calculations.
- This change ensures consistency in currency representation across the NFT feature, enhancing clarity for users regarding pricing.
…faces

- Deleted the `AppMessagesPayment` and `AppMessagesStats` interfaces as they are no longer needed in the application.
- Updated the index file to reflect these removals, streamlining the codebase and improving maintainability.

These changes help reduce clutter in the code and ensure that only relevant interfaces are retained.
…cyAmount

- Modified the BillingTableRow component to utilize TonCurrencyAmount for displaying testnet coin values, enhancing clarity in currency representation.
- This change ensures consistent formatting of currency amounts, improving the user experience in the billing interface.
…onents

- Changed all instances of "Liteproxy" to "Liteservers" in relevant components and documentation to reflect the updated service terminology.
- This update ensures consistency in naming and improves clarity for users interacting with the dashboard and statistics features.
…dling

- Updated TypeScript guidelines to enforce stricter type usage, explicitly banning `any` types and type assertions, emphasizing the importance of building proper types.
- Refactored invoice query logic to utilize DTOs for field ordering and status mapping, improving clarity and maintainability.
- Added useEffect to reset pagination offset on filter or sort changes, ensuring a more intuitive user experience.
- Removed unused files related to invoice components, streamlining the codebase.
- Updated the EXPORT_PAGE_SIZE constant from 100 to 500 in the csv-export module to allow for larger data exports in a single request, enhancing performance and user experience during billing operations.
- Updated the analytics-query.store.ts to enforce stricter typing in the parseDDL function, enhancing type safety.
- Modified analytics-history-table-context.ts to use undefined instead of null for context initialization, improving context handling.
- Refactored FilterQueryByType and RepeatRequestModalContent components to utilize predefined constant arrays for query types and time intervals, enhancing code clarity and maintainability.
- Updated analytics-table-context.ts to export the AnalyticsTableContextType, ensuring better type visibility across the application.
- Made minor adjustments in image-input component to improve type handling in event callbacks, enhancing robustness.

These changes collectively enhance type safety, improve context management, and streamline component logic across the analytics feature.
- Replaced direct context usage with custom hooks in AnalyticsHistoryTableRow and AnalyticsHistoryTableStructure for improved readability and maintainability.
- Introduced useAnalyticsTableContext hook in analytics-table-context.ts to enhance context handling and type safety.
- Updated AnalyticsQueryTableStructure to utilize the new hook, ensuring consistent context access across components.
- Enhanced LiteserversTiersSection and SimpleTierCard to manage disabled states for better user experience when Liteservers are inactive.

These changes collectively improve code clarity, maintainability, and user interaction within the analytics and pricing features.
…usability

- Updated WebhooksPricingSection to remove the hideActivation prop and handle loading states with a spinner.
- Modified PricingDiagram and WebhooksPricingCalculator components to accept an isDisabled prop, allowing for better control over user interactions.
- Improved input handling in WebhooksPricingCalculator to prevent changes when disabled, enhancing user experience.
- Adjusted the layout and opacity of components based on the isDisabled state for clearer visual feedback.

These changes collectively improve the usability and clarity of the webhooks pricing features.
- Updated RestApiTiersSection, LiteserversTiersSection, and WebhooksPricingSection to support a displayOnly prop, allowing for static content rendering without data fetching.
- Adjusted internal logic to manage disabled states based on the displayOnly prop, improving user experience and clarity in pricing interactions.
- Refactored related components to ensure consistent handling of user interactions and visual feedback when in display-only mode.

These changes collectively improve the flexibility and usability of the pricing sections in the application.
- Introduced useWebhooksMaybeQuery to conditionally fetch webhooks based on project existence, improving flexibility in the WebhooksPricingSection.
- Updated imports in WebhooksPricingSection to include the new query function, ensuring consistent data handling.
- Removed unused Button import in LiteserversTiersSection for cleaner code.

These changes collectively improve the efficiency and maintainability of the pricing components.
- Removed the MobX observer from CreateInvoiceFrom and TextWithSkeleton components to simplify the code and improve readability.
- Deleted the createImmediateReaction utility function as it was no longer in use, streamlining the MobX library.
- Updated the index file to reflect the removal of the createImmediateReaction export, ensuring a cleaner module structure.

These changes collectively enhance code clarity and maintainability by eliminating unnecessary dependencies and simplifying component definitions.
…y handling

- Refactored the calculateBalanceSufficiency function to consistently use BigNumber for USD amounts, enhancing precision in financial calculations.
- Updated the MessagesRefillModal to display insufficient funds in USDT, improving user clarity on payment requirements.
- Introduced UsdCurrencyAmount for better currency formatting and handling, ensuring accurate representation of amounts in the UI.

These changes collectively enhance the accuracy and usability of financial interactions within the application.
…play

- Modified the useProjectsQuery to include userId in the query key, ensuring separate caching for each user and improving data fetching logic.
- Updated the InsufficientBalanceModal to remove the currency label from the displayed amount, enhancing clarity in financial messaging.
- Cleaned up imports and adjusted related components to ensure consistent handling of user data and project selection.

These changes collectively enhance the user experience and maintainability of the application by improving data management and UI clarity.
- Introduced UnavailableFeature and UnavailableFeatureGate components to manage feature availability and display maintenance messages.
- Updated JettonRouting and TonapiRouting to utilize UnavailableFeatureGate for airdrops and webhooks, respectively, enhancing user experience during feature downtimes.
- Added debug utility for managing unavailable features, allowing developers to enable or disable features for testing purposes.

These changes collectively improve the handling of feature availability and provide clearer communication to users regarding service status.
- Updated calculateBalanceSufficiency to include an option for checking only USDT balance, improving flexibility in balance evaluations.
- Modified useBalanceSufficiencyCheck to accommodate the new onlyUsdt parameter, ensuring consistent usage across components.
- Refactored useWebhooksMaybeQuery to streamline query handling based on project existence, enhancing data fetching logic in the WebhooksPricingSection.
- Cleaned up imports in WebhooksPricingSection for better code clarity.

These changes collectively improve the accuracy and usability of financial interactions and webhooks data management within the application.
Edit Project Page:
- Redesign with 3-card layout (Project Details, Team Access, Danger Zone)
- Add Project ID badge in header with copy button
- Team Access: show current user with (you) badge, move Add button to header
- Add icon edit modal with hover overlay

Mobile Navigation:
- Add MobileNavDrawer component
- Improve responsive header and layout

Code Quality Fixes:
- Fix memory leak in icon preview (revoke blob URLs)
- Fix cache key mismatch in project mutations (use invalidateQueries)
- Fix empty name fallback in user avatar
- Rename EditProjectParticipan to EditProjectParticipant
- Fix typo isMathLocation to isMatchLocation
- Add projectId null guard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant