Skip to content

Feat/core id creation logic #99

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

Merged
merged 8 commits into from
Apr 16, 2025
Merged

Feat/core id creation logic #99

merged 8 commits into from
Apr 16, 2025

Conversation

coodos
Copy link
Contributor

@coodos coodos commented Apr 16, 2025

Description of change

adds w3id core class

Issue Number

closes #12
closes #13
closes #17
closes #22

Type of change

  • New (a change which implements a new feature)

How the change has been tested

Tests

Change checklist

  • I have ensured that the CI Checks pass locally
  • I have removed any unnecessary logic
  • My code is well documented
  • I have signed my commits
  • My code follows the pattern of the application
  • I have self reviewed my code

Summary by CodeRabbit

  • New Features
    • Introduced a builder for creating decentralized identifiers (DIDs) with configurable options, supporting both simple and key-attached IDs.
    • Added a utility to generate random alphanumeric strings.
  • Improvements
    • Enhanced log management by associating signers directly with log managers for streamlined cryptographic operations.
    • Improved error handling and documentation for identifier and log creation.
  • Tests
    • Added comprehensive tests for identifier creation, log management, and key rotation.
    • Centralized and simplified test utilities for cryptography and storage.

Copy link
Contributor

coderabbitai bot commented Apr 16, 2025

Warning

Rate limit exceeded

@coodos has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 5 minutes and 3 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 9791ea6 and e8ed604.

📒 Files selected for processing (1)
  • .github/workflows/tests-w3id.yml (1 hunks)

Walkthrough

This set of changes introduces a modular W3ID library that implements a factory pattern for creating and managing decentralized identifiers (DIDs) with support for key rotation and logging. The new W3ID and W3IDBuilder classes allow configurable creation of identifiers, with optional integration of cryptographic signers and log managers. The logging subsystem is refactored to associate signers with the IDLogManager instance rather than passing them per operation. Supporting utilities for random string generation, cryptographic operations, and in-memory storage are added for testing. Comprehensive tests validate ID creation, determinism, log management, and key rotation. Error handling and type annotations are refined throughout.

Changes

File(s) Change Summary
infrastructure/w3id/src/index.ts Replaces default export with new W3ID and W3IDBuilder classes, implementing the factory pattern for DID generation and management, supporting options for entropy, namespace, signer, repository, and key rotation.
infrastructure/w3id/src/logs/log-manager.ts Refactors IDLogManager to hold a signer instance property, updates method signatures and documentation, and ensures signing is managed at the class level. Adds explicit return types and JSDoc comments.
infrastructure/w3id/src/logs/log.types.ts Removes signer from RotationLogOptions and GenesisLogOptions types, aligning with the new signer management strategy.
infrastructure/w3id/src/errors/errors.ts Removes explicit : string type annotations from custom error class constructors, retaining default messages.
infrastructure/w3id/src/utils/rand.ts Adds generateRandomAlphaNum utility function for generating random alphanumeric strings.
infrastructure/w3id/tests/logs/log.test.ts Refactors tests to use shared cryptographic and storage utilities, updates IDLogManager instantiation to use constructor-injected signer, and cleans up imports.
infrastructure/w3id/tests/utils/crypto.ts Adds test utility module providing verifierCallback for signature verification and createSigner for generating signer objects from key pairs.
infrastructure/w3id/tests/utils/store.ts Adds InMemoryStorage class implementing StorageSpec for in-memory log event storage, with methods for creating and querying entries.
infrastructure/w3id/tests/w3id.test.ts Adds comprehensive test suite for W3IDBuilder, covering ID creation, global/local flags, deterministic UUIDs, log manager integration, and key rotation with log validation.

Sequence Diagram(s)

sequenceDiagram
    participant ConsumerApp
    participant W3IDBuilder
    participant W3ID
    participant IDLogManager
    participant Storage
    participant Signer

    ConsumerApp->>W3IDBuilder: Configure builder (namespace, entropy, etc.)
    ConsumerApp->>W3IDBuilder: Optionally set Signer and Storage
    ConsumerApp->>W3IDBuilder: build()
    alt With Signer and Storage
        W3IDBuilder->>IDLogManager: Create (with Signer, Storage)
        IDLogManager->>Storage: Store genesis log event
        W3IDBuilder->>W3ID: Instantiate (id, IDLogManager)
    else Without Signer
        W3IDBuilder->>W3ID: Instantiate (id)
    end
    W3ID-->>ConsumerApp: Return instance
Loading
sequenceDiagram
    participant W3ID
    participant IDLogManager
    participant Signer
    participant Storage

    W3ID->>IDLogManager: Rotate key (with nextKeySigner)
    IDLogManager->>Signer: Sign rotation event
    IDLogManager->>Storage: Append new log event
    IDLogManager-->>W3ID: Updated logs
Loading

Assessment against linked issues

