-
Notifications
You must be signed in to change notification settings - Fork 4
Feat/docker compose and docs #101
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
Conversation
WalkthroughThis update introduces multiple changes across the codebase. A new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant EVault
participant GraphQLServer
participant DbService
participant Neo4j
User->>EVault: Start server
EVault->>GraphQLServer: Initialize with DbService
EVault->>Neo4j: Connect via driver
User->>GraphQLServer: GraphQL Query (e.g., findMetaEnvelopesByOntology)
GraphQLServer->>DbService: findMetaEnvelopesByOntology(ontology)
DbService->>Neo4j: Query meta-envelopes by ontology
Neo4j-->>DbService: Return meta-envelope records
DbService->>GraphQLServer: Return meta-envelope objects with parsed payloads
GraphQLServer->>User: Respond with meta-envelope data
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
🧹 Nitpick comments (5)
package.json (1)
13-13
: New development script added for eVault environmentThe new
dev:evault
script provides an easy way to start the environment using Docker Compose with the watch flag.Note: The indentation uses spaces while the rest of the file uses tabs, which creates an inconsistency in formatting.
- "dev:evault": "docker compose -f evault.docker-compose.yml up --watch" + "dev:evault": "docker compose -f evault.docker-compose.yml up --watch"infrastructure/evault-core/package.json (1)
19-21
: Consider removing redundant dependency.You've added
nodemon
as a dependency, but you're not using it in any of your scripts. Instead, you're using Node.js built-in watch mode in the dev script. Consider removing this dependency to keep the package lean."devDependencies": { "@types/json-schema": "^7.0.15", "@types/node": "^22.13.10", "dotenv": "^16.5.0", - "nodemon": "^3.1.9", "testcontainers": "^10.24.2", "ts-node": "^10.9.2",
infrastructure/evault-core/src/evault.ts (2)
14-16
: Consider adding validation for environment variables.For critical connection parameters like Neo4j credentials, consider adding validation to ensure they're properly set, especially in production environments.
constructor() { const uri = process.env.NEO4J_URI || "bolt://localhost:7687"; const user = process.env.NEO4J_USER || "neo4j"; const password = process.env.NEO4J_PASSWORD || "neo4j"; + + // Log configuration source for debugging + if (!process.env.NEO4J_URI || !process.env.NEO4J_USER || !process.env.NEO4J_PASSWORD) { + console.warn("Using default Neo4j connection parameters. Set NEO4J_URI, NEO4J_USER, and NEO4J_PASSWORD environment variables for custom configuration."); + }
24-30
: Consider graceful shutdown handling.The start method sets up the server nicely, but there's no corresponding method for graceful shutdown. This would be important for proper resource cleanup, especially for the Neo4j driver.
start() { const port = process.env.PORT ?? 4000; this.server.listen(port, () => { console.log(`GraphQL Server started on http://localhost:${port}`); console.log(`Voyager started on http://localhost:${port}`); }); } + +stop() { + return new Promise<void>((resolve, reject) => { + if (!this.server) { + resolve(); + return; + } + + this.server.close((err) => { + if (err) { + reject(err); + return; + } + console.log('Server stopped gracefully'); + resolve(); + }); + }); +}infrastructure/evault-core/src/protocol/vault-access-guard.ts (1)
113-113
: Remove commented-out console.log.There's a commented-out
console.log
statement that should be either removed or properly implemented if it serves a debugging purpose.- // console.log
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (12)
.dockerignore
(1 hunks)infrastructure/evault-core/docker-compose.yml
(0 hunks)infrastructure/evault-core/package.json
(1 hunks)infrastructure/evault-core/src/db/db.service.ts
(3 hunks)infrastructure/evault-core/src/evault.ts
(1 hunks)infrastructure/evault-core/src/protocol/examples/examples.ts
(1 hunks)infrastructure/evault-core/src/protocol/graphql-server.ts
(1 hunks)infrastructure/evault-core/src/protocol/typedefs.ts
(1 hunks)infrastructure/evault-core/src/protocol/vault-access-guard.ts
(3 hunks)infrastructure/evault-core/tests/evault.spec.ts
(5 hunks)infrastructure/evault-core/tests/utils/mock-storage.ts
(1 hunks)package.json
(1 hunks)
💤 Files with no reviewable changes (1)
- infrastructure/evault-core/docker-compose.yml
🧰 Additional context used
🧬 Code Graph Analysis (3)
infrastructure/evault-core/src/db/db.service.ts (2)
infrastructure/evault-core/src/db/types.ts (2)
MetaEnvelopeResult
(25-33)Envelope
(14-19)infrastructure/evault-core/src/db/schema.ts (1)
deserializeValue
(75-84)
infrastructure/evault-core/src/protocol/graphql-server.ts (4)
infrastructure/evault-core/src/db/db.service.ts (1)
DbService
(18-396)infrastructure/evault-core/src/protocol/vault-access-guard.ts (2)
VaultAccessGuard
(10-118)VaultContext
(6-8)infrastructure/evault-core/src/protocol/examples/examples.ts (1)
exampleQueries
(1-112)infrastructure/w3id/src/utils/jwt.ts (1)
getJWTHeader
(86-89)
infrastructure/evault-core/src/protocol/vault-access-guard.ts (1)
infrastructure/evault-core/src/db/types.ts (1)
MetaEnvelope
(4-9)
🔇 Additional comments (21)
.dockerignore (1)
1-40
: Well-structured .dockerignore file for optimized Docker buildsThis new file is appropriately configured to exclude unnecessary files and directories from the Docker build context. The organization with clear section comments (Node cruft, Dependency locks, Logs & temp, etc.) makes it easy to understand what's being excluded and why.
The exclusions will help:
- Reduce Docker image size
- Speed up build times
- Prevent sensitive files (like .env) from being included
- Handle the monorepo structure correctly by specifically excluding node_modules in apps/* and packages/*
infrastructure/evault-core/src/protocol/examples/examples.ts (1)
1-112
: Excellent documentation of GraphQL API capabilitiesThese comprehensive example queries serve as an excellent reference for developers to understand the full capabilities of the eVault GraphQL API. The examples are:
- Well-organized with clear section headers
- Cover all CRUD operations (create, read, update, delete)
- Include descriptive comments about functionality
- Showcase proper parameter usage and expected outputs
This will significantly improve the developer experience and reduce the learning curve for working with the API.
infrastructure/evault-core/tests/utils/mock-storage.ts (1)
4-59
: Consistent code formatting improvementsThe changes in this file are purely formatting-related, with consistent indentation using spaces and adding trailing commas. This improves code readability and maintainability without changing any functionality.
These formatting improvements align with the broader codebase refinements seen in other files of this PR.
infrastructure/evault-core/src/protocol/typedefs.ts (1)
26-26
: Enhanced API response with richer data structureThe return type for the
findMetaEnvelopesByOntology
query has been improved from just returning IDs ([String!]!
) to returning fullMetaEnvelope
objects ([MetaEnvelope!]!
).This is a significant enhancement that:
- Reduces the need for additional API calls to get envelope details
- Provides more comprehensive data in a single query
- Aligns with the database service updates made elsewhere in the codebase
- Supports the example queries added in the new examples.ts file
infrastructure/evault-core/package.json (2)
8-9
: Excellent addition of build and dev scripts.The new build script provides a clear way to compile TypeScript, while the dev script leverages Node.js built-in watch mode with tsx for a better development experience.
11-11
: Good addition of package manager specification.Adding the
packageManager
field ensures consistent dependency resolution across development environments, which is particularly important for monorepo projects.infrastructure/evault-core/tests/evault.spec.ts (4)
34-34
: Good practice adding suite-level port variable.This enables sharing the dynamic port across multiple test cases in the suite.
71-71
: Excellent use of dynamic port allocation.Using
getFreePort()
instead of hardcoded ports prevents test failures due to port conflicts, especially in CI/CD environments or when running tests in parallel.
82-82
: Correctly updated GraphQL endpoint URL.Good job updating the endpoint URL to use the dynamically allocated port.
132-152
: Improved authorization test with realistic scenario.The enhanced test for unauthorized access is much more thorough, creating a specific envelope with restricted ACL and then verifying access control with a different user. This tests the actual security logic more effectively than the previous approach.
infrastructure/evault-core/src/protocol/graphql-server.ts (5)
2-2
: Appropriate addition of Server import.Adding the Server type import from http module supports the new server property in the class.
9-9
: Great developer experience improvement.Importing example queries to populate the GraphiQL interface will help developers understand and use the API more effectively.
18-18
: Good design choice to store server instance.Adding this property enables external management of the server lifecycle, which is essential for controlled startup/shutdown and port configuration.
112-116
: Excellent GraphiQL configuration.Adding GraphiQL with default example queries significantly improves the developer experience. This aligns well with the PR objective of improving documentation and making the system easier to use.
31-146
: Well-structured resolver definitions and server initialization.The refactored code is more readable and follows a consistent formatting style. The server creation now properly stores the instance for external control.
infrastructure/evault-core/src/evault.ts (2)
10-31
: Well-designed EVault class with clean separation of concerns.The EVault class encapsulates server initialization and startup in a clean, maintainable way. Using environment variables with sensible defaults is good practice for configuration. The construction sequence for driver, service, and server is logical and well-organized.
8-8
:❓ Verification inconclusive
Verify that the .env path is correct for all environments.
The dotenv configuration points to a path that might not be consistent across all environments, especially in Docker.
🏁 Script executed:
#!/bin/bash # Check if the .env file exists at the specified path relative to the current directory ENV_PATH=$(node -e "console.log(require('path').resolve(__dirname, '../../../.env'))") echo "Looking for .env file at: $ENV_PATH" if [ -f "$ENV_PATH" ]; then echo "✓ .env file exists" else echo "✗ .env file does not exist at the specified path" # Check if there's a .env file elsewhere in the project echo "Searching for .env files in the repository..." fd -H "\.env$" fiLength of output: 423
Ensure .env is loaded correctly across all environments
The current call
dotenv.config({ path: path.resolve(__dirname, "../../../.env") });may resolve to
/.env
(or a different location) when run from the project root, after compilation (dist
), or inside Docker—especially since.env
is typically not committed. Please confirm that:
- The
.env
file is present at the resolved path in both local dev and your Docker/CI containers.- In your Dockerfile or compose setup, you copy/mount
.env
into the container at the expected directory.- At runtime,
__dirname
points to the same location you anticipate (e.g.dist
vs.src
).Alternatively, for more predictable behavior you could:
- Rely on the default
dotenv.config()
(which loads fromprocess.cwd() + '/.env'
),- Or explicitly use
path.resolve(process.cwd(), '.env')
instead of__dirname
.File to check:
infrastructure/evault-core/src/evault.ts:8
infrastructure/evault-core/src/protocol/vault-access-guard.ts (1)
59-60
: Good type improvement.Replacing the generic
any[]
type with a more specificMetaEnvelope[]
improves type safety and code clarity.infrastructure/evault-core/src/db/db.service.ts (3)
19-26
: Constructor refactoring looks good.The refactoring of the constructor to explicitly declare and assign the driver property is a good practice for clarity and maintainability.
180-231
: Good implementation of new method for batch retrieval.The newly added
findMetaEnvelopesByIds
method is well-implemented with:
- Early return for an empty array of IDs to avoid unnecessary database operations
- Proper type parametrization
- Consistent error handling with other similar methods
- Efficient database query that handles multiple IDs in a single operation
This implementation will help improve performance when fetching multiple meta-envelopes at once.
289-332
: Excellent enhancement of findMetaEnvelopesByOntology.The method now returns full meta-envelope objects with parsed payloads instead of just IDs, which provides richer data to clients and reduces the need for additional database queries.
The implementation is consistent with other similar methods in the class, making the codebase more maintainable.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
…rototype-Project/prototype into feat/docker-compose-and-docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
♻️ Duplicate comments (1)
infrastructure/evault-core/src/evault.ts (1)
43-44
: Implement proper error handling and graceful shutdown.The server initialization and startup code lacks error handling and graceful shutdown mechanisms, which can lead to silent failures and resource leaks.
Apply this change to properly handle errors and implement graceful shutdown:
-const evault = new EVault(); -evault.start(); +async function main() { + try { + const evault = new EVault(); + evault.start(); + + // Setup graceful shutdown handlers + const shutdown = async () => { + console.log('Shutting down server...'); + await evault.stop(); + process.exit(0); + }; + + process.on('SIGINT', shutdown); + process.on('SIGTERM', shutdown); + } catch (error) { + console.error('Failed to start EVault:', error); + process.exit(1); + } +} + +main();
🧹 Nitpick comments (2)
evault.docker-compose.yml (2)
14-14
: Remove trailing whitespace.There is a trailing whitespace in the
networks:
line.- networks: + networks:🧰 Tools
🪛 YAMLlint (1.35.1)
[error] 14-14: trailing spaces
(trailing-spaces)
11-13
: Improve environment variable handling.The current configuration does not provide default values for Neo4j connection parameters, which could cause issues if the variables are not set in the environment.
Consider adding default values or validation for required environment variables:
environment: - - NEO4J_URI=${NEO4J_URI} - - NEO4J_USER=${NEO4J_USER} - - NEO4J_PASSWORD=${NEO4J_PASSWORD} + - NEO4J_URI=${NEO4J_URI:-bolt://neo4j:7687} + - NEO4J_USER=${NEO4J_USER:-neo4j} + - NEO4J_PASSWORD=${NEO4J_PASSWORD:-password}Or you could create a
.env.example
file in the root to document the required variables.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yaml
is excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (7)
.env.example
(1 hunks).github/workflows/tests-evault-core.yml
(1 hunks)docker/Dockerfile.evault
(1 hunks)evault.docker-compose.yml
(1 hunks)infrastructure/evault-core/package.json
(1 hunks)infrastructure/evault-core/src/evault.ts
(1 hunks)infrastructure/evault-core/src/protocol/vault-access-guard.ts
(3 hunks)
✅ Files skipped from review due to trivial changes (3)
- .github/workflows/tests-evault-core.yml
- .env.example
- infrastructure/evault-core/package.json
🚧 Files skipped from review as they are similar to previous changes (1)
- infrastructure/evault-core/src/protocol/vault-access-guard.ts
🧰 Additional context used
🪛 YAMLlint (1.35.1)
evault.docker-compose.yml
[error] 14-14: trailing spaces
(trailing-spaces)
* chore: stash dockerfile progress * fix: getEnvelopesByOntology thing * chore: fix tests * Update infrastructure/evault-core/src/protocol/vault-access-guard.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: remove unused import * chore: remove package * chore: fix pnpm lock * chore: fix workflow * chore: fix port in dockerfile --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
* initial commit * chore: add w3id readme (#3) * chore: add w3id readme * chore: bold text * chore: better formatting * docs: add w3id details * chore: format * chore: add links * fix: id spec considerations addressal (#8) * fix: id spec considerations addressal * fix: identity -> indentifier * chore: expand on trust list based recovery * chore: expand on AKA --------- Co-authored-by: Merul Dhiman <[email protected]> * Docs/eid wallet (#10) * chore: add eid-wallet folder * chore: add eid wallet docs * feat: add (#9) * feat(w3id): basic setup (#11) * feat(w3id): basic setup * fix(root): add infrastructure workspaces * update: lock file * feat(eidw): setup tauri (#40) * Feat/setup daisyui (#46) * feat: setup-daisyui * fix: index file * feat: colors added * feat: Archivo font added * fix: postcss added * fix: +layout.svelte file added * fix: packages * fix: fully migrating to tailwind v4 * feat: add Archivo font * feat: add danger colors * feat: twmerge and clsx added * feat: shadcn function added --------- Co-authored-by: Bekiboo <[email protected]> Co-authored-by: Julien <[email protected]> * feat: add storybook (#45) * feat: add storybook * update: lockfile * feat: created connection button (#48) * created connection button * added restprops to parent class * added onClick btn and storybook * fix: make font work in storybook (#54) * Feat/header (#55) * feat: add icons lib * fix: make font work in storybook * feat: Header * feat: runtime global added, icon library created, icons added, type file added * feat: header props added * fix: remove icons and type file as we are using lib for icons * fix: heading style * fix: color and icons, git merge branch 51, 54 * fix: color * fix: header-styling * fix: classes * chore: handlers added * chore: handlers added * fix: added heading --------- Co-authored-by: Soham Jaiswal <[email protected]> * Alternative w3id diagram (#52) * Feat/cupertino pane (#49) * feat: Drawer * feat: Drawer and added a function for clickoutside in utils * fix: classes * fix: drawer button position * fix: style and clickoutside * fix: pane height * fix: border-radius * fix: drawer as bulletin * fix: styling * fix: component with inbuilt features * fix: remove redundant code * fix: remove redundant code * fix: cancel button * fix: css in storybook * fix: position * fix: height of pane * fix: remove redundant code * feat: add button action component (#47) * feat: add button action component * fix: add correct weights to Archivo fontt * feat: add base button * fix: set prop classes last * feat: improve loading state * chore: cleanup * feat: add button action component * fix: add correct weights to Archivo fontt * feat: add base button * fix: set prop classes last * feat: improve loading state * chore: cleanup * chore: add documentation * fix: configure Storybook * chore: storybook gunk removal * feat: enhance ButtonAction component with type prop and better error handling --------- Co-authored-by: JulienAuvo <[email protected]> * Feat/splash screen (#63) * feat: SplashScreen * fix: remove redundant code * fix: as per given suggestion * fix: font-size * fix: logo * feat: input-pin (#56) * feat: input-pin * fix: styling as per our design * fix: added small variant * fix: hide pin on select * fix: gap between pins * fix: color of focus state * fix: removed legacy code and also fix some css to tailwind css * fix: css * fix: optional props * feat: added color variants * Feat/improve button component (#60) * feat: add white variant * feat: add small variant * chore: update doc and story for button * chore: rename cb into callback * update: improve small size * update: modify loading style * fix: return getAbsolutePath function to storybook (#58) Co-authored-by: Bekiboo <[email protected]> * feat: add selector component (#59) * feat: add selector component * feat: improve selector + add flag-icon lib * feat: improve selector + doc * feat: add utility function to get language with country name * feat: test page for language selectors * chore: add Selector Story * chore: clean test page * fix: types * fix: normalize custom tailwind colors (#71) * feat: workflows (#64) * feat: workflows * fix: node version * fix: use pnpm 10 * fix: check message * Fix/codebase linting (#73) * fix: Check Lint / lint * fix: Check Lint / lint * fix: Check Lint / lint * fix: Check Lint / lint * fix: Check Code / lint * fix: Check Format / lint * fix: Check Code / lint * fix: Check Format / lint * fix: Check Code / lint * fix: Check Format / lint * fix: Check Code / lint * fix: Check Code / lint * fix: Check Format / lint * fix: unknown property warning * fix: unknown property warning * chore: improve args type * settings nav button :) (#75) * setting bav button all done :) * lint fixski * added component to index.ts * Feat/#32 identity card fragment (#74) * identity card * identity card * lint fixski * lint fixski * lint fixski * fixed the font weight * added component to index.ts * changed span to buttton * feat: add icon button component (#68) * feat: add icon button component * feat: finish up buttonIcon + stories * fix: update with new color naming * feat: polish button icon (and button action too) * chore: format lint * chore: sort imports * chore: format, not sure why * Feat/onboarding flow (#67) * feat: onboarding-page * fix: line height and added handlers * fix: button variant * fix: text-decoration * fix: subtext * fix: underline * fix: padding and button spacing * fix: according to design update * feat: Drawer * feat: verify-pae * fix: verify-page styling * feat: drawer for both confirm pin and add bio metrics added * feat: modal added in fragments * fix: icons and flow * feat: Identifier Card * fix: copy to clipboard * feat: e-passport page * fix: error state * fix: colors * fix: lint error * fix: lint * feat: Typography * fix: typograpy * fix: as per given suggestion * fix: font-sizing * fix: identity card implementation * fix: spacing * fix: padding * fix: padding and spacing * fix: splashscreen * fix: error state * fix: styling to avoid * fix:typo * Fix/remove daisyui (#82) * refactoring: remove DaisyUI + refactor some tailwind classes and logic * refactoring: remove DaisyUI + refactor some tailwind classes and logic * feat: add Button.Nav (#77) * feat: add Button.Nav * chore: format * chore: sort imports * update: remove unused snippet and add missing props * feat: stick to fragment definition * update: documentation * fix: stories * chore: sort imports * Feat/splashscreen animation (#81) * feat: add animation to splashScreen * feat: implement data loading logic with splash screen delay * chore: sort import * update: use ButtonIcon is IdentityCard (#78) * update: use ButtonIcon is IdentityCard * feat: refactor ButtonIcon to be used anywhere in the app * chore: format indent * chore: remove useless change * feat: setup safe area (#80) * feat: setup safe area * chore: simplify implementation * chore: format * Feat/uuidv5 generation (#61) * feat: setup uuidv5 * chore: add test for deterministic UUID * feat: add Hero fragment (#88) * feat: add Hero fragment * chore: sort imports + add doc * feat: add storage specification abstract class (#92) * feat: add storage specification abstract class * chore: format and ignore lint * chore: change format checker on w3id * feat: settings-flow (#86) * feat: settings-flow * feat: settings and language page * feat : history page * feat: change pin page * fix: height of selector * fix: pin change page * fix: size of input pin * fix: spacing of pins * feat: AppNav fragment * fix: height of page * fix: padding * fix: remove redundant code * feat: privacy page * chore: add doc * fix: error state * feat: remove redundant code * chore: used app nav component --------- Co-authored-by: JulienAuvo <[email protected]> * feat: AppNav fragment (#90) * feat: AppNav fragment * chore: add doc * feat: Main page flow (#93) * feat: create root page + layout * feat: complete main page flow beta * chore: fix ts block * chore: sort imports * feat: integrate-flows (#94) * feat: intigrate-flows * fix: spacing in e-passport page * fix: page connectivity * feat: app page transitions * fix: z index * fix: pages * fix: view transition effect on splashscreen * fix: drawer pill and cancel button removed * fix: share button removed when onboarding * fix: remove share and view button when on onboarding flow * fix: remove view button * fix: ci checks * fix: transitions * fix: transititon according to direction * fix: lint error * fix: loop holes * Feat/w3id log generation (#98) * chore: create basic log generation mechanism * chore: add hashing utility function * chore: rotation event * feat: genesis entry * feat: generalize hash function * feat: append entry * chore: basic tests * chore: add tests for rotation * feat: add malform throws * chore: add the right errors * chore: fix CI stuff * chore: add missing file * chore: fix event type enum * chore: format * feat: add proper error * chore: format * chore: remove eventtypes enum * chore: add new error for bad options * chore: add options tests * feat: add codec tests * fix: err handling && jsdoc * fix: run format * fix: remove unused import * fix: improve default error messages * fix: move redundant logic to function * fix: run format * fix: type shadow * fix: useless conversion/cast * fix: run format --------- Co-authored-by: Soham Jaiswal <[email protected]> * Feat/core id creation logic (#99) * feat: create w3id builder * fix: w3id builder * feat: add global config var for w3id * chore: add docs * chore: change rand to crng * chore: add ts type again * chore: fix lint and format * chore: add w3id tests github workflow * Feat/evault core (#100) * feat: migrate neo4j * chore: envelope logic works * chore: envelope logic works * feat: parsed envelopes search * feat: generics * feat: protocol * feat: jwt sigs in w3id * chore: stuff works * chore: tests for evault core * chore: format * chore: fix test * Feat/docker compose and docs (#101) * chore: stash dockerfile progress * fix: getEnvelopesByOntology thing * chore: fix tests * Update infrastructure/evault-core/src/protocol/vault-access-guard.ts Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: remove unused import * chore: remove package * chore: fix pnpm lock * chore: fix workflow * chore: fix port in dockerfile --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Feat/registry and evault provisioning (#106) * feat: evault provisioning * chore: fianlly fixed provisioner * feat: add logic for metadata in consul * feat: registry * chore: format * Feat/watchers logs (#114) * feat: alloc according to entropy and namespace * chore: move exports * chore: docs * feat: `whois` endpoint * feat: watcher endpoints * chore: fix format and lint * chore: fix tests * feat: web3 adapter (#115) * feat: tauri plugins setup (#97) * feat: tauri plugins setup * fix: add editorconfig * fix: add missing biome json * fix: run formatter * feat: biometry homework * feat: add pin set logic * feat: add biometric enabling logic * fix: sec controller qol * feat: stub user controller * fix: run format && lint * fix: sort imports * fix: import statement sort * feat: user controller * feat: pin flow * feat: biometrics unavailable * fix: pin input not working * feat: make checks pass * fix: scan works * fix: actions * feat: format on save * fix: coderabbit suggestions * chore: run format lint check * fix: scan on decline too * feat: documentation links (#117) * feat: bad namespace test (#116) * fix: layouts (#119) * fix: layouts * fix: Onboarding page scroll fixed * fix: page layout and prevent from scroll in all devices * fix: pages layout * chore: try to fix emulator * fix: units * fix: safezones for ios * fix: styling --------- Co-authored-by: Soham Jaiswal <[email protected]> * feat: setup-metagram (#121) * feat: setup-metagram * chore: tailwind css worked * feat: fonts added * feat: typography * fix: removed stories and fixed setup for icons lib * feat: icons and story file * fix: type of args in story * fix: lint errors * feat: colors added * feat: Button * fix: format and lint * fix: colors * fix: spinner * fix: code rebbit suggestions * fix: code rebbit suggestions * fix: paraglide removed * fix: lock file * feat: added user avatar. (#130) * feat: Button (#129) * feat: Button * fix: colors of variants * feat: Input (#131) * feat: Input * feat: styling added * fix: styling * fix: styling * fix: added a new story * fix: focus states * fix: input states * Feat/settings navigation button (#140) * feat: settings-navigation-button * fix: handler added * chore: another variant added * fix: as per given suggestion * feat: BottomNav (#132) * feat: BottomNav * fix: icons * feat: profile icons created * feat: handler added * feat: handler added * fix: correct tags * fix: as per given suggestion, bottomnav moved to fragments and also implemented on page * fix: handler * chore: routes added * feat: app transitions added * fix: direction of transition * fix: transition css * fix: directionable transition * fix: used button instead of label, and used page from state * feat: added post fragment. (#137) * feat: FileInput (#150) * feat: FileInput * fix: added icon * feat: cancel upload * fix: remove redundant code * fix: usage docs added and as per requirements ' * fix: moved to framents * feat: Toggle Switch (#143) * feat: Toggle Switch * feat: Toggle Switch * fix: as per our design * fix: as per our design * feat: Label (#146) * feat: Select (#148) * feat: Select * fix: as per our design * fix: code format and as per svelte 5 * fix: font-size * fix: font-size * fix: icon * feat: message-input (#144) * feat: message-input * fix: classes merge and a files as a prop * feat: variant added * feat: icon replaced * fix: as per code rabbit suggestions * fix: icon * fix: input file button * fix: as per suggestion * fix: classes * fix: no need of error and disabled classes * fix: input * feat: invalid inputs * feat: add number input storybook --------- Co-authored-by: Soham Jaiswal <[email protected]> * feat:Drawer (#152) * feat:Drawer * feat: Drawer with clickoutside * fix: settings * Feat/metagram header (#133) * feat: added metagram header primary linear gradient. * feat: added flash icon. * feat: added secondary state of header. * feat: added secondary state of header with menu. * chore: cleaned some code. * docs: updated component docs. --------- Co-authored-by: SoSweetHam <[email protected]> * Feat/metagram message (#135) * feat: added metagram message component. * feat: added both states of message component. * docs: added usage docs. * chore: exposed component from ui. * fix: component -> fragement --------- Co-authored-by: SoSweetHam <[email protected]> * feat: modal (#154) * fix: styling of modal * fix: modal props * fix: conflicting styles * fix: styles of drawer * fix: hide scrollbar in drawer * fix: padding * fix: used native method for dismissing of drawer * feat: Context-Menu (#156) * feat: Context-Menu * fix: name of component * fix: as per suggestion * fix: action menu position * fix: class * feat: responsive-setup (#157) * feat: responsive-setup * fix: background color * fix: added font fmaily * feat: responsive setup for mobile and desktop (#159) * feat: responsive setup for mobile and desktop * fix: width of sidebar and rightaside * fix: responsive layout * feat: SideBar * fix: added some finishing touches to sidebar and button * fix: prevent pages transition on desktop * fix: icon center * feat: settings page and icon added * feat/layout-enhancement (#168) * feat/infinite-scroll (#170) * feat/infinite-scroll * fix: aspect ratio of post * fix: bottom nav background * settings page (#169) * settings page layout done * settings page layout done * formt fix * format fix * format fix * routing for settings page fixed * settings page buttons * merge conflict * settings page tertiary pages * settings pages all done * settings pages unnecessary page deleted * requested changes done * requested changes done * Feat/comments pane (#171) * feat/comments-pane * fix: overflow and drawer swipe * feat: Comment fragment * fix: comments added * fix: comment fragment * feat: Comments reply * fix: message input position * fix: post type shifted to types file * fix: one level deep only * fix: drawer should only be render on mobile * fix: comments on layout page * fix: format * feat: messages (#174) * feat: messages * feat: ChatMessae * feat: messages by id * fix: messages page * fix: icon name * fix: hide bottom nav for chat * fix: header * fix: message bubble * fix: message bubble * fix: message bubble * fix: as per suggestion * fix: messaging * chore: change from nomad to k8s (#179) * chore: change from nomad to k8s * Update infrastructure/eid-wallet/src/routes/+layout.svelte Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: uri extraction * feat: regitry stuff * feat: registry using local db * 📝 Add docstrings to `feat/switch-to-k8s` (#181) Docstrings generation was requested by @coodos. * #179 (comment) The following files were modified: * `infrastructure/evault-provisioner/src/templates/evault.nomad.ts` Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * chore: format --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix: make scan qr page work again (#185) * feat: Discover Page (#180) * refactor/Post (#186) * refactor/Post * fix: format and lint * fix: added dots for gallery * fix: added dots for gallery * fix: added dots for gallery * fix: plural name * feat: splash-screen (#187) * Feat/evault provisioning via phone (#188) * feat: eid wallet basic ui for verification * chore: evault provisioning * feat: working wallet with provisioning * feat: restrict people on dupes * 📝 Add docstrings to `feat/evault-provisioning-via-phone` (#189) Docstrings generation was requested by @coodos. * #188 (comment) The following files were modified: * `infrastructure/eid-wallet/src/lib/utils/capitalize.ts` * `infrastructure/evault-provisioner/src/utils/hmac.ts` Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * feat: added uploaded post view component. (#182) * feat: added uploaded post view component. * fix: fixed the outline and color. * fix: moved function to external definition. * fix: fixed the restProps. * profile page (#178) * basic layout for profile page * fixed alt text * merge conflict * profile page for other users implemented * fix: profile pages and logics * fixed all the pages of profile * fixed all the pages of profile * fix: format --------- Co-authored-by: gourav <[email protected]> * Feat/radio input (#176) * feat: added a radio button custom * docs: added name option in docs. * chore: cleaned the unnecessary classes and variables for input type radio. * fix: moved input radio to its own component. * fix: keydown events added. * feat: added settings tile component. (#184) * feat: added settings tile component. * chore: fixed the naming convention * chore: renamed callback to onclick * fix: fixed the use of restProps * fix: fixed the unnecessary onclick expose. * fix: fixed the join function params. * Feat/textarea (#194) * chore: removed redundant radio * feat: added textarea. * fix: tabindex * fix: removed type inconsitency. * Feat/mobile upload flow (#193) * fix: header logic in secondary * fix: fixed the text in header in post * feat: trying some hack to get file image input. * feat: added image input on clicking the post bottom nav * chore: got rid of non-required code. * feat: added the logic to get the images from user on clicking post tab. * feat: added store. * feat: added correct conversion of files. * feat: added the correct display of image when uploading. * feat: added settings tile to the post page and fixed the settingsTile component type of currentStatus * feat: added hte correct header for the audience page. * fix: fixed the page transition not happening to audience page. * feat: added audience setting * feat: added store to audience. * chore: removed console log * feat: added post button. * feat: correct button placement * fix: horizontal scroll * fix: positioning of the post button. * fix: protecting post route when no image is selected. * fix: improved type saftey * feat: added memory helper function * feat: added memory cleanup. * Feat/social media platforms (#195) * chore: this part works now wooohooo * chore: stash progress * chore: stash progress * chore: init message data models * feat: different socials * chore: blabsy ready for redesign * Feat/social media platforms (#196) * chore: this part works now wooohooo * chore: stash progress * chore: stash progress * chore: init message data models * feat: different socials * chore: blabsy ready for redesign * chore: add other socials * Feat/blabsy add clone (#198) * chore: clone twitter * feat: custom auth with firebase using w3ds * chore: add chat * feat: chat works with sync * feat: twittex * feat: global schemas * feat: blabsy adapter * refactor: shift some text messages to work on blabsy (#199) * chore: stash progress * chore: stash adapters * chore: stash working extractor * feat: adapter working properly for translating to global with globalIDs * feat: adapter toGlobal pristine * chore: stash * feat: adapter working * chore: stash until global translation from pictique * feat: bi-directional sync prestino * feat: bidir adapters * chore: login redir * chore: swap out for sqlite3 * chore: swap out for sqlite3 * chore: server conf * feat: messages one way * feat: ready to deploy * feat: ready to deploy * chore: auth thing pictique * chore: set adapter to node * chore: fix auth token thingy * chore: auth thing * chore: fix auth token thingy * chore: port for blabsy * feat: provision stuff * feat: provision * feat: provision * feat: provision * chore: fix sync * feat: temporary id thing * chore: android * chore: fix mapper sync * chore: fallback * feat: add error handling on stores * feat: fix issue with posts * chore: fix retry loop * Fix/author details (#229) * fix: author-details * fix: owner-details * fix: author avatar * fix: auth user avatar * fix: error handling * fix: author image in bottom nav --------- Co-authored-by: Merul Dhiman <[email protected]> * Fix/change name (#228) * fix: corrected the name to blabsy * fix: extra shit comming. * fix: fixed the alignment of the display in more to look more like current twitter. * fix: avatars (#226) * fix: avatars * fix: avatar in follow request page * fix: images uploaded shown in user profile * fix: button size * fix: avatar --------- Co-authored-by: Merul Dhiman <[email protected]> * chore: temp fix sync * chore: stash progress * Fix/post context menu (#231) * fix: post-context-menu * fix: user id with post * fix: removed redundant code * fix: images * fix: profile data * fix: profile data * fix: image cover * fix: logout * Fix/wallet text (#234) * changed text as per the request and fixed styling on pages with useless scroll * added settings button in main page which went missing somehow * fix: consistent padding * chore: change tags * feat: change icon * feat: webhook dynamic registry * feat: make camera permission work properlyh * chore: removed all locking mechanism thing from platforms * feat: synchronization works perfectly * feat: fixed everything up * feat: changes * chore: stats fix * chore: fix pictique visual issues * chore: fix cosmetic name issue * feat: fix sync issue * chore: fix logical issue here * chore: add qrcode ename * feat: add packages (#235) * feat: add packages * feat: add sample funcs + docs * fixed the filled color on like icon for liked post (#239) * feat: fake passport name * feat: double confirmation * chore: fix pictique login issue * fix: make no user case redir to login * fix: issues with wallet --------- Co-authored-by: Soham Jaiswal <[email protected]> Co-authored-by: SoSweetHam <[email protected]> Co-authored-by: Gourav Saini <[email protected]> Co-authored-by: Bekiboo <[email protected]> Co-authored-by: Julien <[email protected]> Co-authored-by: Ananya Rana <[email protected]> Co-authored-by: Sergey <[email protected]> Co-authored-by: Julien Connault <[email protected]> Co-authored-by: Ananya Rana <[email protected]> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Sahil Garg <[email protected]> Co-authored-by: Sahil Garg <[email protected]>
Description of change
add a better compose and fix documentation
Issue Number
Type of change
How the change has been tested
Tests
Change checklist
Summary by CodeRabbit
.dockerignore
file to optimize Docker builds.