closerdao / closer-ui

closer-ui.vercel.app
1 stars 0 forks source link

Feat assign room numbers to bookings #426

Closed valieff closed 1 month ago

valieff commented 1 month ago

Showing room numbers for each booking in UI.

In theory this update would allow easier rooms and beds management.

TODO in a separate PR:

Works with BE: https://github.com/closerdao/closer-api/pull/171

localhost_3000_bookings_664dda957ba5dbb585a5fe1b

Summary by CodeRabbit

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git β†—οΈŽ

Name Status Preview Comments Updated (UTC)
foz βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback May 23, 2024 9:33am
lios βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback May 23, 2024 9:33am
moos βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback May 23, 2024 9:33am
traditionaldreamfactory βœ… Ready (Inspect) Visit Preview πŸ’¬ Add feedback May 23, 2024 9:33am
coderabbitai[bot] commented 1 month ago

Walkthrough

The updates span multiple applications and packages, introducing enhancements and refinements across the codebase. Key changes include enabling the topLevelAwait experiment in webpack configurations, updating configurations and component imports, refining UI components, and adding new features like local fonts and Google Maps markers. Additionally, there are numerous content updates and structural adjustments to improve readability and maintainability.

Changes

File(s) Change Summary
apps/foz/next.config.js,
apps/lios/next.config.js,
apps/moos/next.config.js,
apps/tdf/next.config.js,
packages/closer/next.config.js
Added webpack configuration to enable topLevelAwait experiment.
apps/lios/components/Footer/Footer.tsx Replaced TWITTER_URL with FACEBOOK_URL, added Terms & Conditions link, and updated to show the Facebook icon if FACEBOOK_URL is provided.
apps/lios/config.ts Included 'volunteering' in platformAllowedConfigs, removed local testing comment from APP_NAME, and updated LOGO_HEADER path.
apps/lios/pages/_app.tsx Refactored imports and prepareDefaultConfig function, adjusted state initialization and indentation, and added missing closing tag in MyApp component.
apps/lios/pages/index.tsx Added useState, Faqs, and useFaqs imports, updated link and video source URLs, and modified CSS classes for responsive design.
apps/lios/pages/resources/index.tsx Added imports for Image and LinkButton, reorganized component structure, updated content rendering, and added new images and link buttons.
apps/lios/public/fonts/fonts.ts Introduced export of local fonts with variables for Hoover, Cabinet, and Sincopa font families.
apps/lios/styles/index.css Removed imports for specific font CSS files and adjusted formatting.
apps/lios/styles/theme.js Updated fontFamily declarations to use CSS variable references.
apps/lios/tsconfig.json Added "public/fonts/fonts.ts" to the list of included files.
packages/closer/components/... Various updates including new optional properties, styling changes, and logic adjustments for components like BookingListPreview, Bookings, CurrentBooking, DiscountsEditor, EventPhoto, Faqs, FieldsEditor, GoogleMaps, Logo, Navigation, and TicketOptionsEditor.
packages/closer/config.ts Commented out the elements property in the configDescription constant.
packages/closer/locales/base.json,
packages/closer/locales/lios.json
Added new keys for booking details, removed stay descriptions, and updated volunteering and staying terms.
packages/closer/package.json Added "bson": "^6.7.0" to dependencies.
packages/closer/pages/bookings/[slug]/index.tsx Restructured isNotPaid condition and adjusted booking.paymentDelta logic.

In code we trust, we make it right,
With fonts and configs, day and night.
From Facebook links to fonts anew,
Our apps now sparkle, fresh as dew.
πŸ‡βœ¨
TopLevelAwait, we now embrace,
Efficiency in every trace.
Hooray for changes, big and small,
Our software stands, proud and tall!


[!NOTE]

Free review on us!

CodeRabbit is offering free reviews until Mon May 27 2024 to showcase some of the refinements we've made.

Tips ### Chat There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai): - Review comments: Directly reply to a review comment made by CodeRabbit. Example: - `I pushed a fix in commit .` - `Generate unit testing code for this file.` - `Open a follow-up GitHub issue for this discussion.` - Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples: - `@coderabbitai generate unit testing code for this file.` - `@coderabbitai modularize this function.` - PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples: - `@coderabbitai generate interesting stats about this repository and render them as a table.` - `@coderabbitai show all the console.log statements in this repository.` - `@coderabbitai read src/utils.ts and generate unit testing code.` - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.` Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. ### CodeRabbit Commands (invoked as PR comments) - `@coderabbitai pause` to pause the reviews on a PR. - `@coderabbitai resume` to resume the paused reviews. - `@coderabbitai review` to trigger a review. This is useful when automatic reviews are disabled for the repository. - `@coderabbitai resolve` resolve all the CodeRabbit review comments. - `@coderabbitai help` to get help. Additionally, you can add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed. ### CodeRabbit Configration File (`.coderabbit.yaml`) - You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository. - Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information. - If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json` ### Documentation and Community - Visit our [Documentation](https://coderabbit.ai/docs) for detailed information on how to use CodeRabbit. - Join our [Discord Community](https://discord.com/invite/GsXnASn26c) to get help, request features, and share feedback. - Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.