Objective Addressed Explanation
Export modular W3ID base class and implement as a library (#12)
Implement W3ID factory pattern for instance creation (#13)
Implement key rotation and corresponding tests (#17)
Publish updated DID Document to did:web endpoint (#22) No code for publishing or updating a DID Document at a did:web endpoint is present.

Possibly related PRs

  • Feat/w3id log generation #98: Modifies constructors of the same custom error classes in infrastructure/w3id/src/errors/errors.ts, directly relating to error handling changes in this PR.

Suggested reviewers

  • dkraemerwork
  • JulienAuvo

Poem

In the warren of code, a new path is laid,
With builders and logs, our DIDs are made.
Keys can now rotate, with logs in their wake,
And random strings hop out, for security’s sake.
With storage and signers, the tests all agree—
This bunny’s new toolkit is w3id-glee!
🐇✨


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@coodos coodos marked this pull request as ready for review April 16, 2025 17:32
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (6)
infrastructure/w3id/tests/utils/store.ts (2)

16-20: Consider adding type safety to the create method

The type casting as unknown as K is a TypeScript anti-pattern that bypasses type checking. While this might be acceptable in a test utility, it could hide potential issues.

If possible, consider implementing a proper type conversion function or validation:

public async create(body: T): Promise<K> {
-   const entry = body as unknown as K;
+   // Either implement proper validation/conversion
+   // Or document why this cast is necessary
+   const entry = this.convertToK(body);
    this.data.push(entry);
    return entry;
}

+ // Add a private method to handle the conversion with validation
+ private convertToK(input: T): K {
+   // Implement proper validation/conversion logic
+   return input as unknown as K;
+ }

22-31: Improve error handling in findOne method

The current error message "Not found" provides no context about which record wasn't found or what filter was used.

Enhance the error message with more specific information:

public async findOne(options: Partial<K>): Promise<K> {
    const result = this.data.find((item) =>
        Object.entries(options).every(
            ([key, value]) => item[key as keyof K] === value,
        ),
    );

-   if (!result) throw new Error("Not found");
+   if (!result) throw new Error(`Record not found with filter: ${JSON.stringify(options)}`);
    return result;
}
infrastructure/w3id/tests/w3id.test.ts (2)

12-13: Best practice: Extract the key pair creation to a setup function or beforeEach hook

The keyPair is created outside of any test context. Consider moving it to a setup function or using a beforeEach hook to ensure clean test state isolation.

-const keyPair = nacl.sign.keyPair();
+
+describe("W3IDBuilder", () => {
+    let keyPair: nacl.SignKeyPair;
+    
+    beforeEach(() => {
+        keyPair = nacl.sign.keyPair();
+    });

26-29: Fix grammatical error in test description

The test description has a grammatical error.

-    test("ID Generation: Local ID begins doesn't begin with `@`", async () => {
+    test("ID Generation: Local ID doesn't begin with `@`", async () => {
infrastructure/w3id/tests/utils/crypto.ts (1)

27-38: Add error handling for signing operation

The sign method could potentially fail during buffer conversion or signing operations, but there's no error handling. Consider adding try/catch to gracefully handle failures.

     const signer: Signer = {
         pubKey: publicKey,
-        sign: (str: string) => {
-            const buffer = stringToUint8Array(str);
-            const signature = nacl.sign.detached(buffer, keyPair.secretKey);
-            return base58btc.encode(signature);
+        sign: (str: string) => {
+            try {
+                const buffer = stringToUint8Array(str);
+                const signature = nacl.sign.detached(buffer, keyPair.secretKey);
+                return base58btc.encode(signature);
+            } catch (error) {
+                throw new Error(`Failed to sign message: ${error.message}`);
+            }
         },
     };
infrastructure/w3id/src/index.ts (1)

105-113: Improve error messages for missing requirements

The error messages could be more specific about why the repository and next key hash are required when a signer is provided.

-			throw new Error(
-				"Repository is required, pass with `withRepository` method",
-			);
+			throw new Error(
+				"Repository is required when a signer is provided. Use the `withRepository` method to add one.",
+			);

-			throw new Error(
-				"NextKeyHash is required pass with `withNextKeyHash` method",
-			);
+			throw new Error(
+				"NextKeyHash is required when a signer is provided. Use the `withNextKeyHash` method to specify the hash of the next key.",
+			);
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6bccab0 and 9e0580a.

📒 Files selected for processing (9)
  • infrastructure/w3id/src/errors/errors.ts (1 hunks)
  • infrastructure/w3id/src/index.ts (1 hunks)
  • infrastructure/w3id/src/logs/log-manager.ts (5 hunks)
  • infrastructure/w3id/src/logs/log.types.ts (0 hunks)
  • infrastructure/w3id/src/utils/rand.ts (1 hunks)
  • infrastructure/w3id/tests/logs/log.test.ts (2 hunks)
  • infrastructure/w3id/tests/utils/crypto.ts (1 hunks)
  • infrastructure/w3id/tests/utils/store.ts (1 hunks)
  • infrastructure/w3id/tests/w3id.test.ts (1 hunks)
💤 Files with no reviewable changes (1)
  • infrastructure/w3id/src/logs/log.types.ts
🧰 Additional context used
🧬 Code Graph Analysis (5)
infrastructure/w3id/tests/utils/store.ts (1)
infrastructure/w3id/src/logs/log.types.ts (1)
  • LogEvent (1-9)
infrastructure/w3id/src/index.ts (4)
infrastructure/w3id/src/logs/log-manager.ts (1)
  • IDLogManager (30-188)
infrastructure/w3id/src/logs/log.types.ts (2)
  • Signer (17-20)
  • LogEvent (1-9)
infrastructure/w3id/src/utils/rand.ts (1)
  • generateRandomAlphaNum (8-19)
infrastructure/w3id/src/utils/uuid.ts (1)
  • generateUuid (12-17)
infrastructure/w3id/tests/utils/crypto.ts (2)
infrastructure/w3id/src/logs/log.types.ts (2)
  • VerifierCallback (11-15)
  • Signer (17-20)
infrastructure/w3id/src/utils/codec.ts (3)
  • stringToUint8Array (18-20)
  • hexToUint8Array (7-16)
  • uint8ArrayToHex (1-5)
infrastructure/w3id/tests/w3id.test.ts (7)
infrastructure/w3id/src/index.ts (2)
  • W3IDBuilder (15-121)
  • W3ID (8-13)
infrastructure/w3id/tests/utils/store.ts (1)
  • InMemoryStorage (4-40)
infrastructure/w3id/tests/utils/crypto.ts (2)
  • createSigner (27-38)
  • verifierCallback (10-25)
infrastructure/w3id/src/logs/log-manager.ts (1)
  • IDLogManager (30-188)
infrastructure/w3id/src/utils/hash.ts (1)
  • hash (4-26)
infrastructure/w3id/src/utils/codec.ts (1)
  • uint8ArrayToHex (1-5)
infrastructure/w3id/src/logs/log.types.ts (1)
  • LogEvent (1-9)
infrastructure/w3id/src/logs/log-manager.ts (1)
infrastructure/w3id/src/logs/log.types.ts (6)
  • Signer (17-20)
  • LogEvent (1-9)
  • VerifierCallback (11-15)
  • RotationLogOptions (22-25)
  • GenesisLogOptions (27-30)
  • CreateLogEventOptions (43-43)
🪛 Biome (1.9.4)
infrastructure/w3id/tests/w3id.test.ts

[error] 55-55: Unsafe usage of optional chaining.

If it short-circuits with 'undefined' the evaluation will throw TypeError here:

(lint/correctness/noUnsafeOptionalChaining)

🔇 Additional comments (26)
infrastructure/w3id/src/errors/errors.ts (1)

1-34: LGTM! Type annotation cleanup

The removal of redundant : string type annotations from the error constructors is a good cleanup. The parameter types are already inferred from the default values, making the explicit annotations unnecessary.

infrastructure/w3id/tests/logs/log.test.ts (3)

1-8: Good refactoring of utility imports

The refactoring to import utilities from dedicated files rather than defining them inline improves code organization and reusability.

Also applies to: 16-17


22-25: Good use of dependency injection

Passing the signer to the IDLogManager constructor follows good dependency injection practices, making the code more maintainable and testable.


30-30:

❓ Verification inconclusive

Consider consistent signer usage

There's an inconsistency in how signers are used. A global signer is defined (line 22), but local signers are created in several test cases. While this might be intentional for specific test scenarios, it's worth reviewing if all these separate instances are necessary.

Also applies to: 63-64, 76-77, 116-117


🏁 Script executed:

#!/bin/bash
# Check how many unique signer instances are created and where they're used

echo "Checking signer creation patterns in test file:"
cat infrastructure/w3id/tests/logs/log.test.ts | grep -n "createSigner" | grep -v "import"

echo -e "\nChecking if these signers are necessary by examining how they're used:"
cat infrastructure/w3id/tests/logs/log.test.ts | grep -A 5 -B 5 "nextKeySigner" | grep -v "^--$"

Length of output: 2089


Review Consistent Signer Usage

It appears that multiple signer instances are created in this test file even when using the same key pair. For example:

  • A global signer is defined with const signer = createSigner(keyPair); on line 22.
  • A local instance is re-created with the same initialization on line 30.
  • Additional signers are instantiated in key rotation tests (lines 63–64, 76–77, and 116–117) with varying key pairs.

Please verify if all these separate instances are intentional for simulating different scenarios or if consolidating them (for instance, reusing the global signer where possible) would maintain clarity and reduce potential redundancy.

infrastructure/w3id/tests/w3id.test.ts (4)

15-19: LGTM! Good basic test for ID creation

This test correctly verifies that a basic W3ID can be created without any additional options, and that the logs property remains undefined in this case.


21-24: LGTM! Good verification of global ID format

This test correctly verifies that when the global flag is set to true, the resulting ID starts with '@'.


31-46: LGTM! Excellent test for deterministic ID generation

This test properly validates the deterministic nature of the ID generation when the same namespace and entropy are provided, which is crucial for consistency.


59-80: LGTM! Comprehensive test for key rotation

This test thoroughly validates the key rotation functionality by creating a new key pair, performing a rotation, and verifying the log chain remains valid. The assertions are well-chosen to ensure the integrity of the log chain.

infrastructure/w3id/tests/utils/crypto.ts (1)

10-25: LGTM! Well-implemented signature verification

The verifierCallback implementation correctly handles the complex process of signature verification:

  1. Decodes the signature from base58btc
  2. Converts the message to a Uint8Array
  3. Converts the public key from hex format
  4. Uses tweetnacl's verify method with proper parameters
infrastructure/w3id/src/index.ts (10)

8-13: LGTM! Clean and simple W3ID class design

The W3ID class has a clean interface with just the essential properties - an ID string and an optional logs manager.


15-22: LGTM! Well-structured properties for the builder pattern

The W3IDBuilder class correctly implements the builder pattern with private properties for all configuration options. The default value for global (false) is appropriate.


23-31: LGTM! Well-documented fluent interface method

Good implementation of the fluent interface pattern with thorough JSDoc documentation.


33-41: LGTM! Clear documentation for namespace parameter

The withNamespace method is well-documented, clearly explaining its purpose in generating UUIDv5 identifiers.


43-56: LGTM! Excellent documentation of the global identifier concept

The withGlobal method has comprehensive documentation that clearly explains the purpose and meaning of global identifiers in the system, which is very helpful for developers.


58-67: LGTM! Good documentation for repository integration

The withRepository method is well-documented, explaining its purpose in the overall W3ID architecture.


69-78: LGTM! Clear documentation of signer requirements

The withSigner method's documentation effectively communicates that a repository is also required when attaching a keypair.


80-89: LGTM! Well-documented next key hash method

The withNextKeyHash method is well-documented, clearly explaining its purpose in the key rotation mechanism.


96-104: LGTM! Good fallback handling for optional parameters

The build method correctly handles optional parameters by providing fallbacks for entropy and namespace, and properly formats the ID based on the global flag.


114-120: LGTM! Proper initialization of IDLogManager and genesis log

The build method correctly initializes the IDLogManager with the repository and signer, and creates a genesis log event with the ID and next key hash.

infrastructure/w3id/src/logs/log-manager.ts (7)

14-14: LGTM! Proper type usage for Signer

Good use of the type keyword for importing types, which ensures they're only used for type checking and don't affect the runtime.


32-37: LGTM! Good refactoring to centralize signer management

Storing the signer as an instance property centralizes the signing responsibility within the class, which is a good design improvement.


39-50: LGTM! Improved method documentation

The addition of proper JSDoc comments with param tags and return type documentation improves the API clarity.


85-97: LGTM! Comprehensive documentation for verifyLogEventProof

The addition of detailed JSDoc comments with param tags and return type improves the understanding of this critical security method.


116-148: LGTM! Well-documented appendEntry method with proper signer update

The refactored appendEntry method now correctly:

  1. Uses the instance signer for signing
  2. Updates the instance signer to the next key signer after rotation
  3. Has improved documentation

This is a significant improvement to the key rotation flow.


150-171: LGTM! Improved genesis entry creation

The createGenesisEntry method now properly:

  1. Uses the instance signer for signing
  2. Handles IDs with '@' prefix correctly
  3. Uses the signer's public key for updateKeys
  4. Has enhanced documentation

173-187: LGTM! Well-typed createLogEvent method

The addition of explicit return type and comprehensive JSDoc comments improves the API clarity for this key method.

@coodos coodos force-pushed the feat/core-id-creation-logic branch 3 times, most recently from b4f32b2 to 5d6abfe Compare April 16, 2025 18:10
@coodos coodos force-pushed the feat/core-id-creation-logic branch from 5d6abfe to e8ed604 Compare April 16, 2025 18:11
@coodos coodos merged commit 078e5e3 into main Apr 16, 2025
5 checks passed
@coodos coodos deleted the feat/core-id-creation-logic branch April 16, 2025 18:16
@coderabbitai coderabbitai bot mentioned this pull request Apr 22, 2025
6 tasks
coodos added a commit that referenced this pull request Jul 7, 2025
* 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
coodos added a commit that referenced this pull request Jul 7, 2025
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant