Implement settings page #5
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: gorb/frontend#5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "settings-page"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Implements account settings, currently only accessible by going to /settings manually
i also updated some api calls here and there due to them being out of date, and added a favicon!
Some notes to supplement the comments:
<h1-6>
) elements for things that aren't titles or section labels, prefer using non-semantic elements like<p>
combined with thefont-size
CSS property for purely visual design, headings are semantic elements primarily used for accessibility, and having 5 of them in a row isn't greatRe-request review once you've made these changes, or let me know if you disagree with anything.
@ -0,0 +7,4 @@
<strong>{{ props.user.display_name || "display_name" }}</strong>
</p>
<p id="username-and-pronouns">
{{ props.user.username || "username" }} - {{ props.user.pronouns || "un/defined" }}
Unnecessary fallback string, username can't be null
@ -0,0 +22,4 @@
const { fetchMembers } = useApi();
const props = defineProps<{
user: UserResponse | any, // actually UserResponse | null but TS is yelling at me again
| any
isn't actually necessary, not sure why TS would be yelling at you, doesn't for me@ -0,0 +26,4 @@
</div>
<!-- i love html -->
<br>
Prefer using
margin
properties for spacing in layout, use<br>
for line breaks in text/paragraphs@ -0,0 +93,4 @@
input.type = 'file';
input.accept = 'image/*';
input.onchange = async (e) => {
Prefer
addEventListener
rather than.on{event}
for consistency with the rest of the codebase, in this caseinput.addEventListener("change", (e: Event) => {})
@ -0,0 +158,4 @@
}
</style>
<!-- not scoped, these are used by children] -->
Rather than making a global style, use
:deep()
, which should work for children of components, e.g.:i've decided to not use dynamic units for the user popup, i need help deciding how to do stuff, and it can be done later.
border-radius is still using pixels, i think relative units just look bad for them.
otherwise i believe everything's been "fixed".
still have to fix the user-popup thing, but we'll fix that later
Mostly fine, will make some minor changes later, but fine to push.
Merged manually
Pull request closed