@salesforce/webapp-template-app-react-sample-b2x-experimental 1.112.7 → 1.112.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/CHANGELOG.md +19 -0
  2. package/dist/force-app/main/default/webapplications/appreactsampleb2x/package.json +6 -5
  3. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/api/graphql-operations-types.ts +12058 -214
  4. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/api/graphqlClient.ts +18 -15
  5. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/api/{propertyListingGraphQL.ts → properties/propertyListingGraphQL.ts} +1 -1
  6. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/appLayout.tsx +4 -2
  7. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{TopBar.tsx → layout/TopBar.tsx} +2 -2
  8. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{MaintenanceRequestList.tsx → maintenanceRequests/MaintenanceRequestList.tsx} +4 -4
  9. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{MaintenanceRequestListItem.tsx → maintenanceRequests/MaintenanceRequestListItem.tsx} +3 -3
  10. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/maintenanceRequests/MaintenanceSummaryDetailsModal.tsx +87 -0
  11. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{PropertyListingCard.tsx → properties/PropertyListingCard.tsx} +1 -1
  12. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/{features/global-search/components/search/SearchPagination.tsx → components/properties/PropertyListingSearchPagination.tsx} +20 -28
  13. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/constants/propertyListing.ts +4 -0
  14. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/api/accountSearchService.ts +46 -0
  15. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/api/query/distinctAccountIndustries.graphql +19 -0
  16. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/api/query/distinctAccountTypes.graphql +19 -0
  17. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/api/query/getAccountDetail.graphql +121 -0
  18. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/api/query/searchAccounts.graphql +51 -0
  19. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/pages/AccountObjectDetailPage.tsx +357 -0
  20. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/pages/AccountSearch.tsx +303 -0
  21. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/__examples__/pages/Home.tsx +34 -0
  22. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/api/objectSearchService.ts +84 -0
  23. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/ActiveFilters.tsx +89 -0
  24. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/FilterContext.tsx +73 -0
  25. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/ObjectBreadcrumb.tsx +66 -0
  26. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/PaginationControls.tsx +109 -0
  27. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/SearchBar.tsx +41 -0
  28. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/SortControl.tsx +143 -0
  29. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/BooleanFilter.tsx +74 -0
  30. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/DateFilter.tsx +121 -0
  31. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/DateRangeFilter.tsx +69 -0
  32. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/MultiSelectFilter.tsx +98 -0
  33. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/NumericRangeFilter.tsx +85 -0
  34. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/SearchFilter.tsx +37 -0
  35. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/SelectFilter.tsx +93 -0
  36. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/components/filters/TextFilter.tsx +74 -0
  37. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/hooks/useAsyncData.ts +54 -0
  38. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/hooks/useCachedAsyncData.ts +184 -0
  39. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/hooks/useObjectSearchParams.ts +247 -0
  40. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/utils/debounce.ts +22 -0
  41. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/utils/fieldUtils.ts +29 -0
  42. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/utils/filterUtils.ts +372 -0
  43. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/object-search/utils/sortUtils.ts +38 -0
  44. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/useMaintenanceRequests.ts +1 -1
  45. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyAddresses.ts +2 -2
  46. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyDetail.ts +1 -1
  47. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyListingAmenities.ts +2 -2
  48. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyListingSearch.ts +2 -2
  49. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyMapMarkers.ts +3 -3
  50. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyPrimaryImages.ts +2 -2
  51. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/Application.tsx +3 -3
  52. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/Dashboard.tsx +2 -2
  53. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/Home.tsx +4 -2
  54. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/Maintenance.tsx +2 -2
  55. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/PropertyDetails.tsx +1 -1
  56. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/PropertySearch.tsx +12 -10
  57. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/routes.tsx +6 -18
  58. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/utils/propertyListingPaginationUtils.ts +18 -0
  59. package/dist/package-lock.json +2 -2
  60. package/dist/package.json +1 -1
  61. package/dist/scripts/graphql-search.sh +69 -17
  62. package/package.json +1 -1
  63. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/MaintenanceDetailsModal.tsx +0 -128
  64. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/api/objectDetailService.ts +0 -102
  65. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/api/objectInfoGraphQLService.ts +0 -137
  66. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/api/objectInfoService.ts +0 -95
  67. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/api/recordListGraphQLService.ts +0 -364
  68. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/DetailFields.tsx +0 -55
  69. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/DetailForm.tsx +0 -146
  70. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/DetailHeader.tsx +0 -34
  71. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/DetailLayoutSections.tsx +0 -80
  72. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/Section.tsx +0 -108
  73. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/SectionRow.tsx +0 -20
  74. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/UiApiDetailForm.tsx +0 -140
  75. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/formatted/FieldValueDisplay.tsx +0 -73
  76. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/formatted/FormattedAddress.tsx +0 -29
  77. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/formatted/FormattedEmail.tsx +0 -17
  78. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/formatted/FormattedPhone.tsx +0 -24
  79. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/formatted/FormattedText.tsx +0 -11
  80. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/detail/formatted/FormattedUrl.tsx +0 -29
  81. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/filters/FilterField.tsx +0 -54
  82. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/filters/FilterInput.tsx +0 -55
  83. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/filters/FilterSelect.tsx +0 -72
  84. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/filters/FiltersPanel.tsx +0 -380
  85. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/forms/filters-form.tsx +0 -114
  86. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/forms/submit-button.tsx +0 -47
  87. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/search/GlobalSearchInput.tsx +0 -114
  88. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/search/ResultCardFields.tsx +0 -71
  89. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/search/SearchHeader.tsx +0 -31
  90. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/search/SearchResultCard.tsx +0 -138
  91. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/search/SearchResultsPanel.tsx +0 -197
  92. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/components/shared/LoadingFallback.tsx +0 -61
  93. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/constants.ts +0 -39
  94. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/filters/FilterInput.tsx +0 -55
  95. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/filters/FilterSelect.tsx +0 -72
  96. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/hooks/form.tsx +0 -209
  97. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/hooks/useObjectInfoBatch.ts +0 -72
  98. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/hooks/useObjectSearchData.ts +0 -174
  99. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/hooks/useRecordDetailLayout.ts +0 -137
  100. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/hooks/useRecordListGraphQL.ts +0 -135
  101. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/pages/DetailPage.tsx +0 -109
  102. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/pages/GlobalSearch.tsx +0 -235
  103. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/types/filters/filters.ts +0 -121
  104. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/types/filters/picklist.ts +0 -6
  105. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/types/objectInfo/objectInfo.ts +0 -49
  106. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/types/recordDetail/recordDetail.ts +0 -61
  107. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/types/schema.d.ts +0 -200
  108. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/apiUtils.ts +0 -59
  109. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/cacheUtils.ts +0 -76
  110. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/debounce.ts +0 -90
  111. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/fieldUtils.ts +0 -354
  112. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/fieldValueExtractor.ts +0 -67
  113. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/filterUtils.ts +0 -32
  114. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/formDataTransformUtils.ts +0 -260
  115. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/formUtils.ts +0 -142
  116. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/graphQLNodeFieldUtils.ts +0 -186
  117. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/graphQLObjectInfoAdapter.ts +0 -77
  118. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/graphQLRecordAdapter.ts +0 -90
  119. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/layoutTransformUtils.ts +0 -236
  120. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/linkUtils.ts +0 -14
  121. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/paginationUtils.ts +0 -49
  122. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/recordUtils.ts +0 -159
  123. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/features/global-search/utils/sanitizationUtils.ts +0 -50
  124. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/hooks/usePropertyListingPriceRange.ts +0 -64
  125. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/index.ts +0 -120
  126. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/About.tsx +0 -8
  127. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/HelpCenter.tsx +0 -29
  128. package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/pages/PropertyListings.tsx +0 -100
  129. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/api/{applicationApi.ts → applications/applicationApi.ts} +0 -0
  130. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/api/{maintenanceRequestApi.ts → maintenanceRequests/maintenanceRequestApi.ts} +0 -0
  131. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/api/{propertyDetailGraphQL.ts → properties/propertyDetailGraphQL.ts} +0 -0
  132. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{WeatherWidget.tsx → dashboard/WeatherWidget.tsx} +0 -0
  133. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{NavMenu.tsx → layout/VerticalNav.tsx} +0 -0
  134. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{MaintenanceRequestIcon.tsx → maintenanceRequests/MaintenanceRequestIcon.tsx} +0 -0
  135. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{StatusBadge.tsx → maintenanceRequests/StatusBadge.tsx} +0 -0
  136. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{PropertyMap.tsx → properties/PropertyMap.tsx} +0 -0
  137. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/components/{PropertySearchFilters.tsx → properties/PropertySearchFilters.tsx} +0 -0
  138. /package/dist/force-app/main/default/webapplications/appreactsampleb2x/src/{features/global-search/types/search → types}/searchResults.ts +0 -0
