Skip to content

Andri/wave background #3198

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

Draft
wants to merge 53 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
19016a1
anchor_management
LXIF Jul 8, 2025
c2770f4
tentative device registration
LXIF Jul 8, 2025
d99b96b
add most of the rest
LXIF Jul 8, 2025
e960ae4
fix get_anchor_info
LXIF Jul 9, 2025
f0511a8
Merge branch 'main' into andri/tentative-device-v2
LXIF Jul 10, 2025
a1176c1
add updating lookup table
LXIF Jul 10, 2025
4e61a2a
refactor and cleanup
LXIF Jul 10, 2025
63516cb
clippy
LXIF Jul 10, 2025
ccd6d9d
Merge branch 'main' into andri/tentative-device-v2
LXIF Jul 10, 2025
c0a069a
rename metric
LXIF Jul 10, 2025
ae3a2ed
update type and tests
LXIF Jul 10, 2025
2613e78
cwippy
LXIF Jul 10, 2025
71f4994
quippy
LXIF Jul 10, 2025
8d2676c
add some integration tests
LXIF Jul 10, 2025
ef4cc92
did
LXIF Jul 10, 2025
1c48bd3
fix test
LXIF Jul 10, 2025
d2b0b35
fix tests
LXIF Jul 10, 2025
58327b2
fix tests
LXIF Jul 10, 2025
d4753de
gwippy
LXIF Jul 10, 2025
5383b7b
fix tests
LXIF Jul 11, 2025
6039414
ckouieppie
LXIF Jul 11, 2025
f7510d8
fix test
LXIF Jul 11, 2025
7b53912
clippy
LXIF Jul 11, 2025
8f82c68
update lookup function
LXIF Jul 11, 2025
951afc4
fix typo
LXIF Jul 11, 2025
98a0ba1
fix did
LXIF Jul 11, 2025
a758e3e
fix did
LXIF Jul 11, 2025
29af839
add did type alias
LXIF Jul 11, 2025
f6da75c
add one more integration test
LXIF Jul 11, 2025
c537f85
update integration test
LXIF Jul 11, 2025
5c86178
rename function
LXIF Jul 11, 2025
abda5fb
Merge branch 'main' into andri/tentative-device-v2
LXIF Jul 11, 2025
a1417ee
make id optional in reg mode enter endpoint
LXIF Jul 11, 2025
1160bf8
update frontend to work with backend
LXIF Jul 11, 2025
da048aa
update integration tests
LXIF Jul 11, 2025
bef580f
update integration tests
LXIF Jul 11, 2025
6da8092
implement basic wavegrid
LXIF Jul 17, 2025
5f1590c
scope files
LXIF Jul 17, 2025
fad9b8b
update static animation
LXIF Jul 17, 2025
2896f66
adjuts
LXIF Jul 17, 2025
f0bb31a
add stuff
LXIF Jul 17, 2025
8c4026d
add controls
LXIF Jul 17, 2025
7597421
make tempo-dependent, add double-wave
LXIF Jul 18, 2025
5109752
update color
LXIF Jul 18, 2025
b87d5dd
adjust, add scalar
LXIF Jul 18, 2025
ebd8a92
add perlin wave
LXIF Jul 18, 2025
4ba478c
add text
LXIF Jul 18, 2025
511b1dc
refactor and make more usable
LXIF Jul 21, 2025
81934ca
ts fixes
LXIF Jul 21, 2025
5b7ee7c
another option in dropdown
LXIF Jul 21, 2025
9ad0a2c
get started on flaircanvas, write interface description
LXIF Jul 22, 2025
1a28de3
basic implementation
LXIF Jul 22, 2025
0afba33
add more options and cool things
LXIF Jul 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 37 additions & 2 deletions src/canister_tests/src/api/internet_identity/api_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,15 @@ pub fn authn_method_registration_mode_enter(
canister_id: CanisterId,
sender: Principal,
identity_number: IdentityNumber,
) -> Result<Result<RegistrationModeInfo, ()>, CallError> {
id: Option<String>,
) -> Result<Result<RegistrationModeInfo, AuthnMethodRegistrationModeEnterError>, CallError> {
call_candid_as(
env,
canister_id,
RawEffectivePrincipal::None,
sender,
"authn_method_registration_mode_enter",
(identity_number,),
(identity_number, id),
)
.map(|(x,)| x)
}
Expand Down Expand Up @@ -298,6 +299,40 @@ pub fn authn_method_confirm(
.map(|(x,)| x)
}

pub fn authn_method_check_tentative_device(
env: &PocketIc,
canister_id: CanisterId,
sender: Principal,
identity_number: IdentityNumber,
) -> Result<Result<bool, CheckTentativeDeviceError>, CallError> {
call_candid_as(
env,
canister_id,
RawEffectivePrincipal::None,
sender,
"authn_method_check_tentative_device",
(identity_number,),
)
.map(|(x,)| x)
}

pub fn authn_method_lookup_by_registration_mode_id(
env: &PocketIc,
canister_id: CanisterId,
sender: Principal,
id: String,
) -> Result<Result<Option<IdentityNumber>, LookupByRegistrationIdError>, CallError> {
call_candid_as(
env,
canister_id,
RawEffectivePrincipal::None,
sender,
"authn_method_lookup_by_registration_mode_id",
(id,),
)
.map(|(x,)| x)
}

pub fn create_account(
env: &PocketIc,
canister_id: CanisterId,
Expand Down
41 changes: 41 additions & 0 deletions src/frontend/src/lib/components/backgrounds/FlairBox.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
export interface FlairAnimationOptions {
location:
| "top"
| "left"
| "right"
| "bottom"
| "topLeft"
| "topRight"
| "bottomLeft"
| "bottomRight"
| "center"
| { x: number; y: number };
target: ("motion" | "scale" | "opacity")[];
motionType:
| "omni"
| "xy"
| "yx"
| "up"
| "down"
| "left"
| "right"
| "cw"
| "ccw";
speed: "slow" | "medium" | "fast";
intensity: "light" | "medium" | "strong";
size: "large" | "medium" | "small";
}

export interface FlairBoxProps {
bgType?: "dots" | "grid" | "noisedots";
spacing?: "large" | "medium" | "small";
aspect?: "square" | "wide" | "ultrawide";
visibility?: "always" | "animation";
dotSize?: "large" | "medium" | "small";
vignette?: "center" | "top" | "left" | "right" | "bottom" | "none";
hoverAction?: "intense" | "minimal" | "none";
springOrTween?: "spring" | "tween";
backgroundClasses?: string;
foregroundClasses?: string;
triggerAnimation?: (opts: FlairAnimationOptions) => void;
}
Loading
Loading