@jetthai/cuora 1.1.439-dev.5 β 1.1.439-dev.7
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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.1.439-dev.7](https://github.com/jetthai/cuora-module/compare/v1.1.439-dev.6...v1.1.439-dev.7) (2026-06-03)
|
|
6
|
+
|
|
7
|
+
### [1.1.439-dev.6](https://github.com/jetthai/cuora-module/compare/v1.1.439-dev.5...v1.1.439-dev.6) (2026-06-01)
|
|
8
|
+
|
|
5
9
|
### [1.1.439-dev.5](https://github.com/jetthai/cuora-module/compare/v1.1.439-dev.4...v1.1.439-dev.5) (2026-05-29)
|
|
6
10
|
|
|
7
11
|
### [1.1.439-dev.4](https://github.com/jetthai/cuora-module/compare/v1.1.439-dev.3...v1.1.439-dev.4) (2026-05-29)
|
package/package.json
CHANGED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# JT-1776243420: Third-Party Register Carry Phone / Email Payload
|
|
2
|
+
|
|
3
|
+
## Key Changes
|
|
4
|
+
|
|
5
|
+
1. Extended third-party redirect payload assembly to read `tp_phone`, `tp_countryCode`, and `tp_email` from storage.
|
|
6
|
+
2. Preserved existing affiliate code / nickname behavior and appended new fields only when values are valid.
|
|
7
|
+
3. Cleans the temporary third-party storage keys after composing the redirect query.
|
|
8
|
+
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
## Key Findings
|
|
12
|
+
|
|
13
|
+
### Strengths
|
|
14
|
+
|
|
15
|
+
1. The change is tightly scoped to the third-party auth redirect builder in `src/machine/auth.js:477-520`.
|
|
16
|
+
2. Existing affiliate code and nickname logic remains unchanged while phone / email are additive only.
|
|
17
|
+
3. Temporary keys are removed after payload composition, reducing leakage into later unrelated auth flows.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
### Behavior Observed
|
|
22
|
+
|
|
23
|
+
1. Static review confirms `phone`, `countryCode`, and `email` are appended only when storage values are not `undefined` / `null`.
|
|
24
|
+
2. Channel and subchannel fallback logic stays intact after the new fields are added.
|
|
25
|
+
3. No unrelated file changes were present in this repo for the review scope.
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## π§ Change Type
|
|
30
|
+
|
|
31
|
+
- [ ] π Bug fix
|
|
32
|
+
- [x] β¨ New feature
|
|
33
|
+
- [ ] π Style
|
|
34
|
+
- [ ] β»οΈ Refactor
|
|
35
|
+
- [ ] β‘ Performance
|
|
36
|
+
- [ ] π§ Chore
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## π± Impact Scope
|
|
41
|
+
|
|
42
|
+
- Third-party register / login redirect query assembly in cuora shared auth machine.
|
|
43
|
+
- Downstream PWA clients that store `tp_phone`, `tp_countryCode`, and `tp_email` before `LOGIN_3PARTY`.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Test Completion Status
|
|
48
|
+
|
|
49
|
+
| Item | Validation Tested | Status |
|
|
50
|
+
| -------------------------- | --------------------------------------------------------------------- | ------- |
|
|
51
|
+
| Diff hygiene | `git diff --check` in `cuora-module` | PASS |
|
|
52
|
+
| Shared auth payload review | Reviewed `src/machine/auth.js:477-520` against ticket intent | PASS |
|
|
53
|
+
| Runtime redirect execution | Not run in this repo directly; validated through client repos instead | NOT RUN |
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## π Spec Validation (Aligned with review-playbook)
|
|
58
|
+
|
|
59
|
+
| Spec Item | Evidence (File/Line/Result) | Status |
|
|
60
|
+
| ------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | ------ |
|
|
61
|
+
| Third-party flow can carry phone when client stored it | `src/machine/auth.js:479-520` reads `tp_phone` / `tp_countryCode` and appends them to `referralObj` | PASS |
|
|
62
|
+
| Third-party flow can carry email when client stored it | `src/machine/auth.js:481-520` reads `tp_email` and appends it to `referralObj` | PASS |
|
|
63
|
+
| Affiliate code and nickname keep original logic | `src/machine/auth.js:477-500` keeps `ac` / `nick_name` handling unchanged | PASS |
|
|
64
|
+
| Temporary third-party data does not leak into later unrelated flows | `src/machine/auth.js:518-520` removes the temporary storage keys after composing the redirect URL | PASS |
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## π Standards Checklist (Summary)
|
|
69
|
+
|
|
70
|
+
| Category | Result | Notes |
|
|
71
|
+
| ---------------------- | ------- | --------------------------------------------------------------------------- |
|
|
72
|
+
| Memory Safety | PASS | Simple storage reads and object assembly only. |
|
|
73
|
+
| Rendering Performance | PASS | No rendering code touched. |
|
|
74
|
+
| Network Requests | PASS | Existing redirect flow only; no extra requests added. |
|
|
75
|
+
| Bundle Optimization | PASS | No new imports or heavy logic added. |
|
|
76
|
+
| Code Quality | PASS | Scope is narrow and branch contains only the required file change. |
|
|
77
|
+
| Vue / Nuxt Standards | NOT RUN | Shared module; not a Vue / Nuxt surface. |
|
|
78
|
+
| SSR Security Standards | PASS | Query parameters are assembled from existing client-side storage path only. |
|
|
79
|
+
| Project Conventions | PASS | Matches existing storage-guard pattern used for affiliate / nickname. |
|
|
80
|
+
|
|
81
|
+
## Conclusion
|
|
82
|
+
|
|
83
|
+
This repoβs shared auth-machine change matches the ticket intent and is internally consistent. Runtime behavior was not executed in `cuora-module` directly, but both client repos now pass the new storage keys into this shared payload path.
|
|
84
|
+
|
|
85
|
+
**Overall Result:** PASS (PARTIAL)
|
|
@@ -164,7 +164,7 @@ export default function (request, context) {
|
|
|
164
164
|
selectedCrypto: defaultCrypto[0],
|
|
165
165
|
selectedAddress: defaultAddresses[0],
|
|
166
166
|
options: cryptoBank.optional,
|
|
167
|
-
selectedAmount: max(context.promotion?.minimumAmount, defaultCrypto[0]?.minimum, context.selectedAmount, 0),
|
|
167
|
+
selectedAmount: max(context.promotion?.minimumAmount, defaultCrypto[0]?.minimum || cryptoBank?.minimum, context.selectedAmount, 0),
|
|
168
168
|
}
|
|
169
169
|
}),
|
|
170
170
|
setCrypto: assign((context, event) => {
|
|
@@ -183,7 +183,7 @@ export default function (request, context) {
|
|
|
183
183
|
addresses,
|
|
184
184
|
selectedCrypto: selectedCrypto,
|
|
185
185
|
selectedAddress: addresses[0],
|
|
186
|
-
selectedAmount: max(context.promotion?.minimumAmount, selectedCrypto?.minimum, 0),
|
|
186
|
+
selectedAmount: max(context.promotion?.minimumAmount, selectedCrypto?.minimum || cryptoBank?.minimum, 0),
|
|
187
187
|
calculation: null,
|
|
188
188
|
options: cryptoBank.optional,
|
|
189
189
|
}
|
package/src/machine/ranking.js
CHANGED
|
@@ -9,7 +9,8 @@ const ONE_DAY_MS = 24 * 60 * 60 * 1000
|
|
|
9
9
|
function expandPeriodOption(option, cycle) {
|
|
10
10
|
if (!option) return []
|
|
11
11
|
const { round, beginDate, endDate } = option
|
|
12
|
-
|
|
12
|
+
// εει·εΊ¦εζ΄ε°ζ΄ζΈε€©οΌιΏε
εΎη«― endDate εΈΆηΆζ₯ 23:59:59 ηζιι ζζ·ε²εειζεη§»
|
|
13
|
+
const step = Math.floor((endDate - beginDate) / ONE_DAY_MS + 1) * ONE_DAY_MS
|
|
13
14
|
const count = Math.min(ROUND_LIMIT[cycle] || round, round)
|
|
14
15
|
// ιεͺζεοΌηΆεεεε¨ζε
|
|
15
16
|
return Array.from({ length: count }, (_, i) => ({
|