@@ -1,120 +0,0 @@
1
- /**
2
- * Public API for the Global Search feature package.
3
- *
4
- * Design goals:
5
- * - Export **API services, hooks, types, schemas, and utilities** that customers can import from node_modules.
6
- * - Do **not** export UI components or feature constants (customers build their own UI).
7
- *
8
- * Source implementation lives under `src/features/global-search/**`.
9
- */
10
-
11
- // ---------------------------------------------------------------------------
12
- // API layer
13
- // ---------------------------------------------------------------------------
14
-
15
- export { objectInfoService } from "./features/global-search/api/objectInfoService";
16
- export {
17
- objectDetailService,
18
- extractFieldsFromLayout,
19
- } from "./features/global-search/api/objectDetailService";
20
- export type { RecordDetailResult } from "./features/global-search/api/objectDetailService";
21
-
22
- export {
23
- getRecordsGraphQL,
24
- getRecordByIdGraphQL,
25
- buildGetRecordsQuery,
26
- buildWhereFromCriteria,
27
- buildOrderByFromSort,
28
- } from "./features/global-search/api/recordListGraphQLService";
29
- export type {
30
- RecordListGraphQLResult,
31
- RecordListGraphQLVariables,
32
- RecordListGraphQLOptions,
33
- GraphQLRecordNode,
34
- } from "./features/global-search/api/recordListGraphQLService";
35
-
36
- // ---------------------------------------------------------------------------
37
- // Hooks
38
- // ---------------------------------------------------------------------------
39
-
40
- export { useObjectInfoBatch } from "./features/global-search/hooks/useObjectInfoBatch";
41
- export {
42
- useObjectListMetadata,
43
- useObjectColumns,
44
- useObjectFilters,
45
- } from "./features/global-search/hooks/useObjectSearchData";
46
- export { useRecordListGraphQL } from "./features/global-search/hooks/useRecordListGraphQL";
47
- export { useRecordDetailLayout } from "./features/global-search/hooks/useRecordDetailLayout";
48
-
49
- export type { ObjectListMetadata } from "./features/global-search/hooks/useObjectSearchData";
50
-
51
- export type {
52
- UseRecordListGraphQLOptions,
53
- UseRecordListGraphQLReturn,
54
- } from "./features/global-search/hooks/useRecordListGraphQL";
55
-
56
- export type {
57
- UseRecordDetailLayoutParams,
58
- UseRecordDetailLayoutReturn,
59
- } from "./features/global-search/hooks/useRecordDetailLayout";
60
-
61
- // ---------------------------------------------------------------------------
62
- // Types + Zod schemas (runtime validation)
63
- // ---------------------------------------------------------------------------
64
-
65
- export {
66
- ColumnArraySchema,
67
- SearchResultRecordArraySchema,
68
- KeywordSearchResultSchema,
69
- SearchResultsResponseSchema,
70
- } from "./features/global-search/types/search/searchResults";
71
- export type {
72
- Column,
73
- SearchResultRecord,
74
- KeywordSearchResult,
75
- SearchResultsResponse,
76
- } from "./features/global-search/types/search/searchResults";
77
-
78
- export {
79
- FilterArraySchema,
80
- FilterCriteriaArraySchema,
81
- FILTER_OPERATORS,
82
- } from "./features/global-search/types/filters/filters";
83
- export type {
84
- Filter,
85
- FilterCriteria,
86
- FilterOperator,
87
- FiltersResponse,
88
- } from "./features/global-search/types/filters/filters";
89
-
90
- export type { PicklistValue } from "./features/global-search/types/filters/picklist";
91
-
92
- export type {
93
- ObjectInfoBatchResponse,
94
- ObjectInfoResult,
95
- } from "./features/global-search/types/objectInfo/objectInfo";
96
-
97
- export { LayoutResponseSchema } from "./features/global-search/types/recordDetail/recordDetail";
98
- export type { LayoutResponse } from "./features/global-search/types/recordDetail/recordDetail";
99
-
100
- // ---------------------------------------------------------------------------
101
- // Utilities
102
- // ---------------------------------------------------------------------------
103
-
104
- export { fetchAndValidate, safeEncodePath } from "./features/global-search/utils/apiUtils";
105
- export { debounce } from "./features/global-search/utils/debounce";
106
- export { createFiltersKey } from "./features/global-search/utils/cacheUtils";
107
- export {
108
- calculateFieldsToFetch,
109
- getSafeKey,
110
- isValidSalesforceId,
111
- } from "./features/global-search/utils/recordUtils";
112
- export { parseFilterValue } from "./features/global-search/utils/filterUtils";
113
- export { sanitizeFilterValue } from "./features/global-search/utils/sanitizationUtils";
114
- export {
115
- getGraphQLNodeValue,
116
- getDisplayValueForDetailFieldFromNode,
117
- getDisplayValueForLayoutItemFromNode,
118
- getGraphQLRecordDisplayName,
119
- } from "./features/global-search/utils/graphQLNodeFieldUtils";
120
- export { graphQLNodeToSearchResultRecordData } from "./features/global-search/utils/graphQLRecordAdapter";
@@ -1,8 +0,0 @@
1
- export default function About() {
2
- return (
3
- <div className="mx-auto max-w-[600px]">
4
- <h1 className="mb-3 text-2xl font-semibold text-primary">About ZENLEASE</h1>
5
- <p className="leading-relaxed text-foreground">Placeholder content for the About page.</p>
6
- </div>
7
- );
8
- }
@@ -1,29 +0,0 @@
1
- import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card";
2
-
3
- export default function HelpCenter() {
4
- return (
5
- <div className="mx-auto max-w-[800px]">
6
- <h1 className="mb-6 text-2xl font-semibold text-primary">Help Center</h1>
7
- <Card className="mb-4">
8
- <CardHeader>
9
- <CardTitle>Frequently Asked Questions</CardTitle>
10
- </CardHeader>
11
- <CardContent>
12
- <p className="m-0 leading-relaxed text-foreground">
13
- Placeholder content for help and FAQs.
14
- </p>
15
- </CardContent>
16
- </Card>
17
- <Card>
18
- <CardHeader>
19
- <CardTitle>Contact Support</CardTitle>
20
- </CardHeader>
21
- <CardContent>
22
- <p className="m-0 leading-relaxed text-foreground">
23
- Reach out to the property management team for assistance.
24
- </p>
25
- </CardContent>
26
- </Card>
27
- </div>
28
- );
29
- }
@@ -1,100 +0,0 @@
1
- import { Link } from "react-router";
2
- import { Button } from "@/components/ui/button";
3
- import { Input } from "@/components/ui/input";
4
- import { Card, CardContent } from "@/components/ui/card";
5
-
6
- const listings = [
7
- {
8
- id: "1",
9
- name: "Verdana Apartments",
10
- address: "301 Bryant St, San Francisco, CA 94107",
11
- price: "$4,600+",
12
- beds: "2 Beds",
13
- phone: "(650) 440-1111",
14
- },
15
- {
16
- id: "2",
17
- name: "South Beach Lofts",
18
- address: "250 Brannan St, San Francisco, CA 94107",
19
- price: "$5,379+",
20
- beds: "2 Beds",
21
- phone: "(650) 555-0123",
22
- },
23
- ];
24
-
25
- export default function PropertyListings() {
26
- return (
27
- <div className="grid min-h-[500px] grid-cols-1 gap-6 lg:grid-cols-[320px_1fr]">
28
- <div className="min-h-[400px] rounded-xl bg-muted" aria-label="Map placeholder" />
29
- <div>
30
- <div className="mb-4 flex flex-wrap gap-3">
31
- <Input
32
- type="text"
33
- defaultValue="San Francisco, CA"
34
- className="min-w-[200px] flex-1 flex-[1_1_200px] rounded-xl"
35
- />
36
- <Button
37
- variant="outline"
38
- className="cursor-pointer rounded-xl transition-colors duration-200"
39
- >
40
- Price
41
- </Button>
42
- <Button
43
- variant="outline"
44
- className="cursor-pointer rounded-xl transition-colors duration-200"
45
- >
46
- Beds/Bath
47
- </Button>
48
- <Button className="cursor-pointer rounded-xl transition-colors duration-200">
49
- All Filters
50
- </Button>
51
- </div>
52
- <h2 className="mb-1 text-lg font-semibold text-foreground">
53
- 2 Bedroom Apartments for Rent in San Francisco CA
54
- </h2>
55
- <p className="mb-4 text-sm text-muted-foreground">1,181 Rentals Available</p>
56
- <div className="space-y-4">
57
- {listings.map((p) => (
58
- <Card key={p.name} className="rounded-2xl shadow-md">
59
- <CardContent className="flex gap-4 p-4">
60
- <Link
61
- to={`/property/${p.id}`}
62
- className="relative block size-[120px] sm:size-[200px] shrink-0 cursor-pointer rounded-xl bg-muted transition-opacity duration-200 hover:opacity-95"
63
- >
64
- <span className="absolute left-2 top-2 rounded-full bg-violet-600 px-2 py-0.5 text-xs font-medium text-white">
65
- Virtual Tours
66
- </span>
67
- </Link>
68
- <div className="min-w-0 flex-1">
69
- <h3 className="mb-1 text-base font-semibold">
70
- <Link
71
- to={`/property/${p.id}`}
72
- className="cursor-pointer text-primary no-underline transition-colors duration-200 hover:underline"
73
- >
74
- {p.name}
75
- </Link>
76
- </h3>
77
- <p className="mb-2 text-sm text-muted-foreground">{p.address}</p>
78
- <p className="mb-1 text-sm text-foreground">
79
- {p.price} {p.beds}
80
- </p>
81
- <p className="mb-2 text-sm text-muted-foreground">
82
- In Unit Washer & Dryer, Pets Allowed, Fitness Center
83
- </p>
84
- <p className="mb-2 text-sm text-primary">{p.phone}</p>
85
- <Button
86
- asChild
87
- size="sm"
88
- className="cursor-pointer rounded-xl transition-colors duration-200"
89
- >
90
- <Link to={`/application?listingId=${encodeURIComponent(p.id)}`}>Apply</Link>
91
- </Button>
92
- </div>
93
- </CardContent>
94
- </Card>
95
- ))}
96
- </div>
97
- </div>
98
- </div>
99
- );
100
- }