-
Notifications
You must be signed in to change notification settings - Fork 0
v0.4.5 #362
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
v0.4.5 #362
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
869eb16
Move editor constants to separate file
jzgom067 b198bbf
Remove export on unused export
jzgom067 70dce17
Remove event details placeholders
jzgom067 c80cf2f
Update painting loading page
jzgom067 b44f529
Update results loading page spacing
jzgom067 ab798be
Update event editor loading page
jzgom067 0d9aece
Fix mobile event editor loading title length
jzgom067 7d2b890
Move settings pages into subfolder
jzgom067 4394c3c
Create loading layout for settings page
jzgom067 f3bfa20
Merge pull request #348 from plan-cake/fix-circular-dependency
mirmirmirr acd4243
Update password criteria animation
jzgom067 f20ef4a
Update text alignment
jzgom067 dae10bb
Update strong password wording
jzgom067 b5ed37a
Update dashboard loading screen colors
jzgom067 a94fa28
Merge pull request #349 from plan-cake/loading-updates
mirmirmirr 5e7277c
Merge pull request #350 from plan-cake/password-criteria-animation
mirmirmirr db88abd
Update code checking rate limit
jzgom067 d4d975a
Add cursor-pointer to toast X
jzgom067 d61df19
Create global.d.ts
jzgom067 a40d6e6
Add delay to state change on drawer tap
jzgom067 52aac47
Add floating drawer timeout cleanup
jzgom067 421c5b0
Remove DEBUG logs from production
jzgom067 389c223
Add automatic drawer for confirmation on mobile
jzgom067 6df6b6a
Merge pull request #351 from plan-cake/code-check-limit-adjustment
mirmirmirr 8e495a4
Merge pull request #352 from plan-cake/toast-x-fix
mirmirmirr 38123ba
Merge pull request #353 from plan-cake/css-import-fix
mirmirmirr 12cb26f
Merge pull request #356 from plan-cake/token-log-removal
mirmirmirr cb6ccb0
Merge pull request #354 from plan-cake/mobile-results-footer-fix
mirmirmirr 3ef5946
Merge pull request #357 from plan-cake/grid-page-popup-fix
mirmirmirr 81f96e8
Add version data
jzgom067 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| import HeaderSpacer from "@/features/header/components/header-spacer"; | ||
|
|
||
| export default function Loading() { | ||
| return ( | ||
| <div className="flex animate-pulse flex-col space-y-4 pl-6 pr-6"> | ||
| <HeaderSpacer /> | ||
|
|
||
| <div className="bg-background flex w-full flex-col gap-1"> | ||
| <h1 className="text-2xl font-bold tracking-tight">Account Settings</h1> | ||
| <p className="text-foreground/60 text-sm"> | ||
| Manage your account settings and preferences! | ||
| </p> | ||
| </div> | ||
|
|
||
| <div className="mt-2 flex flex-col gap-6 md:flex-row md:gap-12"> | ||
| <div className="bg-loading w-23 h-11 rounded-3xl md:w-64" /> | ||
| <div className="bg-loading h-68 w-full max-w-2xl rounded-3xl" /> | ||
| </div> | ||
| </div> | ||
| ); | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 54 additions & 29 deletions
83
frontend/src/features/auth/components/password-criteria.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,44 +1,69 @@ | ||
| import { AnimatePresence, motion } from "framer-motion"; | ||
| import { CheckIcon, XIcon } from "lucide-react"; | ||
|
|
||
| import { cn } from "@/lib/utils/classname"; | ||
|
|
||
| type PasswordCriteriaProps = { | ||
| open: boolean; | ||
| criteria: { [key: string]: boolean }; | ||
| }; | ||
|
|
||
| export default function PasswordCriteria(props: PasswordCriteriaProps) { | ||
| const allCriteriaMet = Object.values(props.criteria).every((value) => value); | ||
| export default function PasswordCriteria({ | ||
| open, | ||
| criteria, | ||
| }: PasswordCriteriaProps) { | ||
| const allCriteriaMet = Object.values(criteria).every((value) => value); | ||
|
|
||
|
jzgom067 marked this conversation as resolved.
|
||
| const iconClass = "w-4 h-4"; | ||
|
|
||
| return ( | ||
| <div className="w-full text-sm"> | ||
| {allCriteriaMet ? ( | ||
| <div className="flex items-center gap-1"> | ||
| <CheckIcon className={iconClass} /> | ||
| <b>Password is strong!</b> | ||
| </div> | ||
| ) : ( | ||
| <> | ||
| <b>Your password must:</b> | ||
| {Object.entries(props.criteria).map(([key, value], index) => ( | ||
| <div | ||
| key={index} | ||
| className={cn( | ||
| "flex items-center gap-1", | ||
| value ? "line-through opacity-50" : "", | ||
| )} | ||
| > | ||
| {value ? ( | ||
| <CheckIcon className={iconClass} /> | ||
| ) : ( | ||
| <XIcon className={iconClass} /> | ||
| )} | ||
| {key} | ||
| </div> | ||
| ))} | ||
| </> | ||
| <AnimatePresence> | ||
| {open && ( | ||
| <motion.div | ||
| className="w-full overflow-hidden px-4 text-sm" | ||
| initial={{ height: 0, opacity: 0 }} | ||
| animate={{ height: "auto", opacity: 1 }} | ||
| exit={{ height: 0, opacity: 0 }} | ||
| > | ||
| <div className="pt-2 text-start"> | ||
| <AnimatePresence mode="sync"> | ||
| <motion.div | ||
| key={allCriteriaMet ? "strong" : "criteria"} | ||
| initial={{ opacity: 0, height: 0 }} | ||
| animate={{ opacity: 1, height: "auto" }} | ||
| exit={{ opacity: 0, height: 0 }} | ||
| > | ||
| {allCriteriaMet ? ( | ||
| <div className="flex items-center gap-1"> | ||
| <CheckIcon className={iconClass} /> | ||
| <b>Your password is strong!</b> | ||
| </div> | ||
| ) : ( | ||
| <> | ||
| <b>Your password must:</b> | ||
| {Object.entries(criteria).map(([key, value], index) => ( | ||
| <div | ||
| key={index} | ||
| className={cn( | ||
| "flex items-center gap-1", | ||
| value ? "line-through opacity-50" : "", | ||
| )} | ||
| > | ||
| {value ? ( | ||
| <CheckIcon className={iconClass} /> | ||
| ) : ( | ||
| <XIcon className={iconClass} /> | ||
| )} | ||
| {key} | ||
| </div> | ||
| ))} | ||
| </> | ||
| )} | ||
| </motion.div> | ||
| </AnimatePresence> | ||
| </div> | ||
| </motion.div> | ||
| )} | ||
| </div> | ||
| </AnimatePresence> | ||
| ); | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| const MAX_DAYS = 64; | ||
| export const MAX_DURATION_MS = MAX_DAYS * 24 * 60 * 60 * 1000; | ||
| export const MAX_DURATION = `${MAX_DAYS} days`; | ||
| export const MAX_TITLE_LENGTH = 50; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| // Silences an error when importing globals.css in layout.tsx | ||
| declare module "*.css"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.