Skip to content

Commit b9c3d3c

Browse files
Chore/update to latest version (#3)
* chore: updated to the latest version * chore: updated to the latest version * chore: updated to the latest version * chore: updated to the latest version
1 parent 8ef7e0d commit b9c3d3c

File tree

361 files changed

+25575
-25949
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

361 files changed

+25575
-25949
lines changed

.commitlintrc.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
rules:
2+
body-leading-blank: [1, always]
3+
body-max-line-length: [2, always, 100]
4+
footer-leading-blank: [1, always]
5+
footer-max-line-length: [2, always, 100]
6+
header-max-length: [2, always, 100]
7+
subject-case:
8+
- 2
9+
- never
10+
- [sentence-case, start-case, pascal-case, upper-case]
11+
subject-empty: [2, never]
12+
subject-full-stop: [2, never, '.']
13+
type-case: [2, always, lower-case]
14+
type-empty: [2, never]
15+
type-enum:
16+
- 2
17+
- always
18+
- [build, chore, ci, ops, docs, feat, fix, perf, refactor, revert, style, test, wip, changeset]

CODE_OF_CONDUCT.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ representative at an online or offline event.
6161

6262
Instances of abusive, harassing, or otherwise unacceptable behavior may be
6363
reported to the community leaders responsible for enforcement at
64-
[INSERT CONTACT METHOD].
64+
[[email protected]]([email protected]?subject=Report%20abuse).
6565
All complaints will be reviewed and investigated promptly and fairly.
6666

6767
All community leaders are obligated to respect the privacy and security of the
@@ -115,6 +115,19 @@ community.
115115

116116
## Attribution
117117

118-
This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/),
118+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
119119
version 2.1, available at
120-
[v2.1](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html).
120+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
121+
122+
Community Impact Guidelines were inspired by
123+
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
124+
125+
For answers to common questions about this code of conduct, see the FAQ at
126+
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
127+
[https://www.contributor-covenant.org/translations][translations].
128+
129+
[homepage]: https://www.contributor-covenant.org
130+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
131+
[Mozilla CoC]: https://github.com/mozilla/diversity
132+
[FAQ]: https://www.contributor-covenant.org/faq
133+
[translations]: https://www.contributor-covenant.org/translations

CONTRIBUTING.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ feat: add new authentication flow
5252
fix: resolve dashboard layout bug
5353
docs: update API reference
5454
```
55+
If commits are related to specific apps you can structure the massage like so: `fix(frontend): fixing styles for Y component`
5556

5657
### 5. Push and Open a Pull Request (PR)
5758

@@ -83,9 +84,6 @@ Then, go to **[GitHub](https://github.com/o2sdev/openselfservice)** and open a *
8384

8485
---
8586

86-
87-
TODO: confirm if we're doing this but maybe this would be encouraging?
88-
8987
## 🏆 Recognizing Contributions
9088

9189
We will use the **[All Contributors](https://allcontributors.org/)** specification to recognize contributions of all kinds.
@@ -97,6 +95,6 @@ Once your PR is merged, we will add your name to the **Contributors list** in th
9795

9896
For general questions, feel free to:
9997
- Open a **[GitHub Discussion](https://github.com/o2sdev/openselfservice/discussions)**.
100-
- Reach out on **[Twitter/X](https://twitter.com/openselfservice)**.
98+
- Reach out on **[Twitter/X](https://twitter.com/openselfservice)** or **[[email protected]](mailto:[email protected])**.
10199

102100
Thank you for contributing to Open Self Service!

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
[![Open Self Service - open-source development kit for composable Customer Portals](apps/docs/static/img/o2s-gh-cover.png)](https://www.openselfservice.com)
2+
13
# Open Self Service (O2S)
24

35
**Framework for building composable customer self-service portals.**
@@ -7,7 +9,8 @@ Its flexibility allows for many customizations and lets you build various types
79

810
## 🚀 Key Features
911

10-
- **Composable Frontend** – Robust Next.js-based frontend including basic customer portal pages.
12+
- **Composable** – In short: **API-agnostic**. Compose customer experience by combining multiple "backend capabilities" into seamless, fully decoupled frontend.
13+
- **Next.js Frontend Starter** – Robust Next.js-based frontend including basic customer portal pages and content management capabilities.
1114
- **API Harmonization Server****Integration layer** for data aggregation, orchestration and normalization. Provides vendor lock-in safeness and better maintainability.
1215
- **TypeScript SDK** – Easily interact with the Harmonization Server in the frontend app or any web, mobile, other TS-based apps.
1316
- **Pre-built Integrations** – Ready integrations so that you can set up your solution faster.
@@ -42,7 +45,7 @@ cd apps/api-harmonization && npm run dev # Start API Harmonization Server
4245
cd apps/frontend && npm run dev # Start Next.js Frontend
4346
```
4447

45-
For more details, check the **[Running the project](https://www.openselfservice.com/docs/running-the-project)** guide.
48+
For more details, check the **[Running the project](https://www.openselfservice.com/docs/getting-started/running-locally)** guide.
4649

4750
## 🏗️ Project Structure
4851

@@ -57,26 +60,29 @@ O2S follows a **monorepo structure** using **Turborepo** for managing apps and i
5760
/ui # UI component library (shadcn/ui, Tailwind)
5861
```
5962

60-
For a detailed breakdown, visit **[Project structure](https://www.openselfservice.com/docs/project-structure)**.
63+
For a detailed breakdown, visit **[Project structure](https://www.openselfservice.com/docs/getting-started/project-structure)**.
64+
65+
## 🖥️ Demo app
66+
[![O2S Demo](apps/docs/static/img/o2s-gh-demo.png)](https://demo.openselfservice.com)
6167

6268
## 🔌 Available Integrations
6369

6470
O2S includes pre-built integrations and allows you to extend functionality as needed.
6571

66-
| Integration | Status |
67-
| -------------------------- | -------------- |
68-
| **StrapiCMS** | ✅ Available |
69-
| **NextAuth** | ✅ Available |
70-
| **Redis cache** | ✅ Available |
71-
| **Search (Elasticsearch)** | 🔄 In progress |
72-
| **CRM (TBD)** | 🔄 Planned |
73-
| **ERP / Commerce (TBD)** | 🔄 Planned |
72+
| Integration | Status |
73+
|--------------------------| -------------- |
74+
| **StrapiCMS** | ✅ Available |
75+
| **NextAuth** | ✅ Available |
76+
| **Redis cache** | ✅ Available |
77+
| **Search (Algolia)** | 🔄 In progress |
78+
| **CRM (TBD)** | 🔄 Planned |
79+
| **ERP / Commerce (TBD)** | 🔄 Planned |
7480

7581
## 🔥 Why Open Self Service?
7682

77-
- **Fully composable**Build customer portals without backend constraints.
83+
- **Fully composable**Integrate multiple backend services and build your solution by combining their capabilities.
7884
- **Headless & API-first** – Integrate multiple services seamlessly.
79-
- **Future-proof** – Swap backends without breaking the frontend.
85+
- **Future-proof**Build backend-agnostic customer portals. Swap backends without breaking the frontend.
8086
- **Modern stack** – Built with **Next.js, shadcn/ui, TypeScript, NestJS**.
8187

8288
## 🤝 Contributing
@@ -87,8 +93,10 @@ If you’d like to contribute, please check the **[Contribution Guide](CONTRIBUT
8793
## 📩 Stay Updated
8894

8995
- Website: [openselfservice.com](https://www.openselfservice.com)
96+
- LinkedIn: [/company/open-self-service/](https://www.linkedin.com/company/open-self-service/)
9097
- Twitter/X: [@openselfservice](https://twitter.com/openselfservice)
91-
- GitHub Discussions: [Join the conversation](https://github.com/orgs/o2sdev/discussions)
98+
- Discord: [Join our community](https://discord.gg/4R568nZgsT)
99+
- GitHub Discussions: [Join the conversation](https://github.com/o2sdev/openselfservice/discussions)
92100

93101
## 📜 License
94102

SECURITY.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
We take security issues seriously and appreciate any reports that help us improve Open Self Service.
6+
If you discover a vulnerability, please **do not create a public issue**. Instead, report it privately by emailing us at:
7+
8+
**[[email protected]](mailto:[email protected]?subject=Security%20Issue%20Report)**
9+
10+
When reporting a security issue, please include:
11+
- A clear description of the vulnerability.
12+
- Steps to reproduce the issue.
13+
- Any relevant logs, screenshots, or additional useful information.
14+
15+
We will handle your report and the issue as soon as possible.
16+
17+
## Supported Versions
18+
19+
At this stage of development, we recommend always using the latest version of Open Self Service to ensure you have the most up-to-date security patches.

apps/api-harmonization/.env.local

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PORT=3001
33

44
API_PREFIX=api
55

6-
LOG_LEVEL=info
6+
LOG_LEVEL=verbose
77
LOG_COLORS_ENABLED=true
88
LOG_FORMAT=text
99

@@ -26,3 +26,12 @@ CACHE_REDIS_HOST=localhost
2626
CACHE_REDIS_PORT=6379
2727
# redis-cli -> config set requirepass {REDIS_PASS}
2828
CACHE_REDIS_PASS={REDIS_PASS}
29+
30+
ALGOLIA_APP_ID=
31+
ALGOLIA_API_KEY=
32+
33+
API_SURVEYJS_BASE_URL=https://api.surveyjs.io/public/v1
34+
35+
MEDUSAJS_BASE_URL=
36+
MEDUSAJS_PUBLISHABLE_API_KEY=
37+
MEDUSAJS_ADMIN_API_KEY=

apps/api-harmonization/.eslintrc.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

apps/api-harmonization/.prettierrc.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import apiConfig from "@o2s/prettier-config/api.mjs";
1+
import apiConfig from '@o2s/prettier-config/api.mjs';
22

33
/**
44
* @see https://prettier.io/docs/en/configuration.html

apps/api-harmonization/CHANGELOG.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,95 @@
11
# @o2s/api-harmonization
22

3+
## 0.21.0
4+
5+
### Minor Changes
6+
7+
- 8b93cbf: feat: Implement SurveyJS forms
8+
- 8d92afc: Adding label clickToSelect for reseting filters
9+
- 30f3524: added `OrdersSummary` block and reworked mocked orders to return random orders instead of them being hardcoded
10+
- 8b93cbf: feat: Integrated SurveyJS
11+
- 8d92afc: Help center pages and subpages implemented:
12+
13+
- Added new UI components InformativeCard, BlogCard, Author, ContentSection
14+
- Styled blocks, Article, Article List, Category, Category List
15+
- Added pagination to Category block
16+
- Made changes to mocks and models
17+
18+
- 30f3524: feat: implemented orderListBlock
19+
20+
- new page /orders,
21+
- added strapi integration for page /orders
22+
- new UI dropdown-menu component
23+
24+
- 8b93cbf: feat: implement surveyJS forms
25+
- 6d63cb1: feat: added surveyJS module
26+
- ba125d6: Added orders module
27+
- bb46536: feat: cases submission
28+
29+
- new component DynamicIcon - for loading icons dinamicly,
30+
- new component ActionLinks - for showing button list with dropdown-menu,
31+
- new pages: /contact-us, /submit-complaint, /request-device-maintenance,
32+
- fixed placeholders and disabled state in SurveyJS fields,
33+
34+
- 68f7858: chore: updated dependencies
35+
36+
### Patch Changes
37+
38+
- e4ebc5a: updated dependencies
39+
- Updated dependencies [2e4f22d]
40+
- Updated dependencies [8b93cbf]
41+
- Updated dependencies [e4ebc5a]
42+
- Updated dependencies [8d92afc]
43+
- Updated dependencies [30f3524]
44+
- Updated dependencies [84b9002]
45+
- Updated dependencies [8b93cbf]
46+
- Updated dependencies [68925cf]
47+
- Updated dependencies [30f3524]
48+
- Updated dependencies [8b93cbf]
49+
- Updated dependencies [84b9002]
50+
- Updated dependencies [6d63cb1]
51+
- Updated dependencies [ba125d6]
52+
- Updated dependencies [2e4f22d]
53+
- Updated dependencies [bb46536]
54+
- Updated dependencies [68f7858]
55+
- @o2s/integrations[email protected]
56+
- @o2s/framework@0.22.0
57+
- @o2s/utils[email protected]
58+
59+
## 0.20.0
60+
61+
### Minor Changes
62+
63+
- c0ff0a7: implement context switch
64+
- de00274: updated dependencies
65+
- c0ff0a7: implement context change, user roles
66+
- e9dc277: feat: handle user's timezone
67+
- e9dc277: feat: handle user's timezone
68+
69+
### Patch Changes
70+
71+
- Updated dependencies [c0ff0a7]
72+
- Updated dependencies [de00274]
73+
- Updated dependencies [c0ff0a7]
74+
- Updated dependencies [e9dc277]
75+
- Updated dependencies [e9dc277]
76+
- @o2s/integrations[email protected]
77+
- @o2s/framework@0.21.0
78+
- @o2s/utils[email protected]
79+
80+
## 0.19.0
81+
82+
### Minor Changes
83+
84+
- 51a6121: fix: update generators
85+
86+
## 0.18.1
87+
88+
### Patch Changes
89+
90+
- Updated dependencies [dadad64]
91+
- @o2s/integrations[email protected]
92+
393
## 0.18.0
494

595
### Minor Changes

apps/api-harmonization/api/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default async function handler(req, res) {
4242
'Expires',
4343
'x-locale',
4444
'x-currency',
45+
'x-client-timezone',
4546
],
4647
methods: ['GET', 'HEAD', 'POST', 'PUT', 'DELETE', 'OPTIONS', 'PATCH'],
4748
});

0 commit comments

Comments
 (0)