Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust project structure and simplify user messages. #87

Merged
merged 4 commits into from
Feb 4, 2025

Conversation

wdhongtw
Copy link
Owner

Adjust project structure to reflect the logic hierarchy and my mental model

  • core.ts: the core part where the core business logic, e.g. KeyManager, be located
  • adapter/*.ts: output adapters, e.g. implementation for git and gpg operations
  • common/*.ts: the shared part that can be depended on by all modules
  • extension.ts: where the main module and implicit router(input adapter) lives.

Simplify messages that will be shown to our users

  • No need to show / translate message for pre-condition violation that's unlikely to happen
  • Replace some long message with reusable short messages.
  • Avoid double confirm for delete operation

@wdhongtw wdhongtw added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 19, 2025
@wdhongtw wdhongtw self-assigned this Jan 19, 2025
- Extract UI message box logic from core part
- Remove message for key changed related event
- Replace some long message with two existing, shorter message
- Avoid double confirm for cache delete operation
- No need to translate error for pre-condition violation
The final part for my DDD project structure.
@wdhongtw wdhongtw force-pushed the feat-simplify-message branch from a7f044a to 10971f3 Compare February 4, 2025 06:01
@wdhongtw wdhongtw merged commit cbda50d into master Feb 4, 2025
2 checks passed
@wdhongtw wdhongtw deleted the feat-simplify-message branch February 4, 2025 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant