Skip to content
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

[ALS-5911] Api Page, Refactor #11

Merged
merged 1 commit into from
Mar 12, 2024
Merged

[ALS-5911] Api Page, Refactor #11

merged 1 commit into from
Mar 12, 2024

Conversation

JamesPeck
Copy link
Collaborator

No description provided.

@JamesPeck JamesPeck added the enhancement New feature or request label Mar 6, 2024

This comment was marked as outdated.

@JamesPeck JamesPeck force-pushed the feature/api-page branch 2 times, most recently from c926c3c to 62e880f Compare March 7, 2024 19:49
[ALS-5911] Api Page

refactor
@JamesPeck JamesPeck changed the title [ALS-5911] Api Page [ALS-5911] Api Page, Refactor Mar 8, 2024
@JamesPeck JamesPeck requested a review from srpiatt March 8, 2024 13:42
},
};

export const domain = {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure why this is here


<div class="flex justify-between items-center">
<span class="uuid">{data.cell}</span>
<CopyButton {buttonText} itemToCopy={data.cell} classes={buttonClasses} />
Copy link
Contributor

Choose a reason for hiding this comment

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

Classes works fine here. I did see a 'style' that could allow you to do <CopyButton class={...} /> But it looks kinda weird. (I was going to use it to pass a style down to the ThSort component.)

<script lang="ts">
  let clazz = '';
  export { clazz as class };
  ...
</script>
<button class={`whatever ${clazz}`} />

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am fine with this pattern if you want to do stuff like that. I don't feel very strongly either way. One difference is that I made it an array, and if we called it class I think it would need to just be a string.

export interface User {
uuid?: string;
email?: string;
privileges?: string[];
Copy link
Contributor

Choose a reason for hiding this comment

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

Is everything in this interface optional, or are there some things we can guarantee, like at least an empty privileges array?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I made it all optional for now, I think this is something we should revisit when we do the true login.

@JamesPeck JamesPeck merged commit f7c8da3 into dev Mar 12, 2024
3 checks passed
@JamesPeck JamesPeck deleted the feature/api-page branch March 12, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants