Baluduvamsi2006 commented on code in PR #3275:
URL: https://github.com/apache/apisix-dashboard/pull/3275#discussion_r2670874350
##########
src/routes/services/index.tsx:
##########
@@ -36,12 +37,28 @@ const ServiceList = () => {
const columns = useMemo<ProColumns<APISIXType['RespServiceItem']>[]>(() => {
return [
- {
- dataIndex: ['value', 'id'],
- title: 'ID',
- key: 'id',
- valueType: 'text',
- },
+ {
+ dataIndex: ['value', 'id'],
+ title: 'ID',
+ key: 'id',
+ render: (_, record) => (
+ <span style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
+ {record.value.id}
+ <Button
+ size="small"
+ type="link"
+ onClick={() => {
+ navigator.clipboard.writeText(record.value.id);
+ message.success(t('copy_success'));
+ }}
+>
+ {t('copy')}
+</Button>
+
+ </span>
+ ),
+},
Review Comment:
Thanks a lot for the review and guidance!
I’m currently preparing myself for contributing more actively to Apache
APISIX, and I’m also very interested in applying for Google Summer of Code with
Apache in the future.
If you have any suggestions on areas where new contributors can make
meaningful impact, or specific issues/features that would be good to work on, I
would really appreciate your guidance.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]