Skip to content

Commit

Permalink
Merge pull request #132 from trebol-ecommerce/bglamadrid/main
Browse files Browse the repository at this point in the history
  • Loading branch information
bglamadrid authored Mar 26, 2022
2 parents ce1ad37 + 01880d6 commit bc8ef46
Show file tree
Hide file tree
Showing 578 changed files with 28,227 additions and 11,265 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: node_js
node_js: 12
node_js: 16
branches:
except:
- demo
Expand Down
83 changes: 83 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,89 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v2.12.0-rc.1] - 2022-03-25

### Added
- Service interface methods specific to sales data API
- `markAsConfirmed` - To acknowledge an order/sell and notify the customer - HTTP `/data/sales/confirmation`
- `markAsRejected` - To prevent an order/sell to be delivered due to issues and/or refund the customer - HTTP `/data/sales/rejection`
- `markAsCompleted` - To mark an order/sell as delivered - HTTP `/data/sales/completion`
- Components to display sell data
- Simple block for general data
- Table to only display details (products/units/subtotal of each)
- Dialog component for reviewing all information. Can be accessed by clicking sales management page table rows
- Includes button to view the receipt of the transaction, only if, and once it has been, paid
- Three buttons are included in the dialog, each of them acts as interface for the above mentioned interface methods for the sales data API
- Simple component for Google Maps iframe embeds
- Includes pipe for trusting external resource urls (uses `DomSanitizer`)
- Search bar component for the frontpage header
- Search products page
- Can be accessed by clicking on the aforementioned search bar
- Allows filtering by category and/or product name
- Parameterizable content on the frontpage (settings can be configured using `environments`)
- Site logo
- Location map (at the bottom; uses above mentioned Google Map iframe embed)
- Banners (top and bottom of the page)
- Floating WhatsApp button
- Contact information in footer (email, phone number)
- Two-way binding of state and query params in frontpage. Implemented states are:
- Searching products by name and/or by category
- Viewing individual products
- Entity model `Image` now has a `targetUrl` property
- Slideshows images now may be able to hold links to redirect users to

### Changed
- Bump Angular to v13.3
- Refactored architecture for inserting and updating data within the management module
- Removed `FormGroupOwner` pseudo-interface
- Introduced `EntityTypeNames` type
- Introduced `EntityFormGroupFactoryService`; specializes in creating entity-specific `FormGroup`s
- Takes an instance of the aforementioned type
- All entity forms do not have `FormBuilder` injected to them; instead, any required `FormGroup`s can be passed through an `@Input` decorator
- When none is provided, these form components can fall-back to using the aforementioned service
- `EntityFormDialog` will invoke an entity form through its HTML template, not through an inner directive with `ViewContainerRef.createComponent`
- Updated signature for `EntityFormDialogData`
- `DataManagerComponentDirective<T>` now exposes `items$` as `Observable<any[]>` instead of `Observable<T[]>`
- When adding images, `code` field is now optional
- Hide frontpage heading
- Replace title in frontpage header with search bar
- `AppService` now exposes an `userName$` observable
- Refactored receipt page to have its card as a separate component
- Let all dialogs be closed by clicking out of their bounds, except for the `confirmation` dialog
- Product cards hovered in frontpage use vertical gradient as a background instead of a solid color
- Renamed `ITransactionalProductListContentsDataApiService`
- `SlideshowComponent` now integrates with Angular forms

### Fixed
- Modules/chunks are now effectively lazy-loaded, decreasing app loading times enormously!
- Individual item fetching in HTTP API (used when editing any data)
- Change property type of `token` in `Sell` model to `string`
- Missing (optional) property `unitValue` in `SellDetail` model
- Missing references in fake APIs
- Sales data
- Account profile
- Logic for fetching receipt data
- Several issues with responsive screens in frontpage
- Going backwards in a slideshow would omit the first index
- Prematurely end guest sessions
- Errors in products CRUD operations
- (UI) Image associations were not loaded into the form
- (Form validation) Categories were required at parent-form and child-form levels
- (HTTP API) Image associations were not included in request bodies
- (HTTP API) Filtering by partial name would send an incorrectly-named query parameter
- Do not state a limit amount of items when fetching product categories; due to their tree-like nature these must not be 'paginated'
- Add more loading indicators in the frontpage
- Product lists
- Alignment of some components
- Acept/cancel buttons in dialog to select multiple products
- Fields in personal information form
- Size adjustment of frontpage product lists (use appropiate space when there are fewer products in a list)
- Updated localization files

### Removed
- All references to deprecated APIs `/public/products` and `/public/categories`
- Some placeholder images

## [v2.0.0] - 2022-01-18

### Changed
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2021 The Trébol eCommerce Project
Copyright 2022 The Trébol eCommerce Project

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ To access the management pages, proceed to the login dialog clicking on the butt

## Current status

Supporting [the currently released API version (v1.2.2)](https://github.com/trebol-ecommerce/api/releases/tag/v1.2.2)
Supporting the unreleased API versioned 1.3.0
- `POST /data/sales/confirmation`
- `POST /data/sales/rejection`
- `POST /data/sales/completion`
All of these simply accept references to `Sell` objects as input, allowing for a straightforward handling of these operations. Fake, local-memory implementation is included to preview this functionality.

## Infrastructure

Expand Down
23 changes: 23 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,26 @@
},
"es-CL": {
"localize": ["es-CL"]
},
"localhost-staging": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.localhost.ts"
},
{
"replace": "src/environments/environment-modules.ts",
"with": "src/environments/environment-modules.prod.ts"
}
],
"localize": ["es-CL"],
"optimization": false,
"outputHashing": "none",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": false,
"vendorChunk": false,
"buildOptimizer": false
}
},
"defaultConfiguration": ""
Expand All @@ -130,6 +150,9 @@
},
"es-CL": {
"browserTarget": "ngx-trebol-frontend:build:es-CL"
},
"localhost-staging": {
"browserTarget": "ngx-trebol-frontend:build:localhost-staging"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/app.e2e-spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2021 The Trébol eCommerce Project
* Copyright (c) 2022 The Trebol eCommerce Project
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
Expand Down
2 changes: 1 addition & 1 deletion e2e/src/app.po.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Copyright (c) 2021 The Trébol eCommerce Project
* Copyright (c) 2022 The Trebol eCommerce Project
*
* This software is released under the MIT License.
* https://opensource.org/licenses/MIT
Expand Down
Loading

0 comments on commit bc8ef46

Please sign in to comment.